An identity row shows one of the person's own identities: who it is, by name, and whether it is the one in use. It appears in four shapes on three screens. All four follow one naming rule and one type scale, which is why they read as the same thing.
Kind: inline part. It is not a named component in code. It is written inside MeScreen, MeIdentityScreen and VaultScreen.
Used by
Screen | Variant | Source |
|---|---|---|
Current row | ||
Other rows | ||
Header | ||
Vault rows |
The naming rule
Every variant gets its title from the same rule, meDisplayName:
the public profile name on the current server, if there is one,
otherwise the local key name,
otherwise the short id, such as z6Mk…5T3Z.
The second line never repeats the title. When the title is already the short id, the second line is dropped or replaced by words. The full account ID is never part of a row. This is the fifth principle of DESIGN.md in practice, see Names, not identifiers.
Variants
Current row | Other row | Header | Vault row | |
|---|---|---|---|---|
Element | link to Identity detail | button with | plain row, | row, |
56 points | 28 points | 56 points | none | |
Title style |
| body |
| body |
Second line |
| the short id, or nothing | "Current identity" or "On this device" | the short id, or nothing |
Trailing |
| nothing | nothing | "Current", or a "Use" button |
Tap | Opens Identity detail | Makes it current | nothing | Name opens Identity detail, "Use" makes it current |
Swipe | none | Delete, then an alert | none | none |
Anatomy
Layout. Avatar, then a column with flex=1, min-width=0 and gap=2 holding the two lines of text, then the trailing element. The row's inset, height and separators come from the grouped list. See Lists.
Second line. Always -exact-footnote in -exact-secondary-label.
Avatar. The profile icon when there is one, otherwise a green disc with the title's first letter in white. Sizes follow DESIGN.md: "28 in rows and inline", "56 in headers (current identity, profile)". See Spacing, radii and sizes.
Trailing text in the vault. "Current" is footnote, secondary, pushed to the trailing edge with margin-left="auto", so it lands where "Use" lands on the other rows.
Accessibility. The other row and the "Use" button are labelled "Use name" for VoiceOver. See Accessibility.
States
State | Effect |
|---|---|
Named identity | Title is the name, second line carries the short id |
Unnamed identity | Title is the short id. Current row says "Current identity", other and vault rows show one line |
Profile has an icon | The avatar is the image |
Becomes current | The row moves to the top of Me as the current row. In the vault, "Use" becomes "Current" |
Rules for use
Use the current row shape once per list, for the identity in use. Use the small shape for the alternatives.
Tap on a small row acts (switch). Navigation is reserved for the row with a chevron. Do not mix the two on one row, except as the vault does, with a separate "Use" button.
Never put a full z6Mk… id in a row. It belongs on Identity detail.
For other people (authors, commenters), use the Author header or DiscussBubble, not these rows.
Why it looks this way
Size shows role. The identity in use is twice the size of the others and uses headline type, so "who am I right now" is answered at a glance. Inferred from the 56 and 28 point sizes and DESIGN.md's "Identity header row ... for the current identity; list of other identities".
One line less is better than a repeated id. The contract marks the "Current identity" subtitle as fix B4: an unnamed identity's title is already its short id.
The vault rows drop the avatar. Inferred: the vault screen is about storage, and its rows need room for a trailing control. The contract imports Avatar there but never draws it.
Platform rows. Chevron, swipe to delete and separators are the list's own. See Leave it unsaid.
User stories
This page helps deliver these stories. Each story lists this page in its Trace, so the link holds in both directions (traceability).
US-ID-01 Create an identity: The current identity row that shows the result
US-ID-02 Import an identity I already have: The row that shows the imported identity
US-ID-03 Switch between my identities: Current, other and vault identity rows
US-ID-04 See and share my account ID, and name my key on this device: The header row with avatar, name and subtitle
US-ID-06 Remove an identity from this device: Which rows can be swiped and which cannot
US-ID-07 Edit my public profile: Rows whose label becomes the profile name
US-VAULT-01 Connect my vault to bring my identities to this phone: Vault identity rows that appear after connecting
US-VAULT-02 Keep my identities in sync across devices: Vault and Me identity rows that follow the sync
US-VAULT-03 Lock my vault, switch to local, or log out: The identity list hidden while locked
US-APP-06 See people and spaces by name: Current and other identity rows with name over short id
Related
Parent: Inline parts. Similar parts: Author header, Agent and session rows, Server rows.
Patterns: Buttons and actions, Refresh, haptics and progress. Visual language: Typography.
How it is built: Me: screens and components, Vault: screens and tasks, Identity: key storage.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime