[PR #8069] [MERGED] fix(home): keep phone chrome compact and bookmarks Home-only #8086

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

📋 Pull Request Information

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

Base: staging ← Head: claude/home-browser-mobile-chrome


📝 Commits (3)

  • c0f82e0 fix(home): keep phone chrome compact and bookmarks Home-only
  • 8f6e027 fix(mari): paint Professor Mari's window and page in Home's own colour
  • ede6cf5 test(home): keep the phone chrome's opacity check on mobile

📊 Changes

11 files changed (+206 additions, -140 deletions)

View changed files

📝 docs/home/welcome.md (+3 -3)
📝 e2e/core-flows.e2e.ts (+145 -30)
📝 e2e/ui-store-foreign-write.e2e.ts (+0 -2)
📝 packages/client/src/components/chat/HomeBrowserHub.tsx (+33 -46)
📝 packages/client/src/components/onboarding/OnboardingTutorial.tsx (+5 -4)
📝 packages/client/src/localization/locales/en.json (+1 -5)
📝 packages/client/src/stores/ui.store.ts (+2 -22)
📝 packages/client/src/styles/globals.css (+2 -0)
📝 packages/client/src/styles/mari.css (+4 -7)
📝 scripts/regressions/mari-polish.regression.ts (+11 -9)
📝 scripts/regressions/open-issues.regression.ts (+0 -12)

📄 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 and asked for a fix in one PR. Follow-up for translated docs: #8072.

Why this change

  • When you turn a phone to landscape, the Home browser decided "mobile or desktop" with Tailwind's sm width (640px). A landscape phone (~874px wide) passed that check. Home then drew the desktop fake URL bar (marinara/gacha-forge) and the full bookmarks strip, which took half the screen. The rest of the app already treats that phone as mobile (its top bar is the phone one).
  • Bookmarks also showed on package tabs such as Life Sim, Gacha Forge, Noodle and Slurp. The maintainer wants them on the Home tab only, on desktop and on mobile.
  • Professor Mari's window (desktop) and her full-screen page (phone) used a purple-tinted background. That didn't match the Home page.

What changed

  • You can no longer show bookmarks on tabs other than Home. The two switches Other-tab bookmarks (desktop) and Other-tab bookmarks (mobile) are gone from Home Widgets → Browser chrome. The maintainer asked for this. Saved values for them are simply ignored and drop out on the next settings save.
  • On phones and tablets, in portrait or landscape, Home never shows the fake URL bar or the bookmarks strip. Bookmarks always sit behind the bookmark button at the left of the tabs. On wide screens that button opens a compact list under itself instead of a full-width sheet. Browser windows under 768px wide behave the same way.
  • Bookmarks appear only on the Home tab: the strip on desktop, and the bookmark button on phones. Switching to a package tab hides them.
  • Professor Mari's window and her full-screen page now use the same background as the Home page, in dark and light themes and with a custom app background. One shared token, --marinara-home-page-wash, now paints both Home and Mari, so they can't drift apart again.
  • The first-run tutorial's "Ask Me Where Things Are" step uses its phone text ("Pull down from the top bar…") on a landscape phone too, since there is no URL bar to point at.
  • The Show URL bar help text now says the bar is for desktop. docs/home/welcome.md describes the URL bar as desktop-only, bookmarks as Home-only, and Browser chrome as having one switch.

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 ede6cf56c unless noted:

  • pnpm check exited 0.
  • node scripts/run-regressions.mjs --filter <name> passed for mari-polish, open-issues, command-center and tracker-gallery-ui.
  • pnpm regression:ui e2e/core-flows.e2e.ts --project=desktop-chromium --project=mobile-chromium --project=mobile-webkit ran the Home specs: 18 passed, 2 skipped by design, 1 failed. The failure is home browser hub scales cleanly and opens FAQ as a bookmark window on mobile-webkit, and this PR did not cause it. The test hard-codes "Press Ctrl+K" in Professor Mari's Home widget text, but the iPhone profile shows "Press ⌘+K" (formatShortcutKey("Mod") on an Apple platform). This diff doesn't touch that copy or that assertion. Confirmed pre-existing: the same spec fails the same way on base staging f9587086a (mobile-webkit).
  • pnpm regression:ui e2e/ui-store-foreign-write.e2e.ts --project=desktop-chromium: 5 passed.
  • pnpm smoke:ui: 7 passed locally on 8f6e0275e. On head ede6cf56c, CI's pnpm-validate (which runs the smoke suite) passed, and the changed home-shell smoke test passed locally on all three projects.
  • New e2e a landscape phone keeps Home's compact chrome (874×402, touch). The app is in its phone shell; no URL bar or bookmarks strip renders; the bookmark button opens a menu narrower than half the screen; Widgets opens from it.
  • New e2e Professor Mari's window and page share Home's background compares screenshot pixels of Home's page and Mari's page in dark and light. It passed 3/3 on each project with --repeat-each=3. Negative control: with staging's mari.css it fails, with a channel gap of 9 on desktop and 10 on WebKit (tolerance 4).
  • Updated e2e: mobile projects no longer expect the URL bar, and the Noodle-tab test checks that no bookmarks render on a package tab.

Manual verification notes

Still needs a human, on a real device:

  • Manually verify on a real phone, portrait and landscape, that Home shows only the bookmark button (no URL bar, no bookmarks strip) and that the button opens the list.
  • Manually verify that the bookmark button and desktop strip disappear on Life Sim, Gacha Forge, Noodle and Slurp, and come back on Home.
  • Manually verify on desktop that the URL bar and bookmarks strip still show on Home, and that Home Widgets → Browser chrome lists only Show URL bar.
  • Manually verify that Professor Mari's window (desktop) and full-screen page (phone) match the Home page background in dark and light themes, and with a custom app background color.
  • Manually verify the first-run tutorial on a landscape phone (Settings → replay tutorial): the search step shows the pull-down text, and the bookmark steps show a centered card.

Review notes

  • Local CodeRabbit: three runs. One valid finding was fixed: the smoke test kept its chrome-opacity check on mobile. Two were dismissed (the second came up twice):
    • "Use isMobileShellViewport() (with its panel-width fallback) instead of the media query." Home follows the device and narrow-window query (MOBILE_SHELL_MEDIA_QUERY), the same one globals.css uses for the phone chrome. With a mouse, a 768–1343px window keeps the URL bar, as it did before this PR. The pull-down gesture is disabled for mouse input in the phone shell (use-pull-to-open-omnibar.ts), so removing the bar there would leave mouse users only Ctrl/Cmd+K and long-press on Home.
    • "Home's page body paints an opaque var(--background) over the wash." It doesn't, and two independent checks agreed. Tailwind emits that class as background-image: radial-gradient(…), …, var(--background). A color isn't a valid image layer, so the declaration is invalid at computed-value time: background-image falls back to none and the color stays transparent (probed in the browser). The visible Home color is therefore the frame wash over --background, which is what Mari now paints. The pixel e2e passes, and it fails by 9–10 levels against the old CSS.
  • Pre-existing, not changed here: for the same reason, Home's intended radial accent glows (cyan, pink, orange) never render on staging. If someone fixes that class later, Home's base color changes, and the new pixel test will flag the mismatch with Mari.
  • A local multi-pass review (layout, settings removal, Mari background, tests/tutorial) found the original Mari fix incomplete: it matched --background, not the visible Home color. That's fixed in 8f6e0275e. Its tutorial findings were dismissed: they describe the behavior portrait phones already had, now extended to landscape.
  • The UI store version is not bumped on purpose. Bumping it would ignore the v103 backup copy and expose users to old v74 package copies of the store (ui-store-foreign-write.e2e.ts).

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)

