Commit Graph

624 Commits

Author SHA1 Message Date
Donkie
52cdb01110 Updated scripts to not use PDM anymore 2024-01-25 20:13:24 +01:00
Donkie
44d3ed72b0 CI job now builds a requirement.txt into the spoolman.zip 2024-01-25 20:11:12 +01:00
Donkie
f294561d57 Merge pull request #256 from Donkie/custom-fields
New backend custom fields system
2024-01-23 19:37:33 +01:00
Donkie
40d3a3184f Implemented extra fields for spools and vendors as well 2024-01-23 19:27:34 +01:00
Donkie
fb23024ed0 Extra fields now finished for filaments 2024-01-23 18:58:58 +01:00
Donkie
23818c1005 Made a nicer button for Show Spools in filament show page 2024-01-23 18:58:58 +01:00
Donkie
f8cc9f7eda Updated integration tests to not require exact match
This matches how we want clients to behave, they should ignore any extra fields that are sent in the response.
2024-01-23 18:58:58 +01:00
Donkie
7972f4d401 Update test_add.py 2024-01-23 18:58:58 +01:00
Donkie
3340da3067 Allow relative imports in tests 2024-01-23 18:58:57 +01:00
Donkie
1caae75d81 Update conftest.py 2024-01-23 18:58:57 +01:00
Donkie
f9787158b8 Extra field settings UI done 2024-01-23 18:58:57 +01:00
Donkie
483c48151b Work on extra fields settings UI
Almost finished
2024-01-23 18:58:57 +01:00
Donkie
77e781f1ea Added settings menu with working currency editing 2024-01-23 18:58:57 +01:00
Donkie
9362d04dad Add caching for extra fields retrieval 2024-01-23 18:58:57 +01:00
Donkie
4adee1327b Ruff fix 2024-01-23 18:58:57 +01:00
Donkie
a868e1889f Added integration tests for using extra fields 2024-01-23 18:58:57 +01:00
Donkie
36a346bf64 Added restrictions on changing existing fields 2024-01-23 18:58:57 +01:00
Donkie
09b8705133 Existing extra fields for entities are now cleared if a field is deleted 2024-01-23 18:58:57 +01:00
Donkie
86e126f775 Added some basic field CRUD tests 2024-01-23 18:58:57 +01:00
Donkie
06e3849862 No longer need to specify entity_type in body 2024-01-23 18:58:57 +01:00
Donkie
77ac9d6a5c Added custom extra fields to backend
No integration tests yet, TBD
2024-01-23 18:58:57 +01:00
Donkie
71c29d2467 Merge pull request #278 from hcooper/patch-1
Switch tests from "docker-compose" to "docker compose"
2024-01-23 18:14:46 +01:00
Donkie
4acb649a21 Merge pull request #275 from Donkie/dependabot/npm_and_yarn/client/vite-5.0.12
Bump vite from 5.0.10 to 5.0.12 in /client
2024-01-23 18:14:18 +01:00
hcooper
ccfec28bcd Switch from "docker-compose" to "docker compose"
"docker compose" is the modern usage.
2024-01-23 00:09:32 -08:00
dependabot[bot]
c014fb361b Bump vite from 5.0.10 to 5.0.12 in /client
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.0.10 to 5.0.12.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.0.12/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.0.12/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-19 22:07:08 +00:00
Donkie
9ef4f16214 Merge pull request #248 from Donkie/settings-backend
New backend settings system
2024-01-16 19:26:50 +01:00
Donkie
5900f2248a Updated settings migration 2024-01-16 19:20:44 +01:00
Donkie
44da991d47 Added a new backend settings system
This can be used for saving runtime-configurable settings in the database.
2024-01-16 19:17:06 +01:00
Donkie
cad6d4a7f7 Merge pull request #233 from Donkie/weblate
Translations update
2024-01-16 19:14:55 +01:00
Anonymous
db2a85116f Translated using Weblate (Portuguese)
Currently translated at 99.0% (207 of 209 strings)

Translated using Weblate (Romanian)

Currently translated at 21.5% (45 of 209 strings)

Translated using Weblate (Danish)

Currently translated at 99.0% (207 of 209 strings)

Translated using Weblate (Greek)

Currently translated at 99.0% (207 of 209 strings)

Translated using Weblate (Ukrainian)

Currently translated at 99.0% (207 of 209 strings)

Translated using Weblate (Italian)

Currently translated at 94.7% (198 of 209 strings)

Co-authored-by: Anonymous <noreply@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/da/
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/el/
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/it/
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/pt/
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/ro/
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/uk/
Translation: Spoolman/Web Client
2024-01-16 19:05:57 +01:00
Daniel Hultgren
d8ce41cb71 Translated using Weblate (Italian)
Currently translated at 94.7% (198 of 209 strings)

Translated using Weblate (Hungarian)

Currently translated at 94.7% (198 of 209 strings)

Translated using Weblate (Norwegian Bokmål)

Currently translated at 94.7% (198 of 209 strings)

Translated using Weblate (Chinese (Simplified))

Currently translated at 94.7% (198 of 209 strings)

