Goal:
Stop ad-hoc mutable state drift and make edits deterministic.
Scope:
Central state store for model, selection, viewport, UI mode, diagnostics.
Action/reducer pipeline for all mutations (drag, edit pin, net operations, symbol edits).
Add undo/redo as transaction log with typed actions.
Persist view/ui preferences safely.
Acceptance:
No direct object mutation from UI components.
Undo/redo stability under stress (drag-edit-net sequence).
Deterministic replay of action log reproduces same model + viewport.
Goal:
Stop ad-hoc mutable state drift and make edits deterministic.
Scope:
- Central state store for model, selection, viewport, UI mode, diagnostics.
- Action/reducer pipeline for all mutations (drag, edit pin, net operations, symbol edits).
- Add undo/redo as transaction log with typed actions.
- Persist view/ui preferences safely.
Acceptance:
- No direct object mutation from UI components.
- Undo/redo stability under stress (drag-edit-net sequence).
- Deterministic replay of action log reproduces same model + viewport.
Rbanh
added this to the Phase 8 - React/ELK Core Refactor milestone 2026-02-19 19:05:13 -05:00
Determinism and history tests in tests/state-store.test.js.
Validation:
npm test passes (includes new store tests).
Status:
Partial completion; React UI integration and full action coverage still pending.
Sprint 1 progress landed in `d029e48`.
Implemented:
- Deterministic centralized store foundation at `frontend-react/src/state/store.js`.
- Core actions scaffold: `setModel`, `setCompileResult`, `setSelection`, `moveComponent`, `applyJsonText`.
- Undo/redo transaction scaffolding.
- Determinism and history tests in `tests/state-store.test.js`.
Validation:
- `npm test` passes (includes new store tests).
Status:
- Partial completion; React UI integration and full action coverage still pending.
Completed by deterministic store/action pipeline integration in Sprint 2/3 (5a4e116, dc9c277). Undo/redo and mutation paths now run through centralized React store actions.
Completed by deterministic store/action pipeline integration in Sprint 2/3 (`5a4e116`, `dc9c277`). Undo/redo and mutation paths now run through centralized React store actions.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Goal:
Stop ad-hoc mutable state drift and make edits deterministic.
Scope:
Acceptance:
Sprint 1 progress landed in
d029e48.Implemented:
frontend-react/src/state/store.js.setModel,setCompileResult,setSelection,moveComponent,applyJsonText.tests/state-store.test.js.Validation:
npm testpasses (includes new store tests).Status:
Sprint 2 progress in
5a4e116.Delivered:
isCompiling,lastError,lastAction) and actions (beginCompile,completeCompile,failCompile).useSchemetaSelector,useSchemetaActions) usinguseSyncExternalStore.Validation:
npm testpassed (includes updatedtests/state-store.test.js).Status:
Completed by deterministic store/action pipeline integration in Sprint 2/3 (
5a4e116,dc9c277). Undo/redo and mutation paths now run through centralized React store actions.