Skip to content

[SPIKE] Add support for bottles of resin as a stock type #23

@jsnfwlr

Description

@jsnfwlr

General

  • Investigate cross over properties between filament spools and resin bottles
  • Does the app need a configuration option allowing the admin to set which stock types to use?

Back end

  • Plan changes to DB - are extra tables needed or can spools be renamed to stock with a stock_type enum column added?
  • Decide what to do with the column for the marketed amount (presently weight) - Weight can still be used to track usage (combined_weight vs current_weight) and the values for the weight column still work with either millilitres/litres or grams/kilograms (metric ftw), but does the column need to be renamed? Could be changed to size or amount?
  • Decide how to separate the values for materials and colors so they can only be used for filament or resin.
  • Decide of means for specifying if a location is used to store filament, resin, or both.

Frontend

  • Plan out UI changes to accommodate resin
  • Dashboard charts can probably just have extra datasets added for resin, making sure to hide null datasets so if the app is used only for one type of stock, it doesn't clutter the UI with the other type
  • Dashboard tables would need two modes, could be handled with per-table tabsets plus a page-level toggle, which could also filter the charts
  • Based on backend changes for materials, colors, and locations, decide how to handle creating these records based on stock type - it could be a toggle with true being filament, false being resin, and (for locations) an indeterminate state being both, this would work if the backend allowed a null value in the locations stock_type column

Metadata

Metadata

Assignees

Labels

state:QuestionThis cannot be triaged without more information

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions