mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
887 B
887 B
src/AGENTS.md
These rules apply to src/**. Follow the repo-root AGENTS.md first, then use this file for code inside the application source tree.
- Keep route composition in
src/views/, reusable UI insrc/components/, shared logic insrc/hooks/, and shared app state insrc/stores/. - Before adding new state, decide whether it belongs in render, a reusable hook, or a Zustand store. Do not duplicate the same state logic across views.
- Use
@bitsocial/bitsocial-react-hooksfor data access. Do not add data-fetchinguseEffectcalls or effects that only synchronize derived state. - When changing React UI logic, run
yarn doctorin addition to build, lint, and type-check. When changing layout or interaction, verify desktop and mobile behavior withplaywright-cli. - Prefer extending nearby tests under
src/**/__tests__/when touching already-covered behavior.