[PR #5855] [MERGED] feat(chat): roomier actions and persistent first-swipe controls #6970

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

📋 Pull Request Information

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

Base: staging ← Head: feat/5854-message-actions-swipes


📝 Commits (8)

  • 4fad46a chore: track message action and swipe display improvements
  • 20d3f93 feat(chat): enlarge message actions and persist first-swipe menus
  • e882e70 test(chat): capture settled message controls without double tapping
  • 22f7b1b test(chat): dismiss synthetic generation toast before opening settings
  • 0c4f1e6 test(chat): target message text and stabilize adjacent UI assertions
  • 2b5c058 fix(chat): align fallback swipe preference and preserve explicit opt-outs
  • 4617db0 test(chat): compare dialog colors away from pointer hover
  • e4dab1d Merge branch 'staging' into feat/5854-message-actions-swipes

📊 Changes

13 files changed (+320 additions, -13 deletions)

View changed files

📝 CHANGELOG.md (+3 -0)
📝 e2e/core-flows.e2e.ts (+236 -4)
📝 packages/client/src/components/chat/ChatMessage.tsx (+9 -4)
📝 packages/client/src/components/chat/ConversationMessageActions.tsx (+1 -1)
📝 packages/client/src/components/chat/ConversationMessageBubble.tsx (+1 -0)
📝 packages/client/src/components/chat/ConversationMessageGrouped.tsx (+1 -0)
📝 packages/client/src/components/chat/ConversationMessageLine.tsx (+1 -0)
📝 packages/client/src/components/chat/ConversationMessageShared.tsx (+5 -0)
📝 packages/client/src/components/chat/MessageActionButton.tsx (+1 -1)
📝 packages/client/src/components/chat/SwipeJumpControl.tsx (+11 -3)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+36 -0)
📝 packages/client/src/localization/locales/en.json (+2 -0)
📝 packages/client/src/stores/ui.store.ts (+13 -0)

📄 Description

Linked issue

Closes #5854

Why this change

Message tools should be easy to see and select on desktop and phones. First-response swipe controls should make regeneration discoverable, with an independent, persistent opt-out for Conversation and Roleplay.

What changed

  • Increase the existing action icons to 1rem, provide roomier targets (at least 44px on phones), and distribute wrapping action rows across each message's available width.
  • Keep user-message actions in the same left-to-right order as assistant actions. Message alignment is unchanged.
  • Reuse the existing swipe/jump control and regeneration handler to show first-response arrows and a 1/1 counter. Existing mobile regeneration confirmation remains intact.
  • Add independent, default-on Always display swipe menu preferences to Appearance → Conversation Display and Roleplay Messages. The Roleplay preference sits with its other toggles, below opacity.
  • Save both preferences through the existing local-persistence and server-sync projections. Explicit off survives reload, older server settings blobs, and Reset Appearance; only manually changing the toggle changes its choice. Off hides the menu until a second swipe exists.
  • Add canonical English localization, Unreleased notes, and focused browser regression coverage. No dependencies, new settings framework, Game changes, release metadata, or main promotion.

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

Actual automated results:

  • pnpm install --frozen-lockfile --offline — passed.
  • pnpm check — passed again after the renderer review correction and explicit appearance-reset exception (2b5c058e7). The final test-only change also passed pnpm check:e2e-types.
  • pnpm localization:check — passed.
  • node scripts/run-regressions.mjs --filter open-issues and --filter assigned-issue-sweep — both passed, including the synced/local settings projection guard.
  • pnpm exec playwright test e2e/core-flows.e2e.ts --grep 'message actions are roomy|mobile Roleplay Peek prompt|mobile Roleplay context|mobile Conversation editing|empty focused chat composers|mobile transcript swipes|mobile reopening Echo Chamber' --workers=1 --reporter=list,html — 17 passed, 7 platform-specific skips.
  • Final focused rerun: pnpm exec playwright test e2e/core-flows.e2e.ts --grep 'message actions are roomy' --workers=1 --reporter=list,html — 6/6 passed on desktop Chromium, mobile Chromium, and mobile WebKit.
  • After review: the same focused cases plus message deletion uses unified chroma controls passed 9/9, including the new opt-out-through-Reset-Appearance assertion. The dialog-color test additionally passed 3 repeated mobile-WebKit runs after isolating idle color checks from pointer hover and transition serialization.
  • Adjacent CI rechecks: pnpm exec playwright test e2e/core-flows.e2e.ts --grep 'stopped and refused generations|exposes reasoning and explains unavailable saved summaries|message deletion uses unified chroma controls|Connections exposes Local Whisper only' --workers=1 — 15/15 passed across all three projects. Existing tests now target message text instead of row centers (which can legitimately contain swipe arrows), wait for dialog color transitions, and avoid toggling an already-restored Connections panel closed after reload.
  • Negative control: with the application patch removed, both modes failed the first-swipe visibility assertion on desktop Chromium and mobile WebKit (4 expected failures).

