[PR #5876] [MERGED] fix(chat): match Conversation swipes to Roleplay controls #6976

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

📋 Pull Request Information

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

Base: staging ← Head: fix/5875-conversation-swipes


📝 Commits (2)

  • d369fcc chore: track conversation swipe parity fix for #5875
  • 521c222 fix(chat): reuse compact Roleplay swipe styling in Conversation

📊 Changes

5 files changed (+143 additions, -35 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+127 -0)
📝 packages/client/src/components/chat/ChatMessage.tsx (+0 -8)
📝 packages/client/src/components/chat/ConversationMessageShared.tsx (+1 -6)
📝 packages/client/src/components/chat/SwipeJumpControl.tsx (+14 -21)

📄 Description

Linked issue

Closes #5875.

Why this change

Conversation's swipe menu kept a separate, larger pink/orchid box after the mobile action-row fix. Mari requests the same compact Roleplay swipe controls on desktop and mobile, using the chosen chat-chrome text color.

What changed

  • Move Roleplay's existing swipe dimensions, spacing, arrow size and small counter pill into the already-shared SwipeJumpControl.
  • Delete per-mode styling overrides, including Conversation's extra border/background/padding. Classic, bubble and grouped Conversation layouts use the same control.
  • Reuse message-action chat-chrome text/hover tokens and the existing focus-ring token instead of fixed white or orchid colors.
  • Add an Unreleased entry and browser regression. No navigation, regeneration, saved preference, localization copy, dependency, or release changes.

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 evidence (checkboxes intentionally left for human verification):

  • pnpm install, pnpm localization:check and full pnpm check passed.
  • 9 focused Playwright checks passed across desktop Chromium, mobile Chromium and mobile WebKit. The new visual regression compares all three Conversation layouts against Roleplay at 320 px, normal phone widths and 1440 px desktop, in light/dark themes with custom chat-chrome colors. It verifies dimensions, unboxed styling, arrows and numeric jumps.
  • Existing regeneration, action-order, and independently persisted first-swipe display-toggle checks passed unchanged.
  • Before-fix WebKit reproduced the boxed orchid menu, extra height and differing arrow/counter sizing. Test navigation now waits for actual swipe persistence rather than racing optimistic counter updates.
  • Linux/amd64 production Docker build and browser smoke passed at commit 521c22224088: desktop Chromium and iPhone-sized WebKit rendered matching Conversation/Roleplay controls with no page errors.

Manual verification notes

Manually verify Conversation and Roleplay swipe appearance on an actual desktop and phone, including a custom Chroma text color, light/dark theme, first-swipe regeneration, numeric jumps and the saved display toggle. Browser automation and synthetic screenshots do not claim physical-device 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)

Changelog only. No documentation or version changes. Staging only; no main promotion or unrelated draft edits.

UI evidence (if applicable)

Synthetic before/after screenshots: original Conversation menu, shared Conversation/Roleplay controls, bubble layout, light theme and desktop. No private user screenshots, chat assets or paid model calls.

Summary by CodeRabbit

  • Bug Fixes
    • Conversation swipe controls now use compact, unboxed styling consistently across desktop and mobile layouts.
    • Swipe arrows, counters, and jump-to-swipe fields now follow the configured chat-chrome colors instead of pink/orchid styling.
    • Swipe control sizing, spacing, borders, backgrounds, and input appearance are now consistent across chat layouts and themes.
    • Swipe navigation and index entry now preserve the active swipe correctly, with Previous controls enabling and disabling at the appropriate positions.
    • Roleplay text-to-speech controls now display microphone icons, while conversation controls retain speaker-volume icons.

🔄 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/5876 **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:** `fix/5875-conversation-swipes` --- ### 📝 Commits (2) - [`d369fcc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d369fcc04986343bf2e8bd8c739645e2277c0229) chore: track conversation swipe parity fix for #5875 - [`521c222`](https://github.com/Pasta-Devs/Marinara-Engine/commit/521c2222408836b3df59497bbf260cc917bf8d01) fix(chat): reuse compact Roleplay swipe styling in Conversation ### 📊 Changes **5 files changed** (+143 additions, -35 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+127 -0) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+0 -8) 📝 `packages/client/src/components/chat/ConversationMessageShared.tsx` (+1 -6) 📝 `packages/client/src/components/chat/SwipeJumpControl.tsx` (+14 -21) </details> ### 📄 Description ## Linked issue Closes #5875. ## Why this change Conversation's swipe menu kept a separate, larger pink/orchid box after the mobile action-row fix. Mari requests the same compact Roleplay swipe controls on desktop and mobile, using the chosen chat-chrome text color. ## What changed - Move Roleplay's existing swipe dimensions, spacing, arrow size and small counter pill into the already-shared `SwipeJumpControl`. - Delete per-mode styling overrides, including Conversation's extra border/background/padding. Classic, bubble and grouped Conversation layouts use the same control. - Reuse message-action chat-chrome text/hover tokens and the existing focus-ring token instead of fixed white or orchid colors. - Add an Unreleased entry and browser regression. No navigation, regeneration, saved preference, localization copy, dependency, or release changes. ## 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 evidence (checkboxes intentionally left for human verification): - `pnpm install`, `pnpm localization:check` and full `pnpm check` passed. - 9 focused Playwright checks passed across desktop Chromium, mobile Chromium and mobile WebKit. The new visual regression compares all three Conversation layouts against Roleplay at 320 px, normal phone widths and 1440 px desktop, in light/dark themes with custom chat-chrome colors. It verifies dimensions, unboxed styling, arrows and numeric jumps. - Existing regeneration, action-order, and independently persisted first-swipe display-toggle checks passed unchanged. - Before-fix WebKit reproduced the boxed orchid menu, extra height and differing arrow/counter sizing. Test navigation now waits for actual swipe persistence rather than racing optimistic counter updates. - Linux/amd64 production Docker build and browser smoke passed at commit `521c22224088`: desktop Chromium and iPhone-sized WebKit rendered matching Conversation/Roleplay controls with no page errors. ### Manual verification notes Manually verify Conversation and Roleplay swipe appearance on an actual desktop and phone, including a custom Chroma text color, light/dark theme, first-swipe regeneration, numeric jumps and the saved display toggle. Browser automation and synthetic screenshots do not claim physical-device 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) Changelog only. No documentation or version changes. Staging only; no main promotion or unrelated draft edits. ## UI evidence (if applicable) [Synthetic before/after screenshots](https://gist.github.com/SpicyMarinara/ef4093e6850328820ce25f5faa5540a9): original Conversation menu, shared Conversation/Roleplay controls, bubble layout, light theme and desktop. No private user screenshots, chat assets or paid model calls. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Conversation swipe controls now use compact, unboxed styling consistently across desktop and mobile layouts. - Swipe arrows, counters, and jump-to-swipe fields now follow the configured chat-chrome colors instead of pink/orchid styling. - Swipe control sizing, spacing, borders, backgrounds, and input appearance are now consistent across chat layouts and themes. - Swipe navigation and index entry now preserve the active swipe correctly, with Previous controls enabling and disabling at the appropriate positions. - Roleplay text-to-speech controls now display microphone icons, while conversation controls retain speaker-volume icons. <!-- 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:24 +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#6976
No description provided.