Repository navigation
NavGroup: badge and indicator, aligned like NavItem - #621
Merged
Merged
Conversation
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
7 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Lorant: tags in the sidebar should be handled in core. A "New" on a
NavGrouphad to go inside itslabel, so it sat right after the text, whileNavItembadges sit at the row's right edge (Tavilio#345 moved its item marks tobadge, but groups had no equivalent).NavGrouptakesbadge(number = count, 0 hides, >9 prints 9+, text prints as given) andindicator, same contract asNavItem.NavItem, which hides them like any item badge.NavTrailing.tsx(not exported), used by both.nav-group-badge.test.tsx; nav suites pass (62/62).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
badgeon its groups instead of a Tag in the label.Generated by Claude Code