The focused cases exercise first-arrow dispatch and mobile confirmation against a mocked failing generation endpoint; explicit off/on, reload, legacy server blobs missing both new keys, mode independence, second-swipe visibility while off, Bubbles with multiple swipes, user action order, and 320px containment with at least 44px mobile action targets. Screenshots cover both themes; custom theme/font/character-CSS combinations are not exhaustive.

Manually verify action spacing and left-to-right user action order on physical phones and desktop, including custom fonts and character CSS. Manually verify first-swipe regeneration with a live provider, both appearance toggles, Roleplay toggle grouping, and saved opt-outs across devices. The connected in-app browser was unavailable; Playwright Chromium and WebKit are the automated proof boundary, not physical iOS hardware or a paid provider request.

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)

Includes Unreleased changelog entries and canonical English UI copy. Community locales continue to fall back to English. No user-doc or version changes.

UI evidence (if applicable)

Reviewed synthetic before/after screenshots, narrow mobile layouts, user action order, and both settings sections.

All public images use local synthetic fixtures. Private user screenshots were not republished. Screenshots are not committed to the Engine repository.

Summary by CodeRabbit

  • New Features

    • Added separate Conversation and Roleplay settings to always display swipe menus, enabled by default and preserved across sessions.
    • Swipe controls now remain accessible for regenerating the first response.
    • Enlarged message action icons and touch targets, with improved spacing and responsive layouts.
  • Bug Fixes

    • Standardized user-message action ordering to match assistant-message actions.

