Skip to content

Screenshot State Guide

Screenshots should show real product states that help someone debug or understand the workflow. Avoid one perfect happy-path screenshot when the feature has meaningful states.

AreaStates to captureCurrent paths
InstallerFresh form, preflight failure, install guide, progress running, success/removalpublic/docs/screenshots/packages/installer/*
MarketplaceUnconnected, connected, domain verification failed, catalogue browsing, detail overview, docs/access, mobile detail, update advisoriespublic/docs/screenshots/packages/marketplace/*
Admin extensionsExtensions page empty/installed, package settings page, permission deniedAdd under package docs or public/docs/screenshots/packages/admin/*.
Frontend safetyNormal anonymous page, cached page, authoring beacon disabled/enabled for adminAdd under frontend docs when frontend-authoring is installed.

Use names that describe the state, not the implementation:

marketplace-unconnected.png
marketplace-connected.png
marketplace-domain-verification-failed.png
installer-preflight-failed.png
installer-success-remove-package.png

Include dark mode only when the visual state differs or the docs page already presents paired light/dark screenshots.

  • Use seeded data that is safe to publish.
  • Hide secrets, emails, signing values, tokens, local paths, and private domains.
  • Capture the whole viewport unless the docs need a tight crop of one control.
  • Keep mobile screenshots for workflows that materially change on mobile.
  • Update screenshots.json beside package docs when the package already uses one.

Flux-generated diagrams are useful for conceptual visuals at the top of docs pages. They should not be the source of truth for class names, method names, or exact request flow.

Use Flux for:

  • high-level architecture visuals;
  • onboarding illustrations;
  • state overview graphics;
  • docs covers or section headers.

Use Mermaid for:

  • exact class and registry flow;
  • sequence diagrams;
  • testable architecture;
  • anything with code symbols.

The FLUX connector must be authenticated before generating these assets. Once authenticated, create images under docs/images/diagrams/ and keep the exact Mermaid diagram beside the image in the same doc.