Files
teapot_system/frontend/AGENTS.md

2.4 KiB

Frontend Guidelines

Scope

  • Applies to files under frontend/.
  • Inherit the root AGENTS.md and only override frontend-specific expectations here.

Stack

Build And Test

  • Install dependencies from frontend/: npm install
  • Start the dev server from frontend/: npm run dev
  • Build from frontend/: npm run build
  • Run the frontend build after any change under frontend/.

Conventions

Frontend Business Rules

  • Product detail remains a standalone route and must keep the left category tree visible during navigation.
  • Read-only users may browse product and order information but must not see edit-only actions.
  • Product and order screens should reflect the same permission and stock rules enforced by the backend, not looser frontend-only behavior.
  • Label download entry points stay in order detail flows, while product detail handles image and label template management.