wrolpi/modules/inventory
Joel Shearon fe85815c35
Format inventory expiration dates instead of epoch timestamps (#901)
Legacy inventory items stored date fields as Unix epoch seconds. The table showed the raw numbers, and sorting and expired highlighting did not treat them as dates.

- Frontend parses date values as YYYY-MM-DD or legacy epoch seconds; display, mobile view, export, search, sort and the expired check all use calendar dates with no timezone shift.
- The legacy migration converts epoch seconds to YYYY-MM-DD, and import repairs already-migrated files once.
- Jest runs with a pinned timezone; the expiry tests pass under any process timezone.

Closes #41

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-31 12:27:21 -06:00
..
test Format inventory expiration dates instead of epoch timestamps (#901) 2026-10-31 12:27:21 -06:00
__init__.py Rebuild Inventory as a config-only system with food catalog and calculators 2026-06-14 17:14:54 -06:00
api.py Add manual import + backup Restore/Merge/Overwrite for inventory configs 2026-06-19 16:28:11 -06:00
catalog.py Configs without database rows read and validate only; imports run off the event loop (#874) 2026-10-25 15:17:31 -06:00
catalog_defaults.yaml Add a recommended Food Storage example, a Ration tab, and a supply planner 2026-06-19 12:40:30 -06:00
common.py Format inventory expiration dates instead of epoch timestamps (#901) 2026-10-31 12:27:21 -06:00
conftest.py Rebuild Inventory as a config-only system with food catalog and calculators 2026-06-14 17:14:54 -06:00
defaults.py Format inventory expiration dates instead of epoch timestamps (#901) 2026-10-31 12:27:21 -06:00
errors.py Remove unused code found by vulture (#885) 2026-10-27 15:50:09 -06:00
migrate.py Format inventory expiration dates instead of epoch timestamps (#901) 2026-10-31 12:27:21 -06:00
schema.py Add manual import + backup Restore/Merge/Overwrite for inventory configs 2026-06-19 16:28:11 -06:00