Skip to content

[audit] Indicator: no story file at apps/storybook/stories/Indicator.stories.tsx, so the three shipped indicators have no story of their own — the measured root cause of the §9 limited state (rtl:audit sees 0 stories / 0 checks) and of CheckIndicator's children path having no rendered coverage, which is the path B15 shipped through #4894

Closed

Description

@cixzhang

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

  • Rule: X9 (§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: no story file at apps/storybook/stories/Indicator.stories.tsx, so the three shipped indicators have no story of their own — the measured root cause of the §9 limited state (rtl:audit sees 0 stories / 0 checks) and of CheckIndicator's children path having no rendered coverage, which is the path B15 shipped through
  • Evidence: ls apps/storybook/stories/ | grep -i '^Indicator' -> empty at b4ec116. Rubric X9 severity BLOCK, enforcer hasStories() in analyze-pr.js. Missed by the 505ccaa audit, which recorded the consequence ('the sweep cannot see it, because it has no story file') without raising the rule; missed again by the independent re-audit, which recorded it as a FIX.

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. cixzhang commented on Aug 11, 2026

    @cixzhang
    ContributorAuthor

    Closed by #4913 (merged as cd0b9f6340), which adds apps/storybook/stories/Indicator.stories.tsx — 5 stories: AllStates, Sizes, Disabled, BusyChildren, BusyToggle.

    Verified in the re-audit rather than assumed. The consequences this issue named are gone:

    Ledger updated: Indicator 79.1 / C → 82.4 / C at cd0b9f6340.

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions