[PR #7590] [MERGED] fix(chat): show a summary's full title and range on mobile, neutral delete button #7819

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7590
Author: @SpicyMarinara
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/summary-mobile-header-delete


📝 Commits (1)

  • 52e9f74 fix(chat): show a summary's full title and range on mobile, neutral delete button

📊 Changes

2 files changed (+84 additions, -1 deletions)

View changed files

📝 e2e/summary-controls.e2e.ts (+78 -0)
📝 packages/client/src/components/chat/ChatSummaryPanel.tsx (+6 -1)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

No linked issue: requested by the maintainer on 2026-10-14.

Why this change

  • On a phone, a summary's row in Chat Summary (Roleplay) has room for only a few characters, so the summary's title and the range of messages it covers were cut off and could not be read anywhere.
  • The Delete button on each summary was bright red, unlike the Expand and Edit buttons next to it. It should use the same chat chrome text colour.

What changed

  • On mobile only, opening a summary now shows its whole title and its whole message range (with the token estimate) above the summary text, wrapping onto as many lines as needed; very long words break instead of running off the edge.
  • The closed row looks the same as before, and desktop is unchanged (the new lines are hidden at md and wider).
  • While a summary is being edited, the editor is unchanged; on a phone it already shows the whole range (checked at 390px).
  • A summary's Delete button now uses the same colours as its Expand and Edit neighbours: --muted-foreground normally, and --foreground text on an --accent background on hover. In the Chat Settings window these resolve to the chat chrome tokens (--marinara-chat-chrome-panel-muted, --marinara-chat-chrome-panel-text, --marinara-chat-chrome-highlight-bg). It keeps its label, its confirmation and its disabled state.
  • No new text or translation keys: the new lines reuse the summary's own title and the existing range text.
  • New e2e test in e2e/summary-controls.e2e.ts. On phones it checks that an opened summary shows the whole title and range above the text without clipping. On desktop it checks that those lines stay hidden. In both it checks that Delete has the same colour as Edit and is not the destructive colour. It failed on all three projects before the fix and passes after it.

Not changed (other red buttons in the Chat Summary panel, left as they are): Delete selected (N), a batch range's Remove range (X), Clear extra ranges, a prompt template's Delete template (grey, red on hover), plus the red Stop, batch Cancel and range error buttons, which do not delete anything.

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

Commands run by the agent:

  • pnpm exec playwright test e2e/summary-controls.e2e.ts -g "whole title and range": 3 failed before the fix (desktop: Delete colour; both phones: full title missing), 3 passed after (desktop-chromium, mobile-chromium, mobile-webkit).
  • pnpm exec playwright test e2e/summary-controls.e2e.ts (whole spec): 19 passed, 5 skipped (existing project-specific skips).
  • pnpm localization:check: passed, 0 new English keys.
  • pnpm check: passed.
  • Local CodeRabbit (coderabbit review --agent --committed): completed, 0 findings.

Manual verification notes

  • Manually verify on a phone that opening a summary in Chat Summary (Roleplay chat) shows its whole title and message range above the summary text.
  • Manually verify on a phone that a very long title wraps inside the summary and does not run off the edge.
  • Manually verify on a phone that a closed summary row looks the same as before.
  • Manually verify on desktop that an opened summary looks the same as before (no extra title lines).
  • Manually verify that a summary's Delete button is the same colour as the Edit button beside it, in both light and dark mode, and highlights the same way on hover on desktop.
  • Manually verify that Delete still asks for confirmation and removes the summary.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Before/after Playwright screenshots (phone: closed and opened; desktop: opened, to show it is unchanged; phone: editing) were taken locally and are not uploaded.

Summary by CodeRabbit

  • Bug Fixes
    • On mobile, expanded summaries now display the full title and message range above the summary text without horizontal overflow.
    • The Delete button now uses the same muted text styling as Edit instead of destructive coloring.

🔄 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/7590 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/summary-mobile-header-delete` --- ### 📝 Commits (1) - [`52e9f74`](https://github.com/Pasta-Devs/Marinara-Engine/commit/52e9f74aec917e203b4702df769e329b71ea6b06) fix(chat): show a summary's full title and range on mobile, neutral delete button ### 📊 Changes **2 files changed** (+84 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `e2e/summary-controls.e2e.ts` (+78 -0) 📝 `packages/client/src/components/chat/ChatSummaryPanel.tsx` (+6 -1) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue No linked issue: requested by the maintainer on 2026-10-14. ## Why this change - On a phone, a summary's row in Chat Summary (Roleplay) has room for only a few characters, so the summary's title and the range of messages it covers were cut off and could not be read anywhere. - The Delete button on each summary was bright red, unlike the Expand and Edit buttons next to it. It should use the same chat chrome text colour. ## What changed - On mobile only, opening a summary now shows its whole title and its whole message range (with the token estimate) above the summary text, wrapping onto as many lines as needed; very long words break instead of running off the edge. - The closed row looks the same as before, and desktop is unchanged (the new lines are hidden at `md` and wider). - While a summary is being edited, the editor is unchanged; on a phone it already shows the whole range (checked at 390px). - A summary's Delete button now uses the same colours as its Expand and Edit neighbours: `--muted-foreground` normally, and `--foreground` text on an `--accent` background on hover. In the Chat Settings window these resolve to the chat chrome tokens (`--marinara-chat-chrome-panel-muted`, `--marinara-chat-chrome-panel-text`, `--marinara-chat-chrome-highlight-bg`). It keeps its label, its confirmation and its disabled state. - No new text or translation keys: the new lines reuse the summary's own title and the existing range text. - New e2e test in `e2e/summary-controls.e2e.ts`. On phones it checks that an opened summary shows the whole title and range above the text without clipping. On desktop it checks that those lines stay hidden. In both it checks that Delete has the same colour as Edit and is not the destructive colour. It failed on all three projects before the fix and passes after it. Not changed (other red buttons in the Chat Summary panel, left as they are): **Delete selected (N)**, a batch range's **Remove range** (X), **Clear** extra ranges, a prompt template's **Delete template** (grey, red on hover), plus the red **Stop**, batch **Cancel** and range error buttons, which do not delete anything. ## 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` Commands run by the agent: - `pnpm exec playwright test e2e/summary-controls.e2e.ts -g "whole title and range"`: 3 failed before the fix (desktop: Delete colour; both phones: full title missing), 3 passed after (desktop-chromium, mobile-chromium, mobile-webkit). - `pnpm exec playwright test e2e/summary-controls.e2e.ts` (whole spec): 19 passed, 5 skipped (existing project-specific skips). - `pnpm localization:check`: passed, 0 new English keys. - `pnpm check`: passed. - Local CodeRabbit (`coderabbit review --agent --committed`): completed, 0 findings. ### Manual verification notes - Manually verify on a phone that opening a summary in Chat Summary (Roleplay chat) shows its whole title and message range above the summary text. - Manually verify on a phone that a very long title wraps inside the summary and does not run off the edge. - Manually verify on a phone that a closed summary row looks the same as before. - Manually verify on desktop that an opened summary looks the same as before (no extra title lines). - Manually verify that a summary's Delete button is the same colour as the Edit button beside it, in both light and dark mode, and highlights the same way on hover on desktop. - Manually verify that Delete still asks for confirmation and removes the summary. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Before/after Playwright screenshots (phone: closed and opened; desktop: opened, to show it is unchanged; phone: editing) were taken locally and are not uploaded. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * On mobile, expanded summaries now display the full title and message range above the summary text without horizontal overflow. * The Delete button now uses the same muted text styling as Edit instead of destructive coloring. <!-- 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-24 04:07:51 +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#7819
No description provided.