Skip to content

Redesign evidence tracking for human readability#28

Closed
arberx wants to merge 1 commit intomainfrom
evidence-redesign
Closed

Redesign evidence tracking for human readability#28
arberx wants to merge 1 commit intomainfrom
evidence-redesign

Conversation

@arberx
Copy link
Member

@arberx arberx commented Mar 13, 2026

What changed

Replaces the dense 6-column EvidenceTable with a card-based layout and rewrites the evidence drawer to be immediately useful at a glance.

EvidencePhraseCards (replaces the table)

  • One card per keyword — 2-col responsive grid
  • Color-accented left border by citation state (emerald = cited, rose = lost, zinc = not-cited)
  • Primary status badge + trend arrow + streak label ("Cited 3 runs in a row ↑")
  • Timeline dot history spanning all runs for that phrase
  • Per-provider clickable pills — each shows Gemini ✓ / OpenAI ✗ / Claude – inline, tapping opens the evidence drawer for that specific provider

Redesigned EvidenceDrawer

  • Position hero block — the first thing you see: "Cited Clean up docs and update for Phase 2 #2 of 4 domains" or "Not in this answer" with color context
  • AI answer with your domain highlighted — uses highlightTermsInText() to mark your canonical domain and project name in emerald so you can see exactly where (or if) you appear
  • Citation leaderboard — ordered ranked list of every domain cited, with You (emerald), Competitor (rose), and Other (zinc) labeled
  • Action items — technical signals rendered as a styled list with ✓ (why you're cited) or ⚠ (what to fix) icons
  • Grounding sources and evidence URLs as proper clickable links

Supporting

  • highlightTermsInText() utility — splits text on domain/project name matches, handles bold markdown in non-highlighted segments
  • ~170 lines of new CSS in styles.css following the existing @apply pattern

- Replace dense EvidenceTable with EvidencePhraseCards grid
  - One card per keyword phrase (2-col responsive grid)
  - Color-accented left border by citation state (emerald/rose/zinc)
  - Citation status badge + trend arrow + streak label at a glance
  - Timeline dot history per phrase across all providers
  - Per-provider clickable pills (Gemini ✓ / OpenAI ✗) that open the drawer

- Redesign EvidenceDrawer for human readability
  - Position hero: 'Cited #2 of 4 domains' or 'Not in this answer'
  - AI answer with your domain/name highlighted in emerald
  - Citation leaderboard: ordered ranked list (You / Competitor / Other)
  - Action items: technical signals as styled list (✓ why cited / ⚠ what to fix)
  - Grounding sources and evidence URLs as clickable links

- Add highlightTermsInText() utility for domain highlighting
- Add ~170 lines of new CSS in styles.css following existing @apply pattern
@arberx arberx force-pushed the evidence-redesign branch from 552d3b0 to 29f357b Compare March 13, 2026 04:16
@arberx arberx closed this Mar 13, 2026
@arberx arberx deleted the evidence-redesign branch March 13, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant