Skip to content

feat: context-sensitive action bar - #117

Merged
nextestudios merged 1 commit into
mainfrom
feature/35-context-action-bar
Sep 27, 2026
Merged

nextestudios merged 1 commit into
mainfrom
feature/35-context-action-bar

Conversation

@nextestudios

Copy link
Copy Markdown
Owner

Summary

AppController.BuildHints stays the single source; each context now shows only what works, labeled with what it does:

Context Prompts
Archive on disk Explore · Mark · Extract… (the actions menu opens focused on "Extract to "name"") · Menu · Back
Inside an archive Open/Details · Mark · Extract… · Menu · Back
Marked items Open · Unmark/Mark · Operations (N) · Menu · Cancel selection
On-screen keyboard Select (controller only) · Delete · Shift · Cursor · Symbols · Done (Start/Options) · Cancel; nothing while the text is being validated
Dialog Confirm is labeled with the focused option; hidden when there are no options
Menu Confirm hidden when the focused item is unavailable (the reason is already shown on the item)
Loading Menu · Cancel
Blocked entry Confirm → "Reason"

Extract decision (documented in docs/input-and-focus.md): West stays Mark on archives so they can still join batch copy/move/delete/compress. The only free buttons are reserved (Select for search #46, LB/RB for regions/two panes). So the direct extract is North → South: North reads "Extract…" on archives and the menu opens on "Extract to "name"". The label uses the file extension (fast, synchronous); the action still detects the format from content.

Keyboard context was implemented against the current keyboard modal, as agreed while #41 evolves.

Tests

  • CI (unit, HintJourneyTests): archive file prompts + menu focus + inside-archive prompts; multi-selection labels and menu; keyboard context with controller vs physical keyboard (Enter as Done); disabled menu item hides Confirm; dialog Confirm follows the focused option. JourneyTests label updated ("Cancelar seleção").
  • Manual (docs/TESTING.md): walk each context with a controller and check every prompt does what it says.

Closes #35

🤖 Generated with Claude Code

BuildHints now labels each button with what it will do in the current
context and hides actions that would do nothing: Explore/Mark/Extract on
archives (the actions menu opens on "Extract to"), Operations (N) and Cancel
selection with marked items, Select/Delete/Done/Cancel on the on-screen
keyboard (Select only for controllers), the focused option in dialogs, no
Confirm on disabled menu items, and only Menu/Cancel while loading.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nextestudios
nextestudios merged commit 1aef7e5 into main Sep 27, 2026
1 check passed
@nextestudios
nextestudios deleted the feature/35-context-action-bar branch September 27, 2026 02:53
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.

enhancement: make the action bar fully context-sensitive

1 participant