Skip to content

Render the click (UBI) bucket in the judgment-list source-breakdown card #356

@SoundMindsAI

Description

@SoundMindsAI

Summary

A judgment list generated from UBI (or hybrid UBI+LLM) carries a non-zero source_breakdown.click count, but the judgment-list header's source-breakdown card renders only the llm and human buckets. The click bucket is silently dropped, so operators reviewing a UBI list can't see how many judgments came from real click behaviour — which is the whole point of the UBI path.

The data is already on the wire (_SourceBreakdown.click, added by feat_ubi_judgments); this is purely a display gap. The generated type's own doc comment already claims "the UI's source-breakdown card now renders all three buckets separately" — this issue makes that true.

Where

Fix

  1. Add a third badge for the click bucket alongside llm and human, reusing the existing per-bucket styling. Suggested label: "UBI clicks".
  2. Update/extend the component's vitest to assert the click bucket renders.

Definition of done

  • Source-breakdown card shows all three buckets (llm / human / UBI clicks)
  • vitest covers a list with a non-zero click count
  • cd ui && pnpm lint && pnpm test pass

Background

Captured at docs/00_overview/planned_features/02_mvp2/bug_judgment_header_omits_click_bucket/idea.md.

Good first issue: frontend-only, single component + test, no backend changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueGood for newcomersready-to-executeHas approved spec + impl plan; ready for /impl-execute

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions