[PR #7012] [MERGED] UI/UX Improvements: unify sidebar and mobile surfaces #7427

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

📋 Pull Request Information

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

Base: staging ← Head: fix/unified-sidebar-mobile-surfaces


📝 Commits (5)

  • dc039eb docs: track sidebar and mobile surface follow-up
  • 0d3d5b5 fix(ui): unify sidebar settings and mobile surfaces
  • f660df9 Merge remote-tracking branch 'origin/staging' into fix/unified-sidebar-mobile-surfaces
  • 6d51be6 fix(ui): preserve accent hover feedback in settings
  • 308246a test(ui): allow cold shell and expanded keyboard proof to settle

📊 Changes

18 files changed (+219 additions, -54 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 DESIGN.md (+3 -3)
📝 e2e/accent-pulse.e2e.ts (+24 -1)
📝 e2e/core-flows.e2e.ts (+71 -1)
📝 e2e/world-tracker-controls.e2e.ts (+41 -0)
📝 packages/client/index.html (+5 -2)
📝 packages/client/public/manifest.json (+2 -2)
📝 packages/client/src/App.tsx (+24 -2)
📝 packages/client/src/components/layout/AppShell.tsx (+2 -2)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+1 -1)
📝 packages/client/src/components/layout/RightPanel.tsx (+1 -1)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+20 -20)
📝 packages/client/src/components/panels/settings/BackgroundPicker.tsx (+2 -2)
📝 packages/client/src/components/panels/settings/PersonalExtensionsSettings.tsx (+2 -2)
📝 packages/client/src/components/panels/settings/SettingControls.tsx (+2 -2)
📝 packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx (+1 -1)
📝 packages/client/src/features/tracker-panel/components/TrackerSidebarHeader.tsx (+2 -2)
📝 packages/client/src/styles/globals.css (+14 -10)

📄 Description

Linked issue

Closes #7011

Why this change

Sidebar title bars, item action trays, and individual settings still showed blue or mismatched backgrounds after the first UI pass. Mobile screen edges retained the old blue backing, and Refresh App did not match neighboring settings buttons.

What changed

  • Reuse one opaque sidebar surface matching the Home menu in default dark mode. Chats, right-panel headers, and existing resource action trays share it; Tracker headers inherit their panel paint.
  • Scope settings section/card/field backgrounds to the sidebar token. Keep hover feedback with the existing accent token, retaining focus, disabled, selected, and danger states.
  • Synchronize the mobile safe-area, page backing, and browser theme color with the rendered app surface. Preserve explicit backgrounds, light mode, SillyTavern, and custom themes; update the initial HTML/manifest fallback.
  • Reuse the shared settings primary-button style for Refresh App. No refresh behavior or copy changes.

Validation

Passed local validation:

  • pnpm check (localization, formatting, lint/type checks, and production client/server/guest builds); pnpm version:check; final pnpm check:e2e-types after the test-only readiness follow-up.
  • Focused sidebar/settings/keyboard coverage: 11 passed, one intentional desktop skip for the mobile keyboard case. Tracker controls: all six desktop/mobile dark/light cases passed. Mandatory pnpm smoke:ui: 7/7 passed.
  • Final Docker image built and returned HTTP 200 from /api/health. Compiled production startup/reload passed in desktop Chromium, mobile Chromium, and mobile WebKit (3/3).
  • Before/after visual proof: 15 baseline and 20 after cases passed across Chromium, mobile Chromium/WebKit, and desktop Firefox. Screenshot pixels confirm matching headers, bodies, and action trays; translucent settings cards differ by at most one 8-bit channel from color-mix rounding.

Cold development-server startup and the expanded keyboard test exhausted their initial waits on the busy host. Only the initial Home readiness allowance and that keyboard test's overall budget were adjusted; all three affected cases then passed. Application code and paint assertions were unchanged.

Local CodeRabbit reviewed the surface changes and the subsequent hover fix, with zero findings in both runs. Independent source review caught the lost neutral-hover feedback; it was fixed and re-reviewed.

  • 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 covers dark/light surfaces, default-gradient and custom accents, panel headers, resource action trays, settings backgrounds and hover/focus states, Refresh App states, and mobile keyboard viewport behavior.

Manually verify the status-bar and real keyboard-adjacent chrome on a physical iPhone in Safari and an installed PWA. Emulated WebKit verifies the page-owned backing and theme metadata, but does not render native phone chrome. Also manually verify a representative user-authored custom theme on a real device.

Docs and release impact

Added the user-facing changelog entry and updated the shared surface description in DESIGN.md. No new labels, version bump, install/update behavior, or translated user-guide 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 screenshot gallery · Self-contained source on GitHub Gist

Captures compare baseline 9c1248068 with application implementation 6d51be68b; the final 308246a05 follow-up changes only browser-test readiness. The gallery records browser/theme provenance, pixel measurements, and temporary probe/startup corrections. No generated screenshots are committed to the repository.

Summary by CodeRabbit

  • Style
    • Sidebar headers, item action trays, tracker panels, and settings surfaces now use more consistent backgrounds.
    • Mobile screen edges and safe areas match the app’s page background, including when themes or custom backgrounds change.
    • Settings hover highlights use the accent color, and the Refresh App button matches the shared button style.
    • Sidebar and panel headers no longer use translucent backgrounds or blur effects.

🔄 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/7012 **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/unified-sidebar-mobile-surfaces` --- ### 📝 Commits (5) - [`dc039eb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dc039eb0e3fd35b3b63d6ce9a5ca169d18aa2310) docs: track sidebar and mobile surface follow-up - [`0d3d5b5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0d3d5b53ca46712fcef97cfc5b5fda865871a723) fix(ui): unify sidebar settings and mobile surfaces - [`f660df9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f660df9d9232b08ee4e5ff2c36dde48996bbf4fb) Merge remote-tracking branch 'origin/staging' into fix/unified-sidebar-mobile-surfaces - [`6d51be6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6d51be68b3a1dc54678f0f807df20f0f5acec210) fix(ui): preserve accent hover feedback in settings - [`308246a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/308246a05f0d18dbbc1f7a702737b829c6d51019) test(ui): allow cold shell and expanded keyboard proof to settle ### 📊 Changes **18 files changed** (+219 additions, -54 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `DESIGN.md` (+3 -3) 📝 `e2e/accent-pulse.e2e.ts` (+24 -1) 📝 `e2e/core-flows.e2e.ts` (+71 -1) 📝 `e2e/world-tracker-controls.e2e.ts` (+41 -0) 📝 `packages/client/index.html` (+5 -2) 📝 `packages/client/public/manifest.json` (+2 -2) 📝 `packages/client/src/App.tsx` (+24 -2) 📝 `packages/client/src/components/layout/AppShell.tsx` (+2 -2) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+1 -1) 📝 `packages/client/src/components/layout/RightPanel.tsx` (+1 -1) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+20 -20) 📝 `packages/client/src/components/panels/settings/BackgroundPicker.tsx` (+2 -2) 📝 `packages/client/src/components/panels/settings/PersonalExtensionsSettings.tsx` (+2 -2) 📝 `packages/client/src/components/panels/settings/SettingControls.tsx` (+2 -2) 📝 `packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx` (+1 -1) 📝 `packages/client/src/features/tracker-panel/components/TrackerSidebarHeader.tsx` (+2 -2) 📝 `packages/client/src/styles/globals.css` (+14 -10) </details> ### 📄 Description ## Linked issue Closes #7011 ## Why this change Sidebar title bars, item action trays, and individual settings still showed blue or mismatched backgrounds after the first UI pass. Mobile screen edges retained the old blue backing, and Refresh App did not match neighboring settings buttons. ## What changed - Reuse one opaque sidebar surface matching the Home menu in default dark mode. Chats, right-panel headers, and existing resource action trays share it; Tracker headers inherit their panel paint. - Scope settings section/card/field backgrounds to the sidebar token. Keep hover feedback with the existing accent token, retaining focus, disabled, selected, and danger states. - Synchronize the mobile safe-area, page backing, and browser theme color with the rendered app surface. Preserve explicit backgrounds, light mode, SillyTavern, and custom themes; update the initial HTML/manifest fallback. - Reuse the shared settings primary-button style for Refresh App. No refresh behavior or copy changes. ## Validation Passed local validation: - `pnpm check` (localization, formatting, lint/type checks, and production client/server/guest builds); `pnpm version:check`; final `pnpm check:e2e-types` after the test-only readiness follow-up. - Focused sidebar/settings/keyboard coverage: 11 passed, one intentional desktop skip for the mobile keyboard case. Tracker controls: all six desktop/mobile dark/light cases passed. Mandatory `pnpm smoke:ui`: 7/7 passed. - Final Docker image built and returned HTTP 200 from `/api/health`. Compiled production startup/reload passed in desktop Chromium, mobile Chromium, and mobile WebKit (3/3). - Before/after visual proof: 15 baseline and 20 after cases passed across Chromium, mobile Chromium/WebKit, and desktop Firefox. Screenshot pixels confirm matching headers, bodies, and action trays; translucent settings cards differ by at most one 8-bit channel from color-mix rounding. Cold development-server startup and the expanded keyboard test exhausted their initial waits on the busy host. Only the initial Home readiness allowance and that keyboard test's overall budget were adjusted; all three affected cases then passed. Application code and paint assertions were unchanged. Local CodeRabbit reviewed the surface changes and the subsequent hover fix, with zero findings in both runs. Independent source review caught the lost neutral-hover feedback; it was fixed and re-reviewed. - [ ] `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 covers dark/light surfaces, default-gradient and custom accents, panel headers, resource action trays, settings backgrounds and hover/focus states, Refresh App states, and mobile keyboard viewport behavior. Manually verify the status-bar and real keyboard-adjacent chrome on a physical iPhone in Safari and an installed PWA. Emulated WebKit verifies the page-owned backing and theme metadata, but does not render native phone chrome. Also manually verify a representative user-authored custom theme on a real device. ## Docs and release impact Added the user-facing changelog entry and updated the shared surface description in `DESIGN.md`. No new labels, version bump, install/update behavior, or translated user-guide 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 screenshot gallery](https://gist.githack.com/SpicyMarinara/210dd3be3cfe74835ed67a1f221fbbc3/raw/084076698121659ca6d72ce90730eb6f72922110/gallery-public.html) · [Self-contained source on GitHub Gist](https://gist.github.com/SpicyMarinara/210dd3be3cfe74835ed67a1f221fbbc3) Captures compare baseline `9c1248068` with application implementation `6d51be68b`; the final `308246a05` follow-up changes only browser-test readiness. The gallery records browser/theme provenance, pixel measurements, and temporary probe/startup corrections. No generated screenshots are committed to the repository. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Sidebar headers, item action trays, tracker panels, and settings surfaces now use more consistent backgrounds. * Mobile screen edges and safe areas match the app’s page background, including when themes or custom backgrounds change. * Settings hover highlights use the accent color, and the Refresh App button matches the shared button style. * Sidebar and panel headers no longer use translucent backgrounds or blur effects. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <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#7427
No description provided.