Skip to content

[audit] Indicator: every @example JSDoc fence in the Indicator sources is language-tagged ```tsx, which the repo documents as silently breaking Storybook autodocs rendering — 7 occurrences across 5 files, introduced by #4712 and missed by both prior audits #4895

Closed

Description

@cixzhang

Found by a component audit of Indicator, mode O, rubric v1.2.1, at commit b4ec116843.

  • Rule: X14 (§8 Docs, Storybook & docsite) — see the Component Audit Rubric.
  • Ledger row: Indicator on the component scores page — recorded C 79.1 with 3 open BLOCK(s).
  • Finding: every @example JSDoc fence in the Indicator sources is language-tagged ```tsx, which the repo documents as silently breaking Storybook autodocs rendering — 7 occurrences across 5 files, introduced by feat(theme): add themeable indicators #4712 and missed by both prior audits
  • Evidence: CheckIndicator.tsx:51,58; CheckboxIndicator.tsx:169; RadioIndicator.tsx:137; indicatorRegistry.ts:88,98; useIndicator.ts:24. Rule text at CLAUDE.md:82-83. Measured repo-wide baseline: 16 of 278 files carrying an @example use a tagged fence, so the bare fence is the house form. Rubric X14 severity BLOCK.

Closing protocol

Resolving this requires:

  1. Re-run the audit for Indicator after the fix — the whole component, not the diff (the rubric's "Grading a whole component" section).
  2. Put the visual results in the PR description — before/after screenshots of the affected states. The rendered-design section is graded from those.
  3. Update the ledger with the new score and clear this BLOCK (<scorecard> | node scripts/score-ledger.mjs --record Indicator --from - --push).
  4. Close this issue linking that PR.

If the recorded score doesn't move, either the fix or the audit is wrong.

Activity

  1. added
    hardening
    on Aug 11, 2026
  2. added this to the 0.4.0 milestone on Aug 12, 2026
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

    hardening

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions