mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 05:42:19 +00:00
The supply tab carried its own copy of the two container kinds whose first opening starts a degradation clock, with a comment saying it mirrored the state machine's list. Nothing enforced the mirror — the state machine types itself against the generated Prisma client, which the browser bundle cannot carry, so a copy was the only way to say it. Move the list into a client-safe module with no imports and let both sides read it. The state machine re-exports it under the Prisma enum, so a renamed or dropped container kind is now a compile error rather than a member that quietly stops matching.