Skip to content

NavGroup: badge and indicator, aligned like NavItem - #621

Merged
lorant-one merged 1 commit into
previewfrom
claude/sidebar-tag-align
Nov 26, 2026
Merged

lorant-one merged 1 commit into
previewfrom
claude/sidebar-tag-align

Conversation

@lorant-one

Copy link
Copy Markdown
Member

What

Lorant: tags in the sidebar should be handled in core. A "New" on a NavGroup had to go inside its label, so it sat right after the text, while NavItem badges sit at the row's right edge (Tavilio#345 moved its item marks to badge, but groups had no equivalent).

  • NavGroup takes badge (number = count, 0 hides, >9 prints 9+, text prints as given) and indicator, same contract as NavItem.
  • The header row spreads label and badge to both edges, so the pill sits at the header's end, before the chevron.
  • In a collapsed (icon rail) nav, the props pass to the menu trigger NavItem, which hides them like any item badge.
  • The pill and dot are one internal component, NavTrailing.tsx (not exported), used by both.
  • Tests: nav-group-badge.test.tsx; nav suites pass (62/62).
  • AI spec regenerated, docs (nav.mdx: example + props), CHANGELOG under Unreleased.

Screenshot (local build): Bookings item "New", closed Selling group "New", open Settings group with a count and a "New" item.

After release: Tavilio can pass badge on its groups instead of a Tag in the label.


Generated by Claude Code

A "New" on a group went inside its label and trailed the text, while item
badges sat at the row's right edge. NavGroup now takes badge and indicator,
drawn by the same pill as NavItem's (shared NavTrailing, internal) at the
end of the header, before the chevron.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk
@lorant-one
lorant-one merged commit c704e3d into preview Nov 26, 2026
10 checks passed
@lorant-one lorant-one added the approved label Nov 26, 2026 — with Claude
@lorant-one lorant-one mentioned this pull request Nov 26, 2026
7 tasks done
@lorant-one
lorant-one deleted the claude/sidebar-tag-align branch November 29, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants