mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8069] [MERGED] fix(home): keep phone chrome compact and bookmarks Home-only #8086
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8086
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
c0f82e0fix(home): keep phone chrome compact and bookmarks Home-only8f6e027fix(mari): paint Professor Mari's window and page in Home's own colourede6cf5test(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
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
smwidth (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).What changed
--marinara-home-page-wash, now paints both Home and Mari, so they can't drift apart again.docs/home/welcome.mddescribes the URL bar as desktop-only, bookmarks as Home-only, and Browser chrome as having one switch.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks, all on head
ede6cf56cunless noted:pnpm checkexited 0.node scripts/run-regressions.mjs --filter <name>passed formari-polish,open-issues,command-centerandtracker-gallery-ui.pnpm regression:ui e2e/core-flows.e2e.ts --project=desktop-chromium --project=mobile-chromium --project=mobile-webkitran the Home specs: 18 passed, 2 skipped by design, 1 failed. The failure ishome browser hub scales cleanly and opens FAQ as a bookmark windowon 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 basestagingf9587086a(mobile-webkit).pnpm regression:ui e2e/ui-store-foreign-write.e2e.ts --project=desktop-chromium: 5 passed.pnpm smoke:ui: 7 passed locally on8f6e0275e. On headede6cf56c, CI'spnpm-validate(which runs the smoke suite) passed, and the changed home-shell smoke test passed locally on all three projects.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.Professor Mari's window and page share Home's backgroundcompares 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'smari.cssit fails, with a channel gap of 9 on desktop and 10 on WebKit (tolerance 4).Manual verification notes
Still needs a human, on a real device:
Review notes
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 oneglobals.cssuses 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.var(--background)over the wash." It doesn't, and two independent checks agreed. Tailwind emits that class asbackground-image: radial-gradient(…), …, var(--background). A color isn't a valid image layer, so the declaration is invalid at computed-value time:background-imagefalls back tononeand 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.staging. If someone fixes that class later, Home's base color changes, and the new pixel test will flag the mismatch with Mari.--background, not the visible Home color. That's fixed in8f6e0275e. Its tutorial findings were dismissed: they describe the behavior portrait phones already had, now extended to landscape.ui-store-foreign-write.e2e.ts).Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/home/welcome.mdchanged; 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.