See who wrote a document and visit their profile
A reader sees the authors of a document by name and face, opens an author's profile, and goes on to that person's home document and other documents.

As a reader, I want to see who wrote a document and look at what else they publish, so that I know whose words I am reading and can follow that person.

Situation

I am reading a document and wonder who is behind it. I have nothing but the page in front of me.

What I do

    Look at the byline under the title and summary.

    Tap an author's picture.

    Read their profile.

    Tap "Home document", or one of their documents.

    Tap Back to return to the document I was reading.

What I should see

    The byline shows up to five author pictures, then the authors' names separated by commas, and when the document last changed.

    An author without a picture has a green disc with the first letter of their name.

    A person who signs with two keys under one name is named once.

    An author whose name is not known is shown by a short form of their account ID, like "z6Mkm3…aXq8", never the full ID.

    Tapping a picture opens that author's profile on top of the document, with a Back button.

    The profile's bar shows the author's name. While it loads the bar reads "Profile" and a spinner shows.

    The profile shows a larger picture, the name in bold, the short account ID in grey beneath it, and the author's own summary when they wrote one.

    A row "Home document" opens the author's home document.

    A section "Documents" lists the author's top-level public documents, each with its title, summary, authors and date. Tapping one opens it.

    An author with no documents has no "Documents" section.

    Author faces on cards, and author names on rows, tell me who wrote the other documents on a page.

When something goes wrong

    If the profile cannot be fully loaded I still see the short account ID and the "Home document" row, with the reason and "Retry" between them, for example "This account isn't known to this server." Tapping "Retry" asks again. Back returns to the document.

Not included

    The names in the byline are not tappable, only the pictures.

    Authors beyond the fifth are not shown in the byline, and there is no count of how many more there are.

    The profile has no pull to refresh, and no follow, message or share action (Author profile).

    The profile lists only top-level documents of the author's own space, not everything they contributed to elsewhere.

    A mention of a person inside a document opens their home document, not this profile.

Trace

Story US-READ-09, 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

Author profile

The Author profile screen: header, summary, Home document, Documents, states

Author header

The 56 point avatar, bold name and short id

Document header and byline

The byline: author faces as 44 point targets, names, date

Document and site home

Where the byline sits and where the profile is opened from

Avatar

Pictures and green initial discs for authors

DocItemRow

The rows of the Documents section

FacePile

Author faces on cards elsewhere on the page

StatusLine

The failure line with Retry on the profile

Stacks, pushes and sheets

The profile is pushed, with Back

Navigation bars and their actions

The inline name title and no actions

Reading another site in place

The profile is loaded from the site of the document being read

Names, not identifiers

Name first, short id second, never the full key as a label

Lists

The inset-grouped profile list

States for every screen

The profile's loading and failure strings

Platform colour roles in use

The rule that computes an avatar's green hue from the name

Roles, headings and labels

Author links labelled with the author's name

Implementation

Page

Part it plays

Read: screens and components

AuthorScreen, the byline in DocScreen, authorNames, the Person and AuthorPage shapes

Read: rows, directory and author pages

loadAuthor: account, top-level documents, the failure page

Read: loading pages, caches and embeds

person and accountMeta: names and icons for the byline, cached per server

Read: root contract wiring

The author route, authorUids, the authors resource and readAuthorRetry

Read: sources and the refresh epoch

readAuthors

Read: ids, refs and link targets

authorHref and shortId

Read: API client and superjson decoder

The API client

Seed site read API

/api/Account and /api/Query (Children of the account)

Shared components and visual design

The Avatar component and its hue rule

Navigation and routes

The author route "/a/:uid"

Root declarations: Read and Discuss

authorUids and authors

State, refresh and stale-reply patterns

refresh authors for Retry; a saved profile refreshes authors and docs

Contract UI tests

The author test in read.test.contract

Bun unit tests

The author retry test in load.test.ts

Code

File

What

read.contract L400-438

AuthorScreen

read.contract L325-334

The byline in DocScreen: author links, names, date

read.contract L41-46

Person shape

read.contract L79-88

AuthorPage shape

read.contract L95-96

authorNames: a shared name is listed once

ui.contract L2-21

avatarHue and Avatar

app.contract L32-32

route author "/a/:uid"

app.contract L101-105

authorUids and resource authors

app.contract L314-315

readAuthorRetry

app.contract L759-760

The author entry renders AuthorScreen

src/read/load.ts L500-540

loadAuthor and loadAuthors

src/read/load.ts L117-131

accountMeta and person

Tests

File

What it checks

read.test.contract

an author chip opens the author's profile

read.test.contract

document rows name their authors

src/read/__tests__/load.test.ts

a failed author listing can recover on retry without a forced epoch change

src/read/__tests__/cards.test.ts

a row keeps three distinct authors, counts the rest and names them from the listing

src/read/__tests__/markdown.test.ts

media and short ids

Delivery

Delivered by #1470.

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

Unsubscribe anytime