Skip to content

Insights: keep a path to Competitors when no competitors are tracked yet #507

Closed

Description

@gkhngyk

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/competitors labeled "Head-to-Head Comparison" with the same ArrowRight styling as the leaderboard link from PR feat(web): add head-to-head link to insights leaderboard #506.
  • Use the locale-aware Link from @/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 typecheck and yarn format:check pass from web/.

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

  1. added
    enhancement
    good first issue
    help wanted
    on Jul 22, 2026
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

    enhancementgood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions