PulsePlate Frontend UI
When to use
- •Building or modifying UI in
frontend/. - •Creating new components/pages in existing web style.
- •Reviewing style drift or token violations.
Inputs required
- •UI goal and target user flow.
- •Files/components to modify.
- •Accessibility and responsiveness constraints.
Procedure (commands)
- •
Load style SoT:
bashsed -n '1,260p' frontend/src/styles/tokens.css sed -n '1,260p' frontend/src/styles/tokens.ts sed -n '1,220p' frontend/tailwind.config.ts
- •
Check existing component patterns:
bashfind frontend/src/components/ui -maxdepth 2 -type f | sort
- •
Enforce thin HTTP adapter policy:
bashrg -n "fetch\\(" frontend/src --glob '!frontend/src/api/client.ts' - •
Validate frontend:
bashcd frontend npm test npm run build cd ..
Output format
- •
UI scope: touched components/pages. - •
Token usage: which semantic tokens were applied. - •
Policy checks: thin-client and component pattern checks. - •
Validation: test/build results. - •
Follow-up: specific visual or accessibility TODOs.
On failure include:
- •Raw failing lines.
- •
file:line:errorpointers. - •Minimal fix steps and rerun commands.
Guardrails
- •No ad-hoc hex colors when equivalent semantic tokens exist.
- •No direct
fetch()outsidefrontend/src/api/client.ts. - •Preserve existing visual language and token hierarchy.
- •Do not claim UI done without
npm testandnpm run build.
SoT links
- •
frontend/AGENTS.md - •
frontend/src/styles/tokens.css - •
frontend/src/styles/tokens.ts - •
frontend/tailwind.config.ts - •
frontend/src/components/ui - •
frontend/src/api/client.ts