[PR #92] [MERGED] feat(chat): Select-below by default on Delete more with range helpers #4458

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/92
Author: @LukaTheHero
Created: 4/16/2026
Status: ✅ Merged
Merged: 4/16/2026
Merged by: @LukaTheHero

Base: main ← Head: fix/delete-more-selects-below


📝 Commits (1)

  • f83da79 feat(chat): Select-below by default on Delete more with range helpers

📊 Changes

4 files changed (+134 additions, -20 deletions)

View changed files

📝 packages/client/src/components/chat/ChatArea.tsx (+49 -2)
📝 packages/client/src/components/chat/ChatCommonOverlays.tsx (+67 -18)
📝 packages/client/src/components/chat/ChatConversationSurface.tsx (+9 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+9 -0)

📄 Description

Summary

  • Delete more now selects the target message plus every message below it, so lopping off a tail is one click instead of N. Applies to both roleplay and conversation modes.
  • The multi-select bar gains an Unselect all button (medium pill), flanked by small ChevronUp / ChevronDown icon buttons with hover tooltips that extend the current selection upward or downward to the start/end of the chat — useful when the default select-below pick is too broad or too narrow.
  • All three new controls disable + dim when the selection is empty, matching the existing Delete selected styling.

Why

Before this change, clicking Delete more at message 27 only highlighted 27 and forced the user to tap every subsequent message individually to prune the tail. The new default reflects the common intent (“delete from here on”) while keeping fine-grained adjustment one click away.

Test plan

  • Roleplay mode: open a chat with 20+ messages, click the trash icon on message 10, choose Delete more — verify 10 and all messages after it are selected.
  • Conversation mode: same flow, same expectation.
  • Click Unselect all — verify selection clears but multi-select stays open.
  • With a partial selection, click the ↑ arrow — verify everything above the earliest-selected is added; click ↓ — verify everything below the latest-selected is added.
  • Hover both arrow buttons — verify the "Select all messages above" / "Select all messages below" tooltips appear.
  • Click Delete selected — verify the selected messages are removed.
  • Click Cancel — verify multi-select closes without deleting.

🔄 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/92 **Author:** [@LukaTheHero](https://github.com/LukaTheHero) **Created:** 4/16/2026 **Status:** ✅ Merged **Merged:** 4/16/2026 **Merged by:** [@LukaTheHero](https://github.com/LukaTheHero) **Base:** `main` ← **Head:** `fix/delete-more-selects-below` --- ### 📝 Commits (1) - [`f83da79`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f83da794643cab3e02dd32af323f9ac3c0a986a3) feat(chat): Select-below by default on Delete more with range helpers ### 📊 Changes **4 files changed** (+134 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatArea.tsx` (+49 -2) 📝 `packages/client/src/components/chat/ChatCommonOverlays.tsx` (+67 -18) 📝 `packages/client/src/components/chat/ChatConversationSurface.tsx` (+9 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+9 -0) </details> ### 📄 Description ## Summary - **Delete more** now selects the target message plus every message below it, so lopping off a tail is one click instead of N. Applies to both roleplay and conversation modes. - The multi-select bar gains an **Unselect all** button (medium pill), flanked by small ChevronUp / ChevronDown icon buttons with hover tooltips that extend the current selection upward or downward to the start/end of the chat — useful when the default select-below pick is too broad or too narrow. - All three new controls disable + dim when the selection is empty, matching the existing Delete selected styling. ## Why Before this change, clicking **Delete more** at message 27 only highlighted 27 and forced the user to tap every subsequent message individually to prune the tail. The new default reflects the common intent (“delete from here on”) while keeping fine-grained adjustment one click away. ## Test plan - [x] Roleplay mode: open a chat with 20+ messages, click the trash icon on message 10, choose **Delete more** — verify 10 and all messages after it are selected. - [x] Conversation mode: same flow, same expectation. - [x] Click **Unselect all** — verify selection clears but multi-select stays open. - [x] With a partial selection, click the ↑ arrow — verify everything above the earliest-selected is added; click ↓ — verify everything below the latest-selected is added. - [x] Hover both arrow buttons — verify the "Select all messages above" / "Select all messages below" tooltips appear. - [x] Click **Delete selected** — verify the selected messages are removed. - [x] Click **Cancel** — verify multi-select closes without deleting. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:07:45 +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#4458
No description provided.