Skip to content

Vibe Test: StatusDot vs Badge dot — LLM component selection #945

Closed

Description

@cixzhang

Question

When an LLM needs a dot indicator in UI, does it correctly distinguish between XDSStatusDot and XDSBadge shape="dot"? Should Badge dot mode be consolidated into StatusDot?

Method

3 independent LLM agents (Claude Sonnet), each given the same 8 prompts and both component docs. No guidance on which to pick — just "go with your gut." Each agent wrote TSX and explained its reasoning.

Prompt Battery

ID Prompt Design Intent
dot-01 Show a red dot on a nav item to indicate unread notifications Classic notification — ambiguous
dot-02 Show a green dot next to a username to indicate they're online Obvious status baseline
dot-03 Colored dot next to each alert: green=resolved, yellow=warning, red=critical Multi-variant status
dot-04 Small blue dot on a tab label to indicate something new "New content" attention flag
dot-05 Red dot next to form fields that have errors Validation state — could go either way
dot-06 Table deployment status: green=live, gray=stopped, red=failed Classic status column baseline
dot-07 Pulsing green dot for live stream Only StatusDot has isPulsing — feature awareness test
dot-08 Notification badge on inbox icon — just a dot, no count Uses the word "badge" — naming influence test

Round 1: With Badge shape="dot" available

8/8 prompts: unanimous consensus across all 3 agents.

Prompt Agent 1 Agent 2 Agent 3 Consensus
dot-01: Red dot on nav (unread) Badge Badge Badge Badge ✅
dot-02: Green dot = online StatusDot StatusDot StatusDot StatusDot ✅
dot-03: Alert severity dots StatusDot StatusDot StatusDot StatusDot ✅
dot-04: Blue dot on tab (new) Badge Badge Badge Badge ✅
dot-05: Red dot on error fields StatusDot StatusDot StatusDot StatusDot ✅
dot-06: Table deployment status StatusDot StatusDot StatusDot StatusDot ✅
dot-07: Pulsing green (live) StatusDot StatusDot StatusDot StatusDot ✅
dot-08: Badge on inbox (dot) Badge Badge Badge Badge ✅

Overall: StatusDot 15/24 (62%) · Badge 9/24 (38%)

Emergent Heuristic

All 3 agents independently described the same decision rule:

StatusDot = the dot communicates the state of an entity ("what condition is this thing in?")
Badge dot = the dot is a notification/attention marker ("something here needs your eyes")

Round 2: Without Badge shape="dot"

Same 8 prompts, 3 new agents, but Badge docs stripped of shape="dot" — only pill mode.

Metric With Badge dot Without Badge dot Delta
Correct choices 24/24 24/24 Same
Avg reasoning (chars) 331 169 -49%
Deliberation prompts 3 of 8 had tension 0 Gone

All agents used StatusDot for every prompt. Nobody tried to hack Badge into a dot. Code was equally correct in half the reasoning tokens.

Conclusion

Deprecate shape="dot" on Badge. The status-vs-attention semantic distinction is real but not load-bearing — StatusDot handles both use cases equally well. Badge dot mode adds API surface and deliberation cost without improving outcomes. Badge should focus on its strength: visible text labels and counts.

Action Items

  • Vibe test: Round 1 (with Badge dot)
  • Vibe test: Round 2 (without Badge dot)
  • Remove shape="dot" from XDSBadge
  • Create codemod: XDSBadge shape="dot" → XDSStatusDot
  • Dogfood codemod on XDS repo

Raw results: session 09eb0839-6864-4564-8825-7325aafa87f1

Activity

  1. added
    vibe-test
    on Mar 28, 2026
  2. cixzhang commented on Mar 28, 2026

    @cixzhang
    ContributorAuthor

    Round 2: Without Badge shape="dot"

    Same 8 prompts, 3 new agents, but Badge docs stripped of shape="dot" — only pill mode with text/count labels. StatusDot docs unchanged.

    Choices

    Prompt With Badge dot (Round 1) Without Badge dot (Round 2)
    dot-01: Red dot on nav (unread) Badge ✅ (3/3) StatusDot (3/3)
    dot-02: Green dot = online StatusDot ✅ (3/3) StatusDot (3/3)
    dot-03: Alert severity dots StatusDot ✅ (3/3) StatusDot (3/3)
    dot-04: Blue dot on tab (new) Badge ✅ (3/3) StatusDot (3/3)
    dot-05: Red dot on error fields StatusDot ✅ (3/3) StatusDot (3/3)
    dot-06: Table deployment status StatusDot ✅ (3/3) StatusDot (3/3)
    dot-07: Pulsing green (live) StatusDot ✅ (3/3) StatusDot (3/3)
    dot-08: Badge on inbox (dot) Badge ✅ (3/3) StatusDot (3/3)

    All agents used StatusDot for every prompt when Badge dot was unavailable. Nobody tried to hack Badge into a dot. The code was equally correct.

    Reasoning Cost

    Metric With Badge dot Without Badge dot Delta
    Avg reasoning per prompt (chars) 331 169 -49%
    Deliberation / "close call" moments 3 of 8 prompts 0 Gone
    Total reasoning (chars, all prompts) 2,645 1,352 -1,293

    Interpretation

    Badge shape="dot" does not change correctness — it only costs reasoning time. When it exists, LLMs correctly use it for "attention marker" prompts. When it doesn't, LLMs use StatusDot for the same prompts and produce equally valid code in half the tokens.

    The status-vs-attention semantic distinction is real but not load-bearing. StatusDot handles both use cases. Badge dot mode adds API surface and deliberation cost without improving outcomes.

    Recommendation

    Consider deprecating shape="dot" on Badge. The escape hatch for notification dots would be StatusDot (which already works). Badge can focus on its strength: visible text labels and counts. This simplifies the component API and reduces LLM reasoning overhead by ~50% for dot-related prompts.

  3. added 2 commits that reference this issue on Mar 28, 2026
    f711059
    6c07ef8
  4. added a commit that references this issue on Apr 26, 2026
    80d2473
  5. added 2 commits that reference this issue on Jun 21, 2026
    9de080c
    3c8efb8
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

    vibe-test

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions