As an identity holder, I want to see all my identities and choose which one I am using, so that comments, notifications and agents belong to the right me.
Situation
I keep more than one identity on this phone, for example a personal one and a work one. They are already here, created, imported or brought by my vault. I am on the Me tab.
What I do
Look at the "Identities" section. The one I am using is first.
Tap another identity to use it.
Or open an identity, then tap "Use this identity".
Or open "Vault" and tap "Use" beside an identity.
What I should see
The current identity is the first row, with a large avatar, its name, and its short id followed by "· current".
The other identities follow, smaller, oldest first, each with a name and a short id.
Each identity is labelled by its public profile name if it has one, otherwise its key name, otherwise its short id. The full account ID never appears in this list.
Tapping another row makes it current at once, with a light tap from the phone. No screen opens and nothing asks me to confirm.
With more than one identity the section ends with "Tap an identity to use it. Swipe to remove it from this device." With one it says "Keys stay on this device, in the Keychain."
Tapping the current row opens Identity detail, which says "Current identity" or "On this device".
On Vault the identity in use is marked "Current" and the others have a "Use" button.
The choice is remembered after I close and reopen the app.
After switching, Activity shows that identity's notifications, Agents shows its agents, and new comments are signed by it.
When something goes wrong
If the list cannot be read, the section says "Couldn’t read the identities on this device." with a "Retry" button. I tap "Retry".
If an identity was removed on another device while I had its page open, the page says "This identity is no longer on this device." I go back and pick another.
Not included
Other identities cannot be reordered or pinned. Only the current one moves to the top.
There is one current identity for the whole app, not one per tab or per site.
"Use this identity" and the vault's "Use" button are not covered by an automated interface test. See Contract UI tests.
Trace
Story US-ID-03, 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 |
|---|---|
The identities list: current first, tap to use | |
Use this identity and the current or on-device subtitle | |
The vault list with Use and Current | |
Current, other and vault identity rows | |
Avatar sizes that separate the current row from the rest | |
The inset grouped section and its footer | |
Row behaviour: tap acts, chevron navigates | |
Lists the identities list and its row actions | |
The selection haptic on switching | |
Failure row with Retry and the empty row | |
States of Me and Identity detail | |
Profile name, then key name, then short id | |
A settings list drawn by the platform | |
Me as the tab where identity is chosen | |
The Use <name> labels on rows and buttons |
Implementation
Page | Part it plays |
|---|---|
Orientation and the shared currentAccount state | |
MeScreen, MeIdentityScreen and meSwitch | |
meIdentities and meProfileNames | |
listKeys order and short ids | |
The vault list reuses meSwitch; vaultRefreshIdentities picks a new current account | |
currentAccount is persisted root state every package reads | |
meIds, meProfiles and the export reset on switch | |
How other tabs re-ask their data when the account changes | |
The Account read that supplies profile names and icons | |
The Avatar component | |
The UI test that switches identities | |
Unit tests for listing and name resolution |
Code
File | What |
|---|---|
meDisplayName, meIcon, meHost | |
MeScreen: current row, other rows, footer | |
MeIdentityScreen header and Use this identity | |
VaultScreen identities section with Use and Current | |
server and currentAccount, both persisted | |
meIds and meProfiles resources | |
meSwitch | |
vaultRefreshIdentities | |
meIdentities and meProfileNames | |
listKeys: oldest first | |
shortId |
Tests
File | What it checks |
|---|---|
me: import a phrase, import a key file, switch, remove after asking | |
me: an unnamed identity shows its short id once, and its account ID copies and shares | |
me: an exported key shows only on its own identity's screen | |
seed-keys store: save, list, sign, remove; shortId | |
readAccount: profile name and icon from the Account answer |
Delivery
Delivered by #1470.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime