[PR #8356] [MERGED] fix(home): fold Home tabs that do not fit into a three-dot menu #8315

Closed
opened 2026-10-27 06:07:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8356
Author: @SpicyMarinara
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/home-tabs-overflow-menu


📝 Commits (4)

  • bd1682b fix(home): fold Home tabs that do not fit into a menu
  • 4938289 test(home): measure the folded tab row only after it folds
  • 85b726f fix(home): keep focus and order in the folded tab menu
  • e053980 fix(home): drop Noodle's tab-menu badge once Noodle is uninstalled

📊 Changes

6 files changed (+546 additions, -118 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+13 -6)
➕ e2e/home-browser-tab-menu.e2e.ts (+195 -0)
📝 packages/client/src/components/chat/HomeBrowserHub.tsx (+320 -110)
📝 packages/client/src/localization/locales/en.json (+1 -0)
📝 packages/client/src/styles/globals.css (+2 -1)
📝 scripts/regressions/mari-polish.regression.ts (+15 -1)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #8355

Why this change

  • With every experience installed, the Home tab row on a phone ran off the screen and scrolled sideways, so later experiences such as Story Writer were hidden until you scrolled to them. The maintainer asked for no scrolling: keep Home as its own tab and fold every other experience into a three-dot button that rolls out the full list, like the phone bookmarks button.

What changed

  • You can no longer scroll the Home tab row sideways. When the tabs do not fit, they fold instead (see below). When they fit, nothing changes.
  • Folded tabs:
    • Home stays a tab, and so does the experience you have open, so you can see where you are.
    • Every other experience folds into a three-dot button with cyan, orange and pink dots. It rolls out a list of the experiences, including Professor Mari, with their icons and names.
    • Picking one switches to it. The open one is marked in the list.
  • When it folds: only when the tabs overflow, on any screen size. This includes a narrow desktop window. It measures before paint, so the full row does not flash on rotation, resize or leaving fullscreen.
  • Noodle's unread badge: while folded, it moves onto the three-dot button and onto Noodle's row in the list, so the unread signal is not lost.
  • Keyboard:
    • The list follows its button in Tab order.
    • Picking an experience focuses its tab.
    • Escape returns focus to the button.
    • Only one of the bookmarks list and this list is open at a time.
  • Shared dismiss logic: the bookmarks menu's outside-tap and Escape handling became a shared useHeaderMenuDismiss hook used by both menus. The short-landscape height rule covers the new button too.
  • Tests and copy:
    • New e2e e2e/home-browser-tab-menu.e2e.ts on desktop, mobile Chromium and mobile WebKit.
    • The core-flows "installed Home destinations" test reaches its 39th destination through the menu instead of a scrolling row.
    • mari-polish regression assertions.
    • One new English string, home.browser.tabMenu ("Show all experiences").

Validation

  • pnpm check passes locally
  • 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

Run by the agents (not a substitute for the boxes above):

  • pnpm check and pnpm localization:check pass. The one lint warning, in HomeProfessorMariChat.tsx:380, is pre-existing.
  • These regressions pass: mari-polish, capability-package-chat-controls, issue-sweep-5371-5375, open-issues, assigned-issues-5474-5502, tracker-gallery-ui.
  • e2e/home-browser-tab-menu.e2e.ts passes 6/6 on desktop-chromium, mobile-chromium and mobile-webkit. The home-browser-fullscreen and agent-apps-category tests also pass, and so do the core-flows tests "installed Home destinations", "landscape phone keeps Home's compact chrome", "phone turned sideways keeps the app out from under its camera" and "sideways phone gives a package tab the screen while you type".
  • A four-lens review with adversarial verification confirmed five issues: focus loss, Tab order, two open menus, a one-frame flash, and an id namespace collision. All five are fixed and covered. Local CodeRabbit found nothing after the fixes.

Still to do by hand:

  • On a phone with every experience installed, the tab row fits without scrolling and shows Home plus the three-dot button.
  • The list opens with every experience, and picking Story Writer opens it next to Home.
  • Rotate to landscape: the full row comes back if it fits and folds again in portrait.
  • Check the button and list in the light theme.
  • On desktop with few experiences, the row looks exactly as before.

Docs and release impact

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

UI evidence (if applicable)

Screenshots from the e2e run show:

  • the phone folded to Home plus the three dots;
  • the open list with icons, names and the Noodle badge;
  • Story Writer open beside Home;
  • the full row returning when it fits;
  • the desktop list hanging under the tab row.

🤖 Generated with Claude Code


🔄 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/8356 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/home-tabs-overflow-menu` --- ### 📝 Commits (4) - [`bd1682b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bd1682b14b71ed9fc6eabb9ede29b986a235edf8) fix(home): fold Home tabs that do not fit into a menu - [`4938289`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4938289300dc4d8f5616a4ebb02c48a36e1c3f0c) test(home): measure the folded tab row only after it folds - [`85b726f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/85b726f11fe123450b9e280710363d0b4d6ca304) fix(home): keep focus and order in the folded tab menu - [`e053980`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e053980518c61d60b4f1b94dae82a4f237a6cdc3) fix(home): drop Noodle's tab-menu badge once Noodle is uninstalled ### 📊 Changes **6 files changed** (+546 additions, -118 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+13 -6) ➕ `e2e/home-browser-tab-menu.e2e.ts` (+195 -0) 📝 `packages/client/src/components/chat/HomeBrowserHub.tsx` (+320 -110) 📝 `packages/client/src/localization/locales/en.json` (+1 -0) 📝 `packages/client/src/styles/globals.css` (+2 -1) 📝 `scripts/regressions/mari-polish.regression.ts` (+15 -1) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #8355 ## Why this change - With every experience installed, the Home tab row on a phone ran off the screen and scrolled sideways, so later experiences such as Story Writer were hidden until you scrolled to them. The maintainer asked for no scrolling: keep Home as its own tab and fold every other experience into a three-dot button that rolls out the full list, like the phone bookmarks button. ## What changed - **You can no longer scroll the Home tab row sideways.** When the tabs do not fit, they fold instead (see below). When they fit, nothing changes. - **Folded tabs:** - Home stays a tab, and so does the experience you have open, so you can see where you are. - Every other experience folds into a three-dot button with cyan, orange and pink dots. It rolls out a list of the experiences, including Professor Mari, with their icons and names. - Picking one switches to it. The open one is marked in the list. - **When it folds:** only when the tabs overflow, on any screen size. This includes a narrow desktop window. It measures before paint, so the full row does not flash on rotation, resize or leaving fullscreen. - **Noodle's unread badge:** while folded, it moves onto the three-dot button and onto Noodle's row in the list, so the unread signal is not lost. - **Keyboard:** - The list follows its button in Tab order. - Picking an experience focuses its tab. - Escape returns focus to the button. - Only one of the bookmarks list and this list is open at a time. - **Shared dismiss logic:** the bookmarks menu's outside-tap and Escape handling became a shared `useHeaderMenuDismiss` hook used by both menus. The short-landscape height rule covers the new button too. - **Tests and copy:** - New e2e `e2e/home-browser-tab-menu.e2e.ts` on desktop, mobile Chromium and mobile WebKit. - The `core-flows` "installed Home destinations" test reaches its 39th destination through the menu instead of a scrolling row. - `mari-polish` regression assertions. - One new English string, `home.browser.tabMenu` ("Show all experiences"). ## Validation - [ ] `pnpm check` passes locally - [ ] 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 Run by the agents (not a substitute for the boxes above): - `pnpm check` and `pnpm localization:check` pass. The one lint warning, in `HomeProfessorMariChat.tsx:380`, is pre-existing. - These regressions pass: `mari-polish`, `capability-package-chat-controls`, `issue-sweep-5371-5375`, `open-issues`, `assigned-issues-5474-5502`, `tracker-gallery-ui`. - `e2e/home-browser-tab-menu.e2e.ts` passes 6/6 on desktop-chromium, mobile-chromium and mobile-webkit. The `home-browser-fullscreen` and `agent-apps-category` tests also pass, and so do the core-flows tests "installed Home destinations", "landscape phone keeps Home's compact chrome", "phone turned sideways keeps the app out from under its camera" and "sideways phone gives a package tab the screen while you type". - A four-lens review with adversarial verification confirmed five issues: focus loss, Tab order, two open menus, a one-frame flash, and an id namespace collision. All five are fixed and covered. Local CodeRabbit found nothing after the fixes. Still to do by hand: - [ ] On a phone with every experience installed, the tab row fits without scrolling and shows Home plus the three-dot button. - [ ] The list opens with every experience, and picking Story Writer opens it next to Home. - [ ] Rotate to landscape: the full row comes back if it fits and folds again in portrait. - [ ] Check the button and list in the light theme. - [ ] On desktop with few experiences, the row looks exactly as before. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Screenshots from the e2e run show: - the phone folded to Home plus the three dots; - the open list with icons, names and the Noodle badge; - Story Writer open beside Home; - the full row returning when it fits; - the desktop list hanging under the tab row. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 06:07: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#8315
No description provided.