docs/home/welcome.md changed; translations are tracked in #8072. No version bump.

UI evidence (if applicable)

Screenshots were taken locally with Playwright (landscape 874×402 with the bookmark menu open, desktop Home, desktop Mari window), but they are not attached here. Please check the manual items 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/8069 **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/home-browser-mobile-chrome` --- ### 📝 Commits (3) - [`c0f82e0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c0f82e03b6b587091c682e6ef0416cb70d036441) fix(home): keep phone chrome compact and bookmarks Home-only - [`8f6e027`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8f6e0275e9e25cc4e7ebeafbc1bfc232d3d0df1c) fix(mari): paint Professor Mari's window and page in Home's own colour - [`ede6cf5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ede6cf56cd4435e7ab21abbcbc1c7a9f26d68dd3) test(home): keep the phone chrome's opacity check on mobile ### 📊 Changes **11 files changed** (+206 additions, -140 deletions) <details> <summary>View changed files</summary> 📝 `docs/home/welcome.md` (+3 -3) 📝 `e2e/core-flows.e2e.ts` (+145 -30) 📝 `e2e/ui-store-foreign-write.e2e.ts` (+0 -2) 📝 `packages/client/src/components/chat/HomeBrowserHub.tsx` (+33 -46) 📝 `packages/client/src/components/onboarding/OnboardingTutorial.tsx` (+5 -4) 📝 `packages/client/src/localization/locales/en.json` (+1 -5) 📝 `packages/client/src/stores/ui.store.ts` (+2 -22) 📝 `packages/client/src/styles/globals.css` (+2 -0) 📝 `packages/client/src/styles/mari.css` (+4 -7) 📝 `scripts/regressions/mari-polish.regression.ts` (+11 -9) 📝 `scripts/regressions/open-issues.regression.ts` (+0 -12) </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 and asked for a fix in one PR. Follow-up for translated docs: #8072. ## Why this change - When you turn a phone to landscape, the Home browser decided "mobile or desktop" with Tailwind's `sm` width (640px). A landscape phone (~874px wide) passed that check. Home then drew the desktop fake URL bar (`marinara/gacha-forge`) and the full bookmarks strip, which took half the screen. The rest of the app already treats that phone as mobile (its top bar is the phone one). - Bookmarks also showed on package tabs such as Life Sim, Gacha Forge, Noodle and Slurp. The maintainer wants them on the Home tab only, on desktop and on mobile. - Professor Mari's window (desktop) and her full-screen page (phone) used a purple-tinted background. That didn't match the Home page. ## What changed - **You can no longer show bookmarks on tabs other than Home.** The two switches **Other-tab bookmarks (desktop)** and **Other-tab bookmarks (mobile)** are gone from Home Widgets → Browser chrome. The maintainer asked for this. Saved values for them are simply ignored and drop out on the next settings save. - On phones and tablets, in portrait or landscape, Home never shows the fake URL bar or the bookmarks strip. Bookmarks always sit behind the bookmark button at the left of the tabs. On wide screens that button opens a compact list under itself instead of a full-width sheet. Browser windows under 768px wide behave the same way. - Bookmarks appear only on the Home tab: the strip on desktop, and the bookmark button on phones. Switching to a package tab hides them. - Professor Mari's window and her full-screen page now use the same background as the Home page, in dark and light themes and with a custom app background. One shared token, `--marinara-home-page-wash`, now paints both Home and Mari, so they can't drift apart again. - The first-run tutorial's "Ask Me Where Things Are" step uses its phone text ("Pull down from the top bar…") on a landscape phone too, since there is no URL bar to point at. - The **Show URL bar** help text now says the bar is for desktop. `docs/home/welcome.md` describes the URL bar as desktop-only, bookmarks as Home-only, and Browser chrome as having one switch. ## 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 `ede6cf56c` unless noted: - `pnpm check` exited 0. - `node scripts/run-regressions.mjs --filter <name>` passed for `mari-polish`, `open-issues`, `command-center` and `tracker-gallery-ui`. - `pnpm regression:ui e2e/core-flows.e2e.ts --project=desktop-chromium --project=mobile-chromium --project=mobile-webkit` ran the Home specs: 18 passed, 2 skipped by design, 1 failed. The failure is `home browser hub scales cleanly and opens FAQ as a bookmark window` on **mobile-webkit**, and this PR did not cause it. The test hard-codes "Press Ctrl+K" in Professor Mari's Home widget text, but the iPhone profile shows "Press ⌘+K" (`formatShortcutKey("Mod")` on an Apple platform). This diff doesn't touch that copy or that assertion. **Confirmed pre-existing:** the same spec fails the same way on base `staging` `f9587086a` (mobile-webkit). - `pnpm regression:ui e2e/ui-store-foreign-write.e2e.ts --project=desktop-chromium`: 5 passed. - `pnpm smoke:ui`: 7 passed locally on `8f6e0275e`. On head `ede6cf56c`, CI's `pnpm-validate` (which runs the smoke suite) passed, and the changed home-shell smoke test passed locally on all three projects. - New e2e `a landscape phone keeps Home's compact chrome` (874×402, touch). The app is in its phone shell; no URL bar or bookmarks strip renders; the bookmark button opens a menu narrower than half the screen; Widgets opens from it. - New e2e `Professor Mari's window and page share Home's background` compares screenshot pixels of Home's page and Mari's page in dark and light. It passed 3/3 on each project with `--repeat-each=3`. Negative control: with staging's `mari.css` it fails, with a channel gap of 9 on desktop and 10 on WebKit (tolerance 4). - Updated e2e: mobile projects no longer expect the URL bar, and the Noodle-tab test checks that no bookmarks render on a package tab. ### Manual verification notes Still needs a human, on a real device: - Manually verify on a real phone, portrait and landscape, that Home shows only the bookmark button (no URL bar, no bookmarks strip) and that the button opens the list. - Manually verify that the bookmark button and desktop strip disappear on Life Sim, Gacha Forge, Noodle and Slurp, and come back on Home. - Manually verify on desktop that the URL bar and bookmarks strip still show on Home, and that Home Widgets → Browser chrome lists only **Show URL bar**. - Manually verify that Professor Mari's window (desktop) and full-screen page (phone) match the Home page background in dark and light themes, and with a custom app background color. - Manually verify the first-run tutorial on a landscape phone (Settings → replay tutorial): the search step shows the pull-down text, and the bookmark steps show a centered card. ## Review notes - Local CodeRabbit: three runs. One valid finding was fixed: the smoke test kept its chrome-opacity check on mobile. Two were dismissed (the second came up twice): - **"Use `isMobileShellViewport()` (with its panel-width fallback) instead of the media query."** Home follows the device and narrow-window query (`MOBILE_SHELL_MEDIA_QUERY`), the same one `globals.css` uses for the phone chrome. With a mouse, a 768–1343px window keeps the URL bar, as it did before this PR. The pull-down gesture is disabled for mouse input in the phone shell (`use-pull-to-open-omnibar.ts`), so removing the bar there would leave mouse users only Ctrl/Cmd+K and long-press on Home. - **"Home's page body paints an opaque `var(--background)` over the wash."** It doesn't, and two independent checks agreed. Tailwind emits that class as `background-image: radial-gradient(…), …, var(--background)`. A color isn't a valid image layer, so the declaration is invalid at computed-value time: `background-image` falls back to `none` and the color stays transparent (probed in the browser). The visible Home color is therefore the frame wash over `--background`, which is what Mari now paints. The pixel e2e passes, and it fails by 9–10 levels against the old CSS. - Pre-existing, not changed here: for the same reason, Home's intended radial accent glows (cyan, pink, orange) never render on `staging`. If someone fixes that class later, Home's base color changes, and the new pixel test will flag the mismatch with Mari. - A local multi-pass review (layout, settings removal, Mari background, tests/tutorial) found the original Mari fix incomplete: it matched `--background`, not the visible Home color. That's fixed in `8f6e0275e`. Its tutorial findings were dismissed: they describe the behavior portrait phones already had, now extended to landscape. - The UI store version is not bumped on purpose. Bumping it would ignore the v103 backup copy and expose users to old v74 package copies of the store (`ui-store-foreign-write.e2e.ts`). ## 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) `docs/home/welcome.md` changed; translations are tracked in #8072. No version bump. ## UI evidence (if applicable) Screenshots were taken locally with Playwright (landscape 874×402 with the bookmark menu open, desktop Home, desktop Mari window), but they are not attached here. Please check the manual items 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:15 +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#8086
No description provided.