Design Reference
Overview
For a contributor or agent shipping a UI MR against either portal: the design
team’s two packages are committed in-repo under design/. The durable,
human-readable reference — the architectural decisions, the Orchard
design-system contract, the composition schemas as built, and the hard rules —
is published here in Antora. The source artifacts the reference describes
(the .jsx primitives the Askama/Dioxus code must match, the runnable .html
artboards, and the renders/ PNG baselines) stay under design/. Every UI MR
diffs its implementation against both: the reference page for intent, the
.jsx/artboard for exact shape.
The reference pages
-
Orchard Design System — color tokens, type scale, spacing, radii, motion, voice, components, accessibility (the shared contract).
-
Worker Portal Design Reference — the architectural decisions (ADR-linked), the composition TOML as built under the pack’s
composition/, and the plugin-author hard rules. -
Applicant Portal Design Reference — thesis, auth model + locked decisions, information architecture, voice, schemas, API sketch, customer↔worker wiring, each section carrying its as-built pointer.
Source artifacts (design/)
| Package | Location | Contents |
|---|---|---|
Worker portal |
|
|
Applicant portal |
|
|
PNG/JPG binaries route through git-lfs; .jsx / .html are linguist-vendored (see
.gitattributes).
How to diff a UI MR against the design
-
Read the relevant reference page above for the surface you’re touching.
-
Compare your component’s tokens / sizes / states against the matching
.jsxprimitive (design/canopy-web/dashboard/primitives.jsxfor worker,design/canopy-portal/portal-stream/*.jsxfor applicant). The Dioxus / Askama translation must preserve interaction model, accessibility, and token usage exactly. -
For visual regression, refresh the captures and compare them to the
renders/baselines / HTML artboards. Both commands need a running, seeded devstack (cargo xtask dev start && cargo xtask seed); thescreenshotsandvb-*Playwright projects exist only behind--capture/--visual(xtask/src/cmd/e2e.rsArgs;tests/e2e/playwright.config.ts):# Worker-portal doc screenshots — runs `cargo xtask e2e --no-refresh --capture -- --project=screenshots` # and copies the canonical set into docs/modules/ROOT/assets/images/screenshots/ cargo xtask docs screenshots # Visual baselines per role — PNGs land under test-results/e2e/visual-baseline/<project>/ cargo xtask e2e --no-refresh --visual -- --project vb-supervisor --project vb-analyst --project vb-applicant -
If the implementation cannot match the design, escalate to the design team — do not deviate silently.
Related
-
ADR-008 — applicant portal; its Amendments 1 and 3 replaced the original DOB second factor with the Application ID
twelve-digit passcode described, with its as-built notes, in the applicant portal design reference. -
ADR-021 / ADR-022 — worker-portal composition runtime + override storage.
-
Portal Design-Fidelity Pass — the archived gap-closure plan, run against these references.