Codified from recurring code-review feedback on the admin-facing "Order Issues V2" React frontend (PRs #31657, #31665, #31709, #31719, reviewer: Carolina Martes). The goal is simple: a coding agent that reads this file should never trigger the same review comment twice.
Apply these proactively when writing or changing React/TypeScript/frontend code in this repo.
- The admin-tools frontend is Flow-typed (
// @flow,.jsfiles, exact object types{| |}), but every rule here applies identically to TypeScript/React — treatanyand Flow weak types (flowtype/no-weak-types) as the same thing. - "Styled components" in this repo means named plain style objects (e.g.
const headingStyle = { ... }), not thestyled-componentslibrary. Never introduce that library. - Admin-tools has no
LocalisationProvider, so currency symbols/formatting are derived client-side.