Approved mockups¶
Standalone HTML snapshots of the mockups the owner approved on claude.ai canvases. The canvas is where
design work happens; the snapshot is what a reader can open, diff and cite from the
repository. Illustration only — design.md and the specs govern.
| Folder | Canvas | Spec |
|---|---|---|
web-app-shell/ |
shell and shared states, sign-in pages | 200 (docs/specs/200-web-app-skeleton.md), 201 (docs/specs/201-google-sign-in.md) |
component-map/ |
how the shell splits into React components | 200 (docs/specs/200-web-app-skeleton.md) |
contract-intake/ |
the intake screen, every step and error | 204 (docs/specs/204-contract-intake.md) |
dashboard/ |
Cases with its reviewer and approver tabs, the read-only case screen, their states | #563; spec with #566 and #568 |
admin-test-data/ |
the admin screen that loads and deletes the test-data package, its states, and the later live-progress variant (an HTML mockup, not a canvas) | #695; spec with #695 |
website/ |
landing page, phone width, imprint and privacy | 98 (docs/specs/98-public-website.md) |
Each folder's README.md names its canvas, the canvas version and the approval, and is that mockup's
page on the docs site: every artboard in a frame, in the canvas's order, with a link to open it full
size. artboards.html lists the same artboards for a reader of the repository (#536).
What a snapshot is¶
A static render of each artboard: it opens from disk with no canvas runtime and no connection to claude.ai, but it does not respond to clicks. A state that the canvas plays interactively (a dialog, a conversion that runs) is its own page here instead, as it is its own artboard on the canvas.
Rule¶
When a mockup is approved, its snapshot is committed in the same pull request that records the approval. A canvas changed after approval leaves the snapshot as it is until the next approval.
Once a screen is built, its page stories in the
component and screen catalog (frontend/app/README.md) are its reference: they
show the screen as built and run as tests in the build
(ADR-0017 (docs/adr/adr-0017-component-catalog-storybook.md)). The snapshot stays as the record of
what the owner approved; it is not updated to follow the code.
Exporting a snapshot¶
The canvases' artboards are .dc.html files that import each other through the canvas runtime, which
fetches them and so does not run from file://. The canvas's own Share › Export cannot be run from a
script, so export-snapshot.mjs renders each artboard in headless Chrome or Edge
and saves the page without its scripts. It needs Node and one of those browsers, nothing to install.
- Download the canvas's files with the
Artifacttool (action: "read",paths): everyproject/*.dc.html,project/canvas.jsonandartifact-type/dc-runtime.js. - Put them side by side in one folder, the runtime renamed to
support.js(the artboards load it by that name). node docs/frontend/mockups/export-snapshot.mjs <that folder> docs/frontend/mockups/<screen>- Add the canvas link, version and approval to the folder's
README.md, and openartboards.htmlonce to look at it. The script writesartboards.htmland the README's artboard section, between its two<!-- artboards: … -->markers; the rest of the README is left as it is. A new folder is a page of the docs site without a change tomkdocs.yml.