docs: add frontend development guidelines

This commit is contained in:
2026-08-26 15:29:11 +08:00
parent f7601d554e
commit faaa33717f
8 changed files with 213 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
# State Management
Use component `useState` for server state, selection, staged overrides, layer visibility and UI filters. `src/lib/api.ts` is the sole browser HTTP boundary. Keep staged overrides separate from persisted `WorkbenchState.overrides`; save them before compile.