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

design/canopy-web/

dashboard/primitives.jsx — canonical PanelFrame / Overline / GoldRule / BigNumber / Delta / EditorialFlag / ProgramStripe / ProgramTag / MiniBar / LeafGlyph / Sparkline / HeroStrip (the Askama macros in services/canopy-web/templates/_primitives/orchard.html must match these shapes); dashboard/{compositions,customize,panels,states}.jsx, case-detail/.jsx, studio/.jsx, design-system/.jsx, responsive/.jsx; 17 top-level runnable HTML artboards; the per-subject Determination-tab handoff (design_handoff_per_subject_determination/README.adoc); and renders/ — per-surface PNG, light + dark, indexed in renders/README.adoc.

Applicant portal

design/canopy-portal/

portal-stream/*.jsx — the canonical reference implementation: lib.jsx primitives/tokens, shell.jsx responsive shell, and one file per screen (entry-apply, recover, home, messages, change, renewal, card, kill-switch, appeal, discover, eligibility, recap, screens, app) — built by the archived applicant intake plan; the runnable .html prototypes; the per-subject outcomes handoff (design_handoff_per_subject_outcomes/README.adoc); and the dev-only design-canvas.jsx / tweaks-panel.jsx inspection harness (NOT part of the implementation).

PNG/JPG binaries route through git-lfs; .jsx / .html are linguist-vendored (see .gitattributes).

How to diff a UI MR against the design

  1. Read the relevant reference page above for the surface you’re touching.

  2. Compare your component’s tokens / sizes / states against the matching .jsx primitive (design/canopy-web/dashboard/primitives.jsx for worker, design/canopy-portal/portal-stream/*.jsx for applicant). The Dioxus / Askama translation must preserve interaction model, accessibility, and token usage exactly.

  3. 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); the screenshots and vb-* Playwright projects exist only behind --capture / --visual (xtask/src/cmd/e2e.rs Args; 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
  4. If the implementation cannot match the design, escalate to the design team — do not deviate silently.

Edit this page · default