Adds two dev-only harnesses and reports what they find. No application code
is touched.
scripts/check-a11y.mjs runs axe-core 4.14 against the built site over every
router route and alias, at 360px and 1440px, in the light and dark themes.
The theme is set through localStorage['beat-theme'] and asserted on every
page before scanning, so a theme that fails to apply aborts the run.
scripts/check-a11y-manual.mjs records the manual criteria as assertions:
keyboard operability with a visible focus indicator, landmarks, heading
order, meaningful link text, alt text, and measured contrast computed from
the rendered DOM.
axe-core and playwright-core are added as devDependencies. playwright-core
is used rather than playwright so no postinstall browser download happens
and `npm ci` in the Pages workflow stays clean.
- SiteHeader: brand, section navigation from route meta, section pages nav,
theme toggle mounted as committed, keyboard menu under 640px.
- SiteFooter, PageHeader, PageSection and TableCard carry the page shells.
- Every view rewritten on the token type scale and reading public/src/data;
the old layout and ui components it replaced are removed.
- NotFoundView plus the catch-all route, so an unknown path names itself.
- App.vue: skip link that moves focus without changing the hash route, focus
moved to the main landmark after a page change, unique title from route meta.
- assets/styles/main.css reduced to the base layer on token utilities.
- FontAwesome self-hosted from the npm package instead of the CDN.
- Home carries all five commitments (WP-49).
The SPA fallback must load the hashed assets of the build that is actually
published, so it cannot be a frozen copy of an index document. The new
scripts/generate-404.mjs writes dist/404.html from the built dist/index.html
and runs last in the build, after vite build has copied publicDir.
The generator resolves the dist directory from its own location, so it
behaves the same from the repository root and from public/, where npm runs
it. It refuses to write a fallback that has no app mount point or that
references files missing from the build output, so a broken build fails
loudly instead of shipping a blank page.
The two frozen copies (public/404.html, public/public/404.html) are
removed; dist/404.html is a generated artefact with no committed source
copy.