As an identity holder, I want to remove an identity from my phone, knowingly, so that the phone only holds the keys I still use.
Situation
I have an identity here that I no longer need on this phone, or I am handing the phone to someone. I have checked that I hold its recovery words or a key file. I am on the Me tab.
What I do
For an identity that is not in use: swipe its row to the left and tap the delete button.
For any identity, including the current one: open it and tap "Remove from this device" at the bottom.
Read the alert and tap "Remove".
What I should see
With several identities, Me says "Tap an identity to use it. Swipe to remove it from this device."
Only the smaller rows can be swiped. The current identity is removed from its own page. See Identity detail.
"Remove from this device" is the last row of that page, in red.
Both ways open the same alert, titled "Remove this identity?", with "Its key is deleted from this device. Without its recovery phrase or a key file, it can’t be recovered." and the buttons "Remove" in red and "Cancel".
Nothing is removed until I tap "Remove".
After removing from the page, I am taken back to Me.
The identity is gone from Me and from the Vault list.
Removing an identity I was not using leaves my current identity as it was.
Removing the current identity makes my oldest remaining identity current.
Removing my last identity leaves Me saying "No identity yet" with "Create identity" and "Import identity".
Any key file that was revealed on screen is hidden.
When something goes wrong
If I change my mind, "Cancel" closes the alert and the identity stays.
If I removed the wrong one, I bring it back with its recovery words or key file through Import an identity I already have. Without either, it is lost.
Not included
The alert speaks only of this device. When a remote vault is connected, the removal also travels to the vault and takes the identity off my other devices at their next sync, and the alert does not say so. See Keep my identities in sync across devices.
There is no undo and no waiting period.
My public profile, documents and comments stay published. Removing a key does not delete anything from the network.
If the removal fails because the identity is already gone, no message is shown.
The app does not check that I have a backup first.
Trace
Story US-ID-06, status Shipped. These links are kept in step with the traceability matrix and with the "User stories" section of every page listed here.
Design
Page | Part it plays |
|---|---|
Swipe to remove on the other identity rows, the footer hint and the alert | |
Remove from this device as the last red row, with its alert | |
The vault list that also loses the identity | |
Which rows can be swiped and which cannot | |
The Remove this identity? alert | |
The destructive row and the swipe delete action | |
Destructive confirmation wording and button order | |
Destructive actions are red, last and ask first | |
Swipe actions on list rows | |
Lists the identities list and its swipe action | |
The No identity yet state after the last removal | |
The empty state names the next step | |
The exact alert wording | |
System red for the destructive row |
Implementation
Page | Part it plays |
|---|---|
Orientation: the package that owns identities | |
meAskRemove chooses the dialog; meRemove and meAfterRemove | |
meRemoveIdentity and which account becomes current next | |
removeKey writes the key removal and its marker in one Keychain write | |
reconcile turns a removal marker into a deletion in the vault | |
How a deletion spreads to other devices and when a re-created identity survives | |
vaultTrackMe notices the changed identity list | |
meAimed and meRemoved | |
meRemoved refreshes the identity list, then sets the current account | |
The delete swipe action and showModal | |
The UI tests that remove by swipe and from the detail page | |
Unit tests for the next current account and the removal marker |
Code
File | What |
|---|---|
other identity rows with the delete swipe action | |
Remove this identity? dialog on Me | |
Remove from this device row | |
Remove this identity? dialog on Identity detail | |
meAimed | |
meRemoved refreshes meIds then meAfterRemove | |
meAskRemove, meRemove, meAfterRemove | |
meRemoveIdentity | |
removeKey | |
loadRemovedKeys and write: the removal marker | |
reconcile: a marker becomes a deletion, an absent key does not |
Tests
File | What it checks |
|---|---|
me: import a phrase, import a key file, switch, remove after asking | |
me: identity detail exports the key file after asking, and removes | |
removal keeps a valid current identity or selects the oldest remaining identity | |
seed-keys store: save, list, sign, remove | |
rename and deletion in Me synchronize with a tombstone | |
only a removal made in Me leaves a marker, and the marker is spent once the vault records it | |
phone add, rename and remove reach the server and the web vault |
Delivery
Delivered by #1470.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime