fix(licenses): add double confirmation for permanent deletion of packages and keys #391

Open
opened 2026-06-01 09:27:31 +00:00 by jmiller · 1 comment
Owner

Summary

Permanent deletion of license packages and keys should require a double confirmation to prevent accidental data loss. Currently uses a single modal confirm.

Requirements

  • First click shows modal asking to type the package/key name to confirm
  • Only enable Delete button when typed name matches exactly
  • Pattern: similar to GitHub repo deletion confirmation

Test Plan

  • Click delete on package → modal appears with name input
  • Type wrong name → Delete button stays disabled
  • Type correct name → Delete button enabled, click deletes
  • Same flow for key deletion

🤖 Generated with Claude Code

## Summary Permanent deletion of license packages and keys should require a double confirmation to prevent accidental data loss. Currently uses a single modal confirm. ## Requirements - First click shows modal asking to type the package/key name to confirm - Only enable Delete button when typed name matches exactly - Pattern: similar to GitHub repo deletion confirmation ## Test Plan - [ ] Click delete on package → modal appears with name input - [ ] Type wrong name → Delete button stays disabled - [ ] Type correct name → Delete button enabled, click deletes - [ ] Same flow for key deletion 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

Testing Plan — Double Confirmation for Deletion

GUI

  • Click delete on package → modal appears with name input field
  • Type wrong name → Delete button stays disabled/greyed
  • Type correct package name → Delete button enables
  • Click enabled Delete → package removed, flash success
  • Same flow for key deletion (type key prefix to confirm)
  • Cancel button in modal closes without action
  • Works on both repo and org pages

🤖 Generated with Claude Code

## Testing Plan — Double Confirmation for Deletion ### GUI - [ ] Click delete on package → modal appears with name input field - [ ] Type wrong name → Delete button stays disabled/greyed - [ ] Type correct package name → Delete button enables - [ ] Click enabled Delete → package removed, flash success - [ ] Same flow for key deletion (type key prefix to confirm) - [ ] Cancel button in modal closes without action - [ ] Works on both repo and org pages 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jmiller added the pending: testing label 2026-06-01 10:13:54 +00:00
Sign in to join this conversation.
No labels pending: testing
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoGitea#391