Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/web-app/lists-and-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,13 @@ Row actions follow how often the row is used:
- Typing an option's first letters jumps to it (letters within 700 ms make one search).
- Options can have icons, a quieter second line, sections with labels and a `short` label for a phone (`narrow="fit"` makes the trigger as wide as its value there). `sm` is 28 px, for rows and toolbars.
- A choice that has ended stays named rather than showing an id ("{name} (reconnect it)", "A connection you removed"); a prefix in a busy row reads in sentence case ("Claude: your default ({name})").
- Claude connections go by one name everywhere (`claudeName` in `lib/claude.ts`): the one their person gave them, else their account, else their kind ("Long-lived token", "Claude login", "Token on your runners"). The second line says what the name doesn't (the account behind a name, the kind, the plan), and "added {day}" where two go by the same name; nothing where the name says it all.
- **Switch.** 20 × 36 px; on, the highlight fill, with the 14 px knob springing across (250 ms `--ease-spring`, the track 200 ms). Its row puts the label in the person's voice ("Follow the sessions I start or resume") and a hint that says what the current state does, starting "Off:" when off ("Off: you follow only the sessions you choose."). In a project's settings (`SwitchRow`, components/settings/form.tsx) the words are a `<label>`, so tapping them turns it, and the hint describes it (`aria-describedby`). Gaps: Settings' own switch rows have neither, and 20 × 36 px is small for a finger.
- **Buttons in forms.** `Button` sets no `type`: any button in a `<form>` that isn't its submit needs `type="button"` (two buttons in a settings form once saved it). A disabled button over a stretched link keeps its pointer events (`disabled:cursor-default` with `enabled:hover:` fills): with `disabled:pointer-events-none`, a click fell through to the link and navigated. Don't wrap a `Button` in a `Link`: that's two tab stops for one action; style the link with `buttonClass` instead.
- **Save in the way that matches the risk.**
- Brand colors, switches and per-row Selects save as they change, optimistically only where a refetch can roll back, with a toast that says what follows.
- Text saves on an explicit submit whose button stays disabled until something changed.
- Inline renames (passkeys, the authenticator app) save on Enter or blur and cancel on Escape, behind a pencil that fades in on hover or focus and always shows on touch ("Touch screens have no hover to show it on").
- Inline renames (passkeys, the authenticator app, Claude connections) save on Enter or blur and cancel on Escape, behind a pencil that fades in on hover or focus and always shows on touch ("Touch screens have no hover to show it on"). Where a name is what tells things apart and one has none yet (a Claude connection among several), its pencil always shows. Emptying the field takes the name away, and the placeholder says what it goes by then.
- A page of settings that saves with a button shows a save bar at the bottom of the screen only once something changed, with what saving does, Cancel and Save, above the iOS keyboard, and asks before someone leaves it with changes unsaved ("Discard your changes?"): a project's settings pages (components/settings/form.tsx).
- **Where errors land.** Under the Field the control plane's error names (`ApiFailure.field`); a client-side check throws the same shape, so it lands in the same place. An error without a field goes in a banner by the form's buttons. A row's action reports in a toast. Gaps: an error naming a field the form isn't showing appears nowhere, and mutations without `onError` fail silently (there is no global handler).
- **Confirm only what loses something, and say what stays.**
Expand Down Expand Up @@ -552,6 +553,7 @@ intros and Slack's page are in [pages that explain](explaining.md#integrations-g
- Two list styles: a bordered card split by hairlines where a row holds a form or wraps into two parts (email addresses, each with its commit address; workspaces, whose Claude picker sits beside the workspace from 576 px of the card's width); a flush hairline list for everything else.
- Emphasis follows what still needs doing: "Set a password" secondary, then "Change password" ghost; "Set up" two-factor primary, then "Replace" and "Turn off" ghosts; "Get new codes" secondary only when three or fewer remain.
- Inside a page a broken connection is a failure, in red ("needs reconnecting"); in the navigation and the phone list the same fact is something that needs the person, in amber.
- **Claude connections** (`components/claude/connection.tsx`). The title is the connection's name, renamed in place (hint: "Say what it's for, such as a team or a plan. Only you see it."), with "used for new sessions" after it. The facts line leads with what the name hides: the account behind a name of the person's, then the kind ("Romanesco seat" over "ada@romanesco.example · Claude login · Remote Control · Max"). Under it, "Runs your sessions in" and a 16 px-avatar chip for each workspace whose sessions run on it (those that chose it, and, for the default, those that chose none; four, then "and 2 more"), then a quiet "Choose per workspace" link to Settings → Workspaces, where the pickers are. One that ended says in red where it was chosen: "Chosen in Shop · their sessions run on your default until you reconnect it". A connection no workspace runs on shows no line. Naming happens in place rather than in a dialog, and "Name" is offered when pasting a token only once the person has another connection: the first needs no telling apart. A token an admin token set keeps the name its admins gave it, shown without a pencil, since they read it and set the next one. Admins never see a name the person gave (their People tab shows kind and plan), and the audit log says only "renamed a Claude connection".

**Saving and confirming here.** As in "Forms and controls": switches and Selects save at once with a toast; Profile, the commit address, the password, new tokens and deletion save on submit; names rename inline. Confirmation titles ask a question naming the thing ("Remove {passkey}?", "Leave Romanesco?", "Get new recovery codes?"); task dialogs have plain titles ("Change your password"). The new token dialog says what the token will do before it's made: an `aria-live` sentence rewrites itself as choices change ("Runs sessions in Shop; their agents review and comment on GitHub, and push nothing. It expires on Dec 8.").

Expand Down