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 |
|---|---|
The Author profile screen: header, summary, Home document, Documents, states | |
The 56 point avatar, bold name and short id | |
The byline: author faces as 44 point targets, names, date | |
Where the byline sits and where the profile is opened from | |
Pictures and green initial discs for authors | |
The rows of the Documents section | |
Author faces on cards elsewhere on the page | |
The failure line with Retry on the profile | |
The profile is pushed, with Back | |
The inline name title and no actions | |
The profile is loaded from the site of the document being read | |
Name first, short id second, never the full key as a label | |
The inset-grouped profile list | |
The profile's loading and failure strings | |
The rule that computes an avatar's green hue from the name | |
Author links labelled with the author's name |
Implementation
Page | Part it plays |
|---|---|
AuthorScreen, the byline in DocScreen, authorNames, the Person and AuthorPage shapes | |
loadAuthor: account, top-level documents, the failure page | |
person and accountMeta: names and icons for the byline, cached per server | |
The author route, authorUids, the authors resource and readAuthorRetry | |
readAuthors | |
authorHref and shortId | |
The API client | |
/api/Account and /api/Query (Children of the account) | |
The Avatar component and its hue rule | |
The author route "/a/:uid" | |
authorUids and authors | |
refresh authors for Retry; a saved profile refreshes authors and docs | |
The author test in read.test.contract | |
The author retry test in load.test.ts |
Code
File | What |
|---|---|
AuthorScreen | |
The byline in DocScreen: author links, names, date | |
Person shape | |
AuthorPage shape | |
authorNames: a shared name is listed once | |
avatarHue and Avatar | |
route author "/a/:uid" | |
authorUids and resource authors | |
readAuthorRetry | |
The author entry renders AuthorScreen | |
loadAuthor and loadAuthors | |
accountMeta and person |
Tests
File | What it checks |
|---|---|
an author chip opens the author's profile | |
document rows name their authors | |
a failed author listing can recover on retry without a forced epoch change | |
a row keeps three distinct authors, counts the rest and names them from the listing | |
media and short ids |
Delivery
Delivered by #1470.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime