From d132b04de00499664699ad0ae30c4ee115792252 Mon Sep 17 00:00:00 2001 From: minhn4 Date: Tue, 11 Aug 2026 10:36:13 +0700 Subject: [PATCH 1/2] feat(app): make the session menu's Delete item red and drop its ellipsis MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both surfaces the item renders on — the sidebar/home session rows and the menu beside a session title — go through SessionActionsMenu, so this is one edit. The colour rides on the item's own `--menu-v2-fg` hook rather than a text utility, because menu-v2.css colours the label span directly and a class on the item would not reach it. Only the v2 branch is touched: the legacy DropdownMenu fallback is unreachable now that settings.general.newLayoutDesigns() is hardcoded true. Adds an e2e guard, since the colour depends on a shared component's internal variable. It resolves the danger token at runtime instead of pinning a hex, and checks that a sibling item is not also red. Co-Authored-By: Claude Opus 5 (1M context) --- CHANGELOG.md | 5 ++ DIVERGENCES.md | 2 +- .../session-menu-delete-item.spec.ts | 81 +++++++++++++++++++ packages/app/src/components/app-sidebar.tsx | 1 + .../src/components/session-actions-menu.tsx | 12 ++- 5 files changed, 97 insertions(+), 4 deletions(-) create mode 100644 packages/app/e2e/regression/session-menu-delete-item.spec.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 311ca9d8cd..8ba6e74541 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,11 @@ file is the human-readable summary of what changed and why. ### Desktop / Web UI +- **Delete reads as destructive** — the **Delete** item in a session's ⋮ / ⋯ + menu is now red, in both the sidebar rows and the menu beside a session + title, and it has lost its trailing ellipsis. It still asks for confirmation + before deleting. **Share…** keeps its ellipsis. + - **Recents folds away** — the **Recents** header in the sidebar is now a toggle. Clicking it collapses the section to just its title, hiding the **New session** row, the session list and **View all**. The title stays where diff --git a/DIVERGENCES.md b/DIVERGENCES.md index 0b1321ce5b..4019e0c3bd 100644 --- a/DIVERGENCES.md +++ b/DIVERGENCES.md @@ -122,7 +122,7 @@ from the squash message first, or use a plain merge. | `packages/app/src/pages/layout-new.tsx`, `packages/app/src/pages/home.tsx`, `packages/app/src/i18n/{en,es}.ts` | **Persistent app sidebar.** Upstream's project column is an `