Skip to content

feat: add delete session button to session header#6732

Open
usvimal wants to merge 2 commits intoanomalyco:devfrom
usvimal:feat/delete-session-button
Open

feat: add delete session button to session header#6732
usvimal wants to merge 2 commits intoanomalyco:devfrom
usvimal:feat/delete-session-button

Conversation

@usvimal
Copy link
Contributor

@usvimal usvimal commented Jan 3, 2026

Summary

Adds a delete button in the session header for quick session cleanup.

Changes

  • Added X icon button next to the "New session" button
  • Shows confirmation dialog before deletion
  • Navigates to new session page after successful deletion
  • Button only visible when a session is selected

UI Location

[Project ▾] / [Session ▾]  [✏️ New]  [✕ Delete]

Testing

  • Click delete button on any session
  • Confirm deletion in dialog
  • Session should be deleted and redirected to new session page

Adds an X button next to the session selector that allows users to delete
the current session. Shows a confirmation dialog before deletion and
navigates to a new session page after successful deletion.
- Add session.deleted event handler in global-sync.tsx to remove deleted sessions from UI
- Create DialogConfirmDelete component matching app design system
- Replace native browser confirm() with styled dialog for consistent UX
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.

1 participant

Comments