[PR #4017] [MERGED] Refresh message deletion UI with accent styling #6205

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

📋 Pull Request Information

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

Base: staging ← Head: fix/message-delete-accent-ui


📝 Commits (3)

  • 0e9aaa0 fix(ui): refresh message deletion controls
  • 6518666 Merge remote-tracking branch 'origin/staging' into fix/message-delete-accent-ui
  • 9b24840 test(ui): cover swipe deletion controls

📊 Changes

11 files changed (+325 additions, -92 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+165 -0)
📝 packages/client/src/components/chat/ChatCommonOverlays.tsx (+72 -53)
📝 packages/client/src/components/chat/ChatMessage.tsx (+21 -14)
📝 packages/client/src/components/chat/ConversationMessage.tsx (+4 -3)
📝 packages/client/src/components/chat/ConversationMessageBubble.tsx (+10 -5)
📝 packages/client/src/components/chat/ConversationMessageGrouped.tsx (+12 -6)
📝 packages/client/src/components/chat/ConversationMessageLine.tsx (+10 -5)
➕ packages/client/src/components/chat/message-selection-styles.ts (+8 -0)
📝 packages/client/src/components/game/GameNarration.tsx (+10 -6)
📝 packages/client/src/localization/locales/en.json (+12 -0)

📄 Description

Why

The single-message deletion dialog and multi-message selection flow still used the legacy destructive pink/red treatment. That made the controls inconsistent with the refreshed Marinara UI and ignored the user-configured accent/chroma color.

No linked issue was provided for this UI fix.

What changed

  • Replaced the hand-built delete prompt with the shared modal and unified chrome controls.
  • Gave Delete, Delete more, swipe deletion, and Cancel the same accent-driven treatment.
  • Moved multi-message selection bars, checkboxes, selected-message highlights, and Game message deletion controls onto shared chroma tokens.
  • Added semantic English localization keys for the deletion flow.
  • Added desktop and mobile regression coverage that changes the accent at runtime and verifies the controls follow it.
  • Documented the fix in the changelog.

Root cause

The deletion flow predated the shared chrome component styles and referenced --destructive and fixed red hover utilities directly across several message renderers.

Validation

  • pnpm check
  • pnpm exec playwright test e2e/core-flows.e2e.ts --grep "message deletion uses unified chroma controls" (desktop and mobile)
  • Visual inspection of the modal and multi-select tray at desktop and Pixel-sized mobile viewports

Manual verification

  • Manually verify single-message deletion in Conversation, Roleplay, and Game modes.
  • Manually verify multi-message selection and cancellation on desktop.
  • Manually verify the selection tray remains clear of mobile safe areas.
  • Manually change the Appearance accent/chroma setting and confirm every deletion control updates.

Summary by CodeRabbit

  • Bug Fixes
    • Updated message deletion dialogs and multi-select controls with a consistent, theme-aware visual style.
    • Replaced fixed destructive red/pink styling with accent-color-based buttons, selection bars, checkboxes, and selected-message highlights.
    • Improved deletion controls with shared modal layouts, clearer icons, accessibility labels, and localized text.
    • Standardized deletion styling across chats and session logs.
  • Tests
    • Added end-to-end coverage for single-message deletion, multi-selection, accent-color updates, and selection states.

🔄 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/4017 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/23/2026 **Status:** ✅ Merged **Merged:** 7/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/message-delete-accent-ui` --- ### 📝 Commits (3) - [`0e9aaa0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0e9aaa0b034591adac7f81fa1c1f2b087ce9fb85) fix(ui): refresh message deletion controls - [`6518666`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6518666800393712fbfbbd63cad692cec96428a7) Merge remote-tracking branch 'origin/staging' into fix/message-delete-accent-ui - [`9b24840`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9b2484060e09825bad7920e6a93d5f69ae270796) test(ui): cover swipe deletion controls ### 📊 Changes **11 files changed** (+325 additions, -92 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+165 -0) 📝 `packages/client/src/components/chat/ChatCommonOverlays.tsx` (+72 -53) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+21 -14) 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+4 -3) 📝 `packages/client/src/components/chat/ConversationMessageBubble.tsx` (+10 -5) 📝 `packages/client/src/components/chat/ConversationMessageGrouped.tsx` (+12 -6) 📝 `packages/client/src/components/chat/ConversationMessageLine.tsx` (+10 -5) ➕ `packages/client/src/components/chat/message-selection-styles.ts` (+8 -0) 📝 `packages/client/src/components/game/GameNarration.tsx` (+10 -6) 📝 `packages/client/src/localization/locales/en.json` (+12 -0) </details> ### 📄 Description ## Why The single-message deletion dialog and multi-message selection flow still used the legacy destructive pink/red treatment. That made the controls inconsistent with the refreshed Marinara UI and ignored the user-configured accent/chroma color. No linked issue was provided for this UI fix. ## What changed - Replaced the hand-built delete prompt with the shared modal and unified chrome controls. - Gave Delete, Delete more, swipe deletion, and Cancel the same accent-driven treatment. - Moved multi-message selection bars, checkboxes, selected-message highlights, and Game message deletion controls onto shared chroma tokens. - Added semantic English localization keys for the deletion flow. - Added desktop and mobile regression coverage that changes the accent at runtime and verifies the controls follow it. - Documented the fix in the changelog. ## Root cause The deletion flow predated the shared chrome component styles and referenced `--destructive` and fixed red hover utilities directly across several message renderers. ## Validation - `pnpm check` - `pnpm exec playwright test e2e/core-flows.e2e.ts --grep "message deletion uses unified chroma controls"` (desktop and mobile) - Visual inspection of the modal and multi-select tray at desktop and Pixel-sized mobile viewports ## Manual verification - [ ] Manually verify single-message deletion in Conversation, Roleplay, and Game modes. - [ ] Manually verify multi-message selection and cancellation on desktop. - [ ] Manually verify the selection tray remains clear of mobile safe areas. - [ ] Manually change the Appearance accent/chroma setting and confirm every deletion control updates. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Updated message deletion dialogs and multi-select controls with a consistent, theme-aware visual style. - Replaced fixed destructive red/pink styling with accent-color-based buttons, selection bars, checkboxes, and selected-message highlights. - Improved deletion controls with shared modal layouts, clearer icons, accessibility labels, and localized text. - Standardized deletion styling across chats and session logs. - **Tests** - Added end-to-end coverage for single-message deletion, multi-selection, accent-color updates, and selection states. <!-- 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:08:08 +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#6205
No description provided.