[PR #7122] [MERGED] Fix mobile chat widget controls and refine character presets #7486

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

📋 Pull Request Information

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

Base: staging ← Head: fix/mobile-widget-controls


📝 Commits (2)

  • ed17945 docs: track mobile widget refinements (#7121)
  • 6a04cca fix: restore mobile widget controls and refine character presets

📊 Changes

18 files changed (+763 additions, -169 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 docs/appearance/custom-css-themes.md (+3 -3)
📝 docs/chats/chat-settings.md (+4 -4)
📝 docs/roleplay/getting-started.md (+1 -1)
📝 e2e/chat-control-windows.e2e.ts (+1 -1)
📝 e2e/chat-settings-tools.ts (+1 -1)
📝 e2e/chat-widget-style.e2e.ts (+16 -4)
📝 e2e/chat-window-migration.e2e.ts (+1 -1)
➕ e2e/mobile-echo-window.e2e.ts (+193 -0)
📝 e2e/phone-bubbles.e2e.ts (+116 -10)
➕ e2e/widget-corner-containment.e2e.ts (+229 -0)
📝 packages/client/src/components/chat/ChatToolsMenu.tsx (+71 -66)
📝 packages/client/src/components/chat/EchoChamberPanel.tsx (+22 -8)
📝 packages/client/src/components/ui/FloatingWindow.tsx (+4 -22)
📝 packages/client/src/components/ui/WindowBubble.tsx (+6 -1)
📝 packages/client/src/localization/locales/en.json (+2 -2)
📝 packages/client/src/styles/globals.css (+18 -8)
📝 packages/client/src/styles/themes/chat-widgets.css (+73 -37)

📄 Description

Linked issue

Closes #7121

Why this change

On phones, Echo Chamber could no longer move or resize, and the three-dot Chat tools menu showed drawer rows instead of round buttons. Dottore windows could also blur the background outside their cut corners. This restores the requested controls and refines the two character presets using the maintainer's references.

What changed

  • Mobile Echo uses the shared movable, resizable window, with saved position, pin/lock behavior and keyboard-aware bounds.
  • The three-dot menu unfolds round buttons, with a lock at the top. Drag a button or use Up/Down to reorder it while unlocked. The menu keeps its saved position/order; Tracker, Map and Character Profiles buttons stay separate.
  • Cut-corner blur now follows the painted frame. Local theme blur overrides remain supported, and rounded frames keep their original blur behavior.
  • Dottore pairs icy blue with pale metal trim; Mari pairs midnight blue and warm gold, with ivory and gemstone blue in light mode. Both retain smaller top ornaments. Resize grips match the preset. Default styling, custom colors/fonts/shapes and saved layouts remain compatible.

Validation

Tested source: 6a04cca17e9c5700ac14a00d37394bcfcedcd374 (the same working-tree content was checked before committing).

  • pnpm check: passed, including localization, formatting, lint/types and production build.
  • coderabbit review --agent --base origin/staging --include-untracked: completed, zero findings across all 18 changed files. Hosted CodeRabbit completed its review with one trivial native-iOS test-coverage note, acknowledged and tracked in #7127; no implementation defect was reported.
  • node scripts/run-regressions.mjs --filter window: 9/9 passed.
  • pnpm regression:ui e2e/chat-widget-style.e2e.ts e2e/phone-bubbles.e2e.ts --grep 'widget presets preserve Default|phone Chat tools expands' --workers=1: 8 passed, one intentional desktop skip. Covers desktop Chromium, mobile Chromium and mobile WebKit, both color modes, round tools, reorder, locks and persistence.
  • pnpm regression:ui e2e/widget-corner-containment.e2e.ts --workers=1: 3/3 passed. Checks painted corner pixels in 36 scenarios, plus six checks that rounded windows avoid double blur.
  • Additional focused cases passed in both phone browsers: movable/resizable Echo, large custom-colored tools in a short viewport, and Game tools. Existing Echo cases also passed (seven applicable cases; five platform skips).
  • pnpm smoke:ui: 7/7 passed. pnpm smoke:production: 3/3 passed (desktop Chromium, mobile Chromium, mobile WebKit).
  • Native Linux ARM64 Docker build and disposable runtime probe: passed. Health, SPA, 26 entry assets and multiplayer guest bundle returned successfully. Source snapshot SHA256: def4e51eb2767dee3be588512fffa5365458a6d1b5ec28c287bb8b3f7edabb0e.

Human checklist:

  • 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

Automated browser interaction and visual inspection covered the actual windows, buttons, scrolling, all three presets, dark/light mode and minimum sizes. Chromium exercises native touch drags through CDP. WebKit exercises touch taps and pointer drags; physical-device touch dragging and the native keyboard still need manual verification (tracked in #7127).

Manually verify on an iPhone/Android device: move and resize Echo, reopen it after refreshing, unlock/reorder the round tool buttons, then lock them. Open the keyboard and check that controls remain reachable. Compare both presets in Settings and in a chat.

Docs and release impact

Updated chat settings, roleplay and custom-theme guides, plus CHANGELOG. Translated documentation follow-up: #7124. No release-version or storage-format change.

UI evidence

Before/after gallery, both light modes and mobile controls. Screenshots use disposable test chats.

Dottore Mari
Dottore Mari

🔄 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/7122 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/5/2026 **Status:** ✅ Merged **Merged:** 10/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/mobile-widget-controls` --- ### 📝 Commits (2) - [`ed17945`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ed17945ba810135ed91616254c43e536f95bde86) docs: track mobile widget refinements (#7121) - [`6a04cca`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6a04cca17e9c5700ac14a00d37394bcfcedcd374) fix: restore mobile widget controls and refine character presets ### 📊 Changes **18 files changed** (+763 additions, -169 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `docs/appearance/custom-css-themes.md` (+3 -3) 📝 `docs/chats/chat-settings.md` (+4 -4) 📝 `docs/roleplay/getting-started.md` (+1 -1) 📝 `e2e/chat-control-windows.e2e.ts` (+1 -1) 📝 `e2e/chat-settings-tools.ts` (+1 -1) 📝 `e2e/chat-widget-style.e2e.ts` (+16 -4) 📝 `e2e/chat-window-migration.e2e.ts` (+1 -1) ➕ `e2e/mobile-echo-window.e2e.ts` (+193 -0) 📝 `e2e/phone-bubbles.e2e.ts` (+116 -10) ➕ `e2e/widget-corner-containment.e2e.ts` (+229 -0) 📝 `packages/client/src/components/chat/ChatToolsMenu.tsx` (+71 -66) 📝 `packages/client/src/components/chat/EchoChamberPanel.tsx` (+22 -8) 📝 `packages/client/src/components/ui/FloatingWindow.tsx` (+4 -22) 📝 `packages/client/src/components/ui/WindowBubble.tsx` (+6 -1) 📝 `packages/client/src/localization/locales/en.json` (+2 -2) 📝 `packages/client/src/styles/globals.css` (+18 -8) 📝 `packages/client/src/styles/themes/chat-widgets.css` (+73 -37) </details> ### 📄 Description ## Linked issue Closes #7121 ## Why this change On phones, Echo Chamber could no longer move or resize, and the three-dot Chat tools menu showed drawer rows instead of round buttons. Dottore windows could also blur the background outside their cut corners. This restores the requested controls and refines the two character presets using the maintainer's references. ## What changed - Mobile Echo uses the shared movable, resizable window, with saved position, pin/lock behavior and keyboard-aware bounds. - The three-dot menu unfolds round buttons, with a lock at the top. Drag a button or use Up/Down to reorder it while unlocked. The menu keeps its saved position/order; Tracker, Map and Character Profiles buttons stay separate. - Cut-corner blur now follows the painted frame. Local theme blur overrides remain supported, and rounded frames keep their original blur behavior. - Dottore pairs icy blue with pale metal trim; Mari pairs midnight blue and warm gold, with ivory and gemstone blue in light mode. Both retain smaller top ornaments. Resize grips match the preset. Default styling, custom colors/fonts/shapes and saved layouts remain compatible. ## Validation Tested source: `6a04cca17e9c5700ac14a00d37394bcfcedcd374` (the same working-tree content was checked before committing). - `pnpm check`: passed, including localization, formatting, lint/types and production build. - `coderabbit review --agent --base origin/staging --include-untracked`: completed, zero findings across all 18 changed files. Hosted CodeRabbit completed its review with one trivial native-iOS test-coverage note, acknowledged and tracked in #7127; no implementation defect was reported. - `node scripts/run-regressions.mjs --filter window`: 9/9 passed. - `pnpm regression:ui e2e/chat-widget-style.e2e.ts e2e/phone-bubbles.e2e.ts --grep 'widget presets preserve Default|phone Chat tools expands' --workers=1`: 8 passed, one intentional desktop skip. Covers desktop Chromium, mobile Chromium and mobile WebKit, both color modes, round tools, reorder, locks and persistence. - `pnpm regression:ui e2e/widget-corner-containment.e2e.ts --workers=1`: 3/3 passed. Checks painted corner pixels in 36 scenarios, plus six checks that rounded windows avoid double blur. - Additional focused cases passed in both phone browsers: movable/resizable Echo, large custom-colored tools in a short viewport, and Game tools. Existing Echo cases also passed (seven applicable cases; five platform skips). - `pnpm smoke:ui`: 7/7 passed. `pnpm smoke:production`: 3/3 passed (desktop Chromium, mobile Chromium, mobile WebKit). - Native Linux ARM64 Docker build and disposable runtime probe: passed. Health, SPA, 26 entry assets and multiplayer guest bundle returned successfully. Source snapshot SHA256: `def4e51eb2767dee3be588512fffa5365458a6d1b5ec28c287bb8b3f7edabb0e`. Human checklist: - [ ] `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 Automated browser interaction and visual inspection covered the actual windows, buttons, scrolling, all three presets, dark/light mode and minimum sizes. Chromium exercises native touch drags through CDP. WebKit exercises touch taps and pointer drags; physical-device touch dragging and the native keyboard still need manual verification (tracked in #7127). Manually verify on an iPhone/Android device: move and resize Echo, reopen it after refreshing, unlock/reorder the round tool buttons, then lock them. Open the keyboard and check that controls remain reachable. Compare both presets in Settings and in a chat. ## Docs and release impact Updated chat settings, roleplay and custom-theme guides, plus CHANGELOG. Translated documentation follow-up: #7124. No release-version or storage-format change. ## UI evidence [Before/after gallery, both light modes and mobile controls](https://gist.github.com/SpicyMarinara/7b204b26f7566decb29222e78570516b). Screenshots use disposable test chats. | Dottore | Mari | | --- | --- | | ![Dottore](https://gist.githubusercontent.com/SpicyMarinara/7b204b26f7566decb29222e78570516b/raw/after-dottore-dark.png) | ![Mari](https://gist.githubusercontent.com/SpicyMarinara/7b204b26f7566decb29222e78570516b/raw/after-mari-dark.png) | --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:20:17 +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#7486
No description provided.