Skip to content

feat: tabbed sidebar — Competitors + Sources#197

Closed
arberx wants to merge 1 commit intomainfrom
feat/competitor-tab-sidebar
Closed

feat: tabbed sidebar — Competitors + Sources#197
arberx wants to merge 1 commit intomainfrom
feat/competitor-tab-sidebar

Conversation

@arberx
Copy link
Copy Markdown
Member

@arberx arberx commented Mar 30, 2026

Fixes #196

Changes

Restructures the evidence detail modal sidebar into a tabbed view:

Competitors tab (default)

  • Shows "Domains cited instead" — the ranked leaderboard of domains AI cited in its response
  • Tags your domain and known competitors
  • Shows your "Not cited" position when absent

Sources tab

  • Grounding sources (URLs the AI referenced to build its answer)
  • Evidence URLs

Why

The previous single-list layout labeled "Who was cited — in order" mixed domain leaderboard data with grounding sources. Users expected to see competitor company names but saw article source domains instead. The tabbed view separates these concerns and defaults to the competitive view.

Note

This is the UI-only fix. The leaderboard still shows domains (from grounding sources), not extracted company names. Company-name extraction from answer text is a separate backend change (storing recommendedCompetitors per run result). That can be a follow-up.

Testing

  • 724 tests pass
  • Typecheck clean
  • Lint clean

Restructure the evidence detail modal sidebar into two tabs:

- Competitors (default): shows domains cited instead of you,
  with rank, competitor tags, and your-domain position
- Sources: shows grounding sources and evidence URLs

Previously all data was shown in a single flat list under the
misleading label 'Who was cited — in order'. The new tabs
separate competitive intelligence from reference sources.

Relabeled 'Who was cited' to 'Domains cited instead' for clarity.
@arberx
Copy link
Copy Markdown
Member Author

arberx commented Mar 30, 2026

Superseded by #201, which combines the tabbed evidence UI from this PR with the corrected backend/data-model work from #199.

@arberx arberx closed this Mar 30, 2026
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.

ui: show competitors and grounding sources in tabbed sidebar view

1 participant