impierce / identity-wallet

A Tauri-based Identity Wallet for people to manage Decentralized Identities and Verifiable Credentials.
https://www.impierce.com
Apache License 2.0
17 stars 4 forks source link

Delete credential #227

Open daniel-mader opened 1 month ago

daniel-mader commented 1 month ago

Description

A user should have the possibility to fully remove a credential from their wallet.

While this was not important in the early phases of development and for demo environments, it is now becoming more of an inconvenience during testing not to be able to recreate a flow again.

The user should be prompted with a confirmation screen before the credential is actually removed (this could be turned off in dev mode). In this confirmation screen, the user could be asked if they want to keep the associated history for that credential or if it should also be removed.

Motivation

Required for production release, but would already improve DX in current stage.

Requirements

  1. New action & reducer to trigger removal (parameters: credential_id, remove_history: bool)
  2. UI element ("three dot menu") in credential/badge details to trigger confirmation sheet
  3. New UI element: "confirmation sheet" (switch/checkbox to confirm removal of history)

Open Questions

Are you planning to contribute this in a PR?

Yes