Skip to content

Skip disabled rows in selection menu numbering and default focus#19170

Merged
canvrno-oai merged 4 commits intomainfrom
canvrno/disabled_selection_rows
Apr 24, 2026
Merged

Skip disabled rows in selection menu numbering and default focus#19170
canvrno-oai merged 4 commits intomainfrom
canvrno/disabled_selection_rows

Conversation

@canvrno-oai
Copy link
Copy Markdown
Contributor

Selection menus in the TUI currently let disabled rows interfere with numbering and default focus. This makes mixed menus harder to read and can land selection on rows that are not actionable. This change updates the shared selection-menu behavior in list_selection_view so disabled rows are not selected when these views open, and prevents them from being numbered like selectable rows.

  • Disabled rows no longer receive numeric labels
  • Digit shortcuts map to enabled rows only
  • Default selection moves to the first enabled row in mixed menus
  • Updated affected snapshot
  • Added snapshot coverage for a plugin detail error popup
  • Added a focused unit test for shared selection-view behavior

@canvrno-oai
Copy link
Copy Markdown
Contributor Author

@codex review

@canvrno-oai canvrno-oai marked this pull request as ready for review April 23, 2026 18:53
@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Swish!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Copy Markdown
Contributor

@fcoury-oai fcoury-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex found a small pending issue. Let me know how you want to proceed and I'll be glad to re-review whenever you're ready.

Comment thread codex-rs/tui/src/bottom_pane/list_selection_view.rs
Co-authored-by: Codex <noreply@openai.com>
@canvrno-oai
Copy link
Copy Markdown
Contributor Author

canvrno-oai commented Apr 24, 2026

@fcoury-oai I've addressed the issue that was identified by Codex.

@canvrno-oai canvrno-oai merged commit 7262c0c into main Apr 24, 2026
25 checks passed
@canvrno-oai canvrno-oai deleted the canvrno/disabled_selection_rows branch April 24, 2026 20:21
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants