scripts/check-routes.mjs reads the committed "before" route list from
docs/pre-redesign-routes.md and proves every path in it still resolves
at the branch head.
Two halves, both required for every old path:
- Router half: the path resolves against the route table of
public/src/router/index.js as a route path, an alias or the target of
a redirect chain.
- Published-output half: the directory the Pages workflow uploads
(./public/dist) answers a cold request to the old URL. index.html and
the 404.html fallback must both boot the app from the same bundle, and
the route table inside that bundle must still carry the old path and
resolve it to the same target as the router config.
The route list is parsed at run time, so a path added to the document
later is picked up without touching the script. The published output is
read from the workflow file, so the check follows the real deploy target.
Plain Node, no runtime dependency and no test framework: exit 0 when
every old path resolves, 1 naming each path that does not, 2 on a usage
or I/O error.
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.
- add generic references list (public/src/data/references.js) with stable
ids, labels, locators and per-source notes on what each work measured
- inline citations on research claims; drop the unsupported 14% figure and
correct 23 min -> 25 min, 52 min (block length), 4 h -> 3h43m, 72% -> 71%
- state every BEAT limit as a BEAT default instead of a research finding
- resolve self-contradictions: NOW bucket limit, exploration time unit,
pull-vs-assign, autonomy-vs-done-condition
- give every rule what it applies to, who decides, and what to do when it
does not fit (decisionRules)
- add onCall, timeZones, crossTeamDependencies, measurement, customerFeedback
sections and the onboarding reading list, escalation path, first-review and
junior-team rules
- add stable ids shared with the README mirror
- remove banned terms from data copy
Add a self-contained theme toggle component under
public/src/components/theme/ that toggles the dark class on the root
element and stores the choice under the beat-theme key in
localStorage. Apply the stored theme, or the prefers-color-scheme
default when nothing is stored, before the app mounts so a cold load
never paints the wrong theme.
The pre-paint script in index.html and both 404 copies reads the same
beat-theme key, so the theme is already on the root element when the
first frame is painted.
Two plain-Node check scripts, no new runtime dependency, that enforce the
BEAT design rules and the copy discipline mechanically. Both exit non-zero
when they find something and print file, line and column for every hit.
scripts/check-design-rules.mjs covers README.md and public/src: no emoji
characters, no gradient utilities or gradient declarations, no inline style
attributes, no <style> blocks in Vue components, and no icon markup other
than FontAwesome components or classes.
scripts/check-banned-terms.mjs reads the banned-term list from
scripts/banned-terms.txt, so the list can be tuned without touching the
script. It scans the site copy (string literals, template text and
user-visible attributes) and the README headings.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Vite resolves publicDir to public/public (repo layout: /public is the npm package root), so the byte-identical fallback must exist there for 'vite build' to emit dist/404.html. Proven by removing it and rebuilding: dist/404.html disappears. public/404.html is the reviewable copy; this one is the build input.
Add public/404.html, a byte-identical copy of the built index.html with relative asset references (base './'), so a cold request to any non-route path on GitHub Pages boots the SPA and the router redirects. Vite copies it verbatim into dist/ via publicDir; verified dist/404.html is byte-identical to public/404.html and a plain static server returns HTTP 200 with the app shell for an unknown path.
Add the exported section list, per-route meta.title/section/sectionOrder, aliases for every pre-redesign path, and a catch-all that renders the not-found route. The catch-all uses HomeView until @/views/NotFoundView.vue exists (card 075da6c7).