chore(architecture): enforce layer boundaries
This commit is contained in:
8
view/AGENTS.md
Normal file
8
view/AGENTS.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# View / React Rules
|
||||
|
||||
- React is display-only UI and user-intent capture.
|
||||
- React must not own, manage, derive authoritative, or mutate document/editor state.
|
||||
- React may keep only local UI state with no app meaning, e.g. popover open state or unsent input draft.
|
||||
- Event handlers, toolbar buttons, menus, and effects must request state changes by dispatching commands.
|
||||
- Do not implement business rules, document mutation, renderer backend logic, or editor workflow ownership in components.
|
||||
- Effects are for subscriptions and UI integration only.
|
||||
Reference in New Issue
Block a user