[PR #8082] [MERGED] fix(home): give package tabs the room on a sideways phone #8089

Closed
opened 2026-10-24 04:10:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: claude/landscape-phone-package-room


📝 Commits (1)

  • 34e9555 fix(home): give package tabs the room on a sideways phone

📊 Changes

6 files changed (+177 additions, -8 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+114 -0)
📝 packages/client/src/components/chat/HomeBrowserHub.tsx (+2 -1)
📝 packages/client/src/components/layout/AppShell.tsx (+2 -1)
📝 packages/client/src/components/layout/PersonalExtensionContributionsMenu.tsx (+1 -1)
📝 packages/client/src/components/layout/TopBar.tsx (+5 -4)
📝 packages/client/src/styles/globals.css (+53 -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

No issue was opened. The maintainer reported this directly from an iPhone, with screenshots, and asked for a fix. Companion package PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1585 (Gacha Forge 1.8.14).

Why this change

On an iPhone turned sideways (about 874×402), the maintainer couldn't play Gacha Forge:

  • The TopBar and Home's tab strip (Home, Professor, Life Sim, Gacha Forge, Noodle, Slurp) took about 95px of the 402px height.
  • Tapping a field brought up the keyboard and iOS's form bar, which left roughly 150–190px, and the Engine's bars kept most of it. The page also zoomed in, so the bars looked enlarged.
    • The zoom comes from Gacha Forge's ~8px fields. The companion PR fixes that.
    • The Engine part is that nothing ever made room for a package while you type in it.

Gacha Forge's gutters and squashed setup screen are package-owned and fixed in the companion PR.

What changed

  • On a phone turned sideways, the Marinara Engine wordmark and version are hidden next to the Home tabs, as on a portrait phone; the logo stays. Top-bar buttons there are 38px instead of 44px, so the bars fit the short screen.
  • On touch screens in short landscape (at least 640px wide, at most 500px tall), the TopBar and Home's tab strip are shorter, about 74px together instead of about 95px. Desktop, tablets, portrait phones and short desktop windows are unchanged.
  • While you type in a package tab on a sideways phone, the TopBar and Home's tab strip step aside. This covers Gacha Forge, Life Sim, Noodle, Slurp and any other package tab, whenever the on-screen keyboard is open. They come back when you leave the field or the keyboard closes.
  • Panels that open under the TopBar on phones follow its actual height instead of assuming 3rem: the chat list, right panel, detail sheet and extension menu.
  • Text fields in the Engine stay at least 16px on touch screens even with Font Size set to 12 or 14, so iPhone no longer zooms into them.
  • Professor Mari's screen-reader status announcement now sits outside the TopBar, so hiding the bar while you type never silences it.

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

Agent-run checks, all on head 34e9555db:

  • pnpm check exited 0.
  • node scripts/run-regressions.mjs --filter <name> passed for music-dj-and-floating-ui, tracker-gallery-ui, mari-polish, open-issues and command-center.
  • pnpm regression:ui e2e/core-flows.e2e.ts on desktop-chromium, mobile-chromium and mobile-webkit, covering home shell, installed Home destinations, the landscape chrome, typing in a package tab, and mobile topbar reachability: 12 passed, 3 skipped by design.
  • pnpm smoke:ui: 7 passed.
  • New and extended e2e coverage:
    • a landscape phone keeps Home's compact chrome (874×402). The TopBar is at most 40px, the tab row at most 36px, and every top-bar button sits inside the bar. The chat list opens flush under the shorter bar. At 600×360 the full bar comes back.
    • a sideways phone gives a package tab the screen while you type. A fixture package has its field in a shadow root, like Gacha Forge. With the keyboard simulated by a height drop, both bars hide and the field stays focused and in view. They return when focus leaves the package and when the keyboard closes.
    • Negative control: with the hide rule removed, that test fails.
  • e2e/omnibar-usability-decisions.e2e.ts, e2e/topbar-accessibility.e2e.ts and e2e/phone-toast-headers.e2e.ts on both mobile projects: everything passed except six tests, which fail identically on unmodified staging 2321d536e, so they predate this PR. The six are UX-32, UX-14, UX-18 and "Search lists none of Professor Mari's changes" on mobile-webkit, plus "keep Inventory Close clickable while a persistent toast is visible" on both mobile projects.
  • In the real shell on the iPhone WebKit profile, with the companion Gacha Forge 1.8.14 bundle served locally and its game routes stubbed: the compact bars render, the setup wizard fills the width, and with a simulated keyboard the bars step aside while the focused field stays in view at 16px.

Manual verification notes

Still needs a human:

  • Manually verify on a real iPhone (Safari and the home-screen app) in landscape: the top bar and Home tabs are shorter, and tabs and bookmarks still work.
  • Manually verify on that iPhone that typing in Gacha Forge (with 1.8.14) hides both bars while the keyboard is up, and that they return when you dismiss it.
  • Manually verify rotating the phone while typing: the bars come back after rotation.
  • Manually verify on Android Chrome in landscape: the same behaviour, and a portrait phone keeps the full bar when the keyboard opens.
  • Manually verify that desktop, iPad and a portrait phone look unchanged.
  • Manually verify with Font Size 12/14 on an iPhone: Engine fields no longer zoom on tap.

Review notes

  • Local CodeRabbit: two runs, 0 findings.
  • A local multi-pass review with adversarial verification confirmed two minor Engine findings, both fixed here:
    • The compact block also matched layouts under 640px wide. That includes an upright Android phone whose keyboard shrinks the page into "landscape", where an existing 44px !important rule overflowed the shorter bar. Fixed with a min-width: 640px floor.
    • Hiding the bar would also have hidden Mari's aria-live status. The live region moved outside the bar.
  • Rejected:
    • A rotation-baseline concern targets unchanged keyboard-detector code.
    • The tap-target trade-off is deliberate: 38px buttons, still above the existing 36px floor; portrait phones keep 44px.
    • A sync-race concern in the landscape test doesn't arise under CI's one-worker shards.
  • Suggested follow-up, not done here: document for package authors in docs/development/optional-agent-packages.md that Engine CSS stops at shadow roots, so package fields must be at least 16px on touch screens. That would need a [docs-i18n] follow-up.

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)

No docs or version changes.

UI evidence (if applicable)

Screenshots were taken locally with Playwright (874×402 compact chrome, Gacha Forge in the shell, simulated keyboard) but are not attached. Please use the manual checks above.

🤖 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/8082 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `claude/landscape-phone-package-room` --- ### 📝 Commits (1) - [`34e9555`](https://github.com/Pasta-Devs/Marinara-Engine/commit/34e9555dba5102b0f7bedc86bd9446403dc70d9f) fix(home): give package tabs the room on a sideways phone ### 📊 Changes **6 files changed** (+177 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+114 -0) 📝 `packages/client/src/components/chat/HomeBrowserHub.tsx` (+2 -1) 📝 `packages/client/src/components/layout/AppShell.tsx` (+2 -1) 📝 `packages/client/src/components/layout/PersonalExtensionContributionsMenu.tsx` (+1 -1) 📝 `packages/client/src/components/layout/TopBar.tsx` (+5 -4) 📝 `packages/client/src/styles/globals.css` (+53 -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 No issue was opened. The maintainer reported this directly from an iPhone, with screenshots, and asked for a fix. Companion package PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1585 (Gacha Forge 1.8.14). ## Why this change On an iPhone turned sideways (about 874×402), the maintainer couldn't play Gacha Forge: - The TopBar and Home's tab strip (Home, Professor, Life Sim, Gacha Forge, Noodle, Slurp) took about 95px of the 402px height. - Tapping a field brought up the keyboard and iOS's form bar, which left roughly 150–190px, and the Engine's bars kept most of it. The page also zoomed in, so the bars looked enlarged. - The zoom comes from Gacha Forge's ~8px fields. The companion PR fixes that. - The Engine part is that nothing ever made room for a package while you type in it. Gacha Forge's gutters and squashed setup screen are package-owned and fixed in the companion PR. ## What changed - **On a phone turned sideways, the Marinara Engine wordmark and version are hidden next to the Home tabs**, as on a portrait phone; the logo stays. **Top-bar buttons there are 38px instead of 44px**, so the bars fit the short screen. - On touch screens in short landscape (at least 640px wide, at most 500px tall), the TopBar and Home's tab strip are shorter, about 74px together instead of about 95px. Desktop, tablets, portrait phones and short desktop windows are unchanged. - **While you type in a package tab on a sideways phone**, the TopBar and Home's tab strip step aside. This covers Gacha Forge, Life Sim, Noodle, Slurp and any other package tab, whenever the on-screen keyboard is open. They come back when you leave the field or the keyboard closes. - Panels that open under the TopBar on phones follow its actual height instead of assuming 3rem: the chat list, right panel, detail sheet and extension menu. - Text fields in the Engine stay at least 16px on touch screens even with Font Size set to 12 or 14, so iPhone no longer zooms into them. - Professor Mari's screen-reader status announcement now sits outside the TopBar, so hiding the bar while you type never silences it. ## 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` Agent-run checks, all on head `34e9555db`: - `pnpm check` exited 0. - `node scripts/run-regressions.mjs --filter <name>` passed for `music-dj-and-floating-ui`, `tracker-gallery-ui`, `mari-polish`, `open-issues` and `command-center`. - `pnpm regression:ui e2e/core-flows.e2e.ts` on desktop-chromium, mobile-chromium and mobile-webkit, covering home shell, installed Home destinations, the landscape chrome, typing in a package tab, and mobile topbar reachability: 12 passed, 3 skipped by design. - `pnpm smoke:ui`: 7 passed. - New and extended e2e coverage: - **`a landscape phone keeps Home's compact chrome`** (874×402). The TopBar is at most 40px, the tab row at most 36px, and every top-bar button sits inside the bar. The chat list opens flush under the shorter bar. At 600×360 the full bar comes back. - **`a sideways phone gives a package tab the screen while you type`.** A fixture package has its field in a shadow root, like Gacha Forge. With the keyboard simulated by a height drop, both bars hide and the field stays focused and in view. They return when focus leaves the package and when the keyboard closes. - **Negative control:** with the hide rule removed, that test fails. - `e2e/omnibar-usability-decisions.e2e.ts`, `e2e/topbar-accessibility.e2e.ts` and `e2e/phone-toast-headers.e2e.ts` on both mobile projects: everything passed except six tests, which fail identically on unmodified `staging` `2321d536e`, so they predate this PR. The six are UX-32, UX-14, UX-18 and "Search lists none of Professor Mari's changes" on mobile-webkit, plus "keep Inventory Close clickable while a persistent toast is visible" on both mobile projects. - In the real shell on the iPhone WebKit profile, with the companion Gacha Forge 1.8.14 bundle served locally and its game routes stubbed: the compact bars render, the setup wizard fills the width, and with a simulated keyboard the bars step aside while the focused field stays in view at 16px. ### Manual verification notes Still needs a human: - Manually verify on a real iPhone (Safari and the home-screen app) in landscape: the top bar and Home tabs are shorter, and tabs and bookmarks still work. - Manually verify on that iPhone that typing in Gacha Forge (with 1.8.14) hides both bars while the keyboard is up, and that they return when you dismiss it. - Manually verify rotating the phone while typing: the bars come back after rotation. - Manually verify on Android Chrome in landscape: the same behaviour, and a portrait phone keeps the full bar when the keyboard opens. - Manually verify that desktop, iPad and a portrait phone look unchanged. - Manually verify with Font Size 12/14 on an iPhone: Engine fields no longer zoom on tap. ## Review notes - Local CodeRabbit: two runs, 0 findings. - A local multi-pass review with adversarial verification confirmed two minor Engine findings, both fixed here: - The compact block also matched layouts under 640px wide. That includes an upright Android phone whose keyboard shrinks the page into "landscape", where an existing 44px `!important` rule overflowed the shorter bar. Fixed with a `min-width: 640px` floor. - Hiding the bar would also have hidden Mari's `aria-live` status. The live region moved outside the bar. - Rejected: - A rotation-baseline concern targets unchanged keyboard-detector code. - The tap-target trade-off is deliberate: 38px buttons, still above the existing 36px floor; portrait phones keep 44px. - A sync-race concern in the landscape test doesn't arise under CI's one-worker shards. - Suggested follow-up, not done here: document for package authors in `docs/development/optional-agent-packages.md` that Engine CSS stops at shadow roots, so package fields must be at least 16px on touch screens. That would need a `[docs-i18n]` follow-up. ## 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) No docs or version changes. ## UI evidence (if applicable) Screenshots were taken locally with Playwright (874×402 compact chrome, Gacha Forge in the shell, simulated keyboard) but are not attached. Please use the manual checks above. 🤖 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-24 04:10:17 +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#8089
No description provided.