Skip to content

chore(sidebar): drop the New badges from the menu - #1801

Merged
gkhngyk merged 2 commits into
ansvisor:mainfrom
cihan-gyk:chore/sidebar-no-new-badges
Oct 30, 2026
Merged

gkhngyk merged 2 commits into
ansvisor:mainfrom
cihan-gyk:chore/sidebar-no-new-badges

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

The sidebar marked four items New: Action Center, Content, Mentions and Shopping. With that many, none stood out. This removes all four. Chat will get a New badge when it launches.

NavItem.badge and Chat's own badges (Soon (next week) on the demo brand, Set up without a provider key) are unchanged.

Related issue

None. Product owner's request.

Type of change

  • chore

How to test

  1. Open any dashboard page. No sidebar item says New on desktop or in the mobile menu.
  2. cd web && yarn vitest run src/lib/dashboard-navigation.test.ts src/components/layout (7 files, 55 tests). A new test checks that no menu item carries a badge.

Checklist

  • Branch follows the naming convention
  • Commits follow Conventional Commits
  • Web: lint and the menu tests pass
  • Tests updated

🤖 Generated with Claude Code

Action Center, Content, Mentions and Shopping all said New, so none stood
out. Chat gets one when it launches. The badge field and Chat's own Soon /
Set up badges stay.

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

@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.

Approving. Removing the four badge: 'New' lines is all the change needs. Nothing else read them:

  • The sidebar and mobile menu show item.badge straight from the config. Neither has a fallback, so the four items just show no tag now. Chat's own badges ("Soon (next week)" on the demo brand, "Set up" with no provider key) come from dashboardNavBadge and are covered by the existing tests, which still pass.
  • Menu access, work areas, onboarding and the MCP account labels import dashboardNav, but none of them reads badge.
  • The badge text is a literal in the config, not a translation, so no en.json key goes unused.
  • sidebar.test.tsx and mobile-nav.test.tsx build their own mock menus, so their badge: 'New' fixtures still test badge rendering. That's fine.

Checked on the head merged with main (merges clean, no migrations): dashboard-navigation, components/layout, components/settings, components/onboarding, lib/menu-access, components/agentic and lib/guards/plan-row all pass (38 files, 434 tests). Prettier and ESLint are clean on the two files.

@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.

Merging in order with the other approved PRs. This head merges current main; its tree is what main will be after this squash, checked with the full server and web suites, tsc, lint, format and next build.

@gkhngyk
gkhngyk merged commit 213f5e1 into ansvisor:main Oct 30, 2026
4 of 5 checks passed
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.

2 participants