Skip to content

Issue #16 - [FEATURE] Add Confirmation Dialog for Session Deletion #34

@rogelio-cmj

Description

@rogelio-cmj

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:

  1. Launch the Chatbox application
  2. Create a new chat session or use an existing one with some message history
  3. Locate the session in the left sidebar session list
  4. Click the three-dot menu icon (MoreHorizOutlinedIcon) next to the session name
  5. Click "Delete" in the dropdown menu
  6. 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

  1. Start the application and ensure you have at least one chat session
  2. Click the three-dot menu icon next to the session name
  3. Click "Delete" from the menu
  4. Verify a confirmation dialog appears asking you to confirm the deletion
  5. Verify the dialog mentions the session name that will be deleted
  6. Click "Cancel" in the dialog
  7. Verify the dialog closes and the session is NOT deleted (still visible in the list)
  8. Open the delete menu again and click "Delete"
  9. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions