Skip to content

feat(web): add head-to-head link to insights leaderboard - #506

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
abdullah91111:feature/head-to-head-comparison
Jul 22, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
abdullah91111:feature/head-to-head-comparison

Conversation

@abdullah91111

Copy link
Copy Markdown
Contributor

Summary

Moves the Competitors entry point from the navigation to the Insights leaderboard.

  • Removes Competitors from the desktop sidebar and mobile navigation
  • Adds a locale-aware “Head-to-Head Comparison” link to the Leaderboard card
  • Keeps the existing /dashboard/competitors route and plan gate unchanged

Related issue

Closes #504

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

Testing

  • All 43 tests pass across 10 test files
  • All changed files pass Prettier
  • The repository-wide formatting check reports pre-existing CRLF formatting differences in this Windows checkout

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to Ansvisor, and thank you for your first PR! A maintainer will be by soon to review.

In the meantime, two things that make review faster:

  • A short description of why the change matters, not just what it does — most of our PRs link a Fixes #... to the issue that explains the why.
  • A quick local test note if there's anything worth eyeballing in the browser.

If you'd like to keep an eye on where Ansvisor goes next, a ⭐ on the repo helps others discover it (and Watch sends you a ping when related issues land). Either way — looking forward to your next one.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified end to end — the config-level removal covers both navs, the dead label mappings and the Users import are cleaned up, and the link uses the locale-aware Link exactly as specced. CI is green including the format check. The zero-competitor discovery gap is a hole in the issue spec, not in this PR — following up separately. Thanks for the clean work!

@gkhngyk
gkhngyk merged commit f5ee403 into ansvisor:main Jul 22, 2026
4 checks passed
gkhngyk added a commit that referenced this pull request Oct 30, 2026
…ty (#1809)

* feat(sidebar): put Competitors back on the menu, under Brand Visibility

Competitors (/dashboard/competitors) has been off the menu since #506,
reachable only from Brand Visibility's Leaderboard and Getting started.
It is back under Analytics, right after Brand Visibility, with the Users
icon and the competitor_tracking gate the page checks, and no badge.

Menu access lists it with the other sections (they come from the menu).
No work area names it yet, so picking work areas leaves it on, while a
role filled from a ready-made set leaves it off. Tests follow the new
section count; the Competitors guide and help articles say where it is.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(sidebar): keep Competitors in the work areas that compare brands

Founders & leaders, Brand & PR, Growth, Business Development and Analytics
now name Competitors, right after Brand Visibility: picking one keeps it on
the menu, and a role filled from their ready-made set sees it. The other
areas (AEO/GEO & Audit, Content, Product Development, Developers) leave it
off. The menu access guide's table and the work areas help article list it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Cihan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Gökhan Geyik <[email protected]>
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.

Move Competitors out of the sidebar behind a Head-to-Head link on the Insights leaderboard

2 participants