Document header and byline
The top of every document: the summary as a lead, tappable author avatars with names and date, and a brand line with the comment count.

Between the large title and the first block, every document shows the same short header: what the page is about, who wrote it and when, and whether it is being discussed. This is an inline part. It is not a named component in code: it is written directly inside DocScreen, at read.contract L321-L339.

Used by

Screen

Where

Document and site home (DocScreen)

The first item of the reading column, on the site home and on every pushed document

No other screen has it. The Author profile has its own Author header.

Inputs

The part has no props of its own. It reads the loaded page: its summary, its authors (name, avatar, profile link), its date, and the comment count taken from the document's discussion.

Anatomy

A column padded 8 points above and 20 at the sides, with 8 point gaps, capped at 40rem and centred. Three parts, each present only when it has something to show:

    Summary. The document's summary in -exact-callout, -exact-label. It is the page's lead paragraph.

    Byline, a row with an 8 point gap that wraps on narrow widths:

      One Avatar per author at size 28, each centred in its own 44 by 44 point link to that author's profile. The targets touch, so four authors make a 176 point strip.

      A column beside them (at least 8rem wide before it wraps under the faces): the authors' names joined by commas in -exact-footnote, weight 600, -exact-label; under it the date in -exact-footnote, -exact-secondary-label.

    Comment line, only when the document has comments: a 44 point tall link with symbol:messages and "1 comment" or "49 comments" in -exact-subheadline, all in brand. It opens All comments.

The date is relative within a week ("3 hr. ago", "2 days ago") and a medium date after that ("Oct 30, 2026").

Under the large title: the summary, four author faces with names and date, and the teal "49 comments" line.

Variants and states

Case

Result

No summary

The header starts with the byline

No authors

No byline, and no date either: the date lives inside the byline

Two accounts with the same name

Both faces show; the name is written once

Author without an image

A green disc with a white initial

No comments

No comment line

Document not loaded

The header is absent; the screen shows its spinner or failure line

Behaviour

    Tapping a face pushes that Author profile. The names beside the faces are plain text.

    Tapping the comment line pushes All comments, the same destination as the messages button in the navigation bar.

Rules for use

    It belongs to the document screen only, directly under the title.

    Keep each avatar in a 44 point target. The face is 28 points, the tap area is not.

    Keep the summary in the label colour. It is content.

    Do not move actions here. The comment line is the one exception, and it repeats a bar action for a stated reason (below).

Why it looks this way

    The summary is the lead. The source note reads: "the summary is the page's lead, in the label colour; the byline below is secondary, not tertiary." Earlier builds drew the summary in grey and the byline fainter still; screenshots from that period show it. Raising both made the top of the page readable. See Reading first and Typography.

    Authors are people you can visit. Faces first, names beside them, never a key. Each face leads to a profile. See Names, not identifiers. An earlier build repeated each name next to its face in a wrapping line; the built layout groups faces, then names once.

    44 point targets. Small avatars would be hard to hit. The minimum target is the platform's. See Accessibility.

    The count is repeated in the page. The source note: "iOS draws the bar's discussion button as its symbol alone, so the count is also a line in the page." The bar cannot show the number, so the page does, in the brand colour that marks a link. See Navigation bars and their actions and Color and tokens.

    No chrome. The header has no card, border or background: it is part of the text column. See Leave it unsaid.

Differences from DESIGN.md: it describes the bar's "discussion count button (symbol:messages + count)" and does not mention a summary, byline or in-page count. All three were added during polish.

Why it is not a named component

It is used in exactly one place and depends on values the screen already computed (inferred). If a second screen needed a byline, this would be the piece to extract.

Related

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

Unsubscribe anytime