Commit Graph
100 Commits
Author SHA1 Message Date
Donkie 03be75abca Subscription tree data structure for websockets
It holds the subscriptions in a tree fashion, sending the message down the branches while broadcasting on each node.
2023-10-15 20:16:29 +02:00
Donkie 7a3c2e3a68 Added event response model in api documentation 2023-10-15 19:46:28 +02:00
Donkie a6d527aaf0 Added/deleted-type websocket messages
Events are now sent for not only when an object changes but also when one is created or deleted.

For now it's not really possible to subscribe to these events however.

This breaks backwards-compatibility with the websocket messages.
2023-10-15 19:46:10 +02:00
Donkie 3c5b3cea5a Added websocket endpoints for filament and vendors 2023-10-15 15:39:39 +02:00
Donkie 0fab369518 Added live updates to spools in client
Will automatically refresh the list and show pages if any of the shown spools are updated in the backend.
On the edit page, it will warn you if the spool has been updated since you opened the page.
2023-10-15 15:28:08 +02:00
Donkie bec130d038 Minor ko-fi button fixes 2023-10-15 15:15:25 +02:00
Donkie 9b4b438aa9 Minor ko-fi icon fix 2023-10-14 13:46:22 +02:00
Donkie e59eb816ed Added client building pipeline 2023-10-14 13:28:48 +02:00
Donkie 04a39b8230 Removed ts-expect-error 2023-10-14 12:42:40 +02:00
Donkie c790465857 Added tip button to bottom of page 2023-10-14 12:35:55 +02:00
Donkie f3be2a90d5 Updated client packages 2023-10-14 12:10:41 +02:00
Donkie 088e8333f3 Added Hungarian and Italian to i18n file 2023-10-14 11:20:39 +02:00
Donkie 0085b2f0f8 Merge pull request #152 from Donkie/weblate
Translations update
2023-10-14 11:16:39 +02:00
Donkie fd8d2e98d0 Merge pull request #150 from Donkie/weblate
Translations update
2023-10-14 11:03:49 +02:00
Donkie 64416f2ec2 Create FUNDING.yml 2023-10-14 11:02:53 +02:00
Donkie 4ddd80bebd Merge pull request #146 from Donkie/weblate 2023-10-13 21:25:59 +02:00
Donkie 1452a2828b Minor fix to spool weight editing 2023-10-10 21:16:20 +02:00
Donkie 41889ee83f Fixed spool weight field not being hidden 2023-10-10 21:03:56 +02:00
Donkie 3f5902516c Added max values on density and diameter inputs
This is to prevent accidentally putting in a too big value
2023-10-10 20:45:27 +02:00
Donkie 30d4019d7d Number inputs now show error if bad value
Previously it just prevented you from inputting it, which was a bit bad UX
2023-10-10 20:45:01 +02:00
Donkie e2dbe8be66 Updated english spool weight help text 2023-10-10 20:44:08 +02:00
Donkie ea322559d9 Localized new location textbox 2023-10-10 20:36:55 +02:00
Donkie 43168fc75e Added dropdown of existing locations in spool edit
Resolves #119
2023-10-10 20:21:23 +02:00
Donkie 76e5450bea Merge pull request #140 from Donkie/weblate
Translations update
2023-10-10 07:59:58 +02:00
Daniel Hultgren a84920c837 Translated using Weblate (Swedish)
Currently translated at 100.0% (192 of 192 strings)

Co-authored-by: Daniel Hultgren <daniel.cf.hultgren@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/sv/
Translation: Spoolman/Web Client
2023-10-09 12:50:45 +02:00
Donkie bdc47fd0a2 Localized create filament page title 2023-10-08 17:45:00 +02:00
Donkie 5fdd218ead Localized show page titles 2023-10-08 17:45:00 +02:00
Donkie 3c8ea136b3 Update README.md 2023-10-08 12:39:43 +02:00
Donkie 8ade10db11 Bump version to 0.12.2 2023-10-08 11:40:49 +02:00
Donkie a4dce01661 Merge pull request #135 from Donkie/weblate
Translations update
2023-10-08 11:38:28 +02:00
Donkie b1447d03d1 Merge pull request #137 from Donkie/dependabot/npm_and_yarn/client/postcss-8.4.31
Bump postcss from 8.4.27 to 8.4.31 in /client
2023-10-08 11:38:11 +02:00
Donkie a3ec58d0fc Mainsail now supports Spoolman! 2023-10-07 21:25:26 +02:00
Donkie 9595aec675 Fixed registered field having wrong timezone
This happened with at least Postgres, which took it's server's timezone. It's complicated. Let's just set it from our side instead where we have some control.
2023-10-02 21:36:50 +02:00
Donkie 205574fa2c Fixed timezone being returned incorrectly
Happened if you've set TZ to non-UTC.

