UserHappyDesign system
Storybook

Enforcement record

Original documentation preserved from the source revision.

UserHappy design enforcement — 2026-11-01

This change applies the existing web design tokens to shared customer controls, improves focus and placeholder visibility, and makes removed source debt fail CI if it remains authorized in the ledger. It does not establish whole-app or iOS compliance.

Authority and scope

The implementation starts from remote dev at d2f54d376cbfcbfe53a2ed5a05b1157eeb1b8511. Work was isolated on codex/userhappy-design-enforcement-20261101; the original shared checkout was preserved. Release tracking: PR #606.

Authority is AGENTS.md, design/canon.json, design/theme-contract.json, src/index.css, and the existing component contracts. The harvested Figma reference is file Gsnkf9qSOPnSXAyB8r3CL9, recorded in design-docs/harvest/frames.json; the palette guard cites Colors node 6202:874. No live Figma comparison was performed. Where older Storybook prose conflicts, the current contract governs: Mulish body, Poppins display, and named oranges chosen for their ground.

Implementation

Surface Result
Customer Layout and PageHeader Existing semantic colors replace literal and off-palette states; Deep Navy display headings. Very Light Gray canvas, dimensions, navigation, role conditions and tours remain intact.
PulseWizardSteps and wizard primitives Canonical surfaces and borders, full charcoal placeholders, visible navy focus and inset orange focus on clipped segmented controls. Ordering, navigation, selection, sizes and counter bounds remain intact.
HelpInboxList, HelpRequestForm and DispatchTaskPanel Canonical neutral surfaces, borders and text, readable placeholders, orange field focus and navy button focus. Submission/task logic, selected/completed states and dimensions remain intact.
LottieAnimations Exact byte/255 color channels prevent renderer truncation to neighboring off-canon colors. Geometry, timing and opacity are unchanged.
ADSF source guard Removed or reduced allowances fail with their fingerprint and current count. The adapter pin, palette, fonts, exclusions, staff policy and dynamic-expression coverage reporting are preserved.
Responsive pulse-list regression An exact title locator avoids matching the transient empty-state heading. Both 390px and 1280px checks require both fixture cards before testing overflow.

No palette colors, theme exceptions, scan exclusions, known-thin declarations or debt allowances were added. Temporary browser-capture workflow and helper scripts were removed after the evidence run; they are not part of the release tree.

Measured coverage and debt

The initial pinned ADSF scan inspected 182 TSX files and 5,508 JSX class attributes. Local bounded parser checks were followed by fresh full ADSF scans in GitHub Actions. Static debt fell from 384 occurrences / 228 fingerprints to 336 / 201. The shared-shell/wizard pass removed 17 occurrences and the Help pass removed 31. The separate legacy palette ledger lost 53 allowances; these are a different measure and must not be added to the ADSF reduction. The staff grayscale policy remains unchanged, with 312 allowed uses.

The fresh rendered extract records all 65 route keys, 29 distinct colors and three typefaces. Its route patterns, skips and known-thin coverage boundaries are unchanged. The rendered ledger drops eight vanished color entries, reducing 18 entries to 10 and summed off-canon route incidences from 70 to 21. Informational element counts fall from 2,426 to 78; font debt stays at one ui-monospace route with one element. Existing metadata and the Report footer Figma note are retained.

The previous extract was an older mixed-age measurement (SHA 2364f5af, with only the pulse demo refreshed). Not every rendered ledger reduction can be attributed solely to this patch. The new extract retains its real captured SHA, fffa0c6; subsequent cleanup changes only evidence, documentation and the temporary harness, not application source.

Remaining static debt is classified as 172 neutral, 136 semantic-state, 17 mixed policy/visual, 10 illustration and one data-visualization occurrence. The largest groups are PromptLabRail (38), AmsConnectionSetupModal (36), TeamAccessPanel (32), ReportCollaboratorPanel (26), PulseSessions (25), PulseHelpPanel (23), AmsDirectoryModal (16) and Dashboard (15). None is newly approved by this audit. The complete local inventory retains every parser location and actual import/use reference in remaining-debt-inventory.json and .md beside the isolated checkout.

There are still 709 dynamic class expressions outside static token resolution. Non-TSX sources, inline/runtime styles, non-color utilities, fixture redirects, known-thin screens and skipped routes limit coverage. Embedded document colors and fonts remain separately recorded under the pre-existing enforcement boundary.

Verification and evidence

CI on the captured revision passed the design-system job, typecheck, full SPA unit tests, production build, E2E catalogue and all three browser-test shards. The design job includes exact theme bindings, the pinned ADSF audit, 24 guard tests and all four design guards. Earlier local guard tests, catalogue and git diff --check also passed.

Rendered verification passed before/after capture, a fresh design:extract and all seven design:report tests. The artifact design-evidence-fffa0c6dcdb306d6ca5f0781e1e61827bb65cbca contains 60 PNGs, manifests, extract and logs; GitHub retention is seven days, with a local copy in release-evidence/run3 beside the checkout. Baseline is d2f54d3, after fffa0c6.

Capture uses the actual app with repository session/API fixtures at 1440px and 390px. Thirty screenshots per revision cover Help empty/populated states, Dispatch empty/populated/completed tasks, wizard Task/Audience controls and nine focus states per width. All captures loaded Mulish and Poppins; none recorded horizontal overflow or page errors. Input focus uses the expected orange border/ring; action focus uses a visible 2px navy outline, with an inset orange outline on the segmented control. Actual placeholder ink is full charcoal. Focus was programmatically placed after keyboard input; this is not a complete sequential Tab-order audit.

Haikrew independently reviewed source changes, guard failure cases, extracted debt and desktop Help/Dispatch before/after screenshots. Mobile Help/Dispatch and desktop/mobile wizard screenshots were also reviewed. No blocking visual regression was found in that bounded evidence. Existing small white labels on bright-orange button hover remain approximately 3.42:1 contrast, preserving the established interaction contract; this release does not certify accessibility.

Execution and follow-up

The requested lean workflow prohibited local builds under TIGHT resource conditions. The paired Minion was unavailable and a saved cloud runner could not reach its configured proxy. GitHub Actions supplied the runtime checks; neither restriction was bypassed. The haikrew used Luna for scouting/inventory and Sol for bounded implementation and independent review, with main-session integration. Model costs are not exposed by these tools.

The owner subsequently authorized merging and deploying through dev, demo and main. Final integration follows normal CI and the repository's fast-forward promotion workflow; this document records verification, not a claim that a later deployment has already finished. No paused NASW widget scope was resumed.

Further neutral migrations can start with HelpThread, PulseHelpPanel, AmsConnectionSetupModal and AmsDirectoryModal after reviewing their states. Resolve reachability before changing PromptLabRail, TeamAccessPanel and ReportCollaboratorPanel. Semantic status colors, inverse surfaces, gradients, provider logos and charts need their actual rendered states and design authority checked before broader migration.

Source: docs/qa/design-enforcement-2026-11-01.md