0002 — Screen state stays in Jotai
docs/decisions/0002-screen-state-stays-in-jotai.md
- Status: accepted — overrides the dev review's "no Jotai by default"
- Date: 2026-10-12
- Decided by: Wunwan (designer)
- Migrated from: Claude memory,
component-migration-decisions
Context
The dev review (2026-10-08, see 0001) proposed useState with mock data by default and Jotai only for cross-page state. That conflicts with the console: every state is seeded atom values plus the real container (seeded(...)), and the workboard persists what you type in a frame through the screen's atoms.
Decision
Keep the container + atoms pattern (<area>.atoms.ts, <area>-container.tsx) for every screen.
Consequences
States stay "seeded atoms + the real container", so every console preview is production code and click-through, and workboard frames can persist.