[PR #5823] [MERGED] fix(ui): keep mobile chat overlays reachable #6955

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

📋 Pull Request Information

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

Base: staging ← Head: fix/5817-5822-mobile-chat-overlays


📝 Commits (5)

  • 242f6e3 test(ui): reproduce mobile overlay viewport regressions
  • c8b9e85 fix(ui): keep mobile chat overlays reachable
  • 6ae50c0 Merge remote-tracking branch 'origin/staging' into fix/5817-5822-mobile-chat-overlays
  • f7deb33 test(ui): stabilize Echo clearance proof
  • 9bc3dc3 fix(ui): keep multi-row mobile menus scrollable

📊 Changes

9 files changed (+342 additions, -49 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+288 -47)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+2 -1)
📝 packages/client/src/components/chat/ConversationPresenceCard.tsx (+2 -0)
📝 packages/client/src/components/chat/ConversationView.tsx (+1 -1)
📝 packages/client/src/components/chat/QuickPersonaSwitcher.tsx (+1 -0)
📝 packages/client/src/components/chat/QuickSwitcherMobile.tsx (+1 -0)
📝 packages/client/src/components/chat/StickerPicker.tsx (+1 -0)
📝 packages/client/src/styles/globals.css (+45 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository staging branch or a same-repository hotfix/* branch to main.

Linked issue

Closes #5817
Closes #5822

Why this change

  • Collapsed Echo Chamber covers the mobile Load More control, making older history unreachable.
  • iPhone keyboard viewport panning leaves focused body-portal chat menus above the visible screen, including Chat Summary fields.

What changed

  • Leave mobile transcript clearance for Load More whenever Echo Chamber is present.
  • Keep focused chat menus inside the current software-keyboard visual viewport, including the summary, persona/connection, presence, sticker, search, settings, and author-notes surfaces across chat modes.
  • Keep the expanded textarea editor on the same iPhone visual-viewport contract.
  • Add mobile regression coverage for Echo Chamber pagination clearance and repeated iPhone keyboard/menu positioning.

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

Automated verification performed:

  • pnpm check — passed.
  • Focused mobile WebKit coverage for Echo clearance, keyboard-visible Chat Summary editing, and repeated composer focus — 3 passed.
  • Focused mobile Chromium coverage for Echo clearance and composer viewport handling — 2 passed, 1 iPhone-only case skipped.
  • Three adjacent mobile WebKit chrome/layout cases that flaked under the full parallel smoke run — all passed when rerun in isolation.

Manual verification notes

  • Manually verify collapsed Echo Chamber leaves Load More visible and tappable on an iPhone-sized Roleplay chat.
  • Manually verify editable Chat Summary fields remain visible through repeated keyboard open and dismiss cycles.
  • Manually verify Conversation, Roleplay, and Game chat menus remain usable with the mobile keyboard and desktop layout is unchanged.

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 (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • Playwright geometry checks verify that Load More clears the collapsed Echo panel by at least 8 px and the focused Chat Summary panel and field remain inside the simulated iPhone visual viewport.

Summary by CodeRabbit

  • Bug Fixes
    • Mobile chat menus and floating panels now stay within the visible viewport while the on-screen keyboard is open.
    • Expanded text areas are positioned more reliably during mobile editing, including on iOS devices.
    • The “Load More” control remains accessible below collapsed Echo Chamber chats, with improved top spacing for easier tapping.

🔄 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/5823 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/3/2026 **Status:** ✅ Merged **Merged:** 9/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/5817-5822-mobile-chat-overlays` --- ### 📝 Commits (5) - [`242f6e3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/242f6e3c4f756236e9e7757bd3a4a1902c2a7536) test(ui): reproduce mobile overlay viewport regressions - [`c8b9e85`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c8b9e8521dbbe5dc0b2597ac0b66284c27752264) fix(ui): keep mobile chat overlays reachable - [`6ae50c0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6ae50c0a9a195fb139d9a44c2a004e2044cdb094) Merge remote-tracking branch 'origin/staging' into fix/5817-5822-mobile-chat-overlays - [`f7deb33`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f7deb336a99dbbc8c254a2d00ce152fa7dac3ac2) test(ui): stabilize Echo clearance proof - [`9bc3dc3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9bc3dc3aa9b7fed9101b693f9529e20a92948673) fix(ui): keep multi-row mobile menus scrollable ### 📊 Changes **9 files changed** (+342 additions, -49 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+288 -47) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+2 -1) 📝 `packages/client/src/components/chat/ConversationPresenceCard.tsx` (+2 -0) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+1 -1) 📝 `packages/client/src/components/chat/QuickPersonaSwitcher.tsx` (+1 -0) 📝 `packages/client/src/components/chat/QuickSwitcherMobile.tsx` (+1 -0) 📝 `packages/client/src/components/chat/StickerPicker.tsx` (+1 -0) 📝 `packages/client/src/styles/globals.css` (+45 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository staging branch or a same-repository `hotfix/*` branch to `main`. ## Linked issue Closes #5817 Closes #5822 ## Why this change - Collapsed Echo Chamber covers the mobile Load More control, making older history unreachable. - iPhone keyboard viewport panning leaves focused body-portal chat menus above the visible screen, including Chat Summary fields. ## What changed - Leave mobile transcript clearance for Load More whenever Echo Chamber is present. - Keep focused chat menus inside the current software-keyboard visual viewport, including the summary, persona/connection, presence, sticker, search, settings, and author-notes surfaces across chat modes. - Keep the expanded textarea editor on the same iPhone visual-viewport contract. - Add mobile regression coverage for Echo Chamber pagination clearance and repeated iPhone keyboard/menu positioning. ## 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` Automated verification performed: - `pnpm check` — passed. - Focused mobile WebKit coverage for Echo clearance, keyboard-visible Chat Summary editing, and repeated composer focus — 3 passed. - Focused mobile Chromium coverage for Echo clearance and composer viewport handling — 2 passed, 1 iPhone-only case skipped. - Three adjacent mobile WebKit chrome/layout cases that flaked under the full parallel smoke run — all passed when rerun in isolation. ### Manual verification notes - Manually verify collapsed Echo Chamber leaves Load More visible and tappable on an iPhone-sized Roleplay chat. - Manually verify editable Chat Summary fields remain visible through repeated keyboard open and dismiss cycles. - Manually verify Conversation, Roleplay, and Game chat menus remain usable with the mobile keyboard and desktop layout is unchanged. ## 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 (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - Playwright geometry checks verify that Load More clears the collapsed Echo panel by at least 8 px and the focused Chat Summary panel and field remain inside the simulated iPhone visual viewport. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Mobile chat menus and floating panels now stay within the visible viewport while the on-screen keyboard is open. * Expanded text areas are positioned more reliably during mobile editing, including on iOS devices. * The “Load More” control remains accessible below collapsed Echo Chamber chats, with improved top spacing for easier tapping. <!-- 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:12 +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#6955
No description provided.