[PR #5852] [MERGED] fix(mobile): stabilize chat scrolling and compact controls #6968

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

📋 Pull Request Information

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

Base: staging ← Head: fix/5851-mobile-chat-controls


📝 Commits (4)

  • 8818a47 chore: track mobile chat regression fixes
  • 0f3e2f1 fix(mobile): stabilize chat scrolling and compact controls
  • c6d67b8 test: open the Game gallery through its mobile actions menu
  • f681726 fix(mobile): refresh Echo Chamber layout across rotation

📊 Changes

9 files changed (+355 additions, -27 deletions)

View changed files

📝 CHANGELOG.md (+3 -0)
📝 e2e/core-flows.e2e.ts (+245 -2)
📝 packages/client/src/components/chat/ChatGallery.tsx (+5 -5)
📝 packages/client/src/components/chat/ChatInput.tsx (+28 -0)
📝 packages/client/src/components/chat/ChatMessage.tsx (+12 -1)
📝 packages/client/src/components/chat/EchoChamberPanel.tsx (+10 -6)
📝 packages/client/src/components/chat/MessageActionButton.tsx (+1 -1)
📝 packages/client/src/components/panels/ConnectionsPanel.tsx (+20 -12)
📝 packages/client/src/styles/globals.css (+31 -0)

📄 Description

Linked issue

Closes #5851

Why this change

Mobile users can lose their place while editing or reopening Echo Chamber, lose tapped message icons, pan the Roleplay composer into blank space, and find gallery or Whisper controls clipped. Fix these existing paths with small mobile-only changes, preserving desktop behavior.

What changed

  • Contain mobile Roleplay composer boundary drags with CSS plus a small native touch handler. Interior scrolling, selected text, and multi-touch remain native.
  • Keep mobile message-button press feedback color-only so opening an overlay does not animate the tapped SVG's transform layer; preserve desktop press effects.
  • Include the mobile Echo Chamber collapsed state in the existing scroll-to-latest effect.
  • Align the beginning of a mobile message editor within its transcript instead of restoring the action row's old scroll offset.
  • Compact mobile gallery generation buttons; fit image actions into the tile, wrapping only when needed; give Delete the same neutral mobile styling as its neighboring controls.
  • Give the mobile Whisper selector explicit padding and an inset decorative arrow, retaining the native select interaction and the existing desktop appearance.
  • Add regression proof to the existing browser suite. No new dependencies or abstractions, no main/release changes, no unrelated drafts.

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

Manual verification notes

Automated evidence (these are results, not checked human to-do boxes):

  • pnpm install --frozen-lockfile --offline: passed.
  • pnpm check: passed, including localization, formatting, workspace checks, E2E types, and production build.
  • Final focused browser suite: 27 passed, 15 intentional project-specific skips across desktop Chromium, mobile Chromium, and mobile WebKit.
  • Additional gallery checks pass in both mobile engines for Conversation, Roleplay, and Game at 320px and normal phone widths.
  • Before-fix WebKit checks demonstrated Echo reopening above the latest reaction, an older message editor starting above the visible transcript, gallery label clipping, zero explicit Whisper padding, and missing composer scroll containment.
  • Touch-handler regression checks boundary cancellation while preserving interior scrolling, selected text, and multi-touch. The message-action check now closes and reopens Peek Prompt, rather than ending while the first dialog remains open.

The connected browser is unavailable. These are automated browser checks against the real local app, not physical-device/manual verification. Manually verify the original iPhone long-press/keyboard drag and SVG repaint path on hardware; desktop WebKit emulation cannot establish native keyboard/compositor behavior. Also manually verify the selector with the native iOS choice sheet. No claims of physical iPhone or Android testing.

Docs and release impact

  • 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)

Unreleased changelog entries cover all six issues. No version bump or release changes. Existing localized copy is reused; the speech selector receives the existing localized Local Speech Model accessible name.

UI evidence (if applicable)

Synthetic mobile before/after screenshots: gallery controls in all three modes at 320px, plus the older-message editor scroll regression. Private user screenshots are not republished.

Summary by CodeRabbit

  • Bug Fixes

    • Improved mobile Roleplay composer scrolling and boundary touch behavior.
    • Older-message editing now positions the editor and cursor more reliably.
    • Echo Chamber reopening preserves the expected position on mobile.
    • Improved mobile message-action button behavior.
  • Style

    • Refined mobile gallery controls, image actions, and layout.
    • Improved mobile speech model selector spacing and presentation.
  • Tests

    • Expanded mobile coverage for gallery layouts, editing, scrolling, speech selection, and dialog reopening.

🔄 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/5852 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/4/2026 **Status:** ✅ Merged **Merged:** 9/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/5851-mobile-chat-controls` --- ### 📝 Commits (4) - [`8818a47`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8818a47fcbb58429f2c7051e75191684f0fad32e) chore: track mobile chat regression fixes - [`0f3e2f1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0f3e2f1bf0fa806891d33c02cbb6378c03fdb48e) fix(mobile): stabilize chat scrolling and compact controls - [`c6d67b8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c6d67b8a756aa62de525c503f8584638763c8260) test: open the Game gallery through its mobile actions menu - [`f681726`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f681726238041de67524506e645f77b5c11766b8) fix(mobile): refresh Echo Chamber layout across rotation ### 📊 Changes **9 files changed** (+355 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+3 -0) 📝 `e2e/core-flows.e2e.ts` (+245 -2) 📝 `packages/client/src/components/chat/ChatGallery.tsx` (+5 -5) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+28 -0) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+12 -1) 📝 `packages/client/src/components/chat/EchoChamberPanel.tsx` (+10 -6) 📝 `packages/client/src/components/chat/MessageActionButton.tsx` (+1 -1) 📝 `packages/client/src/components/panels/ConnectionsPanel.tsx` (+20 -12) 📝 `packages/client/src/styles/globals.css` (+31 -0) </details> ### 📄 Description ## Linked issue Closes #5851 ## Why this change Mobile users can lose their place while editing or reopening Echo Chamber, lose tapped message icons, pan the Roleplay composer into blank space, and find gallery or Whisper controls clipped. Fix these existing paths with small mobile-only changes, preserving desktop behavior. ## What changed - Contain mobile Roleplay composer boundary drags with CSS plus a small native touch handler. Interior scrolling, selected text, and multi-touch remain native. - Keep mobile message-button press feedback color-only so opening an overlay does not animate the tapped SVG's transform layer; preserve desktop press effects. - Include the mobile Echo Chamber collapsed state in the existing scroll-to-latest effect. - Align the beginning of a mobile message editor within its transcript instead of restoring the action row's old scroll offset. - Compact mobile gallery generation buttons; fit image actions into the tile, wrapping only when needed; give Delete the same neutral mobile styling as its neighboring controls. - Give the mobile Whisper selector explicit padding and an inset decorative arrow, retaining the native select interaction and the existing desktop appearance. - Add regression proof to the existing browser suite. No new dependencies or abstractions, no main/release changes, no unrelated drafts. ## 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` ### Manual verification notes Automated evidence (these are results, not checked human to-do boxes): - `pnpm install --frozen-lockfile --offline`: passed. - `pnpm check`: passed, including localization, formatting, workspace checks, E2E types, and production build. - Final focused browser suite: 27 passed, 15 intentional project-specific skips across desktop Chromium, mobile Chromium, and mobile WebKit. - Additional gallery checks pass in both mobile engines for Conversation, Roleplay, and Game at 320px and normal phone widths. - Before-fix WebKit checks demonstrated Echo reopening above the latest reaction, an older message editor starting above the visible transcript, gallery label clipping, zero explicit Whisper padding, and missing composer scroll containment. - Touch-handler regression checks boundary cancellation while preserving interior scrolling, selected text, and multi-touch. The message-action check now closes and reopens Peek Prompt, rather than ending while the first dialog remains open. The connected browser is unavailable. These are automated browser checks against the real local app, not physical-device/manual verification. Manually verify the original iPhone long-press/keyboard drag and SVG repaint path on hardware; desktop WebKit emulation cannot establish native keyboard/compositor behavior. Also manually verify the selector with the native iOS choice sheet. No claims of physical iPhone or Android testing. ## Docs and release impact - [ ] 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) Unreleased changelog entries cover all six issues. No version bump or release changes. Existing localized copy is reused; the speech selector receives the existing localized Local Speech Model accessible name. ## UI evidence (if applicable) [Synthetic mobile before/after screenshots](https://gist.github.com/SpicyMarinara/79141bfd7bf30553c581dfd217c7ed25): gallery controls in all three modes at 320px, plus the older-message editor scroll regression. Private user screenshots are not republished. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved mobile Roleplay composer scrolling and boundary touch behavior. * Older-message editing now positions the editor and cursor more reliably. * Echo Chamber reopening preserves the expected position on mobile. * Improved mobile message-action button behavior. * **Style** * Refined mobile gallery controls, image actions, and layout. * Improved mobile speech model selector spacing and presentation. * **Tests** * Expanded mobile coverage for gallery layouts, editing, scrolling, speech selection, and dialog reopening. <!-- 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:15:19 +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#6968
No description provided.