Repository navigation
Description
Problem
#504 (PR #506) removed Competitors from the navigation and made the Insights leaderboard's Head-to-Head Comparison link the page's entry point. The leaderboard section only renders when the brand has at least one tracked competitor (competitorData is set only when brands.length > 1 in web/src/app/[locale]/(dashboard)/dashboard/insights/page.tsx).
Result: a brand with zero competitors has no UI path to /dashboard/competitors at all — the page where the Add Competitor empty state lives. Competitors can still be added from Brand Settings and the Citations "Add as competitor" buttons, but the head-to-head feature itself is undiscoverable for exactly the users who haven't set it up yet.
Design
When competitorData is null (and the page is otherwise showing data — not the loading skeleton or the fully-empty state), render a compact teaser in place of the competitor comparison section:
- A single dashed-border card, same width as the section it replaces, matching the muted empty-state style used elsewhere on the page.
- Copy along the lines of: "No competitors tracked yet" with a one-line explanation ("Add competitors to see how you compare in AI answers.") and a link/button →
/dashboard/competitorslabeled "Head-to-Head Comparison" with the sameArrowRightstyling as the leaderboard link from PR feat(web): add head-to-head link to insights leaderboard #506. - Use the locale-aware
Linkfrom@/i18n/navigation.
Keep it to one card — the section should invite setup, not fake an empty chart.
Acceptance criteria
- With zero tracked competitors, Insights shows the teaser card and clicking it lands on
/dashboard/competitors(its Add Competitor empty state). - With at least one competitor, nothing changes — the existing chart + leaderboard section renders as today.
- The teaser does not appear during the initial loading skeleton or on the no-data-at-all empty state.
yarn lint,yarn typecheckandyarn format:checkpass fromweb/.
Getting started
See CONTRIBUTING.md for setup. Easiest to verify by removing all competitors from a seeded brand (npm run dev + supabase/seed.sql). Comment here to claim the issue before opening a PR.
Activity
feat(insights): show no-competitors teaser with path to /dashboard/co…