The theme was resolved once at mount, so the site did not follow a later
change of the system preference while no explicit choice was stored. The
design contract asks for the site to keep following the system until the
reader makes a choice.
The theme module now subscribes to the prefers-color-scheme change event
and applies the new system preference while nothing is stored. A stored
choice still wins and stops the site from following the system.
The toggle subscribes to theme changes, so its icon and its accessible
label stay in step with the active theme.
The question count, per-question points and maximum score are BEAT's own
figures with no source. The view-side prose led with them as facts, which
reads as an unsourced claim. Replace the count-bearing sentences with plain
statements of what the assessment does, keeping the scoring rule where the
data already disclaims it as BEAT's own.
The toggle was the last hard-coded palette left in the owned paths: it
carried raw gray and blue utilities with explicit dark: variants instead of
the semantic tokens the rest of the site uses.
Replace them with text-muted-foreground, hover:text-foreground, hover:bg-muted
and focus-visible:outline-accent. The tokens already swap under .dark, so the
dark: variants are redundant.
Measured contrast of the resulting states, light and dark:
muted-foreground on background 7.58:1 and 6.96:1, foreground on muted 16.19:1
and 13.98:1, accent focus ring on background 6.70:1 and 7.02:1.
- 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).
Map the nine contract colour tokens to their CSS custom properties so no
utility hard-codes a palette value, replace the webfont stack with a system
font stack, and rebuild the type scale with a 16px/1.6 body step and three
heading steps above it.
Define the nine contract custom properties in public/src/main.css, with
light values in the :root block and dark values in the .dark block that
the theme helper applies to the root element.
Every pair was measured against the WCAG 2.2 minimums and clears them
with headroom in both themes: body and muted text at 4.5:1, large text
and the border (which doubles as the UI component boundary) at 3:1, and
accent used as text at 4.5:1. Borders are checked on both the
background and the muted surface.
Import the file from public/src/main.js after the legacy sheet import,
so the tokens are in the bundle and are the last definition of any name
the legacy sheet also sets.
Every digit-bearing prose string in the site data now carries an inline
citation id or an in-string BEAT-default marker, so a figure that is a
BEAT rule rather than a research finding says so where it is read:
- ceremonies[3].purpose: the 10-minute brainstorm exit window is now
marked as a BEAT default.
- assessmentQuestions[0].question: the focus block question now states
the 4-hour BEAT default and marks it as such.
- assessmentQuestions[4].options[2].description: the response option now
reads "24 working hours", the same limit as constraints[8], instead of
the vaguer "24-hour response".
- assessmentQuestions[11].options[3].description: the exploration option
now reads "20% of working time for exploration" and marks it as a BEAT
default.
- The seven digit-bearing beatRecommendations strings are marked the
same way, and "can 50% become async?" loses its false precision.
The response window is now stated one way everywhere in the data: 24
working hours (manifesto.js principles.communication[2], constraints[8],
decisionRules "Decisions", assessmentQuestions[4], and the communication
recommendation). The earlier "one working day" phrasing in
principles.communication[2], decisionRules and timeZones.summary is gone.
overallAssessment.scoring.categoryThresholds no longer claims that one
pair of percentage cuts produces the four overall bands. It states the
category rule (below 40 percent of that category's own maximum, 40 to
70 percent, above 70 percent) and states the four overall bands as a
separate BEAT choice, given as absolute score ranges out of 48. The
bandCuts and derivation fields carry the same facts in structured form.
framework.subsections now lists the five situation blocks, and a new
sectionMap export maps section and principle ids to their data key and
heading so the README mirror has a data-side key for every section.
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.
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).