Dynamic frontend: an interactive web app¶
Planned. No repository has one yet. This page holds the defaults decided so far, so that the first web app starts from them instead of from a tutorial. Each section says "planned" where nothing is decided. The template and the other stacks are in the index; a pre-rendered site is frontend-static.md.
The defaults come from the target stack of aise-feecheck-poc, whose review screens are the first
web app planned:
docs/architecture/arc42.md §2.3 and §2.5,
and from SPEC.md §4.6 of this repository. In that project every one of them still needs an ADR
before it enters the build.
Languages and versions¶
TypeScript, React, Vite, React Router, TanStack Query, react-hook-form, Tailwind CSS with
shadcn/ui, pnpm. As in the static site, versions are fixed in package.json and pnpm-lock.yaml
only. Planned layout: a pnpm workspace with the app and shared packages (UI, generated API client,
shared code).
Build¶
Planned: pnpm build and pnpm typecheck, as in frontend-static.md.
The API client is generated from the backend's OpenAPI contract (contract-first, Orval), so
generating it is part of the build.
Formatting¶
Planned; nothing decided. The static site has no formatter either.
Linting and static analysis¶
TypeScript strict, as in the static site. Anything beyond it is planned.
Architecture rules¶
Decided conventions:
- styling only through Tailwind classes and design tokens: no raw colours, no inline styles, no own CSS files beyond the Tailwind entry sheet and the token file;
- naming: pages
{action}.page.tsxexporting{Feature}{Action}Page; shared componentskebab-case.tsxexportingPascalCase; providers{name}.provider.tsx; hooksuse{Name}; - the screens follow the project's
docs/frontend/design.md; a screen's own spec goes intodocs/specs/.
How they are enforced is planned.
Tests¶
Vitest for unit tests; Playwright for end to end, as in the static site. Test titles start with
the criterion ID (AC-2 · …). The rest is planned.
Coverage and mutation¶
Planned.
Accessibility and UI checks¶
Planned. The static site's axe check with Playwright (frontend-static.md) is the starting point; the design asks for keyboard-first operation, which axe alone does not test.
Security and supply chain¶
Planned beyond what applies to every pnpm project: exact versions, the lockfile,
--frozen-lockfile, Dependabot, Sonatype Guide before adding a dependency. Sign-in goes through the
project's identity provider (still open in the reference); mockups and test data are synthetic only.
An app with a session sends X-Frame-Options: DENY and CSP frame-ancestors 'none' as HTTP
headers, from the edge that serves it. Code is checked against the browser, edge and dependency
classes of the security checklist (plugins/workflow/skills/ready/security-checklist.md)
through workflow:ready.
Code review¶
As for every stack: Copilot, claude-review, workflow:ready (sdlc/quality-gate.md).
CI¶
Planned: a workflow of its own, like the static site's.
Local setup and hooks¶
Planned. dev-env:dev-doctor checks Node.js today.
Claude Code support¶
Planned: the frontend plugin of SPEC.md §4.6, with the conventions above, the test-title rule and
the mockup rules (a clickable HTML mockup, bound by the project's design.md, synthetic data only).
Gotchas¶
None recorded yet; the static site's are in frontend-static.md.