Skip to content

feat(app): add "Delete permanently" hover action on archived sessions - #180

Merged
jeonghun-jj-lee merged 4 commits into
local/amicodefrom
310-delete-archived-sessions
Aug 11, 2026
Merged

feat(app): add "Delete permanently" hover action on archived sessions#180
jeonghun-jj-lee merged 4 commits into
local/amicodefrom
310-delete-archived-sessions

Conversation

@jeonghun-jj-lee

Copy link
Copy Markdown
Contributor

Adds a trash-icon hover button next to the existing Unarchive button on archived session rows in both the home dashboard flyout and the in-session header dropdown. Clicking it opens a confirmation dialog before permanently deleting the session.

Also fixes:

  • Tooltip z-index rendering behind the titlebar flyout (bumped from 1000 → 10000)
  • Dialog z-index rendering behind the flyout (base from 50 → 10000 in the portal layer)
  • Sessions flyout staying open while a dialog is active (outside-click handler now excludes dialog layers)

Closes harmoniqs/amicode#310

… (#310)

Add a trash-icon hover button next to the existing Unarchive button on
archived session rows in both the home dashboard flyout and the in-session
header dropdown. Clicking it opens a confirmation dialog (reusing the
existing i18n keys and DialogV2 pattern) before permanently deleting the
session via the SDK.

Closes #310
- Switch delete button from IconV2 (which lacks a 'trash' entry and
  silently falls back to '+') to the v1 Icon component which has the
  proper trash SVG.
- Bump TooltipV2 z-index from 1000 to 10000 so tooltips render above
  the sessions flyout (z-index 9999). This fixes the hover bubble
  appearing behind the titlebar dropdown for all tooltip actions
  (unarchive, delete).
The useDialog context computed z-index as 50 + layer*10, rendering the
dialog overlay and container behind the titlebar sessions flyout (z-index
9999). Bump the base to 10000 so confirmation dialogs appear on top.

The inline style from dialog.tsx overrides the CSS fallback in
dialog-v2.css, so the CSS values (z-index: 50) are left as-is — they
only matter for non-portalled dialogs.
The outside-click handlers on both the titlebar and dashboard sessions
flyouts were closing the dropdown when the user clicked inside the delete
confirmation dialog (portalled to body, outside flyoutRoot). Add a check
to skip dismissal when the click target is inside a dialog layer.
@jeonghun-jj-lee
jeonghun-jj-lee merged commit 9f625a0 into local/amicode Aug 11, 2026
2 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: No "Delete permanently" hover button on archived sessions list

1 participant