Skip to content

ui-kit: automate reproducible feature screenshots for public pages #614

Closed

Description

@schlessera

Context

Part of #608. Read the epic and ROADMAP.md's binding decisions. Public copy/assets cover only the public project and templates. Odysseus is the sole example corpus under the 2026-09-30 maintainer ruling, including CLI examples, documentation, UI demos and website examples; #625 implements the migration. No personal running installation is a capture source.

Read docs/process/feature-captures.md (the single marked capture-data JSON block) and docs/decisions/feature-captures.md from #613. The catalogue supplies nine composed stills, a ranked-input gesture and two scoped runtime-source requirements. Use the existing runner (const IMAGE =, scripts/visual.mjs:44-44), packages/ui-kit/tests/visual/README.md:1-7, the actual story renderers (async function looksRight(, packages/ui-kit/tests/visual/subjects.visual.tsx:159-162; async function looksRightOnPaper(, packages/ui-kit/tests/visual/subjects.visual.tsx:172-177), package.json browser scripts and .github/workflows/ci.yml's ui-kit-browser jobs. #559 is related intermittent screenshot coverage, not a presumed universal blocker.

Scope

Implement all/selected-recipe capture commands from #613, with stable filenames and a documented output location. Reuse Storybook/fixture sources and the pinned browser runner; use a fixture-driven product harness only for missing product states. Control time/randomness/timezone/locale/fonts/data and animation settling; wait for observable render/assets readiness and fail clearly on absent/blank/unready output. Produce publication-ready sizes and a machine-readable recipe/source/build/environment manifest. Editorial output stays separate from regression baselines; generation never publishes assets automatically.

Out of scope

A generic capture service/provider seam, every-story captures, a video-editing platform, imaginary UI, personal/live-keyed data or product behavior changes just for marketing.

Acceptance criteria

  • One documented command captures all approved recipes; selected IDs/viewports/themes regenerate independently with stable paths.
  • Local/CI share pinned environment/readiness logic; browser pins come from the actual shared source rather than duplicated remembered versions.
  • Outputs are readable/non-empty and include source/build/recipe/environment provenance; failures identify the recipe.
  • Two unchanged runs are reproducible under the declared environment, or measured non-determinism is explicitly bounded and reviewed.
  • The process requires no private content/API keys and never rewrites visual-regression baselines.

Verification

Capture a representative set twice; inspect pixels/dimensions/provenance. Change one fixture and verify output changes; break readiness/source and prove the recipe fails. Run relevant browser/tooling/leakage checks.

Contract impact

No product machine-contract change is selected here. Published UI/package changes need changesets; any new supported API/config shape follows docs/integration-contract.md and the release skill where relevant. Documentation/site assets alone do not imply a contract change.

Blocked by #613

Example corpus ruling — 2026-09-30

Odysseus is the sole example corpus for core/CLI fixtures, CLI demonstrations, documentation and onboarding examples, UI stories, screenshots and public website demos. Use the established D19 fictional world across surfaces; the former core/UI persona split is superseded. The repository-wide migration and durable decision record are tracked in #625. Separate technical fixture representations may remain, but do not introduce a second example world. Never use personal data or a real deployment as a public example.

Source handoff — 2026-10-01: #613 defines the canonical Markdown data, actual-source crops/readiness, exact #609 README selections, pinned local font delivery and runtime-source briefs for missing capture/search and approval-resolution states. Generation consumes that source and records provenance. Final example outputs/captures still follow #608's #625 prerequisite. The independently observed rank-footer defect is tracked in #746; review final ranking assets against the actual UI rather than applying a marketing-only workaround. The old Depot pointer was corrected to the active GitHub Actions browser jobs. Scope and acceptance criteria are unchanged.

