Switch between my identities
A person with several identities sees them listed by name and chooses which one the app acts as.

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

Me

The identities list: current first, tap to use

Identity detail

Use this identity and the current or on-device subtitle

Vault

The vault list with Use and Current

Identity rows

Current, other and vault identity rows

Avatar

Avatar sizes that separate the current row from the rest

list and section

The inset grouped section and its footer

Lists

Row behaviour: tap acts, chevron navigates

Every list in the app

Lists the identities list and its row actions

Refresh, haptics and progress

The selection haptic on switching

Loading, failure and empty states

Failure row with Retry and the empty row

States for every screen

States of Me and Identity detail

Names, not identifiers

Profile name, then key name, then short id

Leave it unsaid: the platform draws the chrome

A settings list drawn by the platform

The four tabs

Me as the tab where identity is chosen

Roles, headings and labels

The Use <name> labels on rows and buttons

Implementation

Page

Part it plays

Me: identities and servers

Orientation and the shared currentAccount state

Me: screens and components

MeScreen, MeIdentityScreen and meSwitch

Me: sources and import logic

meIdentities and meProfileNames

Identity: key storage

listKeys order and short ids

Vault: screens and tasks

The vault list reuses meSwitch; vaultRefreshIdentities picks a new current account

The root contract (app.contract)

currentAccount is persisted root state every package reads

Root declarations: Me, Profile, Crypto and Vault

meIds, meProfiles and the export reset on switch

State, refresh and stale-reply patterns

How other tabs re-ask their data when the account changes

Seed site read API

The Account read that supplies profile names and icons

Shared components and visual design

The Avatar component

Contract UI tests

The UI test that switches identities

Bun unit tests

Unit tests for listing and name resolution

Code

File

What

me.contract L38-41

meDisplayName, meIcon, meHost

me.contract L43-130

MeScreen: current row, other rows, footer

me.contract L168-180

MeIdentityScreen header and Use this identity

vault.contract L96-119

VaultScreen identities section with Use and Current

app.contract L76-77

server and currentAccount, both persisted

app.contract L219-220

meIds and meProfiles resources

app.contract L600-604

meSwitch

app.contract L724-727

vaultRefreshIdentities

src/me/sources.ts L50-72

meIdentities and meProfileNames

src/identity/index.ts L143-151

listKeys: oldest first

src/identity/index.ts L174-178

shortId

Tests

File

What it checks

me.test.contract

me: import a phrase, import a key file, switch, remove after asking

me.test.contract

me: an unnamed identity shows its short id once, and its account ID copies and shares

me.test.contract

me: an exported key shows only on its own identity's screen

src/identity/__tests__/identity.test.ts

seed-keys store: save, list, sign, remove; shortId

src/me/__tests__/logic.test.ts

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

Connections0
Linked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkSwitch between my identitiesSwitch between my identit…
Citations 0Children & links 34

Loading child documents…

Connections show where other documents or comments link to this document.

Related documents

Loading connections…