Skip to content

ADR-0085: Polish: one shape per part, and what is folded

Status: Accepted, amended by ADR-0087 (the layout pass, the search, the follow-ups; on a phone the agent's mode leaves the composer's row for its Add sheet, and is named Auto or Ask), and by ADR-0092 (the strip's tokens, in one line) Date: 2026-10-27 Deciders: Alex Nodeland Amends: ADR-0080 (the rhythm, the mark in the frame), ADR-0081 (counts in mono, a table's head on the wash, an alert's edge), ADR-0082 (a phone's bar), ADR-0083 (the strip's tokens)

Context

The owner read the UIs on a phone after Plain and the sheets had landed and said they still looked unfinished (#805). An audit shot every screen at 320, 393, 430, 768, 1024 and 1440 in both schemes and ranked twenty findings. None was a missing component: they were the same part drawn several ways (two content widths per kind of page, three trailing shapes in a row, counts in two faces, actions that wrapped under a title on a phone), bare text where a control belonged (a workspace's areas, "Name it first…"), and what a reader didn't ask for shown first (a rule's JSON, an app's 700-line source, a run's ids, every row's thumbs). The owner approved the audit and decided its open questions.

Decision

Nine rules, held by the kit's components so every page has them:

  1. Spacing. The scale is 4, 8, 12, 16, 24, 32. A page's parts are 24px apart on a phone and 32px from the rail (AppShell); a component's own gaps are 8 or 12.
  2. One page header. The places above, then the title with at most a primary button and an overflow icon button on its line, at every width, never wrapped under it; then one muted line (PageHeader). A thread's actions are an icon button (Menu is an icon button now; its text trigger is gone, as no page used one but the thread's).
  3. Two widths, centred. A reading page (a thread, an artifact, a rule) is the reading measure centred in the column; a collection (lists, tables) the page width.
  4. One row. A row's title and its line beneath share a left edge: the unread mark sits in the row's own start padding. Its end is a status mark and word or the chevron, never both. Times are relative, the moment on hover (Ago), the Runs table's too.
  5. Fields. Labels show on forms; a search is the kit's glyph, its words as the placeholder and its name (SearchField), on the row of its filters.
  6. Buttons. One primary per view; nothing navigational is bare text: a workspace's areas are a track of links with their glyphs (Tracks, TrackLink), words from the small breakpoint; "Name it first…" is a quiet button in the composer's row; a toolbar's buttons are full size, the view's main one primary (Members' Invite); the upload zone is one row, its button the label.
  7. Status. Always a mark and a word, one signal per failure: an alert's mark is its shape, in its tone's colour, and its edge the hairline all round (no coloured rule beside a coloured icon). A stopped turn ends with the stopped mark and "Stopped", as Runs says it. Working, where motion is reduced, is a whole ring, never a still arc that reads as a "c". Counts are the sans on its digits, never mono.
  8. Folded until asked. A revision of an artifact opens when asked (none at first, and a new one arriving opens nothing); a document's opens on its Preview. A rule reads as When, Then, For each, Retries, Starts and State, its JSON folded under them. An artifact's id is in its overflow (Copy id), its line "Kind · v2 · 3 hours ago". A failed turn says a short error (one line, 120 characters) in the alert and folds a long one under Details. Which files an upload takes is folded under "Supported files". A turn's tokens are folded under Tokens (see below).
  9. Phone surfaces. Menus are sheets (ADR-0082); thumbs on Runs show as the pointer rests on a row, and in a phone's row they are its menu, a sheet.

And the owner's decisions on the audit's questions:

  • A workspace's home is a row per workspace, its name opening its threads, with the track of its five areas.
  • The agent's mode (named Auto and Ask since, and on a phone moved to the composer's Add sheet, by ADR-0087) is a small toggle, "Edits" and "Proposes", a radio group named "Agent mode", in the composer's row beside Attach and Send; the set_thread_mode command is unchanged. The thread's header keeps the title and the actions' icon button.
  • The mark. A phone's bar has none: the menu's glyph, the switcher and the account (the drawer holds the way home). The rail and the drawer set portalr's lockup in the violet alone (Lockup mono); signing in keeps its inks. A deployment's own mark is untouched.
  • Thumbs on runs as above: on hover or focus with a pointer, in the row's menu on a phone.
  • Tokens are behind a disclosure for everyone: the strip says its status, phase, elapsed time and Stop; "Tokens" opens the chips.
  • Bytes. The app's initial ceiling isn't raised. What this pays with: Streamdown's classes for the parts portalr turns off (its code and diagram toolbars, the link modal, the diagram's full screen, the download menu) are left out of the stylesheet (@source not inline), the dead Mark is deleted, and the new looks reuse the kit's classes.

And from the owner's review of the after shots:

  • The threads' search is a glyph until asked: a "Search threads" icon button on the filters' row (or "/"); opened, a field that takes the focus and the row's room, folded back by Escape or Close; a query folded away stays applied, as a chip that clears it.
  • Tucked away: the list pages' lines under their titles (Threads, Artifacts, Proposals, Runs, Rules, a tenant's workspaces), installing a rule (behind "Install a rule…"), a note's first heading where it repeats the page's title, the strip above an approval (its card says it waits), and the privacy links' long words ("How sharing works", "How recording works", the glyph saying it opens apart, which amends RFC-0008's wording).
  • A failed turn says what happened in words for a provider's error (overloaded, limited, too slow): "The model was overloaded, so it couldn't answer. Nothing was lost.", with Try again; the error's own text stays under Details.
  • A workspace's track is the row's width on a phone, each cell its glyph over its word, 44px to a finger; the row keeps its chevron. "Name it first…" is an outlined button with its glyph, kept as its form opens so the composer's row keeps its shape; the keys' hint is the composer's description where it isn't shown.
  • Who may set the mode but not post has the toggle where the composer would be.
  • Wide empty states: a dashed empty state is the column's width.

The layout pass, after this one and on the design exploration's direction: actions in the corners (a top-right cluster, the thumb's bottom corner on a phone), side panes on wide screens in place of stacked sections, and fewer bordered boxes per screen.

Two of the audit's findings were the fixture's, not the product's: a turn ended by Stop is stopped, never cancelled (artifactr's RunEnded), and an approval's app is the server's title ("WordCraft"), so "into your WordCraft" reads right; "the site" was the fixture's.

Consequences

  • Every screenshot baseline and computed-style snapshot of a changed part moves.
  • A kit of its own keeps its tokens; the sign-in card's radius and padding hold from the small breakpoint, and a phone shows the form on its gutter.
  • Not done: a run's own detail page.