Skip to content

feat(admin): add confirmation dialog for user deletion (#1648) #1649

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

deepanshu2711
Copy link
Contributor

This PR enhances the user deletion UX in the Admin User List by adding a confirmation dialog to prevent accidental deletions

Closes #1648

🧾 Changes Made:

💬Action confirmation dialog (ActionConfirmingDialog) wraps the delete button for each user.
🧠 State: Added local userToDelete state to manage dialog visibility and context.
🎨 Updated translation file:
Added: "delete_user_confirm_description": "Are you sure you want to delete user "{{name}}"?"

Karakeep

@MohamedBassem
Copy link
Collaborator

Hey, LGTM! You don't really need to manage the dialog state in this case, so I've sent this small modification.

Thanks for the quick PR and welcome to the contributors list!

@MohamedBassem MohamedBassem merged commit 0f4c616 into karakeep-app:main Jun 21, 2025
5 checks passed
@deepanshu2711
Copy link
Contributor Author

@MohamedBassem Thanks a lot! Appreciate the feedback and the tweak 🙌 Excited to contribute more!

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.

[FR] Add a confirmation dialog to user deletion in the admin panel
2 participants