Skip to content

feat: navigate the top bar with L1/R1 and drop the redundant folder chip - #180

Merged
nextestudios merged 2 commits into
mainfrom
feature/176-top-bar-l1r1
Sep 27, 2026
Merged

nextestudios merged 2 commits into
mainfrom
feature/176-top-bar-l1r1

Conversation

@nextestudios

Copy link
Copy Markdown
Owner

Summary

The "current-folder chip with an R1 prompt" next to the logo was the tab strip (#50) showing a single tab. It repeated the end of the breadcrumb, and its RB prompt suggested R1 would reopen the folder. This PR keeps tabs and changes how the top bar works:

  • Top bar is one focus region (breadcrumb + quick access). From the list, L1 focuses the parent folder segment and R1 focuses the first quick-access shortcut. On Home both go to Favoritos. Inside the bar, L1/R1 and D-pad Left/Right move to the previous/next target and stop at the ends. LT/RT jump to the first/last target of the segment. South opens the target. Down/East return to the list.
  • No no-op targets: the current folder (last breadcrumb) is only a label. L1/R1/Left/Right skip it, it has no South prompt, and tapping it does nothing. The quick-access shortcut for the current location is skipped too, and opening a favorite that is already the current folder doesn't reload it. On Home, "Locais › Início" is not a target.
  • Dynamic glyphs: the L1 and R1 glyphs sit at both ends of the top bar and come from IControllerPromptProvider: LB/RB, L1/R1, L/R, generic, or Ctrl+←/→ on the keyboard. In the bar, the footer shows Ir para/Abrir, Anterior/Próximo, Abas (Up, with 2+ tabs) and Voltar à lista.
  • Tabs stay fully reachable: the strip only shows with 2+ tabs and has no standalone prompt. Up in the top bar enters it, and there L1/R1/Left/Right switch tabs and North opens new/close/switch, as before. A new Menu → Abas… item does new/close/switch without the strip. "Abrir em nova aba" stays in the folder actions. Closing tabs down to one returns focus to the list.
  • R3 view switch, LT/RT paging, history, list/grid navigation and the text/image preview shoulder bindings are unchanged.

Deliberate binding change (tests updated)

  • TabsJourneyTests: RB in the list no longer goes straight to the tab strip. The test now uses R1 → Up, and also covers Menu → Abas and the hidden strip with one tab.
  • TopBarJourneyTests (existing test): Right from the parent segment now skips the current folder and goes to the first shortcut.
  • ModalSystemJourneyTests: with one tab there is no strip, so the "Abas" menu icons are checked via Menu → Abas.

New test

  • TopBarJourneyTests.L1_and_R1_walk_the_top_bar_…: L1/R1 entry targets and movement, clamping at the ends, the current folder never focused, no reload by tap on the current crumb or the active shortcut, breadcrumb activation in grid with focus restored on the child, quick-access activation in list with focus back on the list, and Back history.

Docs

CHANGELOG pair, GUIDE pair, docs/input-and-focus.md, docs/ui-redesign.md (shell diagram, controller table, regression rows), and docs/TESTING.md (new manual section "Barra superior com L1/R1 (#176)"). The screen renderer gets a new 2g-folder-tabs capture.

Testing

  • CI (Windows): build + unit/journey tests.
  • Smoke mode=screens at 1920x1080 and 1280x720 (Home, top bar focus, folder list/grid, path bar focus, tabs).
  • Manual (can't be verified in CI): real Xbox/PlayStation/Nintendo/generic glyphs, readability at TV distance, and a check at 1280x800. See docs/TESTING.md.

Closes #176

🤖 Generated with Claude Code

nextestudios and others added 2 commits September 27, 2026 17:44
The header no longer shows the single tab as a current-folder chip with an
RB prompt. The top bar (breadcrumb + quick access) is one focus region:
L1 enters on the parent folder, R1 on the first shortcut, and inside the
bar L1/R1 and Left/Right move between targets. The current folder and the
shortcut for the current location are labels, never targets, so nothing
reloads the page. The tab strip only shows with 2+ tabs and is reached with
Up from the top bar; Menu > Abas creates, closes and switches tabs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nextestudios
nextestudios force-pushed the feature/176-top-bar-l1r1 branch from 1f5c08b to 1a2509b Compare September 27, 2026 20:45
@nextestudios
nextestudios merged commit ea78d75 into main Sep 27, 2026
1 check passed
@nextestudios
nextestudios deleted the feature/176-top-bar-l1r1 branch September 27, 2026 20:48
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: remove redundant folder header and navigate the top bar with L1/R1

1 participant