Skip to content

fix(tui): open select screen on what the user actually chose#154

Merged
fullstackjam merged 1 commit into
mainfrom
fix/select-review-category
Jul 17, 2026
Merged

fix(tui): open select screen on what the user actually chose#154
fullstackjam merged 1 commit into
mainfrom
fix/select-review-category

Conversation

@fullstackjam

Copy link
Copy Markdown
Member

Summary

  • Picking a loadout opened the select screen on catCur 0 — whichever catalog category happens to sit first (essential) — instead of on the packages the loadout picked. Reported from VM testing: on a machine with everything already installed, every sidebar row showed a flat grey count with no way to find the actual selection.
  • Pin a synthetic selected review category first in the sidebar so the screen opens on the answer to its own question (the enter key installs, so the cursor should land on what's about to be installed).
  • Sidebar counts now separate "selected" from "still to install" instead of collapsing them into one number.
  • Space is now a no-op while the sidebar (not the list) holds focus — previously it silently toggled a row with no visible cursor.

Test plan

  • go build ./...
  • go vet ./...
  • make test-unit — full L1 (unit + integration + contract), all green
  • New tests: TestSelectOpensOnReviewCategory, TestHandPickSkipsReviewCategory, TestConfigModeSkipsReviewCategory, TestSpaceIgnoredWhileSidebarFocused, TestSidebarCountShowsSelectedEvenWhenAllInstalled, TestReviewCategoryRefreshesOnReentry
  • Rendered the exact screenshot scenario (developer loadout, all packages pre-installed) and confirmed the sidebar now reads selected 48/48 with the cursor on the 48 chosen packages

Picking a loadout opened the select screen on catCur 0 — whichever
catalog category happens to sit first — instead of on the packages the
loadout picked. On a machine with everything already installed this
left every sidebar row showing a flat grey count with no way to find
the selection, and pressing space on the wrong-focused pane toggled a
row with no visible cursor.

Pin a synthetic "selected" review category first in the sidebar so the
screen opens on the answer to its own question. Sidebar counts now
separate "selected" from "still to install" instead of collapsing them,
and space is a no-op while the sidebar (not the list) holds focus.
@github-actions github-actions Bot added tests Tests only ui Terminal UI labels Jul 17, 2026
@fullstackjam
fullstackjam merged commit 5df5d67 into main Jul 17, 2026
14 checks passed
@fullstackjam
fullstackjam deleted the fix/select-review-category branch July 17, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests only ui Terminal UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant