[PR #5987] [MERGED] fix(mobile): preserve message actions after dialog dismissal #7016

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

📋 Pull Request Information

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

Base: staging ← Head: fix/5825-mobile-action-recurrence


📝 Commits (3)

  • 88bbe50 chore: track mobile message action recurrence
  • e414a4b fix(chat): retain mobile message actions while dismissing dialogs
  • 530b33e test(chat): verify touch selection opens the next action row

📊 Changes

5 files changed (+132 additions, -69 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+120 -69)
📝 packages/client/src/components/chat/ChatMessage.tsx (+5 -0)
📝 packages/client/src/components/chat/ConversationMessage.tsx (+5 -0)
📝 packages/client/src/components/chat/PeekPromptModal.tsx (+1 -0)

📄 Description

Linked issue

Closes #5825, reopened for the disappearing-action recurrence. The separate literal · issue was already fixed by #5826 and remains covered by the prompt-label assertions in this PR.

Why this change

On mobile, tapping Close or Cancel in a message action dialog also reached the message's outside-touch handler. It cleared the selected action row underneath the dialog, so the icons disappeared after dismissal until the user selected the message again. The old regression asserted SVG visibility, which does not detect an ancestor with opacity zero.

What changed

Both message components now ignore outside touches originating inside a dialog, menu or chat floating panel. Peek Prompt uses the existing floating-panel marker on its overlay. Tapping another message still dismisses the previous action row. The product fix adds eleven lines across the existing components.

Expanded the existing browser regression to check the action row's actual opacity after repeated Peek Prompt dismissal and Delete / Cancel in Roleplay, Classic Conversation and Bubble Conversation. It also verifies normal outside-touch dismissal and retains the earlier icon-color and prompt-label checks.

Validation

  • Passed pnpm check (localization, formatting, lint, TypeScript and production build).

  • Reproduced the disappearing action row on mobile Chromium and mobile WebKit before the fix: the strengthened original regression received opacity 0 after closing Peek Prompt. The same checks pass after the fix.

  • Passed all 12 focused mobile cases: both engines, three layouts, light and dark themes.

  • The targeted pnpm smoke:ui run passed 14 cases across desktop Chromium and both mobile engines. One existing mobile WebKit swipe-preference persistence check timed out after reload in that concurrent run; it passed when rerun in isolation with the same code. The action-row, dialog and shell checks passed.

  • Manually verify repeated Peek Prompt open/close on the affected physical mobile device.

  • Manually verify another action dialog can be closed without reselecting the message.

Docs and release impact

Added the user-facing Unreleased changelog entry. No user-facing documentation or localization changes are needed for this interaction fix.

UI evidence (if applicable)

Before/after screenshots are embedded in a downloadable HTML artifact. Inspected mobile WebKit captures show the missing row before the fix and retained icons after repeated dismissals. These are synthetic browser fixtures, not physical-device screenshots.

Summary by CodeRabbit

  • Bug Fixes
    • Mobile message action icons now remain available when interacting with or closing dialogs, menus, and other floating panels.
    • Tapping within these overlays no longer unintentionally dismisses the message action row.
    • Message actions remain consistent when switching between messages, including after canceling a delete confirmation.
    • Improved consistency across Roleplay, Classic Conversation, and Bubble Conversation layouts in both light and dark themes.

🔄 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/5987 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/9/2026 **Status:** ✅ Merged **Merged:** 9/9/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/5825-mobile-action-recurrence` --- ### 📝 Commits (3) - [`88bbe50`](https://github.com/Pasta-Devs/Marinara-Engine/commit/88bbe50fc359c706ffa27f5b043e34cf6019cd44) chore: track mobile message action recurrence - [`e414a4b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e414a4be2ee82c2758ebf6644e45140b475d6940) fix(chat): retain mobile message actions while dismissing dialogs - [`530b33e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/530b33e504b8eafa64ca130dbd4cd2fe8057dcdc) test(chat): verify touch selection opens the next action row ### 📊 Changes **5 files changed** (+132 additions, -69 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+120 -69) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+5 -0) 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+5 -0) 📝 `packages/client/src/components/chat/PeekPromptModal.tsx` (+1 -0) </details> ### 📄 Description ## Linked issue Closes #5825, reopened for the disappearing-action recurrence. The separate literal `&middot;` issue was already fixed by #5826 and remains covered by the prompt-label assertions in this PR. ## Why this change On mobile, tapping Close or Cancel in a message action dialog also reached the message's outside-touch handler. It cleared the selected action row underneath the dialog, so the icons disappeared after dismissal until the user selected the message again. The old regression asserted SVG visibility, which does not detect an ancestor with opacity zero. ## What changed Both message components now ignore outside touches originating inside a dialog, menu or chat floating panel. Peek Prompt uses the existing floating-panel marker on its overlay. Tapping another message still dismisses the previous action row. The product fix adds eleven lines across the existing components. Expanded the existing browser regression to check the action row's actual opacity after repeated Peek Prompt dismissal and Delete / Cancel in Roleplay, Classic Conversation and Bubble Conversation. It also verifies normal outside-touch dismissal and retains the earlier icon-color and prompt-label checks. ## Validation - Passed `pnpm check` (localization, formatting, lint, TypeScript and production build). - Reproduced the disappearing action row on mobile Chromium and mobile WebKit before the fix: the strengthened original regression received opacity `0` after closing Peek Prompt. The same checks pass after the fix. - Passed all 12 focused mobile cases: both engines, three layouts, light and dark themes. - The targeted `pnpm smoke:ui` run passed 14 cases across desktop Chromium and both mobile engines. One existing mobile WebKit swipe-preference persistence check timed out after reload in that concurrent run; it passed when rerun in isolation with the same code. The action-row, dialog and shell checks passed. - [ ] Manually verify repeated Peek Prompt open/close on the affected physical mobile device. - [ ] Manually verify another action dialog can be closed without reselecting the message. ## Docs and release impact Added the user-facing Unreleased changelog entry. No user-facing documentation or localization changes are needed for this interaction fix. ## UI evidence (if applicable) [Before/after screenshots](https://gist.github.com/SpicyMarinara/a5d585513210b00a97e2bafadff9ef41) are embedded in a downloadable HTML artifact. Inspected mobile WebKit captures show the missing row before the fix and retained icons after repeated dismissals. These are synthetic browser fixtures, not physical-device screenshots. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Mobile message action icons now remain available when interacting with or closing dialogs, menus, and other floating panels. - Tapping within these overlays no longer unintentionally dismisses the message action row. - Message actions remain consistent when switching between messages, including after canceling a delete confirmation. - Improved consistency across Roleplay, Classic Conversation, and Bubble Conversation layouts in both light and dark themes. <!-- 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:46 +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#7016
No description provided.