[PR #7018] [MERGED] UI/UX Improvements: match mobile surround to the topbar #7429

Closed
opened 2026-10-23 04:19:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/mobile-topbar-backing


📝 Commits (3)

  • c865ea9 docs: track mobile topbar backing follow-up
  • 4234d02 fix: match mobile backing to the active topbar surface
  • 4ec5050 test: wait for applied custom theme in backing regression

📊 Changes

6 files changed (+85 additions, -63 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 e2e/core-flows.e2e.ts (+64 -54)
📝 packages/client/index.html (+2 -2)
📝 packages/client/public/manifest.json (+2 -2)
📝 packages/client/src/App.tsx (+8 -5)
📝 packages/client/src/styles/globals.css (+7 -0)

📄 Description

Linked issue

Closes #7017

Why this change

The mobile status/safe-area and keyboard surround used the sidebar or page color, while the topbar used a different translucent surface. The mismatch was visible in both dark and light mode.

What changed

  • Reuse the existing canvas/background synchronization to flatten the active topbar surface for page backing and browser theme color. Keep the sidebar composite unchanged.
  • Use that same opaque color on the mobile topbar, including touch tablets and Gecko, so the topbar and surround also match over saved gradient backgrounds.
  • Keep authored gradients on app content while removing them from the exposed mobile body backing. Update the initial HTML/manifest dark fallback.
  • Extend the existing keyboard regression to check live dark → light → dark switching with the keyboard open, plus solid backgrounds, gradients, SillyTavern, and custom-theme tokens.

Validation

Passed on application commit 4234d024f; final 4ec5050c4 only corrects the custom-theme test readiness assertion:

  • pnpm install, pnpm check, pnpm version:check, final pnpm check:e2e-types, and focused formatting/diff checks.
  • Mobile keyboard regression: 2/2 passed in Chromium and WebKit. The initial run stopped because Playwright excludes style-element contents from visible-text matching; the check now waits for the applied CSS variable. No runtime changes were needed.
  • Mandatory pnpm smoke:ui: 7/7 passed on desktop Chromium.
  • Docker build passed; the resulting container returned HTTP 200 from /api/health. Production startup/reload passed in desktop Chromium, mobile Chromium, and mobile WebKit. The initial WebKit run reported a transient service-worker access-control page error on reload; the unchanged isolated retry passed, with normal error collection retained. The service-worker response was HTTP 200 and no source/config/container change was made.
  • Before/after visual proof: four baseline cases reproduced the mismatch; six final cases passed in mobile Chromium/WebKit and Firefox with mobile viewport/touch emulation. Original screenshot pixels match exactly across the topbar, safe-area spacer, and exposed backing. Live theme changes and content-gradient preservation passed.

Local CodeRabbit completed on all six changed files with zero findings. Independent source review identified the body-gradient overlay; it was fixed, reproduced in a browser diagnostic, and re-reviewed. Final runtime hashes match the visual-proof files. GitHub CodeRabbit posted one optional, trivial suggestion about malformed custom CSS; it was traced and left unchanged with a code-based reply because shipped tokens are defined and the mobile topbar shares the same fallback backing. No supported-theme defect was identified; CodeRabbit withdrew the finding, and the thread is resolved.

  • 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

Browser proof uses a real Roleplay screen, a 28 px safe-area spacer, and mocked keyboard viewport geometry; it does not draw native keyboard keys or OS status indicators. Manually verify the status-bar and keyboard-adjacent chrome on a physical phone in Safari/Chrome and an installed PWA, including light/dark switching and a representative custom theme.

This changes the web app's backing and theme-color metadata. Existing Apple standalone status-bar mode and native Android-wrapper colors are unchanged; arbitrary user CSS that paints a TopBar image is outside the shared token contract.

Docs and release impact

Added the user-facing changelog entry. No new copy/localization keys, version bump, or installation/update behavior changes.

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

UI evidence

Before/after gallery · Self-contained source and original embedded PNGs

The gallery compares baseline 2aaac7f7 with the exact four final runtime files, records their SHA-256 hashes, and documents fixture geometry and native-device limitations. No generated screenshots are committed.


🔄 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/7018 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/3/2026 **Status:** ✅ Merged **Merged:** 10/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/mobile-topbar-backing` --- ### 📝 Commits (3) - [`c865ea9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c865ea99736cead633bdd033378ea176478505cb) docs: track mobile topbar backing follow-up - [`4234d02`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4234d024f25a5c7a7f90c9ecad1752f068538a19) fix: match mobile backing to the active topbar surface - [`4ec5050`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4ec5050c4e4822b05c9438452e97b9ce70e0c50e) test: wait for applied custom theme in backing regression ### 📊 Changes **6 files changed** (+85 additions, -63 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `e2e/core-flows.e2e.ts` (+64 -54) 📝 `packages/client/index.html` (+2 -2) 📝 `packages/client/public/manifest.json` (+2 -2) 📝 `packages/client/src/App.tsx` (+8 -5) 📝 `packages/client/src/styles/globals.css` (+7 -0) </details> ### 📄 Description ## Linked issue Closes #7017 ## Why this change The mobile status/safe-area and keyboard surround used the sidebar or page color, while the topbar used a different translucent surface. The mismatch was visible in both dark and light mode. ## What changed - Reuse the existing canvas/background synchronization to flatten the active topbar surface for page backing and browser theme color. Keep the sidebar composite unchanged. - Use that same opaque color on the mobile topbar, including touch tablets and Gecko, so the topbar and surround also match over saved gradient backgrounds. - Keep authored gradients on app content while removing them from the exposed mobile body backing. Update the initial HTML/manifest dark fallback. - Extend the existing keyboard regression to check live dark → light → dark switching with the keyboard open, plus solid backgrounds, gradients, SillyTavern, and custom-theme tokens. ## Validation Passed on application commit `4234d024f`; final `4ec5050c4` only corrects the custom-theme test readiness assertion: - `pnpm install`, `pnpm check`, `pnpm version:check`, final `pnpm check:e2e-types`, and focused formatting/diff checks. - Mobile keyboard regression: 2/2 passed in Chromium and WebKit. The initial run stopped because Playwright excludes style-element contents from visible-text matching; the check now waits for the applied CSS variable. No runtime changes were needed. - Mandatory `pnpm smoke:ui`: 7/7 passed on desktop Chromium. - Docker build passed; the resulting container returned HTTP 200 from `/api/health`. Production startup/reload passed in desktop Chromium, mobile Chromium, and mobile WebKit. The initial WebKit run reported a transient service-worker access-control page error on reload; the unchanged isolated retry passed, with normal error collection retained. The service-worker response was HTTP 200 and no source/config/container change was made. - Before/after visual proof: four baseline cases reproduced the mismatch; six final cases passed in mobile Chromium/WebKit and Firefox with mobile viewport/touch emulation. Original screenshot pixels match exactly across the topbar, safe-area spacer, and exposed backing. Live theme changes and content-gradient preservation passed. Local CodeRabbit completed on all six changed files with zero findings. Independent source review identified the body-gradient overlay; it was fixed, reproduced in a browser diagnostic, and re-reviewed. Final runtime hashes match the visual-proof files. GitHub CodeRabbit posted one optional, trivial suggestion about malformed custom CSS; it was traced and left unchanged with a code-based reply because shipped tokens are defined and the mobile topbar shares the same fallback backing. No supported-theme defect was identified; [CodeRabbit withdrew the finding](https://github.com/Pasta-Devs/Marinara-Engine/pull/7018#discussion_r4173194996), and the thread is resolved. - [ ] `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 Browser proof uses a real Roleplay screen, a 28 px safe-area spacer, and mocked keyboard viewport geometry; it does not draw native keyboard keys or OS status indicators. Manually verify the status-bar and keyboard-adjacent chrome on a physical phone in Safari/Chrome and an installed PWA, including light/dark switching and a representative custom theme. This changes the web app's backing and theme-color metadata. Existing Apple standalone status-bar mode and native Android-wrapper colors are unchanged; arbitrary user CSS that paints a TopBar image is outside the shared token contract. ## Docs and release impact Added the user-facing changelog entry. No new copy/localization keys, version bump, or installation/update behavior changes. - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence [Before/after gallery](https://gist.githack.com/SpicyMarinara/e8c053cb6c382e2d83304cf97b6e4389/raw/c575a3f545819f9ddac6532ee58ec5088ffa14e6/gallery-public.html) · [Self-contained source and original embedded PNGs](https://gist.github.com/SpicyMarinara/e8c053cb6c382e2d83304cf97b6e4389) The gallery compares baseline `2aaac7f7` with the exact four final runtime files, records their SHA-256 hashes, and documents fixture geometry and native-device limitations. No generated screenshots are committed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:19:41 +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#7429
No description provided.