Commit Graph

71 Commits

Author SHA1 Message Date
801d3da02a feat: Add quick wins batch (#42, #43, #25, #35, #20, #36, #39)
Some checks failed
CI / style (push) Has been cancelled
CI / build-client (push) Has been cancelled
CI / build-amd64 (push) Has been cancelled
CI / build-tester (push) Has been cancelled
CI / test (cockroachdb) (push) Has been cancelled
CI / test (mariadb) (push) Has been cancelled
CI / test (postgres) (push) Has been cancelled
CI / test (sqlite) (push) Has been cancelled
CI / build-arm64 (push) Has been cancelled
CI / build-armv7 (push) Has been cancelled
CI / publish-images (push) Has been cancelled
CI / publish-release (push) Has been cancelled
- #42: Allow spools heavier than theoretical max (remove weight clamps)
- #43: Show filament custom fields on spool detail page
- #25: Sort spools by custom fields and remaining weight
- #35: Global search box for spool list
- #20: Gallery view for spools (color grid with progress bars)
- #36: Spool-level color override with ColorPicker
- #39: Cost analytics endpoint, total spent & avg cost/kg stats
- Fix: Filament select refresh after inline creation
- Fix: Parse temperatures from filament comments

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 23:09:42 -06:00
18cafc4361 feat: Add extra weight, price tracking, print history, usage analytics
Some checks failed
CI / style (push) Has been cancelled
CI / build-client (push) Has been cancelled
CI / build-amd64 (push) Has been cancelled
CI / build-tester (push) Has been cancelled
CI / test (cockroachdb) (push) Has been cancelled
CI / test (mariadb) (push) Has been cancelled
CI / test (postgres) (push) Has been cancelled
CI / test (sqlite) (push) Has been cancelled
CI / build-arm64 (push) Has been cancelled
CI / build-armv7 (push) Has been cancelled
CI / publish-images (push) Has been cancelled
CI / publish-release (push) Has been cancelled
- Extra Weight Field (#14): Track DryPods, custom holders in spool weight
  calculations. New extra_weight field on spool with DB migration.

- Price/Cost Tracking: Compute remaining_value based on remaining weight
  and price. Added column to spool list, inventory value on dashboard.

- Print History: Show print job history on spool detail page with
  collapsible table showing filename, filament used, status, dates.

- Usage Analytics: New dashboard component with time-series chart
  showing daily consumption, period selector (7/30/90 days), and
  material breakdown. New API endpoints for analytics data.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 22:38:14 -06:00
02da984b6e feat: Add batch operations, dashboard redesign, hierarchical locations
Some checks failed
CI / style (push) Has been cancelled
CI / build-client (push) Has been cancelled
CI / build-amd64 (push) Has been cancelled
CI / build-tester (push) Has been cancelled
CI / test (cockroachdb) (push) Has been cancelled
CI / test (mariadb) (push) Has been cancelled
CI / test (postgres) (push) Has been cancelled
CI / test (sqlite) (push) Has been cancelled
CI / build-arm64 (push) Has been cancelled
CI / build-armv7 (push) Has been cancelled
CI / publish-images (push) Has been cancelled
CI / publish-release (push) Has been cancelled
## Batch Operations (#13)
- Add POST /spool/bulk/archive, /bulk/delete, /bulk/update endpoints
- Add row selection with checkboxes to spool list
- Add floating BatchActionBar with archive/unarchive/delete/move actions
- Add confirmation modals for all batch operations

## Dashboard Redesign (#12)
- Install recharts for pie charts
- Add AlertCards (low stock, pending jobs, needs weighing)
- Add MaterialDistributionChart (pie chart by material)
- Add QuickStats row (total spools, filaments, vendors, weight)
- Refactor home page layout with new components

## Hierarchical Locations (#9)
- Add Location model with self-referential parent relationship
- Add migration for location table and spool.location_id FK
- Add location database operations (CRUD, tree, full path)
- Add location API endpoints (list, tree, CRUD)
- Add LocationTreeSelect component with nested tree display
- Add LocationCreateModal for inline location creation
- Keep legacy location string field for backward compatibility

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 21:40:01 -06:00
9bfc322f32 feat: Add color column with filter to spool list
Some checks failed
CI / style (push) Has been cancelled
CI / build-client (push) Has been cancelled
CI / build-amd64 (push) Has been cancelled
CI / build-tester (push) Has been cancelled
CI / test (cockroachdb) (push) Has been cancelled
CI / test (mariadb) (push) Has been cancelled
CI / test (postgres) (push) Has been cancelled
CI / test (sqlite) (push) Has been cancelled
CI / build-arm64 (push) Has been cancelled
CI / build-armv7 (push) Has been cancelled
CI / publish-images (push) Has been cancelled
CI / publish-release (push) Has been cancelled
Add optional color column to spool list showing filament color swatches
with multi-select filtering capability.

Backend:
- GET /api/v1/color endpoint to list distinct filament colors
- filament.color_hex query param on spool list for filtering

Frontend:
- ColorFilterColumn component renders color swatches
- useSpoolmanColors() hook fetches available colors
- Filter dropdown shows swatches with hex codes
- Column hidden by default (enable via column selector)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 21:11:18 -06:00
Donkie
b627e151a8 Updated client packages 2026-01-06 01:54:09 +01:00
Donkie
cd274a9968 Updated client dependencies 2025-02-24 21:46:56 +01:00
Erik Michelson
e93f89aa51 Add setting to toggle rounding of prices 2024-12-30 01:07:38 +01:00
TomW1605
d60b93349a fix spool weight < 0 check 2024-10-27 15:20:53 +08:00
Donkie
7108b0e7a1 Optimized and organized all clients imports 2024-08-07 12:46:37 +02:00
Donkie
8413e33895 Minor fix to ActionsColumn function
No longer uses hooks but instead takes in the title
2024-08-07 12:40:54 +02:00
Donkie
3bd93cb0af Removed React prefix to some use hooks 2024-08-06 14:28:09 +02:00
Donkie
701ed2fae6 Added button to adjust filament
Resolves #428
Resolves #30
2024-08-06 11:34:47 +02:00
Donkie
48ef3a23f2 Fixed client showing wrong spool price if overridden to 0
Resolves #431
2024-08-05 19:43:05 +02:00
Donkie
f3711f3789 Formatting 2024-08-05 19:26:35 +02:00
Donkie
5afe53e05b Merge pull request #423 from tzahari/master
Optimized list views
2024-08-05 19:16:50 +02:00
Donkie
f8c518e808 Added print page header and back functionality 2024-08-05 18:11:44 +02:00
Donkie
9318ef5c19 Label printing page updates
No longer a modal
Use flex divs instead of a table
2024-08-05 15:39:38 +02:00
Thomas Zahari
7e87751caf Added right alignment for NumberColumns and price
Removed seconds from date / times
Removed decimals from spool length and weight
2024-07-12 16:42:26 +02:00
Donkie
f1b27b441d New spool icon updates 2024-06-11 17:09:54 +02:00
Donkie
e2df888e96 New spool color indication that supports multi colors 2024-06-09 19:23:43 +02:00
Donkie
c65bc4201b Currency setting is now utilized in filament/spool lists, edit pages etc 2024-02-02 23:06:06 +01:00
Donkie
4d65dea1e9 Fixed sorting by filament in spool page
Previously it sorted by filament ID which gave wonky results, now it properly sorts by filament combined name instead

Resolves #219
2024-01-30 18:20:53 +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
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