Author header
The top of an author profile: a 56 point avatar beside the name in bold and the short account id in grey.

The author header introduces an account as a person: a face, a name, and the short form of the key underneath. This is an inline part. It is not a named component in code: it is written directly inside AuthorScreen, at read.contract L420-L424, as the first row of the profile section.

Used by

Screen

Where

Author profile (AuthorScreen)

The first row of the first section

The Me tab draws a similar header for your own identities, as a separate inline part: see Identity rows. The two are not shared code.

Inputs

It reads the loaded author page: name, avatar image and short id. The summary, the failure line and the "Home document" row that follow it in the same section are separate rows; they are described on the Author profile page.

Anatomy

A row inside a section of an inset-grouped list, so it sits in the platform's rounded group with the platform's side insets. The row has a 12 point gap, items centred vertically, and 8 points of extra padding above and below.

    Avatar at size 56.

    A column taking the remaining width, 2 points between lines:

      The name as text in -exact-title3, weight 700, -exact-label.

      The short id in -exact-footnote, -exact-secondary-label, for example "z6Mkgi...ebq4".

Nothing in the row is tappable.

The header row at the top of the first group, with "Home document" as the next row in the same group.

Variants and states

Case

Result

Image

The image cropped to a circle

No image

A green disc with the name's initial in white, at the larger initial size the Avatar uses from 48 points up

No name published

The name line is empty and the bar title reads "Profile"; the short id still shows (inferred from the code; the loader may supply a fallback name)

Loading

The header is absent; the section shows a spinner

Rules for use

    One per profile screen, first.

    Use 56 points for the avatar. DESIGN.md: avatars are "28 in rows and inline" and "56 in headers (current identity, profile)".

    The name is always the largest text; the id is always secondary and shortened. Never show the full key here.

    Keep it free of actions. Actions on a profile are rows beneath it.

Why it looks this way

    Name, then short id. This is DESIGN.md's principle 5 drawn literally: "Never show z6Mk… as the primary label: use the name, then the short form (z6Mk…AvCG) in secondary text only." The id is kept at all because in Seed a name is not unique: two accounts can call themselves the same thing, and the short key is how a careful reader tells them apart. See Names, not identifiers.

    The platform's profile row. A large round picture beside a bold name at the top of a grouped list is how iOS introduces an account (the Apple Account row in Settings, a contact card). Putting it inside the first group, with related rows under it, follows that convention. See Leave it unsaid and Lists.

    Title3, not a large title. The bar already carries the name as an inline title. The header's name is the visual anchor on the page itself, at a size between a row title and a screen title. See Typography.

    The same person everywhere. The avatar here is the same component, with the same fallback colour for the same name, as the 28 point face in a document's byline and in every DiscussBubble. Someone followed from a byline to their profile is recognisably the same person. See Color and tokens.

Difference from DESIGN.md: its route map describes the profile as "name, avatar, their home doc link" and does not mention the short id, though principle 5 implies it.

Why it is not a named component

It is five lines used once (inferred). If the Me tab's identity header and this one were ever unified, the result would be a shared named component next to Avatar in Shared components.

User stories

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

Related

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

Unsubscribe anytime