[PR #6773] [MERGED] feat: improve phone navigation and dialog focus #7321

Closed
opened 2026-10-23 04:18:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6773
Author: @SirAdoni
Created: 9/27/2026
Status: ✅ Merged
Merged: 9/28/2026
Merged by: @SpicyMarinara

Base: staging ← Head: contrib/6698-accessibility


📝 Commits (9)

  • fdd0df0 feat: improve phone navigation and dialog focus
  • 0699afa test: cover phone navigation and stacked dialog focus
  • 954635b fix: preserve panel opener through phone navigation
  • d3ae2ff Merge remote-tracking branch 'origin/staging' into codex/merge-6773
  • 6409895 fix(ui): preserve native More-menu tab navigation and update mobile proofs
  • 6f6bb92 Merge remote-tracking branch 'origin/staging' into codex/merge-6773
  • 63fd0d5 fix(ui): keep phone navigation menu opaque in both themes
  • fa14830 Merge remote-tracking branch 'origin/staging' into codex/merge-6773
  • e415003 fix(ui): restore menu focus after extension actions

📊 Changes

24 files changed (+727 additions, -183 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 e2e/accent-pulse.e2e.ts (+6 -5)
📝 e2e/avatar-preview.e2e.ts (+2 -1)
📝 e2e/chat-sweep.e2e.ts (+3 -2)
📝 e2e/conversation-background-opacity.e2e.ts (+3 -2)
📝 e2e/core-flows.e2e.ts (+108 -135)
📝 e2e/drag-list-scroll.e2e.ts (+2 -1)
📝 e2e/issue-sweep-chat.e2e.ts (+7 -6)
📝 e2e/lorebook-character-context.e2e.ts (+3 -2)
📝 e2e/schedule-generation.e2e.ts (+2 -1)
📝 e2e/sept22-assigned-sweep.e2e.ts (+3 -2)
➕ e2e/topbar-accessibility.e2e.ts (+228 -0)
➕ e2e/topbar-navigation.ts (+15 -0)
📝 e2e/ux-feedback-sweep.e2e.ts (+6 -5)
📝 packages/client/src/components/chat/HomeBrowserHub.tsx (+4 -4)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+1 -1)
📝 packages/client/src/components/layout/PersonalExtensionContributionsMenu.tsx (+4 -4)
📝 packages/client/src/components/layout/RightPanel.tsx (+1 -1)
📝 packages/client/src/components/layout/TopBar.tsx (+280 -6)
📝 packages/client/src/components/ui/Modal.tsx (+12 -3)

...and 4 more files

📄 Description

Linked issue

Closes #6793. Refs #6698; the broader library/chat/accessibility roadmap remains open.

Why this change

On small screens the top bar crowds secondary destinations into small controls. Stacked dialogs can also compete for keyboard focus. This extends the existing navigation and dialog components.

What changed

  • Keep Home and Chats visible on phones; put Characters, Settings and secondary panels in a keyboard-accessible More menu, as requested by the maintainer.
  • Preserve access to extension buttons in More and retain desktop navigation.
  • Let native Tab/Shift+Tab continue from More without an extra key press, keep browser regression coverage aligned with the phone menu, and give the menu an opaque themed background so page text cannot show through on iPhone.
  • Enlarge touch targets in the navigation, panel controls, dialogs and drag handles; improve short landscape sidebar scrolling.
  • Only the topmost modal traps Tab. Escape during IME composition does not close the dialog.

Search/commands and generation jobs are not added to the top bar. The other #6698 features are being prepared separately.

Validation

Maintainer integration head e415003fe, based on staging 2b229bd83:

  • pnpm check passed. The existing implicit-any failure in the new focus test is fixed.
  • Focus/navigation/gallery regression selection: 19 passed, 5 platform-specific skips across desktop Chromium, mobile Chromium, and mobile WebKit. Covers More actions and extension buttons, Tab/Shift+Tab, stacked dialogs, IME Escape, sidebar switching, onboarding, and the iPhone gallery share flow.
  • pnpm smoke:ui: 7/7 passed. The shared browser-test helper now waits for navigation to mount and follows More on phones; existing affected specs reuse it instead of clicking hidden icons.
  • Broader shared-navigation coverage: 162 passed, 2 platform-specific skips across mobile Chromium and mobile WebKit, covering all ten affected helper-consuming specs.
  • Full local CodeRabbit review completed after the service quota reset: zero findings across all 24 PR files, including the final extension-focus fix. The hosted finding was reproduced and fixed: actions with no interface restore focus to More; extension-owned focus is retained. pnpm check, all 7 navigation/focus cases (2 expected desktop skips), and 7 smoke cases pass on this final fix. Current hosted review and all required checks remain merge gates.

Human verification checklist:

  • pnpm check passes locally — checked at the maintainer’s explicit instruction after the passing automated run.
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Browser screenshots use synthetic fixtures in desktop Chromium and iPhone-sized WebKit, with dark and light themes. Physical phone interaction and screen-reader verification remain unverified. Manually verify navigation and dialog focus with the intended assistive technology/device.

Docs and release impact

A focused Unreleased changelog entry is included. No version bump.

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

UI evidence

Before/after screenshots in dark and light themes — download the self-contained HTML gallery to view the embedded PNGs. It covers desktop Chromium and iPhone-sized WebKit. Synthetic data only. The final menu no longer shows page text through its background.

The final opacity/focus run passed 13 cases (6 screenshot cases plus 7 navigation/focus cases), with 2 expected desktop skips, across all three browser projects.

Merge gates

The maintainer explicitly authorized marking only the verified pnpm check item. Other human validation items remain unchecked. This PR closes focused issue #6793; the broader #6698 roadmap stays open. Current-commit owner approval, review completion, and required GitHub checks remain mandatory.

Summary by CodeRabbit

  • New Features
    • On phone-sized screens, Home and Chats remain in the top bar, while secondary destinations and extension actions are available from a More menu with keyboard navigation.
  • Improvements
    • Larger touch targets make navigation, search, drag handles, and common controls easier to use on touch devices.
    • Chat sidebars are easier to navigate in short landscape layouts, with the header remaining visible while scrolling.
  • Bug Fixes
    • Stacked dialogs keep keyboard focus in the active dialog, including when a parent dialog closes. Escape during text composition no longer closes the active dialog.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/6773 **Author:** [@SirAdoni](https://github.com/SirAdoni) **Created:** 9/27/2026 **Status:** ✅ Merged **Merged:** 9/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `contrib/6698-accessibility` --- ### 📝 Commits (9) - [`fdd0df0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fdd0df0ce17016c517e918409c8c2f3748da673f) feat: improve phone navigation and dialog focus - [`0699afa`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0699afa80e075b08c057f382e38fa98be9e61f33) test: cover phone navigation and stacked dialog focus - [`954635b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/954635bb585f13efe4868728f0ae71acb74d2f3e) fix: preserve panel opener through phone navigation - [`d3ae2ff`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d3ae2ff464aefb5058d43cf1aa5b2453545209af) Merge remote-tracking branch 'origin/staging' into codex/merge-6773 - [`6409895`](https://github.com/Pasta-Devs/Marinara-Engine/commit/640989537e284c6dcaf3c03b1e1a8d71a35c0b62) fix(ui): preserve native More-menu tab navigation and update mobile proofs - [`6f6bb92`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6f6bb9242b4b249fedd3d7fd59f50fcbcdeedf67) Merge remote-tracking branch 'origin/staging' into codex/merge-6773 - [`63fd0d5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/63fd0d53c8be76f96fbb9c80f3179070c1874005) fix(ui): keep phone navigation menu opaque in both themes - [`fa14830`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fa148300798779ea500e8a86ec0fc01fb36dc42e) Merge remote-tracking branch 'origin/staging' into codex/merge-6773 - [`e415003`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e415003fe99fbdc1439d2643d4b4d5294c9249cd) fix(ui): restore menu focus after extension actions ### 📊 Changes **24 files changed** (+727 additions, -183 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `e2e/accent-pulse.e2e.ts` (+6 -5) 📝 `e2e/avatar-preview.e2e.ts` (+2 -1) 📝 `e2e/chat-sweep.e2e.ts` (+3 -2) 📝 `e2e/conversation-background-opacity.e2e.ts` (+3 -2) 📝 `e2e/core-flows.e2e.ts` (+108 -135) 📝 `e2e/drag-list-scroll.e2e.ts` (+2 -1) 📝 `e2e/issue-sweep-chat.e2e.ts` (+7 -6) 📝 `e2e/lorebook-character-context.e2e.ts` (+3 -2) 📝 `e2e/schedule-generation.e2e.ts` (+2 -1) 📝 `e2e/sept22-assigned-sweep.e2e.ts` (+3 -2) ➕ `e2e/topbar-accessibility.e2e.ts` (+228 -0) ➕ `e2e/topbar-navigation.ts` (+15 -0) 📝 `e2e/ux-feedback-sweep.e2e.ts` (+6 -5) 📝 `packages/client/src/components/chat/HomeBrowserHub.tsx` (+4 -4) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+1 -1) 📝 `packages/client/src/components/layout/PersonalExtensionContributionsMenu.tsx` (+4 -4) 📝 `packages/client/src/components/layout/RightPanel.tsx` (+1 -1) 📝 `packages/client/src/components/layout/TopBar.tsx` (+280 -6) 📝 `packages/client/src/components/ui/Modal.tsx` (+12 -3) _...and 4 more files_ </details> ### 📄 Description ## Linked issue Closes #6793. Refs #6698; the broader library/chat/accessibility roadmap remains open. ## Why this change On small screens the top bar crowds secondary destinations into small controls. Stacked dialogs can also compete for keyboard focus. This extends the existing navigation and dialog components. ## What changed - Keep Home and Chats visible on phones; put Characters, Settings and secondary panels in a keyboard-accessible More menu, as requested by the maintainer. - Preserve access to extension buttons in More and retain desktop navigation. - Let native Tab/Shift+Tab continue from More without an extra key press, keep browser regression coverage aligned with the phone menu, and give the menu an opaque themed background so page text cannot show through on iPhone. - Enlarge touch targets in the navigation, panel controls, dialogs and drag handles; improve short landscape sidebar scrolling. - Only the topmost modal traps Tab. Escape during IME composition does not close the dialog. Search/commands and generation jobs are not added to the top bar. The other #6698 features are being prepared separately. ## Validation Maintainer integration head `e415003fe`, based on staging `2b229bd83`: - `pnpm check` passed. The existing implicit-any failure in the new focus test is fixed. - Focus/navigation/gallery regression selection: 19 passed, 5 platform-specific skips across desktop Chromium, mobile Chromium, and mobile WebKit. Covers More actions and extension buttons, Tab/Shift+Tab, stacked dialogs, IME Escape, sidebar switching, onboarding, and the iPhone gallery share flow. - `pnpm smoke:ui`: 7/7 passed. The shared browser-test helper now waits for navigation to mount and follows More on phones; existing affected specs reuse it instead of clicking hidden icons. - Broader shared-navigation coverage: **162 passed, 2 platform-specific skips** across mobile Chromium and mobile WebKit, covering all ten affected helper-consuming specs. - Full local CodeRabbit review completed after the service quota reset: **zero findings across all 24 PR files**, including the final extension-focus fix. The hosted finding was reproduced and fixed: actions with no interface restore focus to More; extension-owned focus is retained. `pnpm check`, all 7 navigation/focus cases (2 expected desktop skips), and 7 smoke cases pass on this final fix. Current hosted review and all required checks remain merge gates. Human verification checklist: - [x] `pnpm check` passes locally — checked at the maintainer’s explicit instruction after the passing automated run. - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Browser screenshots use synthetic fixtures in desktop Chromium and iPhone-sized WebKit, with dark and light themes. Physical phone interaction and screen-reader verification remain unverified. Manually verify navigation and dialog focus with the intended assistive technology/device. ## Docs and release impact A focused Unreleased changelog entry is included. No version bump. - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence [Before/after screenshots in dark and light themes](https://gist.github.com/SpicyMarinara/ab7d5fdc940a51a5ef1a526c20301cb4) — download the self-contained HTML gallery to view the embedded PNGs. It covers desktop Chromium and iPhone-sized WebKit. Synthetic data only. The final menu no longer shows page text through its background. The final opacity/focus run passed 13 cases (6 screenshot cases plus 7 navigation/focus cases), with 2 expected desktop skips, across all three browser projects. ## Merge gates The maintainer explicitly authorized marking only the verified `pnpm check` item. Other human validation items remain unchecked. This PR closes focused issue #6793; the broader #6698 roadmap stays open. Current-commit owner approval, review completion, and required GitHub checks remain mandatory. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * On phone-sized screens, Home and Chats remain in the top bar, while secondary destinations and extension actions are available from a More menu with keyboard navigation. * **Improvements** * Larger touch targets make navigation, search, drag handles, and common controls easier to use on touch devices. * Chat sidebars are easier to navigate in short landscape layouts, with the header remaining visible while scrolling. * **Bug Fixes** * Stacked dialogs keep keyboard focus in the active dialog, including when a parent dialog closes. Escape during text composition no longer closes the active dialog. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:18:38 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7321
No description provided.