Commit Graph

47 Commits

Author SHA1 Message Date
pdsccode
577ed1e680 Changed to show filament price if no spool price set and added tests 2024-01-06 21:42:09 +01:00
pdsccode
1eb78f01df Added pricing field for single spool 2023-12-30 07:29:27 +01:00
Donkie
53b0875569 Re-ordered action list to have the show button be first 2023-10-30 22:30:11 +01:00
Donkie
bc55f5e9af Fixed table layout being fixed by the new sticky headers
This caused the columns to not get auto-sized, which broke it especially bad on iOS
2023-10-30 22:30:01 +01:00
Donkie
151c3c7f4f Client Table update
* Columns are now specified using the ant design columns property instead of being Table.Column components. This should make this WoW a bit more sense, we're not pretending to be components anymore. column.tsx now only returns objects, not nodes.
* Added filament/spool collapsing as a useTable queryOptions so that the output object is directly the one we want, which will make the types play better together.
* Added a more unified record action system. This enables us to add actions to column rightclick/long press, which is better UX for mobile devices.
* Actions column is now hidden on smaller screens thanks to the above bullet.
2023-10-29 20:37:58 +01:00
Donkie
e31aeebe97 Added sticky table headers
Resolves #133
2023-10-29 19:00:45 +01:00
Donkie
37ae1f7de1 Generalized the useLiveify hook 2023-10-15 21:20:56 +02:00
Donkie
f7faa6ccdc Auto-update for added/deleted spools in client 2023-10-15 21:05:42 +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
f722adec22 Client: Fixed incorrect column name keys 2023-09-16 13:47:50 +02:00
Donkie
dc5e3a0fbd Client: Filament name filtering/sorting now works 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
1a031903de Start of serverside client tables 2023-09-16 11:13:30 +02:00
Donkie
ecabc425c3 Client: Rich URLs in comments
Closes #51
2023-08-12 20:59:37 +02:00
Donkie
0631c5f7a1 Client: Made decimals more consistent
Closes #58
2023-08-12 20:20:25 +02:00
Donkie
e81bf8b8e7 Client: Reformatted all files with new line length 2023-08-12 19:54:24 +02:00
Donkie
475e64ff48 Client: Added a spool selection dialog 2023-07-30 09:54:33 +02:00
Donkie
3cab6166a3 Client: Created general useSavedState function 2023-07-15 14:38:40 +02:00
Donkie
7971cda7b5 Client: Support spool archiving in frontend 2023-07-14 14:21:47 +02:00
Donkie
346e59151f Client: Added material column in spool table 2023-07-14 12:07:27 +02:00
Donkie
bfb63cbfdc Client: Added some missing columns in table
Also configured the default columns to show
2023-07-14 12:05:05 +02:00
Donkie
14e758ea23 Client: Added translation for Unknown 2023-07-14 12:04:35 +02:00
Donkie
9fe37b315c Client: Added default exports to all pages 2023-07-13 22:56:54 +02:00
Donkie
f21834ce2d Client: Full localization, dynamic title 2023-07-13 22:20:54 +02:00
Donkie
e5ef306aa2 Client: Added show/hide columns feature 2023-07-13 19:12:38 +02:00
Donkie
c8974c505d Client: Improved layout of new spool icon 2023-07-10 12:40:32 +02:00
Donkie
9561111b90 Client: Added a colored spool icon in the lists
To indicate the filament color_hex field

Resolves #23
2023-07-08 23:21:13 +02:00
Donkie
eeac30a963 Client: Fixed up pagination, now also stored 2023-07-06 23:18:39 +02:00
Donkie
58833f2203 Client: Apply some memoization 2023-07-06 23:00:08 +02:00
Donkie
b1af320a54 Client: Stricter typing 2023-07-06 22:36:41 +02:00
Donkie
30934842ff Client: Save/load state cleanup, sync with rest 2023-07-06 19:49:04 +02:00
Donkie
3c8e414aef Client: Make table use the refine sorters/filters
That way, Refine is in charge of the sorters/filters state, instead of Refine and AntD each having their own state for it.
2023-07-06 19:32:48 +02:00
Donkie
391d38a3a5 Client: Moved defaultSortOrder func to utils 2023-07-06 18:59:26 +02:00
Donkie
2b33f73b28 Client: Typing for spool and vendor useTable 2023-07-06 16:41:25 +02:00
Donkie
096f75ffb5 Client: Sort state is now saved in local storage 2023-07-06 16:18:14 +02:00
Donkie
4c17b8ea30 Client: Perform pagination using AntD instead
If we let Refine do the pagination, it will only return a page's worth of items in the dataSource. This makes the sorting useless if the items span multiple pages.

Now we let Ant Design to the pagination instead.
2023-07-06 16:06:04 +02:00
Donkie
d0f67d766c Client: Spool table is now sortable 2023-07-06 15:38:42 +02:00
Donkie
97170719b2 Client: 20 item pagination 2023-07-06 14:54:48 +02:00
Donkie
e24834f161 Client: Added clone button for filaments 2023-06-25 18:08:46 +02:00
Donkie
9ac3c56bbf Client: Added spool clone button 2023-06-25 17:25:02 +02:00
Donkie
1791f3fbbd Client: Fixed first/last used for unused spools 2023-06-25 16:56:01 +02:00
Donkie
646ade1721 Client: Date time zones now handled correctly 2023-05-18 13:38:38 +02:00
Donkie
40dc48668b Client: Fixed incorrect units for some numbers 2023-05-17 22:03:19 +02:00
Donkie
166c6fa0d1 Client: Improved the lists a bit 2023-05-16 21:50:09 +02:00
Donkie
caa25ccf93 Client: Better datetime field support 2023-05-14 20:06:44 +02:00
Donkie
43919ac90e Client: Filament/Vendor selects now work 2023-05-14 20:06:17 +02:00
Donkie
0269518175 Added a basic web UI 2023-05-10 21:11:10 +02:00