Identity detail
One identity on this device: its profile header, account ID, key name, key file export and removal.

Identity detail is everything about one key held on the phone. A person comes here to copy or share the account ID, open the profile editor, rename the local key, back the key up as a key file, or remove the identity from the device.

At a glance

Tab

Me

Route

identity, path /me/id/:uid

Screen component

MeIdentityScreen in me.contract

Presentation

pushed

Title

inline: "Identity"

How you get here

The current identity row on Me; any identity row on Vault

Where it leads

Edit profile (sheet); back to Me after a removal

Identity detail for an unnamed identity. The screenshot is older than the code: the two rows "Copy account ID" and "Share account ID…" were added after it, and the avatar is now a green disc.
The same screen in dark mode. The destructive row keeps the system red, the export row keeps the tint.

No screenshot here shows the revealed key file, on purpose: it is a private key.

Anatomy

One list listStyle="inset-grouped" with four sections:

    Navigation bar. The platform back button and the inline title "Identity".

    Profile header section (no section header).

      The identity header: a 56 point Avatar, the display name in -exact-title3, and under it "Current identity" or "On this device" in footnote, secondary colour. It is the header variant of Identity rows.

      "Edit profile" with a chevron.

      "Use this identity", only when this is not the current identity.

    Section "Account ID".

      The full account ID in monospace footnote. It is selectable and wraps anywhere, so all 48 characters are readable.

      "Copy account ID" with symbol:copy.

      "Share account ID…" with symbol:share.

      "Key name" with the name on the right in secondary colour, or "None".

      Footer: "The key name is only on this device. Your public name comes from your profile."

    Section "Backup".

      "Export key file". Once revealed, this row is replaced by the key file text in monospace -exact-caption1 (selectable), then "Copy", "Share…" and "Hide".

      Footer: "The key file is your unencrypted private key. Anyone who has it can act as this identity."

    Last section. "Remove from this device", destructive (system red).

Three system alerts (dialog with role="alertdialog") belong to the screen:

Alert title

Message

Buttons

"Rename key"

"Letters, numbers, dashes and underscores." with a text field, placeholder "Name"

"Save", "Cancel"

"Reveal the private key?"

"The export is your unencrypted private key. Keep it somewhere safe and never share it with anyone you don’t trust."

"Reveal", "Cancel"

"Remove this identity?"

"Its key is deleted from this device. Without its recovery phrase or a key file, it can’t be recovered."

"Remove" (destructive), "Cancel"

States

State

What is shown

Identity not on this device

One section with "This identity is no longer on this device." in secondary colour, and nothing else

Current identity

Subtitle "Current identity", no "Use this identity" row

Other identity

Subtitle "On this device", plus "Use this identity"

No key name

"Key name" shows "None"

Rename refused

The Account ID footer turns -exact-system-red and shows the reason, for example "Names may only contain letters, numbers, dashes and underscores."

Exporting

"Export key file" is disabled while the key is read

Key revealed

The key text and "Copy", "Share…", "Hide". It shows only on the screen of the identity it belongs to, and it is cleared when the person switches identity or taps "Hide"

Actions

Gesture

Result

Tap "Edit profile"

Opens the Edit profile sheet for this identity

Tap "Use this identity"

Makes it current, with a selection haptic

Tap "Copy account ID"

Copies the ID, with a success haptic

Tap "Share account ID…"

Opens the system share sheet, titled "Seed account ID"

Tap "Key name"

Opens the "Rename key" alert with the current name filled in

Tap "Export key file"

Opens "Reveal the private key?". "Reveal" shows the key file in place

Tap "Copy" or "Share…" under the key

Copies the key file, or opens the share sheet titled "Seed key"

Tap "Hide"

Removes the key text from the screen

Tap "Remove from this device"

Opens "Remove this identity?". "Remove" deletes the key and returns to Me

Long press the account ID or key text

System text selection

Components used

Component

Kind

What it does here

Avatar

named component

56 point disc in the header

Identity rows

inline part

The header variant: avatar, name, status line

list and section

primitive

The grouped list and its sections

header, footer and nav

primitive

The bar title, section headers, the two explanatory footers

text

primitive

Name, status, the monospace account ID and key text, footers

link

primitive

"Edit profile"

button

primitive

Use, copy, share, key name, export, copy, share, hide, remove, alert buttons

image and symbols

primitive

symbol:copy, symbol:share, symbol:forward-chevron

input, textarea, select and label

primitive

The name field inside the rename alert

row, column and view

primitive

The screen root and the header row

dialog

primitive

The rename, reveal and remove alerts

Why it is designed this way

    The one place for the identifier. DESIGN.md's fifth principle keeps z6Mk… out of primary labels. The full account ID lives here, in its own section, monospace, with copy and share beside it. See Names, not identifiers.

    Two names, kept apart. The key name is local and the profile name is public. The screen separates them into two rows in two sections, and the footer says which is which. Inferred from the footer text and the comment in profile.contract.

    Danger goes last and asks first. Export sits under a footer that says what a key file is, and reveals only after an alert. Removal is the last row, in red, behind another alert. See Buttons and actions.

    The secret is shown in place and can be put away. The key file replaces the export row, with "Hide" next to it, and never follows the person to another identity's screen. The contract marks that rule as a review finding.

    Copy and share match the old app. The contract comment says "RN parity: the account ID can be copied or shared from the identity screen". See What changed from the React Native app and why.

    Difference from DESIGN.md. It describes this screen as "profile, export/backup, delete". The built screen adds the account ID section and key renaming, and moves the profile into its own sheet.

User stories

This page helps deliver these stories. Each story lists this page in its Trace, so the link holds in both directions (traceability).

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Comments