forked from chatboxai/chatbox
-
Notifications
You must be signed in to change notification settings - Fork 155
Open
Description
Current Behavior
When a user clicks the delete option in a session's context menu, the session is immediately deleted without any confirmation prompt.
Reproduction Steps:
- Launch the Chatbox application
- Create a new chat session or use an existing one with some message history
- Locate the session in the left sidebar session list
- Click the three-dot menu icon (MoreHorizOutlinedIcon) next to the session name
- Click "Delete" in the dropdown menu
- Observe: The session is immediately deleted without any confirmation
Expected Behavior
When a user attempts to delete a session, a confirmation dialog should appear asking them to confirm the deletion before the action is executed. The dialog should clearly communicate what will be deleted and require explicit user confirmation.
Acceptance Criteria:
- Clicking "Delete" in the session menu opens a confirmation dialog instead of immediately deleting
- The confirmation dialog clearly states which session will be deleted (displays the session name)
- The dialog has two options: a "Cancel" button and a "Delete" button
- Clicking "Cancel" closes the dialog without deleting the session
- Clicking "Delete" closes the dialog and deletes the session
- The dialog styling is consistent with other dialogs in the application (SettingWindow, ChatConfigWindow, CleanWindow)
Steps To Test
- Start the application and ensure you have at least one chat session
- Click the three-dot menu icon next to the session name
- Click "Delete" from the menu
- Verify a confirmation dialog appears asking you to confirm the deletion
- Verify the dialog mentions the session name that will be deleted
- Click "Cancel" in the dialog
- Verify the dialog closes and the session is NOT deleted (still visible in the list)
- Open the delete menu again and click "Delete"
- Verify the dialog closes and the session is now deleted from the list
Submission
Download https://cap.so/ to record your screen (use Studio mode). Export as an mp4, and drag and drop into an issue comment below.
Guide to submitting pull requests: https://hackmd.io/@timothy1ee/Hky8kV3hlx
Metadata
Metadata
Assignees
Labels
No labels