Skip to content

[Feature] [Enhancement] Add Delete Confirmation Modal for Lecture Management #73

@YLaxmikanth

Description

@YLaxmikanth

Problem Statement

Currently, lectures can be deleted directly without an additional confirmation step. This increases the risk of accidental deletions, especially when teachers manage multiple lectures or unintentionally click the delete action. Since lecture sessions may contain valuable feedback, analytics, and session history, accidental deletion can lead to irreversible data loss and a poor user experience.

Proposed Solution

Introduce a confirmation modal before permanently deleting a lecture.

The confirmation dialog should:

  • Display the name/title of the lecture being deleted.
  • Clearly inform the user that the action cannot be easily undone.
  • Provide Cancel and Delete actions.
  • Only proceed with deletion after explicit user confirmation.

This enhancement will reduce accidental deletions and improve overall confidence when managing lectures.

Alternative Approaches

An alternative approach would be implementing an "Undo Delete" mechanism or a temporary recycle bin for deleted lectures. However, these solutions require additional storage and recovery logic. A confirmation dialog is simpler, lightweight, and prevents accidental deletions before they occur while maintaining the current workflow.

Affected Area

  • UI / UX
  • New component
  • New page
  • Analytics / Charts
  • Authentication
  • Other: Lecture Management / Teacher Dashboard

Mockups / Additional Context

Example confirmation message:

Delete Lecture?

"Are you sure you want to delete 'Introduction to Machine Learning'? This action may remove associated lecture data and cannot be easily undone."

Buttons:

  • Cancel
  • Delete

The modal can be displayed whenever a user clicks the delete action for a lecture, ensuring intentional deletion and improving usability.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions