[PR #8118] [MERGED] fix(home): keep phone tabs compact in landscape #8111

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

📋 Pull Request Information

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

Base: staging ← Head: fix/home-tabs-landscape


📝 Commits (3)

  • a5dbe4a test(home): cover compact phone tabs across rotation
  • f973748 fix(home): keep compact phone tabs through rotation
  • 23db4e7 test(home): align compact-tab guard with phone shell

📊 Changes

3 files changed (+126 additions, -15 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+104 -1)
📝 packages/client/src/components/chat/HomeBrowserHub.tsx (+19 -11)
📝 scripts/regressions/tracker-gallery-ui.regression.mjs (+3 -3)

📄 Description

Linked issue

Closes #8117

Why this change

Rotating a phone crosses the desktop width breakpoint and reveals every Home tab name. Mari requested the same compact tabs as portrait: only the selected tab has a visible name.

What changed

  • Use the existing phone-shell signal for Home, Professor and installed package tab labels and sizing. Inactive phone tabs retain their icons and accessible names in both orientations; desktop tabs retain visible names.
  • Keep enough width for the selected name and preserve horizontal scrolling when many installed tabs exceed the available space.
  • Update the existing source guard to require the phone-shell label and sizing rules for all three tab types.
  • Extend the existing browser regression with dark/light portrait → landscape → portrait checks, a desktop control and a 40-package overflow case that reaches and selects the final tab. Repair its invalid mock PNG and verify both fixture icons actually decode in WebKit.

Validation

Local macOS arm64 / Node 24.22.1:

  • Frozen dependency install and final pnpm check passed, including localization, type checks and the production build.
  • Three focused browser cases passed in desktop Chromium, mobile Chromium and mobile WebKit. They verify label visibility, inactive icon width, rail bounds, rotation, selection and scrolling to the final tab.
  • Final smoke suite: 7/7 passed.
  • The hosted Node shard exposed an existing source-string guard still expecting the old portrait-only classes. That failure was reproduced locally; both assertions now retain their three-component checks against the new phone-shell behavior. The focused Node regression, formatting and full pnpm check passed after this test-only correction.
  • Before-fix browser proof reproduced the visible inactive label in landscape. A separate overflow control reproduced clipping before the scrolling repair.

Fresh local CodeRabbit reviewed all three changed files. Its earlier clipping finding was reproduced and fixed. The final review has one pre-existing focus-color suggestion, retained unchanged because the same literal exists in the base Home tab and this request concerns layout. No unresolved substantive local finding.

Human verification tasks:

  • Manually rotate a physical phone and switch Home/package tabs.
  • Manually verify light and dark themes with the installed Life Sim and other real packages.
  • Manually swipe the tab strip with many packages installed.

Docs and release impact

No documentation, new UI copy, release metadata or storage-format changes.

UI evidence

Before/after screenshots are embedded in a downloadable HTML file. All four published PNG hashes match the original captures. Dark mobile Chromium, light mobile WebKit and desktop captures were visually inspected. These are synthetic package fixtures and browser emulation, not physical-device proof. Captures are from f9737489; the final follow-up changes only the static Node guard, and the application source blob is identical.


🔄 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/8118 **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:** `fix/home-tabs-landscape` --- ### 📝 Commits (3) - [`a5dbe4a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a5dbe4a5d4ffaa7f420360e16327a2e3a1a28353) test(home): cover compact phone tabs across rotation - [`f973748`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f9737489847b531a6722f19a56416c96c0b04e5a) fix(home): keep compact phone tabs through rotation - [`23db4e7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/23db4e724f4933aedb1f833af7185a4f5b407f43) test(home): align compact-tab guard with phone shell ### 📊 Changes **3 files changed** (+126 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+104 -1) 📝 `packages/client/src/components/chat/HomeBrowserHub.tsx` (+19 -11) 📝 `scripts/regressions/tracker-gallery-ui.regression.mjs` (+3 -3) </details> ### 📄 Description ## Linked issue Closes #8117 ## Why this change Rotating a phone crosses the desktop width breakpoint and reveals every Home tab name. Mari requested the same compact tabs as portrait: only the selected tab has a visible name. ## What changed - Use the existing phone-shell signal for Home, Professor and installed package tab labels and sizing. Inactive phone tabs retain their icons and accessible names in both orientations; desktop tabs retain visible names. - Keep enough width for the selected name and preserve horizontal scrolling when many installed tabs exceed the available space. - Update the existing source guard to require the phone-shell label and sizing rules for all three tab types. - Extend the existing browser regression with dark/light portrait → landscape → portrait checks, a desktop control and a 40-package overflow case that reaches and selects the final tab. Repair its invalid mock PNG and verify both fixture icons actually decode in WebKit. ## Validation Local macOS arm64 / Node 24.22.1: - Frozen dependency install and final `pnpm check` passed, including localization, type checks and the production build. - Three focused browser cases passed in desktop Chromium, mobile Chromium and mobile WebKit. They verify label visibility, inactive icon width, rail bounds, rotation, selection and scrolling to the final tab. - Final smoke suite: 7/7 passed. - The hosted Node shard exposed an existing source-string guard still expecting the old portrait-only classes. That failure was reproduced locally; both assertions now retain their three-component checks against the new phone-shell behavior. The focused Node regression, formatting and full `pnpm check` passed after this test-only correction. - Before-fix browser proof reproduced the visible inactive label in landscape. A separate overflow control reproduced clipping before the scrolling repair. Fresh local CodeRabbit reviewed all three changed files. Its earlier clipping finding was reproduced and fixed. The final review has one pre-existing focus-color suggestion, retained unchanged because the same literal exists in the base Home tab and this request concerns layout. No unresolved substantive local finding. Human verification tasks: - [ ] Manually rotate a physical phone and switch Home/package tabs. - [ ] Manually verify light and dark themes with the installed Life Sim and other real packages. - [ ] Manually swipe the tab strip with many packages installed. ## Docs and release impact No documentation, new UI copy, release metadata or storage-format changes. ## UI evidence [Before/after screenshots](https://gist.github.com/SpicyMarinara/6b93b7fb4ec72d6cac47faac4a47a940) are embedded in a downloadable HTML file. All four published PNG hashes match the original captures. Dark mobile Chromium, light mobile WebKit and desktop captures were visually inspected. These are synthetic package fixtures and browser emulation, not physical-device proof. Captures are from `f9737489`; the final follow-up changes only the static Node guard, and the application source blob is identical. --- <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:28 +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#8111
No description provided.