Skip to content

DS extraction: recurring UI pattern (ds-fp:9b21166312a2) #979

Description

@github-actions

@claudegate-ds-conformance detected a UI pattern duplicated across the codebase that should be extracted into a design-system primitive (CLAUDE.baseline.md §6).

Stable marker: ds-fp:9b21166312a2 (do not edit — used for idempotent de-duplication)

Where it recurs

  • fuzefront-website/frontend/src/pages/IndustriesPage.tsx:259
  • fuzefront-website/frontend/src/pages/ProductDetailPage.tsx:382
  • fuzefront-website/frontend/src/pages/ProductsPage.tsx:225

Sample

className="btn-secondary"

Proposed component spec (refine before building)

  • Name: <PascalCaseComponent> (in the repo design-system package — frontend-engineer is the sole owner of design-system/)
  • Props: derive from the variation across the call sites above.
  • Variants: the distinct visual variations seen at the locations.
  • States: default / hover / focus / active / disabled / loading as applicable.
  • Tokens: must consume DS tokens only (color/spacing/type/radius) — zero raw values.

Acceptance criteria

  • Component added to the design-system package (not one-off in feature code), tokens-only.
  • All listed call sites refactored to use it.
  • a11y + RTL covered; unit test in the DS package.
  • gate-ds-conformance stays green after refactor.

Filed automatically; owner is frontend-engineer. Extraction is design work, not done by this gate.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ds-extractionCandidate UI pattern to extract into the design system

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions