[PR #2521] [MERGED] Add conversation message style toggle (Linear / Bubbles) #5635

Closed
opened 2026-10-22 04:18:00 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2521
Author: @Gunterlie
Created: 6/8/2026
Status: ✅ Merged
Merged: 6/13/2026
Merged by: @SpicyMarinara

Base: staging ← Head: ConvoStyleRCS


📝 Commits (10+)

  • 88eb2ab Add conversation message style toggle (Linear / Bubbles)
  • 27c9474 Split ConversationMessage into focused layout components
  • 0809125 Clean up ConversationMessage split
  • 482fe55 Merge remote-tracking branch 'refs/remotes/pr/2521' into HEAD
  • c8695ef Merge branch 'staging' into ConvoStyleRCS
  • 3c0d6bd Merge branch 'staging' into ConvoStyleRCS
  • cf323e7 Merge origin/staging into ConvoStyleRCS
  • 258c3da Fix conversation style chat regressions
  • 47018b8 Fix chat message action regressions
  • 1f310c4 fix(chat): address PR review findings on ConversationMessage split

📊 Changes

10 files changed (+2110 additions, -1694 deletions)

View changed files

📝 packages/client/src/components/chat/ConversationMessage.tsx (+323 -1178)
➕ packages/client/src/components/chat/ConversationMessageActions.tsx (+123 -0)
➕ packages/client/src/components/chat/ConversationMessageBubble.tsx (+230 -0)
➕ packages/client/src/components/chat/ConversationMessageGrouped.tsx (+265 -0)
➕ packages/client/src/components/chat/ConversationMessageLine.tsx (+197 -0)
➕ packages/client/src/components/chat/ConversationMessageShared.tsx (+546 -0)
📝 packages/client/src/components/chat/ConversationView.tsx (+345 -507)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+65 -0)
📝 packages/client/src/stores/ui.store.ts (+15 -2)
📝 packages/client/src/styles/globals.css (+1 -7)

📄 Description

Linked issue

Closes #

Why this change

The chat conversation view had no layout choice — all messages were rendered in a single Discord-style row format. Users who prefer a messenger-style experience (iMessage / WhatsApp) had no alternative. This PR adds a Chat Layout toggle and a full Bubble mode implementation, along with a series of UX fixes discovered during implementation.

What changed

New feature — Chat Layout toggle (Linear / Bubbles)

  • New conversationMessageStyle setting in ui.store.ts with "classic" and "bubble" values
  • Settings panel entry under a new Chat Layout section with live preview (renamed from "Conversation Message Style" to cleaner "Linear / Bubbles" labels)
  • Bubble mode renders assistant messages left-aligned with avatar, user messages right-aligned, iMessage-style corner rounding that groups consecutive messages from the same sender

Bubble mode streaming

  • Synthetic draft assistant row renders in the message list during generation (avatar + name visible, no actions)
  • Stable preview accumulation: completed paragraph/sentence prefixes are revealed progressively; the draft preview never shrinks during one generation
  • Regeneration in Bubble mode keeps the real message stable and shows a separate draft row; Classic regeneration is unchanged
  • Suppressed double typing indicator: the footer typing indicator is now classic-only since Bubble already shows a draft bubble with dots

