Sort Spools by Custom Fields & Remaining Weight #25

Closed
opened 2026-01-16 04:42:38 +00:00 by tonym · 0 comments
Owner

Summary

Enable sorting AND filtering by custom extra-fields.

Upstream Issues

Note: Upstream PR #773 may have sorting - check if we can pull.

Use Cases

  1. Track "last dried" date, sort to find overdue spools
  2. Filter spools by MMU_NAME_FIELD for Happy Hare integration
  3. Find spools by custom attributes without client-side filtering

Proposed Solution

Backend - Sorting

  • Add sort support via query param
  • Example: ?sort_by=extra.last_dried&sort_order=asc
  • Add remaining_weight as sortable field

Backend - Filtering

  • Server-side filtering by extra fields
  • Example: ?extra.mmu_name=slot1
  • Reduces payload for integrations (ESP32, Happy Hare)
  • Critical for embedded devices with limited memory

Frontend

  • Add custom fields to sort dropdown
  • Add "Remaining Weight" sort option
  • Filter UI for custom fields
  • #43 Show Filament Custom Fields on Spool View
## Summary Enable sorting AND filtering by custom extra-fields. ## Upstream Issues - https://github.com/Donkie/Spoolman/issues/600 (8 reactions) - Sort by custom fields - https://github.com/Donkie/Spoolman/issues/427 - Filter by extra fields (API) **Note:** Upstream PR #773 may have sorting - check if we can pull. ## Use Cases 1. Track "last dried" date, sort to find overdue spools 2. Filter spools by MMU_NAME_FIELD for Happy Hare integration 3. Find spools by custom attributes without client-side filtering ## Proposed Solution ### Backend - Sorting - Add sort support via query param - Example: `?sort_by=extra.last_dried&sort_order=asc` - Add remaining_weight as sortable field ### Backend - Filtering - Server-side filtering by extra fields - Example: `?extra.mmu_name=slot1` - Reduces payload for integrations (ESP32, Happy Hare) - Critical for embedded devices with limited memory ### Frontend - Add custom fields to sort dropdown - Add "Remaining Weight" sort option - Filter UI for custom fields ## Related - #43 Show Filament Custom Fields on Spool View
tonym closed this issue 2026-01-23 05:14:09 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tonym/spoolman2#25
No description provided.