Skip to content

ProductSwitcher: what waits in the other products, over their icons - #186

Merged
dskripchenko merged 1 commit into
mainfrom
feat/product-switcher-badges
Nov 19, 2026
Merged

dskripchenko merged 1 commit into
mainfrom
feat/product-switcher-badges

Conversation

@dskripchenko

Copy link
Copy Markdown
Owner
  • UidProductSwitcherItem.badge: the product's count over its icon (the bell's badge, a size smaller); never on the current product — its count stays on its own bell. badgeLabel names it for screen readers; the compact ⇄ button gets a dot.
  • useProductBadges(products, { current }): asks every other product of the organization GET /api/v1/badge/count with the person's session (credentials: include), every minute and when the tab comes back; a product that does not answer has no count.

Tests for both; full vitest, build typecheck and lib build pass.

🤖 Generated with Claude Code

The organization's other products show their bell's count over their
icons in the switcher; useProductBadges asks them for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dskripchenko
dskripchenko merged commit 1db544c into main Nov 19, 2026
2 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.

1 participant