diff --git a/docs/README.md b/docs/README.md index 354a823..ddbdc42 100644 --- a/docs/README.md +++ b/docs/README.md @@ -27,8 +27,9 @@ and file paths here are relative to that repository. - [Pages that explain](web-app/explaining.md): how settings teach and invite rather than list switches: the workspace's runners and their setup, the project's reviews, schedules and tickets showing what they do before - they're on, webhooks and what went out to them, service accounts and the - people they ask, and the patterns across + they're on, the workspace's integrations (GitHub, Linear and Slack, and + starting agents from Slack), webhooks and what went out to them, service + accounts and the people they ask, and the patterns across them (commands to copy, previews before a switch, warnings before a risk, empty states that teach). - [The UI kit](web-app/kit.md): buttons, fields, selects, dialogs, menus, diff --git a/docs/web-app/explaining.md b/docs/web-app/explaining.md index 56c2197..e0fc007 100644 --- a/docs/web-app/explaining.md +++ b/docs/web-app/explaining.md @@ -2,7 +2,7 @@ How fctl's web app introduces a feature before anyone turns it on, walks people through setting it up, and keeps explaining itself once it runs: a workspace's Runners tab and settings, a project's Reviews and Schedules tabs and -its tickets, webhooks, service accounts and the people they ask, connecting Claude, GitHub and Linear, two-factor +its tickets, webhooks, service accounts and the people they ask, connecting Claude, GitHub, Linear and Slack, two-factor sign-in, the domains that sign in with a provider, memory and retrospectives, and the hints, warnings and empty states around them. @@ -27,7 +27,7 @@ Most of fctl's features act on someone's behalf, somewhere else, and that shapes - **Their result shows up outside the app.** A review is posted on GitHub, a ticket moves in Linear, a runner is set up in a terminal. Nobody can see that from the switch, so the page draws it: the review as it will look on the pull request, the ticket as it will look in Linear, the schedule's week. -- **Responsibility is split.** Workspace admins add runners and connect GitHub and Linear; project owners turn review +- **Responsibility is split.** Workspace admins add runners and connect GitHub, Linear and Slack; project owners turn review agents on; maintainers choose the tracker; members can only ask. A greyed-out button leaves people stuck, so every page says who can act, and names them where it can. - **The first visit is to an empty page.** Switches with nothing behind them give no reason to start. The first visit @@ -388,7 +388,7 @@ in lists.") in a 260 px column beside the controls from 768 px. **Purpose.** A workspace's admins see at a glance whether everyone in it can run sessions this week and next, and know exactly what to do about each person who can't, without ever seeing anyone's token, while each person knows what their admins see (fctl#627). Sessions run on each person's own Claude subscription, often a seat their -organization gave them, so the facts live with the people, not on a tab of their own: admins see nine tabs already. +organization gave them, so the facts live with the people, not on a tab of their own: admins see eight tabs already. - **Above the list, for admins**, 32 px under the invite form: the summary as one sentence of counts, "5 of 7 people have Claude connected for Acme · 1 token runs out within a month · 1 stopped working · 1 waits for a usage limit @@ -458,10 +458,27 @@ can show: previews take the place's name, and only facts fctl can know. problems as the line itself, named with the place; a way out that is complete and copyable, or the link to send; say the level to those it's about. -## Connecting GitHub and Linear - -(routes/workspace.tsx `Github`, `Returned`, `Choice`; components/workspace/review-app.tsx, linear.tsx; lib/tickets.ts.) -Both connect a service elsewhere through a round trip to its site, and say what connecting leads to beforehand. +## Integrations: GitHub, Linear and Slack + +(routes/workspace.tsx `Github`, `Returned`, `Choice`, `IntegrationPage`; components/workspace/integrations.tsx, +review-app.tsx, linear.tsx; components/slack/; lib/tickets.ts, lib/slack.ts.) All three connect a service elsewhere +through a round trip to its site, and say what connecting leads to beforehand. + +**One tab for all three.** The workspace page's **Integrations** tab puts them side by side as tiles, each with the +service's mark (Linear's filled mark drawn at 85 %, so that it weighs as much as the others) and how it stands for the +workspace in a few words beside a dot (`lib/slack.ts`, `githubStanding`, `linearStanding`, `slackStanding`): +"Connected to Acme" (accent dot with its glow); "Not connected yet", "No GitHub App here", "No Linear app here" or +"No Slack app yet" (`ink-4`); "Access revoked" (amber), and for Slack, also amber, "Connected, but nothing reaches +fctl" where the instance takes no events from Slack or its Socket Mode is down, which Slack's page explains. On a +phone the words shorten ("Connected", "Not yet", "No app", "Revoked", "No events") and the tiles stack their text +under the mark. The open one takes an accent border and a soft accent fill (`aria-current="page"`), and its page +follows under the tiles. Each is an address (`?tab=integrations&integration=slack`) because each round trip comes +back to it, and the old `?tab=github` and `?tab=linear` addresses, outcome parameters included, still open the right +page; one that asks for an integration the instance lacks opens the first it has. GitHub's tile always shows. +Linear's shows only where the instance has a Linear app. Slack's shows where the instance has a Slack app; without +one, only the instance's admins see it, and it opens the steps to make one. Why one tab: three tabs for things an +admin sets up once crowded out the workspace's everyday tabs, and side by side they read as the set of places fctl +works in. **GitHub.** The paragraph says what a connection gives and its limits: "{workspace}'s projects use repositories of the GitHub accounts it works in: ones the fctl-sh app is installed on. Agents get tokens for the project's @@ -497,8 +514,97 @@ beside the delegated-ticket preview ([A project's tickets](#a-projects-tickets)) the projects that take its tickets, and until one does, points at those that could, as dashed chips: "No project takes its tickets yet: choose Linear in a project's settings, under Tickets." +**Slack.** The one that reaches furthest, since it starts and steers agents from somewhere else, so its page says +before anything else what agents can see there. + +- *Not connected* (`Intro`): "Start agents from Slack", in the display face, and a lead that says what connecting + leads to: "Connect a Slack workspace, and people there start agents in {workspace}'s projects by mentioning @fctl in + a channel, or writing to it directly. The agent works in the thread: its card there shows how it's going, its + questions and replies come there, and a reply there steers it." Three facts follow, each with its icon: who a + session runs as ("Each session runs as the person who asked, on their Claude subscription. fctl knows people once + they link their Slack account, in two clicks the first time they ask."), what agents read (an eye: "the thread they + started from, in a channel, a private channel or a direct message, and the public channels {workspace}'s admins make + readable") and what they never reach (an eye struck through: "other messages of private channels, anyone's direct + messages with fctl, or channels shared with other organizations"). Then **Add to Slack**, the one highlighted + button, with what happens next beside it ("Slack asks you to sign in and allow fctl's app. One of its admins may + have to approve it."); members read who adds it instead. +- *The preview* (`SlackThreadPreview`): a Slack thread drawn as Slack draws one, in both themes: Ada's mention ("@fctl + Signing in on Safari sends people back to /login. Can you fix the redirect loop?"), "3 replies", fctl's card (the + session's title as a link, its step "Running the tests", "Web · web#12 · for Ada Lovelace", the plan "3 of 4 done" + with its four steps, the pull request "web#45 · checks passed" and **Open in fctl**), the agent's question with its + two answers ("Keep the redirect", "Remove it") and "Click an answer, or reply in this thread.", and Ada's reply + ("Keep the redirect: the iOS app still links there."). The app's name and avatar are the instance's, the project + the workspace's first one ("Web", web#12, without one). It follows the same made-up pull request as Linear's + delegated ticket (the login redirect loop), so that someone who saw one recognizes the next. Decoration: + `aria-hidden`, `select-none`; beside the intro from 768 px, under it on a phone, at most 384 px wide. +- *No Slack app on the instance* (`NoApp`, instance admins only): the same headline beside the steps to make one + (`SlackAppSetup`): create the app from the manifest (a link that opens Slack's form with it filled in, and "Or + paste its manifest yourself"), give the instance its credentials (the variables to set), then add it to a Slack + workspace. Everyone else doesn't see the tile. +- *Connected* (`Connected`, `ConnectionCard`): the headline stays, its lead now in the present ("People in Acme start + {workspace}'s agents by mentioning @fctl in a channel…"). The connection card names the Slack workspace (its icon, + its address as a link, "as @fctl", who connected it and when, how many people here linked their account) and, on a + tinted band under it, the most important sentence of the page: what agents read there ("Agents read the thread they + started from, and #incidents, which they can search."), built from the settings so that it changes as they do. + Under it, whether fctl knows you there ("fctl knows your Slack account in Acme: what you ask fctl there starts + sessions as you.") or a link to link it. A revoked connection says "Slack took fctl's access back" with **Connect + again**, which asks Slack for that Slack workspace alone. +- *The choices* (`Choices`), in the settings layout, one section per question, each with a sentence that says what it + decides: **Starting sessions** (mentions in channels; direct messages, which also cover the Home tab and the + shortcut; **Which project**, where a mapping reads as a sentence: "Mentions in #web-team start sessions in + [Playground ⌄]", with a trash icon and **Add a channel**), **What agents read** (readable channels as removable + chips with **Add a channel**; "Search the readable channels"; "Each project chooses", a row per project with + "Reads them →" to its settings), **What agents post** ("Agents' own replies"), **People** (how many linked their + account, and whether the instance lets workspaces know people by their address, with its risk), **Notifications + and events** (notifications in Slack; projects' events, with each project's channel as a line) and **Transcripts** + ("Keep them" or "Drop them once a session ends", saying what each keeps). Each switch saves at once and says what + changed in words ("Mentions, /fctl and Send to fctl… start nothing now"). Members see the same, read-only, with On/Off in + place of switches and "Acme's admins change these (Ada Lovelace is its primary admin)." +- *Choosing a channel* (`ChannelPicker`): a dialog that searches Slack's public channels as one types (after 250 ms, + the previous results staying until the new ones come, so the list doesn't blink), each with its topic, its member + count and "fctl is in it"; channels already chosen for the same thing are disabled with why ("Readable already"). + Private channels aren't listed, and the dialog says so and how they get there ("their members invite fctl + themselves"). Arrow keys move from the field into the list. +- Then **Connect another Slack workspace**, saying when it isn't needed, and the danger zone's **Disconnect {name}**, + which says that sessions already started carry on, without posting there. +- Back from Slack, a banner names the Slack workspace the way back names ("fctl's app is in Acme now: …"), says why + nothing was connected when it wasn't ("You didn't allow fctl's app in Slack, so nothing was connected."), and + names Enterprise Grid org-wide installs as not supported yet, in amber rather than red, since nobody did anything + wrong. + +**Slack elsewhere in the app.** + +- *Settings → Slack* (components/slack/accounts.tsx): "Who fctl knows you as in Slack", one row per Slack workspace + (a person may be several people in Slack), with their Slack avatar badged with Slack's mark, "{address} · + acme.slack.com · linked 3 days ago" (or "matched by your address 3 days ago"), the project their direct messages with fctl start + sessions in ("Ask each time" until they choose) and **Unlink**. On the way to link from Slack, where the instance + asks people to confirm it's them first, the page asks at once (a blue card with a fingerprint: "Confirm it's you to + link your Slack account in Acme"), since the link was what they asked for, and asks again if they close it. +- *Settings → Notifications* (components/slack/notifications.tsx): "In Slack", a switch "Tell me in Slack" beside + where each would go ("In Acme, to you as Ada, about sessions in Romanesco"), and a drawn direct message from fctl's + app ("web#12 waits for your reply", the session's title, the agent's last words quoted, **Open in fctl**). +- *A project's settings → Slack* (components/project/slack.tsx), only where the instance has a Slack app: "Agents read + the readable channels" (on by default, naming them: "Besides the thread their session started from, agents read + #incidents: the channels Development's admins made readable.") and "Post events to a channel": the channel (the + same picker, which the project's maintainers may search where the workspace lets projects post; "A private channel? + Give its ID" for one only its members see), the events as a two-column checklist (pull requests ready for review and + failures ticked unless chosen otherwise), and the line it would post, drawn under them. +- *Sessions* (components/session/slack.tsx): where in Slack a session started, with Slack's mark: in its row + ("#web-team", "Direct message"), on its cover beside its schedule and ticket, and in the details rail. Messages that came from Slack show in the + transcript with who wrote them and where ("#web-team · Acme"), and fctl's own doings there as quiet notices + ("Replied in #web-team", "Asked in #web-team"; failures in `danger`). Every link to Slack (the place in a row, on + the cover and in the rail, a message's link, the arrow on a notice) shows only for an https address on slack.com or + one of its subdomains (`slackHref`): sandbox events could carry any URL, and a link that looks like Slack's must + lead there. +- *Admin → Slack* (components/slack/admin.tsx): the app's state in one card (which credentials are set, and whether + Slack can reach this instance's address or events come over Socket Mode), the addresses Slack calls to copy, the + manifest as YAML or JSON, the Slack workspaces it's installed in, and the switch that lets workspaces know people by + their verified address, with its risk spelled out under it ("Only where people sign in to Slack and fctl through + the same provider…"). + **Building one like it.** Say what the connection gives and never reaches; show what follows connecting before -anyone connects; say when another connection isn't needed; end the round trip on a choice made here. +anyone connects; say when another connection isn't needed; end the round trip on a choice made here. Where a +connection lets agents read something, put what they read at the top, as a sentence the settings write. ## A project's Reviews tab @@ -750,7 +856,7 @@ Then the reader's own standing: "fctl knows your Linear account in Acme: issues you.", or a blue card: "Link your Linear account. fctl starts sessions only for people it knows in Acme, as them. It takes a Linear sign-in, which fctl forgets at once." [Link Linear account]. -**The preview** (`DelegatedTicket`, beside the steps, and on the workspace's Linear tab before anything is +**The preview** (`DelegatedTicket`, beside the steps, and on Linear's page under the workspace's Integrations before anything is connected): a Linear issue with the project's first team key ("ENG-142" when there's none), "In Review" and fctl's app as Linear names it; "Fix the login redirect loop", "Signing in on Safari sends people back to /login."; fctl's note "Working on this in fctl session web#12, as {a made-up first name}." with the project's own slug; "Opened a pull @@ -1054,8 +1160,8 @@ the list's rows, which hold their own answer. A workspace closed to someone (its two-factor requirement) asks them nothing until it opens. A service account deleted since leaves its sessions saying "through a service account deleted since". Leaving a workspace forgets the answers given there, so joining again asks again. A secret shows once; the page shows only its end, so people tell two -apart without it. With it, the workspace's admins see nine tabs where the instance has a Linear app (eight -elsewhere), which their strip spaces closer so that they fit a computer's column +apart without it. With it, the workspace's admins see eight tabs, which their strip spaces closer so that they fit +a computer's column ([Page tabs](lists-and-pages.md#narrowing-ordering-and-counting)). **Building one like it.** When a feature acts as someone, ask that person, where they already look, with what it @@ -1288,8 +1394,10 @@ is on every page that takes the others away. ("Found 1 issue", "2 new commits"). - **One made-up world.** The review previews follow one pull request, an upload worker whose retries never stop when the server is down (`src/sync/upload.rs`, fixed in `3f2a1c9`): the Reviews intro, the summary example and the - GitHub tab's thread. The schedule preview shows one idea of each way to run, each the first of its group: Triage new - issues on an event, Update dependencies at set times. Someone who saw one recognizes the next. + GitHub page's thread. Linear's delegated ticket and Slack's thread follow another, the login redirect loop on + Safari (session web#12, pull request web#45). The schedule preview shows one idea of each way to run, each the first + of its group: Triage new issues on an event, Update dependencies at set times. Someone who saw one recognizes the + next. - **Decoration**: `aria-hidden="true"` and `select-none`. The text beside a preview must say everything it shows. - **Anatomy**: a main card (`rounded-xl`, `border-line`, `bg-surface`, a long soft shadow, 0 18px 50px -24px at 35% black) and, 12 px under it, a smaller card for a second fact (the check, the runs, the label), or for schedules a diff --git a/docs/web-app/lists-and-pages.md b/docs/web-app/lists-and-pages.md index 5011d1e..f83558f 100644 --- a/docs/web-app/lists-and-pages.md +++ b/docs/web-app/lists-and-pages.md @@ -218,11 +218,11 @@ Row actions follow how often the row is used: - **Page tabs** (a project's, a workspace's and the admin page; `components/page-tabs.tsx`). - Links, not buttons: each tab is an address (`?tab=memory`); the default tab has none, so the page's address stays clean. - 13.5 px, `ink-3` turning `ink` on hover, 10 px either side; the open one `ink` over a 2 px accent bar inset 6 px. Each tab draws its own bar; the page cross-fades rather than the bar sliding. - - Each tab leads with a 16 px icon, 6 px before its label, drawn as the rest of the app draws what the tab holds: `ink-4`, `ink-3` under the pointer, in the accent on the open tab, as its bar is. A tab whose icon says how something is (a project's Autopilot) keeps its own color. Linear's filled mark draws at 85 %, so it weighs as much as the outlined icons. A project's are listed under its page below. A workspace's: folders for Projects (a new project is a folder with a plus), people for People, the chip runners are for Runners, GitHub's and Linear's marks, the webhook mark (lucide's `Webhook`) for Webhooks, an account with a cog (lucide's `UserRoundCog`: one that works on its own) for Service accounts, the sidebar's gear for Settings, a clock turning back for Audit log. A workspace's admins see up to nine tabs (eight where the instance has no Linear app), whose nine ran 76 px past a computer's 920 px column at the strip's usual spacing and left Audit log under the fade: their strip is `dense` either way (no gap between tabs, 8 px at their sides, 4 px between icon and label), which fits nine with a badge to spare; everyone else's keeps the usual spacing. The admin page's: people, the grid Settings draws workspaces with for Workspaces, GitHub's mark, the chip for Runners, an open door for Access (who gets in), the inbox requests land in for Early access, the gear, the clock. + - Each tab leads with a 16 px icon, 6 px before its label, drawn as the rest of the app draws what the tab holds: `ink-4`, `ink-3` under the pointer, in the accent on the open tab, as its bar is. A tab whose icon says how something is (a project's Autopilot) keeps its own color. A project's are listed under its page below. A workspace's: folders for Projects (a new project is a folder with a plus), people for People, the chip runners are for Runners, a plug (lucide's `Plug`) for Integrations, what it connects to elsewhere, the webhook mark (lucide's `Webhook`) for Webhooks, an account with a cog (lucide's `UserRoundCog`: one that works on its own) for Service accounts, the sidebar's gear for Settings, a clock turning back for Audit log. A workspace's admins see eight tabs. Their nine, before GitHub and Linear moved into Integrations, ran 76 px past a computer's 920 px column at the strip's usual spacing and left Audit log under the fade, so their strip is `dense` (no gap between tabs, 8 px at their sides, 4 px between icon and label), which fits nine with a badge to spare; everyone else's keeps the usual spacing. The admin page's: people, the grid Settings draws workspaces with for Workspaces, GitHub's mark, the chip for Runners, an open door for Access (who gets in), the inbox requests land in for Early access, the gear, the clock. - A count on a tab (a workspace's runners waiting for approval, the admin page's early-access requests, a project's autopilot's asks) is a 16 px pill after the label, read by its meaning ("2 waiting for approval"), not as a bare number. - On a phone the strip scrolls sideways to the screen's edges (`-mx-6 px-6 overflow-x-auto`, scrollbar hidden, the inner row `w-max min-w-full`, so the bottom line spans the page either way), and the open tab scrolls into view as the page opens; the page itself doesn't move. Each edge with more tabs past it fades out over its last 40 px (a `mask-image`, `edgeFade` in page-tabs.tsx), measured as the strip scrolls and as it or its row change size: until fctl#569 the strip ended at a hard cut ("Re…") that said nothing of the tabs beyond. The open tab scrolls into view clear of the edges that fade, not just inside the strip, or it would show half drawn, its accent bar too. - Tabs the person can't use aren't shown; asking for one by address shows the page's default tab. - - The open tab says so (`aria-current="page"`, set by the page, with `activeOptions.exact`), and its bar turns `CanvasText` under forced colors. Gap, on a workspace's page: tabs that wait on data (its Audit log, Webhooks and Linear) appear late and shift the strip. + - The open tab says so (`aria-current="page"`, set by the page, with `activeOptions.exact`), and its bar turns `CanvasText` under forced colors. Gap, on a workspace's page: tabs that wait on the workspace (its Webhooks, Service accounts and Audit log, which depend on the person's role) appear late and shift the strip. - **A text filter.** - A 28 px field after a search icon, `bg-sunken/60`, a `border-line` that darkens on focus. The placeholder says what it searches ("Filter by title, repo or #"). A `/` keycap shows until there's text (hidden where there's no hover), then a clear ×. - `/` focuses it from anywhere; Escape clears and leaves it; ArrowDown goes to the first row. @@ -248,7 +248,7 @@ Row actions follow how often the row is used: - Nothing loaded: an error `Banner` ("The pull requests didn't load: …") with "Try again". - A refresh failed after something loaded: keep the list and say so above it, in a quiet line after a red icon: "This list didn't refresh: … Try again". - A page whose object can't be read (`Unavailable`, components/unavailable.tsx), in the page's column rather than as a red banner, as nothing went wrong that a warning helps with: a 44 px tile with an icon, a 26 px display title, a 15 px `ink-3` sentence and the way on. Not there for the reader (404, or a 403 `forbidden` or `access_denied`): "No project here", then one sentence for both cases, so it doesn't reveal which ("This project does not exist, or you cannot see it. If someone sent you its link, they can add you to it."), "Go to the Agent Floor", and "or find it with ⌘K" where there are keys. Couldn't be reached (offline, a timeout, the server's error, or a 403 that asks for something, such as two-factor sign-in, whose message says what): "Couldn't open this project", the reason, "Try again" and the way back. Until fctl#566 every failure said the project didn't exist, so an offline phone told its reader their project was gone. Admin, for someone who isn't an admin (`AdminsOnly`): "Admin is for this instance's admins", what they manage there, and the way back. - - Gap: several tabs show a failed load as an empty list (a project's sessions, repositories, memory, members; a workspace's people and GitHub). Copy the pull requests page instead. + - Gap: several tabs show a failed load as an empty list (a project's sessions, repositories, memory, members; a workspace's people and its GitHub page). Copy the pull requests page instead. - **Limits are stated.** When a list is capped, a centred 12.5 px line under it says how and what to do: "From the newest 200 sessions with pull requests. Narrow it to a project for older ones." Silent caps (a project's 50 active sessions, a new project's first 60 repositories) are gaps. - **Folding long lists.** - Show the newest few and put the rest a click away, rather than scrolling a list inside a pane that scrolls (a scroll inside a scroll traps the wheel and the finger). The session page's rail lists six turns and folds the rest behind "Show 12 earlier turns", but only when more than two would fold (hiding one or two saves nothing), and the turn the reader is in always shows. @@ -458,7 +458,7 @@ Row actions follow how often the row is used: - Admins get "Invite" at the right, hidden on a phone: "The People tab has the form; on a phone the name needs the room." - Loading: skeletons of the avatar and two bars, with the tabs a member would see already in place. Not there for the reader: `Unavailable`, "No workspace here" and "This workspace does not exist, or you aren't a member of it. Its admins can invite you."; any other failure: "Couldn't open this workspace" with "Try again". Closed until two-factor is set up: no tabs, an amber banner that ends "Set it up in Settings.", and "Leave Romanesco", since leaving works while it's closed too. -**Tabs.** Projects (the default), People, Runners (with a 16 px highlight badge counting the runners that wait for the person's approval, read as "N waiting for approval"), GitHub, Linear (where the instance has a Linear app), Webhooks for admins, Service accounts (for admins, and for members once the workspace has one, with a blue badge counting those that wait for their answer, read as "N ask you"), Settings, and Audit log for admins. A member who asks for one of the admins' tabs sees Projects. Tab links replace the whole search, so an outcome banner's parameters drop on the next tab. +**Tabs.** Projects (the default), People, Runners (with a 16 px highlight badge counting the runners that wait for the person's approval, read as "N waiting for approval"), Integrations (GitHub, Linear where the instance has a Linear app, and Slack where it has a Slack app, or for its admins: [pages that explain](explaining.md#integrations-github-linear-and-slack)), Webhooks for admins, Service accounts (for admins, and for members once the workspace has one, with a blue badge counting those that wait for their answer, read as "N ask you"), Settings, and Audit log for admins. A member who asks for one of the admins' tabs sees Projects. Tab links replace the whole search, so an outcome banner's parameters drop on the next tab. **The set-up checklist.** At the top of Projects, for admins, until everything is done: "Set up Romanesco" (22 px display) and "2 of 4 done". Steps between hairlines, each a 24 px marker (a highlight circle with a check when done, else a ring around a dot), a 14.5 px title and a 13.5 px `ink-3` sentence; the action goes under the words on a phone and at the row's edge from 640 px. @@ -486,14 +486,17 @@ Row actions follow how often the row is used: **Runners** (the third tab; its explanations and setup guide are in [pages that explain](explaining.md)). Once runners exist they are a hairline list of management rows, not links, so they don't fill: an 8 px status dot (accent with a glow online, amber draining or when the driver isn't ready, red disabled, `ink-4` otherwise) always repeated in words after the name; pills only for exceptions ("Only your sessions"; a runner for everyone's sessions carries none); "Romanesco's docker runner · 1/2 sessions · seen 3m ago"; an amber line when its driver isn't ready; a ⋯ menu (Rename…, Drain, Disable, Replace token…, Remove…). Oldest first. +**Integrations** (GitHub, Linear and Slack as tiles that say how each stands, the open one's page under them; their +intros and Slack's page are in [pages that explain](explaining.md#integrations-github-linear-and-slack)). + **GitHub.** -- The tab reads a sign-in's outcome from the address (`?tab=github&github=refused&account=acme&reason=no_repos`) and shows a banner that says what happened and what to do next, naming controls by their labels: "Romanesco works in acme now: shop, web and 2 more."; "You didn't sign in to GitHub, so nothing was connected."; "That link to connect acme ran out. Connect it again."; refusals that need someone else say who ("An admin of its repositories, such as an owner of acme, connects it."). Refusals are errors except "nothing there to connect yet", which is info, since that isn't anyone's mistake. After a choice the address is replaced with the result, so a reload or Back says what happened instead of reopening the flow. +- The page reads a sign-in's outcome from the address (`?tab=integrations&integration=github&github=refused&account=acme&reason=no_repos`; the old `?tab=github` still leads there) and shows a banner that says what happened and what to do next, naming controls by their labels: "Romanesco works in acme now: shop, web and 2 more."; "You didn't sign in to GitHub, so nothing was connected."; "That link to connect acme ran out. Connect it again."; refusals that need someone else say who ("An admin of its repositories, such as an owner of acme, connects it."). Refusals are errors except "nothing there to connect yet", which is info, since that isn't anyone's mistake. After a choice the address is replaced with the result, so a reload or Back says what happened instead of reopening the flow. - A choice card, for 10 minutes after a sign-in: "Choose what Romanesco works in on acme", radios "Every repository, also those the app reaches there later" and "Only the ones you choose", a checklist that gains "Find a repository" and All/None above 8 repositories and scrolls past 288 px, "12 of 40 chosen" (at most 100), "Connect acme" and "Not now". - Connections: square-cornered 32 px avatars (as GitHub draws organizations), the account as an external link, "Only shop, web" or "Every repository the app reaches there", "Connected" in accent or "Not connected", a pencil to choose repositories and a trash icon; disconnecting an active account asks first. - The ways to connect sit in two columns from 768 px, texts in one row and buttons in the next, so the buttons line up whatever the texts take. Once an account is connected the section becomes "Add another account", with "You don't need one unless …", since under a connected account the old forms read as a step left to do. -**Linear.** Loading (a 128 px skeleton), an error banner, or "This instance has no Linear app yet." Not connected: a card, "Romanesco isn't connected to Linear yet", with "Connect Linear" for admins and "Romanesco's admins connect it: …" for members. Connected: a card per Linear workspace with "Connected" in accent or "Access revoked" in amber, and its projects as chips linking to their settings' Tickets pages; while no project takes its tickets, "No project takes its tickets yet: choose Linear in a project's settings, under Tickets." and dashed chips (not yet) for the projects the person could set up. +**Linear.** Loading (a 128 px skeleton) or an error banner; "This instance has no Linear app yet." stays only as a guard, since Integrations shows Linear's tile only where the instance has a Linear app. Not connected: a card, "Romanesco isn't connected to Linear yet", with "Connect Linear" for admins and "Romanesco's admins connect it: …" for members. Connected: a card per Linear workspace with "Connected" in accent or "Access revoked" in amber, and its projects as chips linking to their settings' Tickets pages; while no project takes its tickets, "No project takes its tickets yet: choose Linear in a project's settings, under Tickets." and dashed chips (not yet) for the projects the person could set up. **Settings** (the `beside` layout).