Identity rows
The inline rows that show one identity by name: the current row and other rows on Me, the header on Identity detail, and the vault's rows.

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

The current row ("bob", 56 point avatar, "z6Mk…vQ1P · current", chevron) above an other row (28 point avatar, an unnamed identity shown by its short id alone).

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 delete=

plain row, gap=12

row, gap=12, with a link around the name

Avatar

56 points

28 points

56 points

none

Title style

-exact-headline

body

-exact-title3

body

Second line

z6Mk…YJ2f · current, or "Current identity"

the short id, or nothing

"Current identity" or "On this device"

the short id, or nothing

Trailing

symbol:forward-chevron

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).

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 linkLinked document · Outgoing linkIdentity rowsIdentity rows
Citations 0Children & links 35

Loading child documents…

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

Related documents

Loading connections…