Skip to content

feat/group-scopes#45

Open
donfear wants to merge 5 commits into
mainfrom
feat/group-scopes
Open

feat/group-scopes#45
donfear wants to merge 5 commits into
mainfrom
feat/group-scopes

Conversation

@donfear
Copy link
Copy Markdown
Owner

@donfear donfear commented May 24, 2026

No description provided.

donfear added 5 commits May 24, 2026 16:56
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
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