🔄 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/5855 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/5/2026 **Status:** ✅ Merged **Merged:** 9/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/5854-message-actions-swipes` --- ### 📝 Commits (8) - [`4fad46a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4fad46a2f989ad939026f9edeba2b43235cfe5b5) chore: track message action and swipe display improvements - [`20d3f93`](https://github.com/Pasta-Devs/Marinara-Engine/commit/20d3f936fee82987ad18b139289bb693e493c7f0) feat(chat): enlarge message actions and persist first-swipe menus - [`e882e70`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e882e70c80534d12fb16455b000e80b63a2efb23) test(chat): capture settled message controls without double tapping - [`22f7b1b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/22f7b1b3c26b420fea1115552f74dc0014d4386a) test(chat): dismiss synthetic generation toast before opening settings - [`0c4f1e6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0c4f1e64b8c4dfdb1ac1c64c46ee5cd035ecec04) test(chat): target message text and stabilize adjacent UI assertions - [`2b5c058`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2b5c058e7c0fdd83facf0a99a28a7b49e7f59437) fix(chat): align fallback swipe preference and preserve explicit opt-outs - [`4617db0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4617db018753dc5da1594d25a179db20cdc1ff76) test(chat): compare dialog colors away from pointer hover - [`e4dab1d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e4dab1d1e7e5adc0827d8823e984197ceab599cc) Merge branch 'staging' into feat/5854-message-actions-swipes ### 📊 Changes **13 files changed** (+320 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+3 -0) 📝 `e2e/core-flows.e2e.ts` (+236 -4) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+9 -4) 📝 `packages/client/src/components/chat/ConversationMessageActions.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ConversationMessageBubble.tsx` (+1 -0) 📝 `packages/client/src/components/chat/ConversationMessageGrouped.tsx` (+1 -0) 📝 `packages/client/src/components/chat/ConversationMessageLine.tsx` (+1 -0) 📝 `packages/client/src/components/chat/ConversationMessageShared.tsx` (+5 -0) 📝 `packages/client/src/components/chat/MessageActionButton.tsx` (+1 -1) 📝 `packages/client/src/components/chat/SwipeJumpControl.tsx` (+11 -3) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+36 -0) 📝 `packages/client/src/localization/locales/en.json` (+2 -0) 📝 `packages/client/src/stores/ui.store.ts` (+13 -0) </details> ### 📄 Description ## Linked issue Closes #5854 ## Why this change Message tools should be easy to see and select on desktop and phones. First-response swipe controls should make regeneration discoverable, with an independent, persistent opt-out for Conversation and Roleplay. ## What changed - Increase the existing action icons to 1rem, provide roomier targets (at least 44px on phones), and distribute wrapping action rows across each message's available width. - Keep user-message actions in the same left-to-right order as assistant actions. Message alignment is unchanged. - Reuse the existing swipe/jump control and regeneration handler to show first-response arrows and a 1/1 counter. Existing mobile regeneration confirmation remains intact. - Add independent, default-on **Always display swipe menu** preferences to Appearance → Conversation Display and Roleplay Messages. The Roleplay preference sits with its other toggles, below opacity. - Save both preferences through the existing local-persistence and server-sync projections. Explicit off survives reload, older server settings blobs, and Reset Appearance; only manually changing the toggle changes its choice. Off hides the menu until a second swipe exists. - Add canonical English localization, Unreleased notes, and focused browser regression coverage. No dependencies, new settings framework, Game changes, release metadata, or main promotion. ## 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 Actual automated results: - `pnpm install --frozen-lockfile --offline` — passed. - `pnpm check` — passed again after the renderer review correction and explicit appearance-reset exception (`2b5c058e7`). The final test-only change also passed `pnpm check:e2e-types`. - `pnpm localization:check` — passed. - `node scripts/run-regressions.mjs --filter open-issues` and `--filter assigned-issue-sweep` — both passed, including the synced/local settings projection guard. - `pnpm exec playwright test e2e/core-flows.e2e.ts --grep 'message actions are roomy|mobile Roleplay Peek prompt|mobile Roleplay context|mobile Conversation editing|empty focused chat composers|mobile transcript swipes|mobile reopening Echo Chamber' --workers=1 --reporter=list,html` — 17 passed, 7 platform-specific skips. - Final focused rerun: `pnpm exec playwright test e2e/core-flows.e2e.ts --grep 'message actions are roomy' --workers=1 --reporter=list,html` — 6/6 passed on desktop Chromium, mobile Chromium, and mobile WebKit. - After review: the same focused cases plus `message deletion uses unified chroma controls` passed 9/9, including the new opt-out-through-Reset-Appearance assertion. The dialog-color test additionally passed 3 repeated mobile-WebKit runs after isolating idle color checks from pointer hover and transition serialization. - Adjacent CI rechecks: `pnpm exec playwright test e2e/core-flows.e2e.ts --grep 'stopped and refused generations|exposes reasoning and explains unavailable saved summaries|message deletion uses unified chroma controls|Connections exposes Local Whisper only' --workers=1` — 15/15 passed across all three projects. Existing tests now target message text instead of row centers (which can legitimately contain swipe arrows), wait for dialog color transitions, and avoid toggling an already-restored Connections panel closed after reload. - Negative control: with the application patch removed, both modes failed the first-swipe visibility assertion on desktop Chromium and mobile WebKit (4 expected failures). The focused cases exercise first-arrow dispatch and mobile confirmation against a mocked failing generation endpoint; explicit off/on, reload, legacy server blobs missing both new keys, mode independence, second-swipe visibility while off, Bubbles with multiple swipes, user action order, and 320px containment with at least 44px mobile action targets. Screenshots cover both themes; custom theme/font/character-CSS combinations are not exhaustive. Manually verify action spacing and left-to-right user action order on physical phones and desktop, including custom fonts and character CSS. Manually verify first-swipe regeneration with a live provider, both appearance toggles, Roleplay toggle grouping, and saved opt-outs across devices. The connected in-app browser was unavailable; Playwright Chromium and WebKit are the automated proof boundary, not physical iOS hardware or a paid provider request. ## 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) Includes Unreleased changelog entries and canonical English UI copy. Community locales continue to fall back to English. No user-doc or version changes. ## UI evidence (if applicable) [Reviewed synthetic before/after screenshots, narrow mobile layouts, user action order, and both settings sections](https://gist.github.com/SpicyMarinara/ede8d3b354f45c26e03f8d4e01fc632b). All public images use local synthetic fixtures. Private user screenshots were not republished. Screenshots are not committed to the Engine repository. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added separate Conversation and Roleplay settings to always display swipe menus, enabled by default and preserved across sessions. - Swipe controls now remain accessible for regenerating the first response. - Enlarged message action icons and touch targets, with improved spacing and responsive layouts. - **Bug Fixes** - Standardized user-message action ordering to match assistant-message actions. <!-- 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:20 +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#6970
No description provided.