Add support for tracking drying of spools
Adding support for tracking drying status of filament spools.
Implemented so far:
- server changes
- [x] database
- [x] migration
- [x] API support
- [ ] API docs (can't get them to generate on my machine,
pdmwas giving me grief and I can't get them to generate with the REPL.)
- UI changes
- [x] Spool Show page
- [x] Displays
driedandlast_driedfields with appropriate labels - [x] modal to add drying
- [x] Displays
- [x] Spool List page
- [x] Can display
last_driedfield with appropriate labels & sort by it - [x] modal to add drying
- [x] Can display
- [ ] Spool Edit page -- nothing is changed here, as I'm not sure what the best UI would look like / how it would work
- [x] Spool Show page
I appreciate you working on improving Spoolman, but I gotta ask, why can't this be solved using the already existing "extra fields" feature?
It could, but then the dry button wouldn't be implemented in the list UI — right now, I have last_dried as an extra field of my own, but it's clunky to use as I have to edit the spool as opposed to clicking the dry icon from the list view.
I understand, but this is a somewhat niche use-case for doing something relatively obtrusive as adding a button in the spool list page. Most people won't care about it.
Perhaps it can be hidden behind a setting?
That's totally fair! I'm open to whatever you think best -- just let me know, and I can try to get the code changed (am not completely familiar with your code!).
Hey @Donkie, any thoughts on this?
I am 100% behind this feature. Have it toggle/able on off (or even behind the "custom fields" area of config, but 100% an easy to use "dried" that tracks when it was last dried is very helpful.
I would go as far as saying as adding a location named dryer (like I currently have) and tracking when it was last moved/removed would be even more useful and provide a similar usecase.