Bug fixes and UX polish

  • Avatar drift: swipe controls moved out of the avatar-body flex row so the avatar always aligns to the bubble bottom, never to the swipe widget
  • Action bar position: assistant bubble actions now use left-12 (above the bubble's left edge) instead of right-4 (far right of the screen)
  • Compact typing bubble: assistant body column uses items-start so the typing-dots bubble shrinks to fit-content width
  • Regeneration flash: stream wind-down detection suppresses the draft row as soon as the buffer clears, eliminating the brief overlap where the updated real message and the draft row were both visible
  • Swipe pill styling: SwipeJumpControl rendered as a compact rounded-full pill in all three call sites (bubble mode, classic mode, grouped-segment mode)
  • Removed bubble hover scale: scale(1.005) on .texting-bubble:hover caused layout reflow with no visible benefit

Files changed

  • packages/client/src/stores/ui.store.ts — new setting
  • packages/client/src/components/chat/ConversationMessage.tsx — bubble layout, split classic/bubble render paths, swipe pill
  • packages/client/src/components/chat/ConversationView.tsx — streaming draft row, stable preview, regen draft row, wind-down suppression
  • packages/client/src/components/panels/SettingsPanel.tsx — Chat Layout section
  • packages/client/src/styles/globals.css — bubble CSS (removed hover scale)

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

  • Manually verify Linear mode renders exactly as before (no regression)
  • Manually verify Bubbles mode: avatar visible on first message in a group, grouped messages show no avatar, action bar appears above the bubble's left edge
  • Manually verify swipe controls appear as a pill below the bubble and the avatar does not drift
  • Manually verify streaming in Bubble mode: typing dots show in a compact bubble, stable preview text appears before stream completes, draft row disappears cleanly when the real message saves
  • Manually verify regeneration in Bubble mode: real message stays stable, draft row appears after it, no double-message flash on completion
  • Manually verify Chat Layout settings entry shows correct Live preview for both options

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Bildschirmfoto 2026-06-08 um 14 52 13

Summary by CodeRabbit

  • New Features

    • Chat layout preference: Linear vs Bubble with inline preview.
    • New message layouts and a floating action toolbar with copy, translate, edit, regenerate, hide-from-AI, peek/replay and delete options.
    • Image lightbox and improved attachments UI.
  • Improvements

    • Segmented multi-speaker rendering with staggered reveal and per-part reveal/ping.
    • Smoother streaming/regeneration previews and presentation-only regeneration drafts.
    • Centralized edit flow, translations, and optimistic attachment removal with rollback and error toast.
  • Style

    • Bubble CSS tweaks for more stable visuals.

🔄 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/2521 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 6/8/2026 **Status:** ✅ Merged **Merged:** 6/13/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `ConvoStyleRCS` --- ### 📝 Commits (10+) - [`88eb2ab`](https://github.com/Pasta-Devs/Marinara-Engine/commit/88eb2ab1f5e9a0b6fb5464821aff28f1ebb9f7f3) Add conversation message style toggle (Linear / Bubbles) - [`27c9474`](https://github.com/Pasta-Devs/Marinara-Engine/commit/27c94749aa4c18edf8cc0ec23c6a4cac04c82118) Split ConversationMessage into focused layout components - [`0809125`](https://github.com/Pasta-Devs/Marinara-Engine/commit/08091252d59fc2d64546397f7632d7641e16a74b) Clean up ConversationMessage split - [`482fe55`](https://github.com/Pasta-Devs/Marinara-Engine/commit/482fe55abe75243e489534bc61f0d11f37755c19) Merge remote-tracking branch 'refs/remotes/pr/2521' into HEAD - [`c8695ef`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c8695ef9fe8dc795bd7fc27f34bccd94669d027d) Merge branch 'staging' into ConvoStyleRCS - [`3c0d6bd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3c0d6bd0d8588c38c3a36eec397a6254adfe7145) Merge branch 'staging' into ConvoStyleRCS - [`cf323e7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cf323e7c9939e10e850cb5b3e9d2ed86c7f869a0) Merge origin/staging into ConvoStyleRCS - [`258c3da`](https://github.com/Pasta-Devs/Marinara-Engine/commit/258c3da6992d66b5334827b391d48ca7a7ccdf12) Fix conversation style chat regressions - [`47018b8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/47018b86436c2902e57c29ce700b2ef918cad2e9) Fix chat message action regressions - [`1f310c4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1f310c443e598b542e55812ea74c7d6985113a69) fix(chat): address PR review findings on ConversationMessage split ### 📊 Changes **10 files changed** (+2110 additions, -1694 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+323 -1178) ➕ `packages/client/src/components/chat/ConversationMessageActions.tsx` (+123 -0) ➕ `packages/client/src/components/chat/ConversationMessageBubble.tsx` (+230 -0) ➕ `packages/client/src/components/chat/ConversationMessageGrouped.tsx` (+265 -0) ➕ `packages/client/src/components/chat/ConversationMessageLine.tsx` (+197 -0) ➕ `packages/client/src/components/chat/ConversationMessageShared.tsx` (+546 -0) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+345 -507) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+65 -0) 📝 `packages/client/src/stores/ui.store.ts` (+15 -2) 📝 `packages/client/src/styles/globals.css` (+1 -7) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes # ## Why this change The chat conversation view had no layout choice — all messages were rendered in a single Discord-style row format. Users who prefer a messenger-style experience (iMessage / WhatsApp) had no alternative. This PR adds a **Chat Layout** toggle and a full **Bubble mode** implementation, along with a series of UX fixes discovered during implementation. ## What changed **New feature — Chat Layout toggle (`Linear` / `Bubbles`)** - New `conversationMessageStyle` setting in `ui.store.ts` with `"classic"` and `"bubble"` values - Settings panel entry under a new **Chat Layout** section with live preview (renamed from "Conversation Message Style" to cleaner "Linear / Bubbles" labels) - Bubble mode renders assistant messages left-aligned with avatar, user messages right-aligned, iMessage-style corner rounding that groups consecutive messages from the same sender **Bubble mode streaming** - Synthetic draft assistant row renders in the message list during generation (avatar + name visible, no actions) - Stable preview accumulation: completed paragraph/sentence prefixes are revealed progressively; the draft preview never shrinks during one generation - Regeneration in Bubble mode keeps the real message stable and shows a separate draft row; Classic regeneration is unchanged - Suppressed double typing indicator: the footer typing indicator is now classic-only since Bubble already shows a draft bubble with dots **Bug fixes and UX polish** - **Avatar drift**: swipe controls moved out of the avatar-body flex row so the avatar always aligns to the bubble bottom, never to the swipe widget - **Action bar position**: assistant bubble actions now use `left-12` (above the bubble's left edge) instead of `right-4` (far right of the screen) - **Compact typing bubble**: assistant body column uses `items-start` so the typing-dots bubble shrinks to fit-content width - **Regeneration flash**: stream wind-down detection suppresses the draft row as soon as the buffer clears, eliminating the brief overlap where the updated real message and the draft row were both visible - **Swipe pill styling**: `SwipeJumpControl` rendered as a compact `rounded-full` pill in all three call sites (bubble mode, classic mode, grouped-segment mode) - **Removed bubble hover scale**: `scale(1.005)` on `.texting-bubble:hover` caused layout reflow with no visible benefit **Files changed** - `packages/client/src/stores/ui.store.ts` — new setting - `packages/client/src/components/chat/ConversationMessage.tsx` — bubble layout, split classic/bubble render paths, swipe pill - `packages/client/src/components/chat/ConversationView.tsx` — streaming draft row, stable preview, regen draft row, wind-down suppression - `packages/client/src/components/panels/SettingsPanel.tsx` — Chat Layout section - `packages/client/src/styles/globals.css` — bubble CSS (removed hover scale) ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] 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 - Manually verify **Linear mode** renders exactly as before (no regression) - Manually verify **Bubbles mode**: avatar visible on first message in a group, grouped messages show no avatar, action bar appears above the bubble's left edge - Manually verify swipe controls appear as a pill below the bubble and the avatar does not drift - Manually verify streaming in Bubble mode: typing dots show in a compact bubble, stable preview text appears before stream completes, draft row disappears cleanly when the real message saves - Manually verify regeneration in Bubble mode: real message stays stable, draft row appears after it, no double-message flash on completion - Manually verify **Chat Layout** settings entry shows correct Live preview for both options ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) <img width="973" height="981" alt="Bildschirmfoto 2026-06-08 um 14 52 13" src="https://github.com/user-attachments/assets/ca0a7180-191d-4417-8a63-ae7b15ea5d7b" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Chat layout preference: Linear vs Bubble with inline preview. * New message layouts and a floating action toolbar with copy, translate, edit, regenerate, hide-from-AI, peek/replay and delete options. * Image lightbox and improved attachments UI. * **Improvements** * Segmented multi-speaker rendering with staggered reveal and per-part reveal/ping. * Smoother streaming/regeneration previews and presentation-only regeneration drafts. * Centralized edit flow, translations, and optimistic attachment removal with rollback and error toast. * **Style** * Bubble CSS tweaks for more stable visuals. <!-- 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-22 04:18:00 +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#5635
No description provided.