Apparently astimezone and replace doesn't do the same thing even if tzinfo is None.
2023-10-02 21:36:50 +02:00
Donkie e07436bd8c Merge pull request #128 from Donkie/weblate
Translations update
2023-10-01 21:39:52 +02:00
Donkie 909e7217ae Fixed Czech language 2023-09-26 19:07:59 +02:00
Donkie d7bed054c5 Enabled new languages 2023-09-26 19:07:40 +02:00
Donkie f9e364b567 Merge pull request #117 from Donkie/weblate
Translations update from Hosted Weblate
2023-09-26 19:01:58 +02:00
Daniel Hultgren bde712f5dd Translated using Weblate (Swedish)
Currently translated at 100.0% (189 of 189 strings)

Translated using Weblate (English)

Currently translated at 100.0% (189 of 189 strings)

Co-authored-by: Daniel Hultgren <daniel.cf.hultgren@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/en/
Translate-URL: https://hosted.weblate.org/projects/spoolman/web-client/sv/
Translation: Spoolman/Web Client
2023-09-26 19:00:23 +02:00
Donkie 324bd7a650 Added weblate link 2023-09-24 11:18:02 +02:00
Donkie bd9583e047 Merge pull request #116 from MickCZ/master
add Czech translation
2023-09-23 10:37:51 +02:00
Donkie f7fb9fdf43 Clarified docker volume a bit 2023-09-23 10:37:13 +02:00
Donkie cacd38a9f5 Bump version to 0.12.1 2023-09-20 21:12:51 +02:00
Donkie 82600347da Improved API documentation regarding empty fields 2023-09-20 21:10:38 +02:00
Donkie 597dca7c28 Fixed combining empty and non-empty filter
Previously it would then act as a wildcard filter
2023-09-20 21:02:49 +02:00
Donkie f967aef2cb Client: Fixed UI not handle empty filters properly 2023-09-20 20:56:29 +02:00
Donkie 556b80a5ce Bump version to 0.12.0 2023-09-20 20:26:04 +02:00
Donkie b795680226 Added missing timezone in responses
Fixes #114
2023-09-20 20:13:02 +02:00
Donkie 5f5473481e Merge pull request #113 from DrPerryCoke/master
Add Russian localization
2023-09-20 19:17:32 +02:00
Donkie cadb707fdd Added WebSocket notify API for spools 2023-09-17 22:00:00 +02:00
Donkie e8d91bc4ce Client: Show commit and build in version element 2023-09-17 11:11:05 +02:00
Donkie 1a3efd9ea9 Added git commit and build date env and API 2023-09-17 10:51:28 +02:00
Donkie a1a4ad6b45 Revert "Add git hash to version for master builds"
This reverts commit af1f3b45c5.
2023-09-17 09:43:25 +02:00
Donkie a8080f507e Merge pull request #112 from Samuel-0-0/master
locale(zh): Update Chinese (zh) localization
2023-09-16 20:16:24 +02:00
Donkie af1f3b45c5 Add git hash to version for master builds 2023-09-16 20:06:14 +02:00
Donkie af54f07349 Client: Number formatting/parsing update
Can now use comma or period in any locale and it will handle it correctly. To do this, it now always uses a blank space as a thousands separator to prevent ambiguity with the decimal separator.
2023-09-16 14:16:30 +02:00
Donkie df66abe80c Client: Fix missing period in english i18n 2023-09-16 14:14:30 +02:00
Donkie 12b19c2c63 Client: Disabled vite dev https
It's causing loading issues
2023-09-16 13:54:10 +02:00
Donkie f722adec22 Client: Fixed incorrect column name keys 2023-09-16 13:47:50 +02:00
Donkie 3b32361c6e Merge pull request #99 from Donkie/sorting
Sorting
2023-09-16 13:38:38 +02:00
Donkie 91e4171ff8 Client: Added lazy-loading for filter drop downs 2023-09-16 11:13:30 +02:00
Donkie 58fdbb4d85 Client: Fixed spool select table formatting 2023-09-16 11:13:30 +02:00
Donkie 9c2504d073 Client: Added indeterminate state to spool select 2023-09-16 11:13:30 +02:00
Donkie dc5e3a0fbd Client: Filament name filtering/sorting now works 2023-09-16 11:13:30 +02:00
Donkie 6f94c17050 Renamed vendor.x to filament.vendor.x in spool API 2023-09-16 11:13:30 +02:00
Donkie 6ee3b8df70 Added support for multiple int where's 2023-09-16 11:13:30 +02:00
Donkie 6d68a40313 Added support for multiple string where's 2023-09-16 11:13:30 +02:00
Donkie 841cc8b6df Added sort by remaining weight 2023-09-16 11:13:30 +02:00
Donkie a4d14c5b52 Added X-Total-Count test asserts
Fixed issue with incorrect total count for vendors
2023-09-16 11:13:30 +02:00
Donkie 4e0851e7c3 Added full tests for vendor 2023-09-16 11:13:30 +02:00
Donkie 0f58ddfd88 Modernized vendor tests 2023-09-16 11:13:30 +02:00
Donkie 978773583a Full testing done for filaments
Also added tests for having multiple sorts
2023-09-16 11:13:30 +02:00
Donkie acc6ab56a5 Fixed tests for non-sqlite dbs 2023-09-16 11:13:30 +02:00
Donkie aa28e51c28 Added offset and limit tests for spools 2023-09-16 11:13:30 +02:00
Donkie 13994c486f Added module-level fixtures in tests 2023-09-16 11:13:30 +02:00
Donkie e436aa4975 Added tests for spool find sorting 2023-09-16 11:13:30 +02:00
Donkie 9a7375d781 Added test cases for finding empty spool fields 2023-09-16 11:13:30 +02:00
Donkie f47eacd2a9 Added support for finding empty vendor fields 2023-09-16 11:13:30 +02:00
Donkie 3b8db0b5f7 Expose X-Total-Count header 2023-09-16 11:13:30 +02:00
Donkie de16dd7be0 Added database support for finding empty fields 2023-09-16 11:13:30 +02:00
Donkie f62f9d899b Client: Now uses server side sorting
Still some stuff left to do #98
2023-09-16 11:13:30 +02:00
Donkie 826fde6967 API find nested filters now specified using period
Previously you used underscore, like vendor_name. This made fields like filament_article_number have ambiguous underscores.
2023-09-16 11:13:30 +02:00
Donkie 3bba0b1dce Added pdm cmd to run spoolman 2023-09-16 11:13:30 +02:00
Donkie 5bae67725a Added tanstack query devtools 2023-09-16 11:13:30 +02:00
Donkie 4b33ba0b1c Renamed locations endpoint to location 2023-09-16 11:13:30 +02:00
Donkie 1a031903de Start of serverside client tables 2023-09-16 11:13:30 +02:00
Donkie e2d937aaf1 Added x-total-count response header 2023-09-16 11:13:30 +02:00
Donkie 557ea82171 Added endpoints for getting list of materials, etc 2023-09-16 11:13:30 +02:00
Donkie 9d51ee49ed Serverside sort and limit for vendor and filaments 2023-09-16 11:13:30 +02:00
Donkie b9f1b71c1f Serverside spool find limit and offset 2023-09-16 11:13:30 +02:00
Donkie 4fdea75e3f Serverside spool sorting 2023-09-16 11:13:30 +02:00
Donkie 38d42746d1 Merge pull request #108 from maxkreja/master
Update German translation
2023-09-14 19:42:57 +02:00
Donkie 9d5d4cdc32 Merge pull request #105 from Daviteusz/weblate-spoolman-translate
locale(pl): Update Polish translations
2023-09-14 19:41:47 +02:00
Donkie fb386fe1ab Merge pull request #82 from TomW1605/master 2023-09-11 07:57:49 +02:00
Donkie 8e9ca8e305 Fixed ruff in CI 2023-09-04 20:36:02 +02:00
Donkie e1065d4a3f Format Dockerfile 2023-09-04 20:22:41 +02:00
Donkie 9e46de9007 Moved SPA definition to a new file 2023-09-04 20:22:31 +02:00
Donkie 89c588aaaf Revert "Remove style check"
This reverts commit 6f47fe0eaa.
2023-09-03 21:01:08 +02:00
Donkie 2db9823862 Merge pull request #94 from mkuf/config-permissions
Docker: set permissions for config directory
2023-09-03 20:21:25 +02:00
Donkie 6f47fe0eaa Remove style check 2023-08-28 21:24:55 +02:00