Activity

  1. added
    type: featA new capability or a change in user-visible behaviour.
    area: ui-kitThe presentational design kit: components, tokens, Storybook, visual baselines.
    area: docsThe docs/ tree and the README / AGENTS / CONTRIBUTING surfaces.
    priority: p2Wanted, not scheduled. Pulled in when a milestone has room.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    on Sep 30, 2026
  2. schlessera commented on Sep 30, 2026

    @schlessera
    OwnerAuthor

    Decision (maintainer, 2026-09-30): Odysseus is the sole example corpus for core/CLI fixtures, CLI demonstrations, documentation and onboarding examples, UI stories, screenshots and public website demos. Use the established D19 fictional world across surfaces; the former core/UI persona split is superseded. The repository-wide migration and durable decision record are tracked in #625. Separate technical fixture representations may remain, but do not introduce a second example world. Never use personal data or a real deployment as a public example.

    The body now reflects this ruling. Any earlier comment or design prompt prescribing a separate core persona is superseded. Historical execution transcripts remain historical evidence, not templates for new demos.

  3. schlessera commented on Oct 1, 2026

    @schlessera
    OwnerAuthor

    Unblocked: #613 is closed, so scripts/sync-project.ts is removing the blocked label.

  4. removed
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    on Oct 1, 2026
  5. schlessera commented on Oct 1, 2026

    @schlessera
    OwnerAuthor

    Source handoff from #613 / PR #747: the capture guide contains the single canonical marked JSON block; the decision records the evidence rules. Nine actual still sources preserve #609's exact README IDs, filenames, crops and editorial text. The ranking sequence is a real local drag, with before/after fallback frames. Capture/search and approval-resolution source briefs name the missing runtime evidence rather than assigning backend claims to mocked compositions.

    Use the shared browser pin, actual fixture clock, loaded local preview font bytes and per-recipe crop/readiness checks. Record source/build/environment provenance and keep outputs separate from regression baselines. The active CI browser jobs are in .github/workflows/ci.yml, replacing the stale Depot pointer. #746 tracks the separately observed rank-footer layout defect; review final ranking assets against that real UI state, without a marketing-only workaround. Final example outputs/captures still follow #608's #625 prerequisite. Generation and meaningful readiness/source/reproducibility mutations remain #614's work; this handoff accepts no final asset and authorizes no publishing.

  6. self-assigned this
    on Oct 1, 2026
  7. schlessera commented on Oct 1, 2026

    @schlessera
    OwnerAuthor

    Claiming this issue under the work-issue workflow. Claim token: 01a0f2a3-614; intended branch: feat/614-feature-capture-generator-01a0f2a3.

    I will verify the catalogue and current source/runtime prerequisites, implement all/selected generation in the shared pinned environment, and prove output/readiness/provenance with real captures and scoped mutations. Final launch asset acceptance still follows #625; no publishing or deployment is included.

  8. schlessera commented on Oct 1, 2026

    @schlessera
    OwnerAuthor

    The offline pinned environment exposed one necessary build invocation correction: the installed @tailwindcss/cli package exports tailwindcss, whereas a cold bunx @tailwindcss/cli searches for a cli binary and attempts a registry download. The installed Bun help documents -p for a package whose executable differs from its name. In the shared browser image with networking disabled, bunx --no-install -p @tailwindcss/cli tailwindcss --help succeeds against the frozen installed package; the old form fails. This implementation will make that one-line argument correction in scripts/build.ts, preserving the existing build and package inputs, so the capture command can build offline. No package or dependency is added. The separately observed native Node compiler crash remains investigation #756; this change makes no claim about its cause.

  9. schlessera commented on Oct 1, 2026

    @schlessera
    OwnerAuthor

    Merged in PR #773 at 990e1cc41ca6b1f8d20c75d45210e1ab0e350001; the squash commit is on main and has the exact parent/tree tested by CI. All 11 CI jobs passed, plus the current contract and project-sync checks. Keyless CI: 8,217 pass, 45 skip, zero failures; browser suites: 1,703 pass. CI receipt and reviewable capture artifact.

    The full catalogue passed two local runs: 12 recipes, 20 identical files and all 72 drag PNG samples identical. CI independently verified its five representative sources with 13 identical files. Approval evidence allows only the correlated app-generated principal nonce to vary; real effects and persisted history remain exact. Selected light/600 × 1000 chat, approval and CLI captures retained all 12 original artifact records and file hashes. Readiness/source/font/fixture/index/route/executor/store mutations and their actual failing observations are recorded in the PR.

    The capture guide documents generation, fonts, output management, variants and provenance. This completes the generator scope. Final launch assets/integration remain #615 after the existing #625/#612 prerequisites; #746 remains the actual ranking-footer defect. No publication or final asset acceptance occurred. Separate findings are tracked in #756 and #765.

  10. added this to the 0.40.0 milestone on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: docsThe docs/ tree and the README / AGENTS / CONTRIBUTING surfaces.area: ui-kitThe presentational design kit: components, tokens, Storybook, visual baselines.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: featA new capability or a change in user-visible behaviour.

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions