mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 15:06:20 +00:00
1c2d8da08d
Move the Variable-Manage panel's four-step picker cascade into the Zustand store. Closes the WiredCreatorTools "fragmented picker state" roadmap item — every remaining useState in the panel is now either a store-backed UI flag or a transient component-only value (keepSelected, globalClock, roomEnteredAt, monitor error/log details). All writers were already direct assignments (no updater shape), so the setters are plain typed setters. Sentinels remain `null` / `0` / `0` / `'0'`; the cascade reset effects at WiredCreatorToolsView.tsx:2265-2307 keep the chain self-consistent. Panel close/reopen now preserves the managed picker state, matching the lifecycle guarantee already provided for selection, monitor snapshot, variable highlight, and inline editor. Tests: 4 new cases (entry select/clear, chain write, post-action reset to sentinels, panel-lifecycle persistence). Suite: 203/203.