Skip to content

feat: add comprehensive credential deletion confirmation with undo fu…#124

Merged
Josie123-Dev merged 1 commit into
GuardZero144:mainfrom
wandooadzer-cmyk:wandoo-grantfox
Jul 22, 2026
Merged

feat: add comprehensive credential deletion confirmation with undo fu…#124
Josie123-Dev merged 1 commit into
GuardZero144:mainfrom
wandooadzer-cmyk:wandoo-grantfox

Conversation

@wandooadzer-cmyk

Copy link
Copy Markdown

…nctionality

  • Create DeletionConfirmationModal component with credential details display
  • Add confirmation input requiring 'DELETE' text for safety
  • Implement 10-second undo countdown after deletion
  • Show deletion status (deleting, deleted, failed, undoable)
  • Update health-credential-vault to use modal instead of direct deletion
  • Add accessibility features and keyboard navigation support

I've implemented the comprehensive credential deletion confirmation feature. Here's what was created:

New Component: deletion-confirmation-modal.tsx

  • Displays credential details (vaccine type, status, date, ID)
  • Shows warning about consequences (removes from vault, invalidates verifications, deletes from IPFS, records on blockchain)
  • Requires typing "DELETE" to confirm deletion
  • Implements 10-second undo countdown with progress bar
  • Shows deletion status (idle → deleting → undoable → deleted)

Updated: health-credential-vault.tsx

  • Replaced direct deletion with modal confirmation
  • Added state management for modal and deletion status
  • Implemented undo functionality that restores the credential

Features:

  • Accessibility: ARIA labels, keyboard navigation (Escape to close)
  • Visual feedback: Loading spinner during deletion, countdown progress bar
  • Toast notifications for undo confirmation

All 39 existing tests pass. The changes have been committed to the wandoo-grantfox branch.

Closes #75

…nctionality

- Create DeletionConfirmationModal component with credential details display
- Add confirmation input requiring 'DELETE' text for safety
- Implement 10-second undo countdown after deletion
- Show deletion status (deleting, deleted, failed, undoable)
- Update health-credential-vault to use modal instead of direct deletion
- Add accessibility features and keyboard navigation support
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Josie's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sure-data Ready Ready Preview, Comment Jul 22, 2026 4:54am

@Josie123-Dev
Josie123-Dev merged commit 26bb2e5 into GuardZero144:main Jul 22, 2026
3 checks passed
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.

[Hard] Implement credential deletion confirmation

2 participants