Co-authored-by: Daniel Hultgren <daniel.cf.hultgren@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/hu/
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/it/
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/nb_NO/
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/zh_Hans/
Translation: Spoolman/Web Client
2024-01-16 19:05:57 +01:00
Anonymous
79decf47a6 Translated using Weblate (Hungarian)
Currently translated at 94.7% (198 of 209 strings)

Translated using Weblate (French)

Currently translated at 97.6% (204 of 209 strings)

Translated using Weblate (Norwegian Bokmål)

Currently translated at 94.7% (198 of 209 strings)

Translated using Weblate (Dutch)

Currently translated at 99.0% (207 of 209 strings)

Translated using Weblate (Chinese (Simplified))

Currently translated at 94.7% (198 of 209 strings)

Translated using Weblate (Russian)

Currently translated at 99.0% (207 of 209 strings)

Translated using Weblate (Polish)

Currently translated at 98.5% (206 of 209 strings)

Translated using Weblate (Spanish)

Currently translated at 99.0% (207 of 209 strings)

Translated using Weblate (German)

Currently translated at 99.0% (207 of 209 strings)

Translated using Weblate (Czech)

Currently translated at 99.0% (207 of 209 strings)

Co-authored-by: Anonymous <noreply@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/cs/
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/de/
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/es/
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/fr/
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/hu/
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/nb_NO/
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/nl/
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/pl/
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/ru/
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/zh_Hans/
Translation: Spoolman/Web Client
2024-01-16 19:05:57 +01:00
Luis
4d4c133877 Translated using Weblate (Portuguese)
Currently translated at 100.0% (207 of 207 strings)

Added translation using Weblate (Portuguese)

Co-authored-by: Luis <kingblox69123@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/pt/
Translation: Spoolman/Web Client
2024-01-16 19:05:57 +01:00
Constantin Sarbu
a92e2fda0e Translated using Weblate (Romanian)
Currently translated at 21.7% (45 of 207 strings)

Co-authored-by: Constantin Sarbu <dinu.sarbu@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/ro/
Translation: Spoolman/Web Client
2024-01-16 19:05:57 +01:00
Сергій
7fd146ea80 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (207 of 207 strings)

Co-authored-by: Сергій <sergiy.goncharuk.1@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/uk/
Translation: Spoolman/Web Client
2024-01-16 19:05:57 +01:00
Dr_Perry_Coke
119d546432 Translated using Weblate (Russian)
Currently translated at 100.0% (207 of 207 strings)

Translated using Weblate (Russian)

Currently translated at 100.0% (207 of 207 strings)

Co-authored-by: Dr_Perry_Coke <dr.perrycoke@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/ru/
Translation: Spoolman/Web Client
2024-01-16 19:05:57 +01:00
Michael Benz
03dc2cf9aa Translated using Weblate (German)
Currently translated at 100.0% (207 of 207 strings)

Co-authored-by: Michael Benz <michaelbenz@gmx.net>
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/de/
Translation: Spoolman/Web Client
2024-01-16 19:05:57 +01:00
Athanasios Papadimos
da9972e837 Translated using Weblate (Greek)
Currently translated at 100.0% (207 of 207 strings)

Co-authored-by: Athanasios Papadimos <thanosp1993@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/el/
Translation: Spoolman/Web Client
2024-01-16 19:05:57 +01:00
Ashmodaj
bc03076693 Translated using Weblate (French)
Currently translated at 98.5% (204 of 207 strings)

Co-authored-by: Ashmodaj <ashmodaj@okolnir.fr>
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/fr/
Translation: Spoolman/Web Client
2024-01-16 19:05:57 +01:00
Maurice Kevenaar
a500945f0d Translated using Weblate (Dutch)
Currently translated at 100.0% (207 of 207 strings)

Co-authored-by: Maurice Kevenaar <maurice@kevenaar.name>
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/nl/
Translation: Spoolman/Web Client
2024-01-16 19:05:57 +01:00
Donkie
46f9dd827f Merge pull request #240 from pdsccode/master
Adding prices to spools
2024-01-16 18:23:30 +01:00
Sebastian
d5a88423c7 Merge branch 'Donkie:master' into master 2024-01-11 22:15:56 +01:00
Donkie
a63e401583 Merge pull request #259 from Donkie/dependabot/npm_and_yarn/client/follow-redirects-1.15.4 2024-01-11 06:50:51 +01:00
dependabot[bot]
58a6300066 Bump follow-redirects from 1.15.3 to 1.15.4 in /client
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.3 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.3...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-11 05:31:22 +00:00
pdsccode
1ec1e05c40 Reverted changes to .pre-commit-config.yaml, changed en locales to reflect default and added filament price as default to spools/show.tsx 2024-01-10 19:22:26 +01:00
pdsccode
28a70d5190 Merged spool price testing into existing test methods 2024-01-07 14:24:14 +01:00
pdsccode
05dfb611cf Revert "Fixed test error that asserts 404 on create"
This reverts commit f13c61b9e9.
2024-01-07 14:17:59 +01:00
pdsccode
f13c61b9e9 Fixed test error that asserts 404 on create 2024-01-07 13:44:04 +01:00
pdsccode
44b20fb360 Fixed code formatting 2024-01-07 13:25:05 +01:00
Donkie
ee22904383 Updated development chapter 2024-01-07 09:55:41 +01:00