Files
image-studio/view/AGENTS.md
2026-07-03 09:34:21 +02:00

549 B

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.