feat/group-scopes#45
Open
donfear wants to merge 5 commits into
Open
Conversation
Add support for rendering packages grouped under their npm scope. Introduces new RenderableItem type for group headers, adds renderGroupHeader function, and modifies renderPackageLine to display tree characters (├ └) for grouped items while stripping scope prefixes from package names. Updates UIRenderer and renderInterface to accept focusedGroupVisualIndex for highlighting the current group.
Introduce buildScopeGroupedItems to cluster packages by npm scope when sharing a majority version above threshold. Update NavigationManager with focusedGroupVisualIndex tracking, navigable focus points for headers and packages, and revised movement logic. Extend StateManager with buildAndSetRenderableItems, group header accessors, applyGroupSelection, and cycleGroupSelection for bulk operations.
Update action dispatcher to check focusedGroupVisualIndex and delegate left/right to cycleGroupSelection when a group header is active. Rebuild renderable items each frame via buildAndSetRenderableItems in the interactive session and forward the focused group index to renderInterface.
- Bind space key to toggle collapse on focused group headers - Render group headers with selection counts, pending loads, update availability, and vulnerability indicators - Refactor navigation manager to track focused groups by scope for stable focus across rebuilds - Extend scope grouping and state manager to support collapsedScopes and compute group aggregates - Add unit tests for navigation, grouping logic, and state manager group operations
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.
No description provided.