From 3c2b244d9f733aa2511240ff0d835be232164a4d Mon Sep 17 00:00:00 2001
From: Sam Julien
Date: Tue, 1 Dec 2026 15:47:35 -0800
Subject: [PATCH 1/7] Lighter lists: flat rows, label section titles,
one-sentence intros
PageRows draws no card: rows sit flat on the panel, split by hairline
dividers, with their text lined up under the section label. A row's icon
tile is hidden unless the list sets `icons`, which the Apps lists, a
Bot's apps, Reconnect, Artifacts and waiting items keep. Item size="sm"
is 8px top and bottom, about 53px with a description.
PageSection titles are 13px medium grey labels. PageSection and
PageShell take `learnMore`, which puts the longer explanation behind a
"Learn more" disclosure. Approvals, Memory, Notifications, Skills, Vault,
Skill detail and New routine open with one sentence each.
Docs (app guidelines rules 7 and 11, design system, screen-layout skill),
the ui-card test and the look-guard allowlist follow.
---
.claude/skills/openbot-screen-layout/SKILL.md | 59 +++++---
CHANGELOG.md | 8 +
app/src/components/approvals/settings.tsx | 24 +--
app/src/components/approvals/waiting.tsx | 17 ++-
.../components/artifacts/artifacts-page.tsx | 5 +-
app/src/components/bot-profile/access.tsx | 16 +-
app/src/components/layout/loading-rows.tsx | 11 +-
app/src/components/layout/page-parts.tsx | 138 +++++++++++++-----
app/src/components/layout/page-shell.tsx | 21 ++-
app/src/components/layout/row-mark.tsx | 2 +
.../components/manage/plugins-list-page.tsx | 16 +-
app/src/components/manage/skill-page.tsx | 8 +-
.../components/routines/new-routine-page.tsx | 12 +-
.../components/settings/delete-account.tsx | 4 +-
.../components/settings/update-routing.tsx | 10 +-
.../skills/skills-settings-page.tsx | 11 +-
app/src/components/ui/item.tsx | 13 +-
app/src/components/vault/vault-page.tsx | 10 +-
app/src/routes/_authed/_app/memory.tsx | 5 +-
app/src/routes/_authed/_app/reconnect.tsx | 7 +-
app/src/routes/_authed/settings/approvals.tsx | 2 +-
.../routes/_authed/settings/notifications.tsx | 3 +-
app/tests/ui-card.test.tsx | 48 ++++--
app/tests/ui-look-guard.allowlist.json | 2 +-
app/tests/update-routing-settings.test.tsx | 2 +-
app/tests/vault.test.tsx | 6 +-
docs/app-guidelines.md | 14 +-
docs/design-system.md | 7 +-
28 files changed, 325 insertions(+), 156 deletions(-)
diff --git a/.claude/skills/openbot-screen-layout/SKILL.md b/.claude/skills/openbot-screen-layout/SKILL.md
index 2ca169bed6..bb9c0fef80 100644
--- a/.claude/skills/openbot-screen-layout/SKILL.md
+++ b/.claude/skills/openbot-screen-layout/SKILL.md
@@ -44,9 +44,9 @@ deviation worth stating out loud and worth a comment saying why.
Four components make the frame. They compose in this order and nest no other way.
```
-PageShell the page: header (title, description, action, backButton) then children
- PageSection a titled group of unrelated decisions, with a deliberately large gap above it
- PageRows the grouped card: rounded-lg border bg-card
+PageShell the page: header (title, one-sentence description, action, backButton) then children
+ PageSection a group of unrelated decisions under a small grey label, a large gap above it
+ PageRows the list: flat rows, no card, split by hairline dividers
Item one row, size="sm", divided from its neighbours by
PageEmpty what a section says when it has nothing to list
```
@@ -66,21 +66,22 @@ components above; a screen that sets its own is drifting.
|---------|-----|----------------|
| Page edge (top / sides / bottom) | 48 / 16 / 64px | `PageShell` column (`pt-12` or `pt-8` under the bar, `px-4`, `pb-16`) |
| Title → description | 8px | `PageShell` header |
+| Section label → description | 0px | `PageSection` |
| Title block → first content | 32px | `PageShell`: `[&>header+*]:mt-8` |
| Title → tabs, tabs → content | 24px, then 32px | `PageShell`: `[&>header+nav]`, `[&>header+nav+*]` |
| Section → section | 48px | `PageSection` (`mt-12`) |
-| Section heading → description | 4px | `PageSection` |
-| Heading block → section content | 16px | `PageRows` / `PageEmpty` (`mt-4`) |
+| Label block → section content | 8px | `PageRows` / `PageEmpty` (`mt-2`) |
| Controls stacked inside a section | 12px | the screen, with `gap-3` |
-| A row in `PageRows` | 65px with a description, never under 56px | `Item` (`px-4 py-3.5 gap-3`), `PageRows` (`min-h-14`) |
-| Divider between rows | inset 16px from both edges | `PageRows`, on every horizontal `Separator` inside it |
+| A row in `PageRows` | about 53px with a description, never under 48px | `Item size="sm"` (`py-2 gap-3`), `PageRows` (`min-h-12`) |
+| Row text → column edge | 0px: the text lines up with the label above | `PageRows` (`-mx-2`, rows `px-2`) |
+| Divider between rows | lined up with the rows' text | `PageRows`, on every horizontal `Separator` inside it |
The 32px under the title is deliberately tighter than the 48px between sections: the title belongs
to the page it introduces. Those `PageShell` selectors outrank the first child's own `mt-*`, so a
section or notice keeps its usual margin everywhere else and loses it only at the top.
-A page with one section gives that section no `title`: the page title already names it, and a second
-heading 32px below the first says the same thing twice. Put the description on `PageShell` instead
+A page with one section gives that section no `title`: the page title already names it, and a label
+32px below it says the same thing twice. Put the description on `PageShell` instead
(`connections.index.tsx`). A count or filter that belongs to a search sits on the search's row, not
on a line of its own.
@@ -90,6 +91,17 @@ sentence of description saying how the first one arrives, and an `action` — th
page already has — when there is one to offer. Don't repeat "Add one with X" in the description when
the action is right there. A search with no results uses `IconSearch` and "No matches".
+## Words Under A Title
+
+A page's `description` and a section's `description` are each **one short sentence**: what the page
+or the group is for. A longer explanation (how rules combine, what happens in each case, an
+exception) goes in `learnMore`, on `PageShell` or `PageSection`. It opens under the sentence when the
+person presses "Learn more", and stays in the page while closed, so find-in-page reaches it. A
+section whose title and rows already say it needs no description.
+
+The section title is a label, not a heading to read: 13px, medium weight, `muted-foreground`. The
+rows under it are what a person reads.
+
## Screens, Not Dialogs
**A dialog is used only where the request explicitly asks for one. Everything else is a new
@@ -107,25 +119,28 @@ button.
### Procedure 1: Lay out a screen
-1. Open with `PageShell`, giving it `title` and `description`. Leave `width` alone.
+1. Open with `PageShell`, giving it `title` and a one-sentence `description` (Words Under A Title).
+ Leave `width` alone.
2. On a detail screen reached from a list, pass `backButton={{ label, linkProps }}` — it draws a
chevron-left bar above the header. Do not put a Back button in `action`; `action` is for the
page's one primary verb, on the title's baseline.
3. Group the page's decisions into `PageSection`s, each with a `title` and, where the grouping is not
- self-evident, a `description`.
-4. Give each section one `PageRows` card. Rows go inside it as `Item size="sm"`, with ``
- between them and none after the last. `PageRows` is a card with dividers, not a stack of cards —
- gaps between rows are the wrong shape.
+ self-evident, a one-sentence `description`.
+4. Give each section one `PageRows`. Rows go inside it as `Item size="sm"`, with ``
+ between them and none after the last. `PageRows` is a flat list with dividers, not a card and not
+ a stack of cards: gaps between rows are the wrong shape.
5. Read `admin/plugins/index.tsx` for the whole pattern end to end, and
`admin/plugins/$key.tsx` or `admin/components/$name.tsx` for a screen with several sections and
mixed row kinds.
### Procedure 2: Compose a row
-1. `ItemMedia variant="icon"` holds a leading icon from `@/components/icons`, drawn as a 16px glyph on
- a 32px muted tile. It is what makes a card of rows scannable; a row without one reads as a
- paragraph. Pass the bare icon — the variant sizes and colours it — and use plain `ItemMedia` only
- for something that is its own picture, such as a Bot's avatar.
+1. A row has no leading icon by default: a glyph beside every row repeats what its title says.
+ Give the rows icons only where the icon tells them apart: an app's mark, a file's kind. Then
+ each row's `ItemMedia variant="icon"` holds the icon from `@/components/icons` (a 16px glyph on a
+ 32px tile), and the list is ``. Without `icons`, `PageRows` does not draw the
+ tile. Plain `ItemMedia` is for something that is its own picture, such as a Bot's avatar or an
+ app's logo, and is always drawn.
2. `ItemContent` holds `ItemTitle` and, where the row needs a second line, `ItemDescription`.
3. `ItemActions` holds the control, or the value when the row is read-only.
4. `ItemHeader` and `ItemFooter` are `basis-full`, so they wrap onto a line of their own inside the
@@ -163,7 +178,7 @@ itself when the screen behind it changes something.
### Procedure 4: Sizes and variants
-1. `Item size="sm"` for rows inside a card. `default` only for a row standing on its own.
+1. `Item size="sm"` for rows inside a list. `default` only for a row standing on its own.
2. `Button size="sm"` for a control inside a row or a dialog footer; `lg` for a page's own actions;
`icon-sm` for a control floating over artwork.
3. `Item variant` — pick **one for the whole screen**. `muted` is a fill with no border; `outline` is
@@ -237,8 +252,10 @@ is actually on screen. The root was once 15px, and every constant taken from the
| Signal | What it means | Do instead |
|--------|---------------|------------|
-| A hand-written `rounded-lg border border-border bg-card` div wrapping rows | `PageRows` re-implemented, and it will drift from the other seven screens | Use `PageRows` |
-| Rows separated by `gap-*` instead of `` | A stack of cards rather than one card of rows | `` between rows, none after the last |
+| A hand-written `rounded-lg border border-border bg-card` div wrapping rows | A card around a list, which `PageRows` no longer draws | Use `PageRows` |
+| Rows separated by `gap-*` instead of `` | A stack of cards rather than one list of rows | `` between rows, none after the last |
+| `` on a list whose icons are one per kind of setting | A tile that repeats the title, the look this layout dropped | Leave `icons` off; keep it for app marks and file kinds |
+| A page or section description of two or more sentences | A paragraph between the title and the rows | One sentence; the rest in `learnMore` |
| `width="wide"` on anything that is not a table | Prose width is the default for a reason; wide was for the audit log | Leave `width` alone |
| A `max-w-*`, `p-*` or text size invented for one screen | A fifth container width, which is what this layout exists to stop | Reach for the existing component |
| Children on an element passed to `Item`'s `render` | They replace the row's own children; the row draws empty | Pass a childless element |
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e28105213f..13308f200c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -49,6 +49,14 @@ Newest first. `Unreleased` is what is on `main` and not yet tagged.
long list never meets a proxy's limit on an address. The web app uses the new operations, and
falls back to the old ones on a server from before them.
+**Lighter lists.**
+
+- **Settings and list pages read as lists, not admin forms.** Rows sit flat, split by thin lines,
+ with no box around each list and no icon beside every row. Icons stay where they tell rows apart,
+ such as app marks and file kinds. Section titles are small grey labels, and each page and section
+ opens with one short sentence. A longer explanation, such as the full approval rules, is behind
+ "Learn more".
+
## 1.2.7
**Before upgrading.**
diff --git a/app/src/components/approvals/settings.tsx b/app/src/components/approvals/settings.tsx
index 2726697547..9ebffa7ee2 100644
--- a/app/src/components/approvals/settings.tsx
+++ b/app/src/components/approvals/settings.tsx
@@ -1,12 +1,12 @@
+import { useMutation, useQuery } from "@tanstack/react-query";
+import { Link } from "@tanstack/react-router";
+import { Fragment } from "react";
import {
IconChecklist,
IconEyeCheck,
IconHandStop,
IconTerminal2,
} from "@/components/icons";
-import { useMutation, useQuery } from "@tanstack/react-query";
-import { Link } from "@tanstack/react-router";
-import { Fragment } from "react";
import {
PageEmpty,
PageRows,
@@ -38,6 +38,7 @@ import { failureSaid } from "@/lib/load-failure";
import { queryClient } from "@/query-client";
import {
ALWAYS_ASKS,
+ ALWAYS_ASKS_SHORT,
ASK_FIRST_DESCRIPTION,
ASK_FIRST_TITLE,
HANDED_TO_YOU,
@@ -105,12 +106,13 @@ export function ApprovalSettings() {
) : null}
{ALWAYS_ASKS} They also ask before every edit or command in a folder
@@ -214,9 +216,7 @@ export function ApprovalSettings() {
- The strictest matching rule wins. An "ask" rule beats an "allow"
- rule.{personal ? " " : " Organization rules are locked. "}Rules for
- one Bot are on{" "}
+ Rules for one Bot are on{" "}
that Bot's page
@@ -226,6 +226,12 @@ export function ApprovalSettings() {
: ""}
>
}
+ learnMore={
+ <>
+ The strictest matching rule wins. An "ask" rule beats an "allow"
+ rule.{personal ? "" : " Organization rules are locked."}
+ >
+ }
title="Rules for every Bot"
>
{saved === 0 && inbox.data !== undefined ? (
@@ -271,7 +277,7 @@ export function ApprovalSettings() {
{agents.data !== undefined && otherBots.length > 0 ? (
diff --git a/app/src/components/approvals/waiting.tsx b/app/src/components/approvals/waiting.tsx
index 5865b54be2..c72c6a0c4b 100644
--- a/app/src/components/approvals/waiting.tsx
+++ b/app/src/components/approvals/waiting.tsx
@@ -4,17 +4,17 @@ import {
approvalPhrase,
approvalWords,
} from "@openbot/shared/tool-name";
+import { useMutation, useQuery } from "@tanstack/react-query";
+import { useNavigate } from "@tanstack/react-router";
+import { Fragment, type ReactNode, useState } from "react";
+import { BotOrb } from "@/components/agents/bot-orb";
+import { ShareDetails, shareOf } from "@/components/approvals/share-details";
import {
IconDots,
IconHandStop,
IconMessageQuestion,
IconX,
} from "@/components/icons";
-import { useMutation, useQuery } from "@tanstack/react-query";
-import { useNavigate } from "@tanstack/react-router";
-import { Fragment, type ReactNode, useState } from "react";
-import { BotOrb } from "@/components/agents/bot-orb";
-import { ShareDetails, shareOf } from "@/components/approvals/share-details";
import { PageRows } from "@/components/layout/page-shell";
import {
BoardRow,
@@ -63,12 +63,12 @@ import {
decideApprovalMutationOptions,
dismissPersonQuestionMutationOptions,
} from "@/lib/approvals";
+import { failureSaid } from "@/lib/load-failure";
import { readFailure } from "@/lib/read-failure";
import { relativeTime } from "@/lib/relative-time";
import type { WaitingWhere } from "@/lib/tasks/groups";
import { cn } from "@/lib/utils";
import { queryClient } from "@/query-client";
-import { failureSaid } from "@/lib/load-failure";
type WaitingQuestion = ApprovalInboxData["questions"][number];
type WaitingRequest = ApprovalInboxData["requests"][number];
@@ -823,7 +823,10 @@ export function WaitingForYou({
) : null}
{rows.length > 0 ? (
-
+
{rows.map((row, index) => (
{index > 0 ? : null}
diff --git a/app/src/components/artifacts/artifacts-page.tsx b/app/src/components/artifacts/artifacts-page.tsx
index 6561acac4c..cfeb838bba 100644
--- a/app/src/components/artifacts/artifacts-page.tsx
+++ b/app/src/components/artifacts/artifacts-page.tsx
@@ -247,7 +247,10 @@ export function ArtifactsPage({
))}
) : (
-
+
{artifacts.map((artifact, index) => (
{index > 0 ? : null}
diff --git a/app/src/components/bot-profile/access.tsx b/app/src/components/bot-profile/access.tsx
index 1387389935..99c5aaf69a 100644
--- a/app/src/components/bot-profile/access.tsx
+++ b/app/src/components/bot-profile/access.tsx
@@ -1,3 +1,6 @@
+import { useMutation, useQuery } from "@tanstack/react-query";
+import { Link } from "@tanstack/react-router";
+import { Fragment } from "react";
import {
IconApps,
IconBox,
@@ -5,9 +8,6 @@ import {
IconPlug,
IconPlus,
} from "@/components/icons";
-import { useMutation, useQuery } from "@tanstack/react-query";
-import { Link } from "@tanstack/react-router";
-import { Fragment } from "react";
import {
PageEmpty,
PageRows,
@@ -219,7 +219,10 @@ function YourApps({ agent }: { agent: AgentProfile }) {
Connect an app to let your Bots use it.
) : (
-
+
{rows.map((app, index) => {
const granted = app.access?.granted ?? false;
const locked = granted && !app.access?.givenByOwner;
@@ -534,7 +537,10 @@ function Granted({
)}
) : (
-
+
{shownStates.map((app, index) => {
const labels = tools.get(app.key) ?? [];
return (
diff --git a/app/src/components/layout/loading-rows.tsx b/app/src/components/layout/loading-rows.tsx
index 49a2faf834..1ac9a0ae96 100644
--- a/app/src/components/layout/loading-rows.tsx
+++ b/app/src/components/layout/loading-rows.tsx
@@ -7,8 +7,8 @@ import { cn } from "@/lib/utils";
const WIDTHS = ["w-40", "w-32", "w-48", "w-36", "w-44"] as const;
/**
- * The shape of a list that hasn't loaded yet: the same card of `Item` rows it will be, with bars
- * where the title and description go.
+ * The shape of a list that hasn't loaded yet: the same `Item` rows it will be, with bars where the
+ * title and description go.
*
* Built from the real `PageRows` and `Item`, so each placeholder row is as tall as a loaded one and
* nothing jumps when the rows arrive. Shown only for a first load: a list that has data keeps it
@@ -20,13 +20,16 @@ const WIDTHS = ["w-40", "w-32", "w-48", "w-36", "w-44"] as const;
export function LoadingRows({
label,
rows = 3,
- media = "icon",
+ media = "none",
className,
}: {
/** What is loading, read once: "Loading your Bots". */
label: string;
rows?: number;
- /** The leading mark the loaded rows have: a 32px icon tile, or a round avatar. */
+ /**
+ * The leading mark the loaded rows have: a 32px icon tile (only on a list that draws its tiles,
+ * `PageRows icons`), a round avatar, or none, as most lists have.
+ */
media?: "icon" | "avatar" | "none";
className?: string;
}) {
diff --git a/app/src/components/layout/page-parts.tsx b/app/src/components/layout/page-parts.tsx
index 1e7969c99b..87b69a8baa 100644
--- a/app/src/components/layout/page-parts.tsx
+++ b/app/src/components/layout/page-parts.tsx
@@ -1,5 +1,10 @@
import type * as React from "react";
import { cn } from "@/lib/utils";
+import {
+ Collapsible,
+ CollapsibleContent,
+ CollapsibleTrigger,
+} from "../ui/collapsible";
import {
Empty,
EmptyContent,
@@ -78,14 +83,51 @@ export function PageColumn({
);
}
+/**
+ * One short sentence under a title, and the longer explanation behind "Learn more".
+ *
+ * A page or a section says what it is for in one sentence. Anything longer (how the rules combine,
+ * what happens in each case) is there for the person who asks for it, so it opens below the sentence
+ * on demand rather than standing between the title and the rows every time.
+ */
+export function PageIntro({
+ children,
+ className,
+ learnMore,
+}: {
+ children: React.ReactNode;
+ className?: string;
+ /** The longer explanation. Shown under the sentence after "Learn more" is pressed. */
+ learnMore?: React.ReactNode;
+}) {
+ const text = "text-pretty text-muted-foreground text-sm leading-relaxed";
+ if (!learnMore) return
{children}
;
+ return (
+
+
+ {children}{" "}
+
+ Learn more
+
+
+ {/* Kept in the page while closed, so find-in-page and a test reading the text still reach it. */}
+
+ {learnMore}
+
+
+ );
+}
+
/** The page's title, its one primary action and its description. */
export function PageHeader({
action,
description,
+ learnMore,
title,
}: {
action?: React.ReactNode;
description?: React.ReactNode;
+ learnMore?: React.ReactNode;
title: string;
}) {
return (
@@ -100,9 +142,7 @@ export function PageHeader({
{action}
{description ? (
-
- {description}
-
+ {description}
) : null}
);
@@ -114,6 +154,10 @@ export function PageHeader({
* The gap above a section is deliberately large. These pages are lists of unrelated decisions, and
* the space is what stops the eye running two of them together — it is doing the work a divider
* would otherwise do, without drawing a line.
+ *
+ * The title is a label above the group, small and grey, as Claude and Grok draw theirs: the rows are
+ * what a person reads, and a bold heading over every group made each page a stack of titles. The
+ * description is one sentence. A longer explanation goes in `learnMore`.
*/
export function PageSection({
action,
@@ -121,32 +165,41 @@ export function PageSection({
className,
description,
id,
+ learnMore,
title,
}: {
action?: React.ReactNode;
children?: React.ReactNode;
className?: string;
+ /** One sentence. */
description?: React.ReactNode;
/** For an address that opens the page at this section, as its hash. */
id?: string;
+ /** The longer explanation, behind "Learn more" after the description. */
+ learnMore?: React.ReactNode;
title?: string;
}) {
return (
{title ? (
-
- {/*
- * Close to body size and lighter than the page title, so the sections read as parts of
- * the page rather than as a second row of titles competing with it.
- */}
-
{title}
+
+
+ {title}
+
{action}
) : null}
{description ? (
-
- {description}
-
+ {description}
) : null}
{children}
@@ -154,38 +207,57 @@ export function PageSection({
}
/**
- * The card that rows live in.
+ * The rows of a list: flat, one under another, split by hairline dividers.
+ *
+ * Rows are `` with a `` between them. There is no card around them, as
+ * in ChatGPT's and Claude's settings: a bordered box around every list made each page read as an
+ * admin tool. The rows' text lines up with the section's label above it, and a row that is a link
+ * shows its hover as a rounded fill a little wider than the text. Rendering nothing when there is
+ * nothing is deliberate — an empty list reads as nothing to see yet.
*
- * Rows are `` with a `` between them; this is only the border around
- * them. Rendering nothing when there is nothing is deliberate — an empty bordered box reads as a
- * thing that failed to load, where absence reads as nothing to see yet.
+ * A row's icon tile (`ItemMedia variant="icon"`) is not drawn here unless `icons` is set. A glyph
+ * beside every row repeats what the title says. Set `icons` only where the icon tells rows apart:
+ * app marks, file types. A picture of its own (an avatar, a vendor's logo in plain `ItemMedia`) is
+ * always drawn.
*/
export function PageRows({
children,
className,
+ icons = false,
}: {
children: React.ReactNode;
className?: string;
+ /** Draw each row's icon tile. Only where the icon tells the rows apart. */
+ icons?: boolean;
}) {
return (
- /*
- * The rows are squared off and the card clips them. `Item` carries `rounded-lg` of its own, which
- * inside a card of divided rows painted a hover as a floating pill: a middle row has no corners,
- * and the first and last cannot be concentric with the card while sitting a border inside it.
- *
- * Every row is at least 56px, whatever it holds. A title over a description is 65px; a lone
- * line would be 48px and look stunted beside it, so it is held up to the floor. A description
- * that wraps to a second line still grows the row rather than being clipped.
- */
{children}
@@ -196,8 +268,8 @@ export function PageRows({
* The card a page-sized form sits in: the fields, then its buttons on the right.
*
* For a screen that exists to fill something in, reached from a list by its Add button, with
- * `PageShell`'s back button returning to it. The same border and fill as `PageRows`, so a form and
- * a list read as the same kind of surface, padded rather than divided because it holds fields.
+ * `PageShell`'s back button returning to it. A form keeps its card: its fields need an edge to sit
+ * in, where a list of rows reads as a list without one.
*/
export function PageCard({
children,
@@ -244,7 +316,7 @@ export function PageEmpty({
}) {
return (
// `isolate` gives the pattern its own stacking context, so it sits behind the text, not on it.
-
+
{/* The pattern is decoration: see `.empty-pattern` in styles.css and its tokens in theme.css. */}
diff --git a/app/src/components/layout/page-shell.tsx b/app/src/components/layout/page-shell.tsx
index e51a0be7a0..1080735b7f 100644
--- a/app/src/components/layout/page-shell.tsx
+++ b/app/src/components/layout/page-shell.tsx
@@ -1,6 +1,6 @@
-import { IconChevronLeft } from "@/components/icons";
import { Link, type LinkProps } from "@tanstack/react-router";
import type * as React from "react";
+import { IconChevronLeft } from "@/components/icons";
import { cn } from "@/lib/utils";
import { Button } from "../ui/button";
import { PageColumn, PageHeader, type ShellWidth } from "./page-parts";
@@ -27,6 +27,7 @@ export function PageShell({
children,
className,
description,
+ learnMore,
title,
width = "prose",
backButton,
@@ -35,7 +36,10 @@ export function PageShell({
action?: React.ReactNode;
children: React.ReactNode;
className?: string;
+ /** One short sentence under the title. */
description?: React.ReactNode;
+ /** The longer explanation, behind "Learn more" after the description. */
+ learnMore?: React.ReactNode;
title: string;
width?: ShellWidth;
backButton?: {
@@ -64,7 +68,12 @@ export function PageShell({
const bar = showToggle || !!backButton;
const header = (
-
+
);
const barRow = bar ? (
@@ -116,4 +125,10 @@ export function PageShell({
);
}
-export { PageCard, PageEmpty, PageRows, PageSection } from "./page-parts";
+export {
+ PageCard,
+ PageEmpty,
+ PageIntro,
+ PageRows,
+ PageSection,
+} from "./page-parts";
diff --git a/app/src/components/layout/row-mark.tsx b/app/src/components/layout/row-mark.tsx
index b7fdbbabab..54a0aad7b3 100644
--- a/app/src/components/layout/row-mark.tsx
+++ b/app/src/components/layout/row-mark.tsx
@@ -20,6 +20,8 @@ import { cn } from "@/lib/utils";
* One component rather than a class literal at every call site, because the whole value is that the
* tiles are identical: copies of `size-9 rounded-lg bg-muted/60` are chances for one of them to
* drift, and a list with one tile a pixel out looks broken rather than varied.
+ *
+ * Inside `PageRows` it is drawn only where the list sets `icons`, as every icon tile is.
*/
export function RowMark({
className,
diff --git a/app/src/components/manage/plugins-list-page.tsx b/app/src/components/manage/plugins-list-page.tsx
index 5cb2b85cb4..eeb34654b0 100644
--- a/app/src/components/manage/plugins-list-page.tsx
+++ b/app/src/components/manage/plugins-list-page.tsx
@@ -1,3 +1,6 @@
+import { useQuery } from "@tanstack/react-query";
+import { Link } from "@tanstack/react-router";
+import * as React from "react";
import {
IconApps,
IconBrandGoogleDrive,
@@ -7,9 +10,6 @@ import {
IconPlug,
IconPlus,
} from "@/components/icons";
-import { useQuery } from "@tanstack/react-query";
-import { Link } from "@tanstack/react-router";
-import * as React from "react";
import {
PageEmpty,
PageRows,
@@ -227,7 +227,10 @@ export function PluginsListPage({
Pick one from the list below.
) : (
-
+
{plugins.data?.map((server, index) => {
const note = toolsListError(server.lastError, {
title: server.title,
@@ -301,7 +304,10 @@ export function PluginsListPage({
Every app in the catalogue is connected.
) : (
-
+
{explore.map((entry: CatalogueItem, index) => {
return (
diff --git a/app/src/components/manage/skill-page.tsx b/app/src/components/manage/skill-page.tsx
index 49f6ae6fc5..80021fed8d 100644
--- a/app/src/components/manage/skill-page.tsx
+++ b/app/src/components/manage/skill-page.tsx
@@ -1,12 +1,12 @@
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import { useNavigate } from "@tanstack/react-router";
+import { useState } from "react";
import {
IconBolt,
IconChevronRight,
IconFileOff,
IconTrash,
} from "@/components/icons";
-import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
-import { useNavigate } from "@tanstack/react-router";
-import { useState } from "react";
import {
PageEmpty,
PageRows,
@@ -137,7 +137,7 @@ export function SkillPage({ slug }: { slug: string }) {
description={
<>
Bots with their switch on offer {skill.title} when someone types{" "}
- /. It takes effect at once.
+ /.
>
}
title="Bots"
diff --git a/app/src/components/routines/new-routine-page.tsx b/app/src/components/routines/new-routine-page.tsx
index db7b45088a..55d9f5bf0d 100644
--- a/app/src/components/routines/new-routine-page.tsx
+++ b/app/src/components/routines/new-routine-page.tsx
@@ -38,10 +38,12 @@ import {
channelListQueryOptions,
} from "@/lib/channels/queries";
import { deploymentCapabilitiesQueryOptions } from "@/lib/deployment/queries";
+import { failureSaid } from "@/lib/load-failure";
import {
proactiveAllowedQueryOptions,
proactiveSettingsQueryOptions,
} from "@/lib/proactive";
+import { draftValues } from "@/lib/routines/draft";
import {
browserTimeZone,
DOES,
@@ -52,7 +54,6 @@ import {
type RoutineFormValues,
STARTS,
} from "@/lib/routines/form";
-import { draftValues } from "@/lib/routines/draft";
import { CHECK_IN_INTERVALS } from "@/lib/routines/merged";
import {
createFromPlanMutationOptions,
@@ -66,7 +67,6 @@ import {
} from "@/lib/routines/rules";
import { openingOf } from "@/lib/voice/cut";
import { queryClient } from "@/query-client";
-import { failureSaid } from "@/lib/load-failure";
/** The conversations a routine for this Bot may post in: live ones the Bot is in. */
function conversationsWith(
@@ -291,11 +291,7 @@ export function NewRoutinePage({
>
{/* Sections rather than one card, as New skill is: who does it and what, when it starts,
when it is done, and where it shows up. Each is one decision with room for its words. */}
-
+
@@ -472,7 +468,7 @@ export function NewRoutinePage({
description={
does === "tell"
? "It looks this often, and tells you when something needs you."
- : "On a schedule, when something happens, or once, now."
+ : undefined
}
title={does === "tell" ? "How often it looks" : "When it starts"}
>
diff --git a/app/src/components/settings/delete-account.tsx b/app/src/components/settings/delete-account.tsx
index 2d4e278c7a..89fe87e7d5 100644
--- a/app/src/components/settings/delete-account.tsx
+++ b/app/src/components/settings/delete-account.tsx
@@ -1,4 +1,3 @@
-import { IconArchive, IconBuilding, IconTrash } from "@/components/icons";
import { useMutation, useQuery } from "@tanstack/react-query";
import { useNavigate, useRouter } from "@tanstack/react-router";
import {
@@ -10,6 +9,7 @@ import {
useState,
} from "react";
import { useSignOut } from "@/components/app-sidebar/use-sign-out";
+import { IconArchive, IconBuilding, IconTrash } from "@/components/icons";
import { PageRows, PageSection } from "@/components/layout/page-shell";
import { LeaveOrganizationDialog } from "@/components/organizations/organization-settings-page";
import { Button } from "@/components/ui/button";
@@ -183,7 +183,7 @@ function BlockerRow({ blocker }: { blocker: AccountDeletionBlocker }) {
{/* Under the words on a phone, as on Organization's members: a button beside them squeezes them. */}
-
+
{settledInItsSettings(blocker) ? (
) : (
diff --git a/app/src/components/settings/update-routing.tsx b/app/src/components/settings/update-routing.tsx
index 3031bf8d15..9744aba490 100644
--- a/app/src/components/settings/update-routing.tsx
+++ b/app/src/components/settings/update-routing.tsx
@@ -1,6 +1,6 @@
-import { IconInbox, IconRoute } from "@/components/icons";
import { useMutation, useQuery } from "@tanstack/react-query";
import { Fragment } from "react";
+import { IconInbox, IconRoute } from "@/components/icons";
import {
PageEmpty,
PageRows,
@@ -119,11 +119,7 @@ export function UpdateRoutingSection() {
return (
{routing.isPending || transports.isPending ? null : routing.error ? (
@@ -264,7 +260,7 @@ export function AppRequestRoutingSection() {
0
- ? "As an admin, choose where you hear that someone asked for access to an app. Every request also waits in Admin, under Apps."
+ ? "Every request for an app also waits in Admin, under Apps."
: undefined
}
title="Requests for apps"
diff --git a/app/src/components/skills/skills-settings-page.tsx b/app/src/components/skills/skills-settings-page.tsx
index f1db62552a..183495e765 100644
--- a/app/src/components/skills/skills-settings-page.tsx
+++ b/app/src/components/skills/skills-settings-page.tsx
@@ -1,3 +1,7 @@
+import { useMutation, useQuery } from "@tanstack/react-query";
+import { Link, useNavigate } from "@tanstack/react-router";
+import { useState } from "react";
+import { TEACH_A_BOT } from "@/components/browser/browser-nav-item";
import {
IconBook,
IconChalkboardTeacher,
@@ -5,10 +9,6 @@ import {
IconDots,
IconPlus,
} from "@/components/icons";
-import { useMutation, useQuery } from "@tanstack/react-query";
-import { Link, useNavigate } from "@tanstack/react-router";
-import { useState } from "react";
-import { TEACH_A_BOT } from "@/components/browser/browser-nav-item";
import { DetailPanel } from "@/components/layout/detail-panel";
import {
PageRows,
@@ -224,7 +224,8 @@ export function SkillsSettingsPage({
>
{error ? (
diff --git a/app/src/components/ui/item.tsx b/app/src/components/ui/item.tsx
index 80f4649266..137a584477 100644
--- a/app/src/components/ui/item.tsx
+++ b/app/src/components/ui/item.tsx
@@ -43,12 +43,14 @@ const itemVariants = cva(
muted: "border-transparent bg-muted/50",
},
/*
- * Linear's settings row: 16px in from every edge and 12px between media, text and actions.
- * A title over a one-line description comes to 65px, a single line to 48px.
+ * 16px in from the sides and 12px between media, text and actions. `default` is a row standing
+ * on its own: a title over a one-line description comes to 65px. `sm` is a row in a list
+ * (`PageRows`), 8px above and below, as ChatGPT's and Claude's settings rows: the same two lines
+ * come to about 53px, and the list's dividers do the separating the padding did.
*/
size: {
default: "gap-3 px-4 py-3.5",
- sm: "gap-3 px-4 py-3.5",
+ sm: "gap-3 px-4 py-2",
xs: "gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0",
},
},
@@ -89,7 +91,10 @@ const itemMediaVariants = cva(
variants: {
variant: {
default: "bg-transparent",
- // A 32px tile behind a 16px glyph, so a column of rows reads as a column of marks.
+ /*
+ * A 32px tile behind a 16px glyph. Inside `PageRows` it is drawn only where the list asks for
+ * it (`icons`), because the icon tells the rows apart: app marks, file types.
+ */
icon: "size-8 rounded-md bg-background text-muted-foreground ring-1 ring-border group-data-[size=xs]/item:size-6 [&_svg:not([class*='size-'])]:size-4",
image:
"size-10 overflow-hidden rounded-md group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover",
diff --git a/app/src/components/vault/vault-page.tsx b/app/src/components/vault/vault-page.tsx
index 7a6f5f1f7d..76c4cc2f7c 100644
--- a/app/src/components/vault/vault-page.tsx
+++ b/app/src/components/vault/vault-page.tsx
@@ -1,5 +1,5 @@
-import { IconPlus } from "@/components/icons";
import { Link } from "@tanstack/react-router";
+import { IconPlus } from "@/components/icons";
import { PageSection, PageShell } from "@/components/layout/page-shell";
import { CredentialsList } from "@/components/manage/credentials-page";
import { Button } from "@/components/ui/button";
@@ -21,8 +21,8 @@ export function VaultPage() {
@@ -32,7 +32,7 @@ export function VaultPage() {
*/}
{personal ? (
@@ -55,7 +55,7 @@ export function VaultPage() {
Add key
}
- description="API keys and tokens your apps and models use. A saved key can't be viewed again."
+ description="Your apps and models use these keys, and a saved key can't be viewed again."
title="Keys"
>
diff --git a/app/src/routes/_authed/_app/memory.tsx b/app/src/routes/_authed/_app/memory.tsx
index 554739ce22..f208ab0922 100644
--- a/app/src/routes/_authed/_app/memory.tsx
+++ b/app/src/routes/_authed/_app/memory.tsx
@@ -1,8 +1,8 @@
import { createFileRoute, redirect } from "@tanstack/react-router";
import { PageShell } from "@/components/layout/page-shell";
import { MemoryList, RememberFact } from "@/components/memory/memories";
-import { deploymentOffersMemory } from "@/lib/deployment/queries";
import { agentListQueryOptions } from "@/lib/agents/queries";
+import { deploymentOffersMemory } from "@/lib/deployment/queries";
import { memoriesQueryOptions, memorySourcesQueryOptions } from "@/lib/memory";
import { loadFirstScreen } from "@/lib/route-data";
@@ -32,7 +32,8 @@ function MemoryPage() {
return (
} />
diff --git a/app/src/routes/_authed/_app/reconnect.tsx b/app/src/routes/_authed/_app/reconnect.tsx
index cea8ceb1a4..dd150f64a8 100644
--- a/app/src/routes/_authed/_app/reconnect.tsx
+++ b/app/src/routes/_authed/_app/reconnect.tsx
@@ -1,7 +1,7 @@
-import { IconCheck, IconX } from "@/components/icons";
import { useQuery } from "@tanstack/react-query";
import { createFileRoute, Link, useNavigate } from "@tanstack/react-router";
import * as React from "react";
+import { IconCheck, IconX } from "@/components/icons";
import { PageRows, PageShell } from "@/components/layout/page-shell";
import { RowMark } from "@/components/layout/row-mark";
import { PluginLogo } from "@/components/plugins/plugin-logo";
@@ -145,7 +145,10 @@ export function ReconnectList({
description={DESCRIPTION}
title={TITLE}
>
-
+
{moved.apps.map((app, index) => (
diff --git a/app/src/routes/_authed/settings/notifications.tsx b/app/src/routes/_authed/settings/notifications.tsx
index 4b98984598..3368c4f6fa 100644
--- a/app/src/routes/_authed/settings/notifications.tsx
+++ b/app/src/routes/_authed/settings/notifications.tsx
@@ -21,7 +21,8 @@ export const Route = createFileRoute("/_authed/settings/notifications")({
function NotificationsPage() {
return (
diff --git a/app/tests/ui-card.test.tsx b/app/tests/ui-card.test.tsx
index e2f271751d..22b1c71533 100644
--- a/app/tests/ui-card.test.tsx
+++ b/app/tests/ui-card.test.tsx
@@ -8,7 +8,8 @@ import { settleReactWork } from "./settle-react-work";
/*
* Cards and rows in the web app's look (docs/app-guidelines.md, "The look"): a card is flat with a
- * hairline border in both themes, and a row's icon sits on a small tile.
+ * hairline border in both themes, a list of rows has no card at all, and a row's icon sits on a small
+ * tile where the list asks for one.
*/
beforeAll(() => GlobalRegistrator.register());
@@ -60,19 +61,38 @@ test("a row's icon sits on a tile", () => {
);
});
-test("rows and cards keep their border in dark", () => {
+test("a form's card keeps its border in dark", () => {
+ const view = render(A form);
+ const classes = classesOf(view.container.firstElementChild);
+ expect(classes).toContain("border-border");
+ expect(classes.filter((name) => name.startsWith("dark:"))).toEqual([]);
+});
+
+test("a list of rows is flat: no border, no fill and no corners of its own", () => {
const view = render(
- <>
-
-
A row
-
- A form
- >,
+
+
A row
+ ,
+ );
+ const classes = classesOf(view.container.firstElementChild);
+ for (const card of ["border", "border-border", "bg-card", "rounded-lg"])
+ expect(classes).not.toContain(card);
+ expect(classes.filter((name) => name.startsWith("dark:"))).toEqual([]);
+});
+
+test("a list draws its rows' icon tiles only when it asks for them", () => {
+ const HIDES = "[&_[data-slot=item-media][data-variant=icon]]:hidden";
+ const plain = render(
+
+
+ ,
);
- const [rows, card] = [...view.container.children];
- for (const element of [rows, card]) {
- const classes = classesOf(element);
- expect(classes).toContain("border-border");
- expect(classes.filter((name) => name.startsWith("dark:"))).toEqual([]);
- }
+ expect(classesOf(marked.container.firstElementChild)).not.toContain(HIDES);
});
diff --git a/app/tests/ui-look-guard.allowlist.json b/app/tests/ui-look-guard.allowlist.json
index 6c1a98f711..eaa9cc74bf 100644
--- a/app/tests/ui-look-guard.allowlist.json
+++ b/app/tests/ui-look-guard.allowlist.json
@@ -137,7 +137,7 @@
"text": 1
},
"components/layout/page-parts.tsx": {
- "card": 2
+ "card": 1
},
"components/manage/plugin-page.tsx": {
"cornerStep": 1
diff --git a/app/tests/update-routing-settings.test.tsx b/app/tests/update-routing-settings.test.tsx
index f51634c61c..786fa4fb5f 100644
--- a/app/tests/update-routing-settings.test.tsx
+++ b/app/tests/update-routing-settings.test.tsx
@@ -166,7 +166,7 @@ test("with no channel set up, it says updates stay in OpenBot, and whoever can s
});
test("the section asks where updates go only above switches to choose with", async () => {
- const ASK = /Choose where to receive each type of update/;
+ const ASK = /Every update also stays in OpenBot/;
available = { slack: false, teams: false, sms: false, push: false };
serving();
const empty = draw(ADMIN);
diff --git a/app/tests/vault.test.tsx b/app/tests/vault.test.tsx
index 63aa4e0012..0a968958b8 100644
--- a/app/tests/vault.test.tsx
+++ b/app/tests/vault.test.tsx
@@ -107,7 +107,7 @@ describe("the Vault", () => {
await view.findByText("https://example.com");
expect(
view.getByText(
- "Your saved website logins are kept here. Bots never see them, and you approve each use.",
+ "Bots never see your saved website logins, and you approve each use.",
),
).toBeTruthy();
expect(view.queryByText(/logins and keys/)).toBeNull();
@@ -121,9 +121,7 @@ describe("the Vault", () => {
test("in the personal edition says it keeps logins and keys", async () => {
const view = draw("personal");
expect(
- await view.findByText(
- "Your saved logins and keys are kept here. Bots never see them.",
- ),
+ await view.findByText("Bots never see your saved logins and keys."),
).toBeTruthy();
});
diff --git a/docs/app-guidelines.md b/docs/app-guidelines.md
index 038e7e9e7a..18899c57b9 100644
--- a/docs/app-guidelines.md
+++ b/docs/app-guidelines.md
@@ -239,16 +239,22 @@ things are drawn, not how big they are.
Nothing else has a shadow, and none is written by hand.
6. **Sizes.** Heights, padding and spacing come from the primitives and `PageShell`. A screen
writes no size by hand (`h-[43px]`); it uses the nearest Tailwind step, never a smaller one.
-7. **Rows.** One card of rows with hairline dividers (`PageRows`). The leading icon is a 16px
- glyph in `muted-foreground` on a 32px tile with a hairline ring.
+7. **Rows and sections.** A list is flat rows split by hairline dividers (`PageRows`), with no
+ card around it. A row is as tall as its content: about 53px with a description, never under
+ 48px. A row has no leading icon, unless the icon tells the rows apart: an app's mark, a file's
+ kind, an avatar. Such a list sets `icons`, and the icon is a 16px glyph in `muted-foreground` on
+ a 32px tile with a hairline ring. A section's title is a small grey label above its rows
+ (`PageSection`: `text-sm`, `font-medium`, `muted-foreground`). A page or a section says what it
+ is for in one short sentence. A longer explanation goes behind "Learn more" (`learnMore`).
8. **The message box** is a flat card at rest. While someone types in it, it glows in `ring`. It
is the only control that glows.
9. **Icons.** Hugeicons' free set, at their usual sizes, imported from `components/icons` and never
from the set itself. The line is the set's own 1.5, which every glyph carries. An icon that
needs another line says why in a comment.
10. **Widths** come from `PageShell`. A screen sets no `max-w-*` of its own without a comment.
-11. **Cards.** A card is `PageRows`, `PageCard` or `Card` (`components/ui/card.tsx`). No screen
- draws a bordered `bg-card` box by hand.
+11. **Cards.** A card is `PageCard`, for a form, or `Card` (`components/ui/card.tsx`), for one
+ thing such as a Bot's tile. A list of rows is not a card: it is `PageRows`. No screen draws a
+ bordered `bg-card` box by hand.
12. **One class, both themes.** No `dark:` override of a color: the token carries both values.
13. **Home's orb.** Behind Home's message box, OpenBot's orb is spread out as a pale field with
rings of dots (`components/home/home-field.tsx`), and typing lights it. It is the app's one
diff --git a/docs/design-system.md b/docs/design-system.md
index af7416f38c..ad7ec927f1 100644
--- a/docs/design-system.md
+++ b/docs/design-system.md
@@ -47,7 +47,7 @@ A screen is a few surfaces, one on another. Each level has its token, and the to
| --- | --- | --- | --- |
| Frame | `sidebar` | The sidebar and the window's edge. The darkest. | None |
| Panel | `background` | What the page sits in. | None |
-| Card | `card` | A group on the panel: rows, a form, a table. The lightest. | A hairline border, no shadow |
+| Card | `card` | A group on the panel: a form, a table, one thing such as a Bot's tile. The lightest. | A hairline border, no shadow |
| Beside | `popover` | What opens beside what opened it: menus, selects, popovers. | A border and `shadow-lg` |
| Over | `popover` | What sits over the app: dialogs, sheets, the command menu. | A border and `shadow-2xl` |
@@ -55,8 +55,9 @@ On a surface, a fill marks a part of it: `secondary` and `muted` for a button, a
`accent` for the highlighted row of a menu. Each surface and fill has a `-foreground` for the text
on it. Every line is `border`, the text color at one strength, so no line is fainter than another.
-- **Choose the level by what the thing is,** never by the shade you want. A group of rows is a
- card. If a card looks wrong where you put it, the layout is wrong, not the token.
+- **Choose the level by what the thing is,** never by the shade you want. A form is a card. A
+ list of rows sits on the panel, split by lines, with no card. If a card looks wrong where you
+ put it, the layout is wrong, not the token.
- **In the page, the level is the color. Above it, the level is the shadow.** Nothing in the page
has a shadow, and a shadow never decorates: it says how far something floats.
- **Neighbors never match.** The frame is darker than the panel and the panel darker than a card,
From 79f5948d581757efc9b97cf96fc018cbb791509a Mon Sep 17 00:00:00 2001
From: Sam Julien
Date: Tue, 1 Dec 2026 16:20:44 -0800
Subject: [PATCH 2/7] Keep a row's words at least 128px, so narrow rows wrap
their actions
Admin > People at 390px: without the tile and the card's padding, the
Admin switch and Remove fit beside a long name and left it under 120px.
With a floor on the words the actions wrap onto their own line.
---
app/src/components/layout/page-parts.tsx | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/app/src/components/layout/page-parts.tsx b/app/src/components/layout/page-parts.tsx
index 87b69a8baa..61836be729 100644
--- a/app/src/components/layout/page-parts.tsx
+++ b/app/src/components/layout/page-parts.tsx
@@ -244,6 +244,12 @@ export function PageRows({
*/
"-mx-2 mt-2",
"[&_[data-slot=item]]:rounded-md [&_[data-slot=item]]:px-2 [&_[data-slot=item]]:min-h-12",
+ /*
+ * A row's words keep at least 128px. Without a tile and a card's padding a row has more room,
+ * so on a phone its actions could just fit beside a long name and leave it a sliver: with a
+ * floor on the words, the actions wrap onto a line of their own instead.
+ */
+ "[&_[data-slot=item-content]]:min-w-32",
"[&_[data-slot=separator][data-orientation=horizontal]]:mx-2 [&_[data-slot=separator][data-orientation=horizontal]]:w-auto",
// A list right under another reads as one, with a divider where the two meet.
"[[data-slot=page-rows]+&]:mt-0 [[data-slot=page-rows]+&]:before:mx-2 [[data-slot=page-rows]+&]:before:block [[data-slot=page-rows]+&]:before:h-px [[data-slot=page-rows]+&]:before:bg-border",
From 124cf4b9bfddbaea4c1f0aae34533f845e450001 Mon Sep 17 00:00:00 2001
From: Sam Julien
Date: Tue, 1 Dec 2026 16:57:34 -0800
Subject: [PATCH 3/7] Narrow to shorter page intros; keep the row look as it is
Rows, icon tiles, Item sizes and section headings go back to what main
has. What stays: PageShell and PageSection take `learnMore`, and a new
PageIntro draws the one-sentence description with "Learn more" after it.
Closed, the longer text is hidden until found, so find-in-page still
reaches it. The Skills intro now leads with what to do.
---
.claude/skills/openbot-screen-layout/SKILL.md | 55 +++++-----
CHANGELOG.md | 11 +-
app/src/components/approvals/waiting.tsx | 17 ++-
.../components/artifacts/artifacts-page.tsx | 5 +-
app/src/components/bot-profile/access.tsx | 16 +--
app/src/components/layout/loading-rows.tsx | 11 +-
app/src/components/layout/page-parts.tsx | 102 ++++++------------
app/src/components/layout/row-mark.tsx | 2 -
.../components/manage/plugins-list-page.tsx | 16 +--
.../components/settings/delete-account.tsx | 4 +-
.../skills/skills-settings-page.tsx | 4 +-
app/src/components/ui/item.tsx | 13 +--
app/src/routes/_authed/_app/reconnect.tsx | 7 +-
app/tests/page-intro.test.tsx | 35 ++++++
app/tests/ui-card.test.tsx | 48 +++------
app/tests/ui-look-guard.allowlist.json | 2 +-
docs/app-guidelines.md | 14 +--
docs/design-system.md | 7 +-
18 files changed, 152 insertions(+), 217 deletions(-)
create mode 100644 app/tests/page-intro.test.tsx
diff --git a/.claude/skills/openbot-screen-layout/SKILL.md b/.claude/skills/openbot-screen-layout/SKILL.md
index bb9c0fef80..408f94189d 100644
--- a/.claude/skills/openbot-screen-layout/SKILL.md
+++ b/.claude/skills/openbot-screen-layout/SKILL.md
@@ -44,9 +44,9 @@ deviation worth stating out loud and worth a comment saying why.
Four components make the frame. They compose in this order and nest no other way.
```
-PageShell the page: header (title, one-sentence description, action, backButton) then children
- PageSection a group of unrelated decisions under a small grey label, a large gap above it
- PageRows the list: flat rows, no card, split by hairline dividers
+PageShell the page: header (title, description, action, backButton) then children
+ PageSection a titled group of unrelated decisions, with a deliberately large gap above it
+ PageRows the grouped card: rounded-lg border bg-card
Item one row, size="sm", divided from its neighbours by
PageEmpty what a section says when it has nothing to list
```
@@ -66,22 +66,21 @@ components above; a screen that sets its own is drifting.
|---------|-----|----------------|
| Page edge (top / sides / bottom) | 48 / 16 / 64px | `PageShell` column (`pt-12` or `pt-8` under the bar, `px-4`, `pb-16`) |
| Title → description | 8px | `PageShell` header |
-| Section label → description | 0px | `PageSection` |
| Title block → first content | 32px | `PageShell`: `[&>header+*]:mt-8` |
| Title → tabs, tabs → content | 24px, then 32px | `PageShell`: `[&>header+nav]`, `[&>header+nav+*]` |
| Section → section | 48px | `PageSection` (`mt-12`) |
-| Label block → section content | 8px | `PageRows` / `PageEmpty` (`mt-2`) |
+| Section heading → description | 4px | `PageSection` |
+| Heading block → section content | 16px | `PageRows` / `PageEmpty` (`mt-4`) |
| Controls stacked inside a section | 12px | the screen, with `gap-3` |
-| A row in `PageRows` | about 53px with a description, never under 48px | `Item size="sm"` (`py-2 gap-3`), `PageRows` (`min-h-12`) |
-| Row text → column edge | 0px: the text lines up with the label above | `PageRows` (`-mx-2`, rows `px-2`) |
-| Divider between rows | lined up with the rows' text | `PageRows`, on every horizontal `Separator` inside it |
+| A row in `PageRows` | 65px with a description, never under 56px | `Item` (`px-4 py-3.5 gap-3`), `PageRows` (`min-h-14`) |
+| Divider between rows | inset 16px from both edges | `PageRows`, on every horizontal `Separator` inside it |
The 32px under the title is deliberately tighter than the 48px between sections: the title belongs
to the page it introduces. Those `PageShell` selectors outrank the first child's own `mt-*`, so a
section or notice keeps its usual margin everywhere else and loses it only at the top.
-A page with one section gives that section no `title`: the page title already names it, and a label
-32px below it says the same thing twice. Put the description on `PageShell` instead
+A page with one section gives that section no `title`: the page title already names it, and a second
+heading 32px below the first says the same thing twice. Put the description on `PageShell` instead
(`connections.index.tsx`). A count or filter that belongs to a search sits on the search's row, not
on a line of its own.
@@ -94,13 +93,10 @@ the action is right there. A search with no results uses `IconSearch` and "No ma
## Words Under A Title
A page's `description` and a section's `description` are each **one short sentence**: what the page
-or the group is for. A longer explanation (how rules combine, what happens in each case, an
-exception) goes in `learnMore`, on `PageShell` or `PageSection`. It opens under the sentence when the
-person presses "Learn more", and stays in the page while closed, so find-in-page reaches it. A
-section whose title and rows already say it needs no description.
-
-The section title is a label, not a heading to read: 13px, medium weight, `muted-foreground`. The
-rows under it are what a person reads.
+or the group is for, or what to do on it. A longer explanation (how rules combine, what happens in
+each case, an exception) goes in `learnMore`, on `PageShell` or `PageSection`. It opens under the
+sentence when the person presses "Learn more". While closed it is hidden until found, so
+find-in-page still reaches it. A section whose title and rows already say it needs no description.
## Screens, Not Dialogs
@@ -126,21 +122,19 @@ button.
page's one primary verb, on the title's baseline.
3. Group the page's decisions into `PageSection`s, each with a `title` and, where the grouping is not
self-evident, a one-sentence `description`.
-4. Give each section one `PageRows`. Rows go inside it as `Item size="sm"`, with ``
- between them and none after the last. `PageRows` is a flat list with dividers, not a card and not
- a stack of cards: gaps between rows are the wrong shape.
+4. Give each section one `PageRows` card. Rows go inside it as `Item size="sm"`, with ``
+ between them and none after the last. `PageRows` is a card with dividers, not a stack of cards —
+ gaps between rows are the wrong shape.
5. Read `admin/plugins/index.tsx` for the whole pattern end to end, and
`admin/plugins/$key.tsx` or `admin/components/$name.tsx` for a screen with several sections and
mixed row kinds.
### Procedure 2: Compose a row
-1. A row has no leading icon by default: a glyph beside every row repeats what its title says.
- Give the rows icons only where the icon tells them apart: an app's mark, a file's kind. Then
- each row's `ItemMedia variant="icon"` holds the icon from `@/components/icons` (a 16px glyph on a
- 32px tile), and the list is ``. Without `icons`, `PageRows` does not draw the
- tile. Plain `ItemMedia` is for something that is its own picture, such as a Bot's avatar or an
- app's logo, and is always drawn.
+1. `ItemMedia variant="icon"` holds a leading icon from `@/components/icons`, drawn as a 16px glyph on
+ a 32px muted tile. It is what makes a card of rows scannable; a row without one reads as a
+ paragraph. Pass the bare icon — the variant sizes and colours it — and use plain `ItemMedia` only
+ for something that is its own picture, such as a Bot's avatar.
2. `ItemContent` holds `ItemTitle` and, where the row needs a second line, `ItemDescription`.
3. `ItemActions` holds the control, or the value when the row is read-only.
4. `ItemHeader` and `ItemFooter` are `basis-full`, so they wrap onto a line of their own inside the
@@ -178,7 +172,7 @@ itself when the screen behind it changes something.
### Procedure 4: Sizes and variants
-1. `Item size="sm"` for rows inside a list. `default` only for a row standing on its own.
+1. `Item size="sm"` for rows inside a card. `default` only for a row standing on its own.
2. `Button size="sm"` for a control inside a row or a dialog footer; `lg` for a page's own actions;
`icon-sm` for a control floating over artwork.
3. `Item variant` — pick **one for the whole screen**. `muted` is a fill with no border; `outline` is
@@ -252,10 +246,8 @@ is actually on screen. The root was once 15px, and every constant taken from the
| Signal | What it means | Do instead |
|--------|---------------|------------|
-| A hand-written `rounded-lg border border-border bg-card` div wrapping rows | A card around a list, which `PageRows` no longer draws | Use `PageRows` |
-| Rows separated by `gap-*` instead of `` | A stack of cards rather than one list of rows | `` between rows, none after the last |
-| `` on a list whose icons are one per kind of setting | A tile that repeats the title, the look this layout dropped | Leave `icons` off; keep it for app marks and file kinds |
-| A page or section description of two or more sentences | A paragraph between the title and the rows | One sentence; the rest in `learnMore` |
+| A hand-written `rounded-lg border border-border bg-card` div wrapping rows | `PageRows` re-implemented, and it will drift from the other seven screens | Use `PageRows` |
+| Rows separated by `gap-*` instead of `` | A stack of cards rather than one card of rows | `` between rows, none after the last |
| `width="wide"` on anything that is not a table | Prose width is the default for a reason; wide was for the audit log | Leave `width` alone |
| A `max-w-*`, `p-*` or text size invented for one screen | A fifth container width, which is what this layout exists to stop | Reach for the existing component |
| Children on an element passed to `Item`'s `render` | They replace the row's own children; the row draws empty | Pass a childless element |
@@ -263,6 +255,7 @@ is actually on screen. The root was once 15px, and every constant taken from the
| `Item variant="outline"` and `variant="muted"` on one screen | Reads as two kinds of list and invites a distinction that is not there | One variant per screen |
| A pixel constant matching a Tailwind rem token (672, 768, 1024) | Breaks the day a width or the root changes | Measure the element |
| An `mt-*` on a screen's first block, or a gap between blocks not in the Rhythm table | A second spacing scale, which is what made every screen feel slightly off | Let `PageShell` and `PageSection` space it |
+| A page or section description of two or more sentences | A paragraph between the title and the rows | One sentence; the rest in `learnMore` |
| A one-section page whose section has a `title` | The heading repeats the page title | Drop the section title; description on `PageShell` |
| A `Switch` on a row that needs two or more values | Half the change happens in place and half somewhere else | A summary, a chevron, and a screen |
| A new `Dialog` nobody asked for | Something with no address, no Back, and no room to grow | A route of its own with `backButton` |
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 13308f200c..d4cb0ebf77 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -49,13 +49,12 @@ Newest first. `Unreleased` is what is on `main` and not yet tagged.
long list never meets a proxy's limit on an address. The web app uses the new operations, and
falls back to the old ones on a server from before them.
-**Lighter lists.**
+**Shorter page intros.**
-- **Settings and list pages read as lists, not admin forms.** Rows sit flat, split by thin lines,
- with no box around each list and no icon beside every row. Icons stay where they tell rows apart,
- such as app marks and file kinds. Section titles are small grey labels, and each page and section
- opens with one short sentence. A longer explanation, such as the full approval rules, is behind
- "Learn more".
+- **Each settings page and section opens with one short sentence.** A longer explanation, such as
+ the full approval rules or how Memory shares facts between Bots, is behind "Learn more", and
+ find-in-page still reaches it. Approvals, Memory, Notifications, Skills, Vault, a skill's page
+ and New routine are shorter to read.
## 1.2.7
diff --git a/app/src/components/approvals/waiting.tsx b/app/src/components/approvals/waiting.tsx
index c72c6a0c4b..5865b54be2 100644
--- a/app/src/components/approvals/waiting.tsx
+++ b/app/src/components/approvals/waiting.tsx
@@ -4,17 +4,17 @@ import {
approvalPhrase,
approvalWords,
} from "@openbot/shared/tool-name";
-import { useMutation, useQuery } from "@tanstack/react-query";
-import { useNavigate } from "@tanstack/react-router";
-import { Fragment, type ReactNode, useState } from "react";
-import { BotOrb } from "@/components/agents/bot-orb";
-import { ShareDetails, shareOf } from "@/components/approvals/share-details";
import {
IconDots,
IconHandStop,
IconMessageQuestion,
IconX,
} from "@/components/icons";
+import { useMutation, useQuery } from "@tanstack/react-query";
+import { useNavigate } from "@tanstack/react-router";
+import { Fragment, type ReactNode, useState } from "react";
+import { BotOrb } from "@/components/agents/bot-orb";
+import { ShareDetails, shareOf } from "@/components/approvals/share-details";
import { PageRows } from "@/components/layout/page-shell";
import {
BoardRow,
@@ -63,12 +63,12 @@ import {
decideApprovalMutationOptions,
dismissPersonQuestionMutationOptions,
} from "@/lib/approvals";
-import { failureSaid } from "@/lib/load-failure";
import { readFailure } from "@/lib/read-failure";
import { relativeTime } from "@/lib/relative-time";
import type { WaitingWhere } from "@/lib/tasks/groups";
import { cn } from "@/lib/utils";
import { queryClient } from "@/query-client";
+import { failureSaid } from "@/lib/load-failure";
type WaitingQuestion = ApprovalInboxData["questions"][number];
type WaitingRequest = ApprovalInboxData["requests"][number];
@@ -823,10 +823,7 @@ export function WaitingForYou({
) : null}
{rows.length > 0 ? (
-
+
{rows.map((row, index) => (
{index > 0 ? : null}
diff --git a/app/src/components/artifacts/artifacts-page.tsx b/app/src/components/artifacts/artifacts-page.tsx
index cfeb838bba..6561acac4c 100644
--- a/app/src/components/artifacts/artifacts-page.tsx
+++ b/app/src/components/artifacts/artifacts-page.tsx
@@ -247,10 +247,7 @@ export function ArtifactsPage({
))}
) : (
-
+
{artifacts.map((artifact, index) => (
{index > 0 ? : null}
diff --git a/app/src/components/bot-profile/access.tsx b/app/src/components/bot-profile/access.tsx
index 99c5aaf69a..1387389935 100644
--- a/app/src/components/bot-profile/access.tsx
+++ b/app/src/components/bot-profile/access.tsx
@@ -1,6 +1,3 @@
-import { useMutation, useQuery } from "@tanstack/react-query";
-import { Link } from "@tanstack/react-router";
-import { Fragment } from "react";
import {
IconApps,
IconBox,
@@ -8,6 +5,9 @@ import {
IconPlug,
IconPlus,
} from "@/components/icons";
+import { useMutation, useQuery } from "@tanstack/react-query";
+import { Link } from "@tanstack/react-router";
+import { Fragment } from "react";
import {
PageEmpty,
PageRows,
@@ -219,10 +219,7 @@ function YourApps({ agent }: { agent: AgentProfile }) {
Connect an app to let your Bots use it.
) : (
-
+
{rows.map((app, index) => {
const granted = app.access?.granted ?? false;
const locked = granted && !app.access?.givenByOwner;
@@ -537,10 +534,7 @@ function Granted({
)}
) : (
-
+
{shownStates.map((app, index) => {
const labels = tools.get(app.key) ?? [];
return (
diff --git a/app/src/components/layout/loading-rows.tsx b/app/src/components/layout/loading-rows.tsx
index 1ac9a0ae96..49a2faf834 100644
--- a/app/src/components/layout/loading-rows.tsx
+++ b/app/src/components/layout/loading-rows.tsx
@@ -7,8 +7,8 @@ import { cn } from "@/lib/utils";
const WIDTHS = ["w-40", "w-32", "w-48", "w-36", "w-44"] as const;
/**
- * The shape of a list that hasn't loaded yet: the same `Item` rows it will be, with bars where the
- * title and description go.
+ * The shape of a list that hasn't loaded yet: the same card of `Item` rows it will be, with bars
+ * where the title and description go.
*
* Built from the real `PageRows` and `Item`, so each placeholder row is as tall as a loaded one and
* nothing jumps when the rows arrive. Shown only for a first load: a list that has data keeps it
@@ -20,16 +20,13 @@ const WIDTHS = ["w-40", "w-32", "w-48", "w-36", "w-44"] as const;
export function LoadingRows({
label,
rows = 3,
- media = "none",
+ media = "icon",
className,
}: {
/** What is loading, read once: "Loading your Bots". */
label: string;
rows?: number;
- /**
- * The leading mark the loaded rows have: a 32px icon tile (only on a list that draws its tiles,
- * `PageRows icons`), a round avatar, or none, as most lists have.
- */
+ /** The leading mark the loaded rows have: a 32px icon tile, or a round avatar. */
media?: "icon" | "avatar" | "none";
className?: string;
}) {
diff --git a/app/src/components/layout/page-parts.tsx b/app/src/components/layout/page-parts.tsx
index 61836be729..3ab16720b1 100644
--- a/app/src/components/layout/page-parts.tsx
+++ b/app/src/components/layout/page-parts.tsx
@@ -88,7 +88,8 @@ export function PageColumn({
*
* A page or a section says what it is for in one sentence. Anything longer (how the rules combine,
* what happens in each case) is there for the person who asks for it, so it opens below the sentence
- * on demand rather than standing between the title and the rows every time.
+ * on demand instead of standing between the title and the rows every time. While closed it is
+ * hidden until found: find-in-page still reaches it and opens it.
*/
export function PageIntro({
children,
@@ -106,12 +107,11 @@ export function PageIntro({
{children}{" "}
-
+
Learn more
- {/* Kept in the page while closed, so find-in-page and a test reading the text still reach it. */}
-
+
{learnMore}
@@ -154,10 +154,6 @@ export function PageHeader({
* The gap above a section is deliberately large. These pages are lists of unrelated decisions, and
* the space is what stops the eye running two of them together — it is doing the work a divider
* would otherwise do, without drawing a line.
- *
- * The title is a label above the group, small and grey, as Claude and Grok draw theirs: the rows are
- * what a person reads, and a bold heading over every group made each page a stack of titles. The
- * description is one sentence. A longer explanation goes in `learnMore`.
*/
export function PageSection({
action,
@@ -182,24 +178,19 @@ export function PageSection({
return (
{title ? (
-
-
- {title}
-
+
+ {/*
+ * Close to body size and lighter than the page title, so the sections read as parts of
+ * the page rather than as a second row of titles competing with it.
+ */}
+
{title}
{action}
) : null}
{description ? (
- {description}
+
+ {description}
+
) : null}
{children}
@@ -207,63 +198,38 @@ export function PageSection({
}
/**
- * The rows of a list: flat, one under another, split by hairline dividers.
- *
- * Rows are `` with a `` between them. There is no card around them, as
- * in ChatGPT's and Claude's settings: a bordered box around every list made each page read as an
- * admin tool. The rows' text lines up with the section's label above it, and a row that is a link
- * shows its hover as a rounded fill a little wider than the text. Rendering nothing when there is
- * nothing is deliberate — an empty list reads as nothing to see yet.
+ * The card that rows live in.
*
- * A row's icon tile (`ItemMedia variant="icon"`) is not drawn here unless `icons` is set. A glyph
- * beside every row repeats what the title says. Set `icons` only where the icon tells rows apart:
- * app marks, file types. A picture of its own (an avatar, a vendor's logo in plain `ItemMedia`) is
- * always drawn.
+ * Rows are `` with a `` between them; this is only the border around
+ * them. Rendering nothing when there is nothing is deliberate — an empty bordered box reads as a
+ * thing that failed to load, where absence reads as nothing to see yet.
*/
export function PageRows({
children,
className,
- icons = false,
}: {
children: React.ReactNode;
className?: string;
- /** Draw each row's icon tile. Only where the icon tells the rows apart. */
- icons?: boolean;
}) {
return (
+ /*
+ * The rows are squared off and the card clips them. `Item` carries `rounded-lg` of its own, which
+ * inside a card of divided rows painted a hover as a floating pill: a middle row has no corners,
+ * and the first and last cannot be concentric with the card while sitting a border inside it.
+ *
+ * Every row is at least 56px, whatever it holds. A title over a description is 65px; a lone
+ * line would be 48px and look stunted beside it, so it is held up to the floor. A description
+ * that wraps to a second line still grows the row rather than being clipped.
+ */
{children}
@@ -274,8 +240,8 @@ export function PageRows({
* The card a page-sized form sits in: the fields, then its buttons on the right.
*
* For a screen that exists to fill something in, reached from a list by its Add button, with
- * `PageShell`'s back button returning to it. A form keeps its card: its fields need an edge to sit
- * in, where a list of rows reads as a list without one.
+ * `PageShell`'s back button returning to it. The same border and fill as `PageRows`, so a form and
+ * a list read as the same kind of surface, padded rather than divided because it holds fields.
*/
export function PageCard({
children,
@@ -322,7 +288,7 @@ export function PageEmpty({
}) {
return (
// `isolate` gives the pattern its own stacking context, so it sits behind the text, not on it.
-
+
{/* The pattern is decoration: see `.empty-pattern` in styles.css and its tokens in theme.css. */}
diff --git a/app/src/components/layout/row-mark.tsx b/app/src/components/layout/row-mark.tsx
index 54a0aad7b3..b7fdbbabab 100644
--- a/app/src/components/layout/row-mark.tsx
+++ b/app/src/components/layout/row-mark.tsx
@@ -20,8 +20,6 @@ import { cn } from "@/lib/utils";
* One component rather than a class literal at every call site, because the whole value is that the
* tiles are identical: copies of `size-9 rounded-lg bg-muted/60` are chances for one of them to
* drift, and a list with one tile a pixel out looks broken rather than varied.
- *
- * Inside `PageRows` it is drawn only where the list sets `icons`, as every icon tile is.
*/
export function RowMark({
className,
diff --git a/app/src/components/manage/plugins-list-page.tsx b/app/src/components/manage/plugins-list-page.tsx
index eeb34654b0..5cb2b85cb4 100644
--- a/app/src/components/manage/plugins-list-page.tsx
+++ b/app/src/components/manage/plugins-list-page.tsx
@@ -1,6 +1,3 @@
-import { useQuery } from "@tanstack/react-query";
-import { Link } from "@tanstack/react-router";
-import * as React from "react";
import {
IconApps,
IconBrandGoogleDrive,
@@ -10,6 +7,9 @@ import {
IconPlug,
IconPlus,
} from "@/components/icons";
+import { useQuery } from "@tanstack/react-query";
+import { Link } from "@tanstack/react-router";
+import * as React from "react";
import {
PageEmpty,
PageRows,
@@ -227,10 +227,7 @@ export function PluginsListPage({
Pick one from the list below.
) : (
-
+
{plugins.data?.map((server, index) => {
const note = toolsListError(server.lastError, {
title: server.title,
@@ -304,10 +301,7 @@ export function PluginsListPage({
Every app in the catalogue is connected.
) : (
-
+
{explore.map((entry: CatalogueItem, index) => {
return (
diff --git a/app/src/components/settings/delete-account.tsx b/app/src/components/settings/delete-account.tsx
index 89fe87e7d5..2d4e278c7a 100644
--- a/app/src/components/settings/delete-account.tsx
+++ b/app/src/components/settings/delete-account.tsx
@@ -1,3 +1,4 @@
+import { IconArchive, IconBuilding, IconTrash } from "@/components/icons";
import { useMutation, useQuery } from "@tanstack/react-query";
import { useNavigate, useRouter } from "@tanstack/react-router";
import {
@@ -9,7 +10,6 @@ import {
useState,
} from "react";
import { useSignOut } from "@/components/app-sidebar/use-sign-out";
-import { IconArchive, IconBuilding, IconTrash } from "@/components/icons";
import { PageRows, PageSection } from "@/components/layout/page-shell";
import { LeaveOrganizationDialog } from "@/components/organizations/organization-settings-page";
import { Button } from "@/components/ui/button";
@@ -183,7 +183,7 @@ function BlockerRow({ blocker }: { blocker: AccountDeletionBlocker }) {
{/* Under the words on a phone, as on Organization's members: a button beside them squeezes them. */}
-
+
{settledInItsSettings(blocker) ? (
) : (
diff --git a/app/src/components/skills/skills-settings-page.tsx b/app/src/components/skills/skills-settings-page.tsx
index 183495e765..afd48ca4bc 100644
--- a/app/src/components/skills/skills-settings-page.tsx
+++ b/app/src/components/skills/skills-settings-page.tsx
@@ -224,8 +224,8 @@ export function SkillsSettingsPage({
>
{error ? (
diff --git a/app/src/components/ui/item.tsx b/app/src/components/ui/item.tsx
index 137a584477..80f4649266 100644
--- a/app/src/components/ui/item.tsx
+++ b/app/src/components/ui/item.tsx
@@ -43,14 +43,12 @@ const itemVariants = cva(
muted: "border-transparent bg-muted/50",
},
/*
- * 16px in from the sides and 12px between media, text and actions. `default` is a row standing
- * on its own: a title over a one-line description comes to 65px. `sm` is a row in a list
- * (`PageRows`), 8px above and below, as ChatGPT's and Claude's settings rows: the same two lines
- * come to about 53px, and the list's dividers do the separating the padding did.
+ * Linear's settings row: 16px in from every edge and 12px between media, text and actions.
+ * A title over a one-line description comes to 65px, a single line to 48px.
*/
size: {
default: "gap-3 px-4 py-3.5",
- sm: "gap-3 px-4 py-2",
+ sm: "gap-3 px-4 py-3.5",
xs: "gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0",
},
},
@@ -91,10 +89,7 @@ const itemMediaVariants = cva(
variants: {
variant: {
default: "bg-transparent",
- /*
- * A 32px tile behind a 16px glyph. Inside `PageRows` it is drawn only where the list asks for
- * it (`icons`), because the icon tells the rows apart: app marks, file types.
- */
+ // A 32px tile behind a 16px glyph, so a column of rows reads as a column of marks.
icon: "size-8 rounded-md bg-background text-muted-foreground ring-1 ring-border group-data-[size=xs]/item:size-6 [&_svg:not([class*='size-'])]:size-4",
image:
"size-10 overflow-hidden rounded-md group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover",
diff --git a/app/src/routes/_authed/_app/reconnect.tsx b/app/src/routes/_authed/_app/reconnect.tsx
index dd150f64a8..cea8ceb1a4 100644
--- a/app/src/routes/_authed/_app/reconnect.tsx
+++ b/app/src/routes/_authed/_app/reconnect.tsx
@@ -1,7 +1,7 @@
+import { IconCheck, IconX } from "@/components/icons";
import { useQuery } from "@tanstack/react-query";
import { createFileRoute, Link, useNavigate } from "@tanstack/react-router";
import * as React from "react";
-import { IconCheck, IconX } from "@/components/icons";
import { PageRows, PageShell } from "@/components/layout/page-shell";
import { RowMark } from "@/components/layout/row-mark";
import { PluginLogo } from "@/components/plugins/plugin-logo";
@@ -145,10 +145,7 @@ export function ReconnectList({
description={DESCRIPTION}
title={TITLE}
>
-
+
{moved.apps.map((app, index) => (
GlobalRegistrator.register());
+afterEach(cleanup);
+afterAll(async () => {
+ await settleReactWork();
+ GlobalRegistrator.unregister();
+});
+
+test("an intro with nothing more is the sentence alone", () => {
+ const view = render(Choose when every Bot asks.);
+ expect(view.container.textContent).toBe("Choose when every Bot asks.");
+ expect(view.queryByRole("button", { name: "Learn more" })).toBeNull();
+});
+
+test("the longer explanation is behind Learn more, and hidden until found", () => {
+ const view = render(
+
+ Rules for one Bot are on that Bot's page.
+ ,
+ );
+ expect(view.getByRole("button", { name: "Learn more" })).toBeTruthy();
+ const more = view.getByText("The strictest matching rule wins.");
+ expect(more.getAttribute("hidden")).toBe("until-found");
+});
diff --git a/app/tests/ui-card.test.tsx b/app/tests/ui-card.test.tsx
index 22b1c71533..e2f271751d 100644
--- a/app/tests/ui-card.test.tsx
+++ b/app/tests/ui-card.test.tsx
@@ -8,8 +8,7 @@ import { settleReactWork } from "./settle-react-work";
/*
* Cards and rows in the web app's look (docs/app-guidelines.md, "The look"): a card is flat with a
- * hairline border in both themes, a list of rows has no card at all, and a row's icon sits on a small
- * tile where the list asks for one.
+ * hairline border in both themes, and a row's icon sits on a small tile.
*/
beforeAll(() => GlobalRegistrator.register());
@@ -61,38 +60,19 @@ test("a row's icon sits on a tile", () => {
);
});
-test("a form's card keeps its border in dark", () => {
- const view = render(A form);
- const classes = classesOf(view.container.firstElementChild);
- expect(classes).toContain("border-border");
- expect(classes.filter((name) => name.startsWith("dark:"))).toEqual([]);
-});
-
-test("a list of rows is flat: no border, no fill and no corners of its own", () => {
+test("rows and cards keep their border in dark", () => {
const view = render(
-
-
A row
- ,
- );
- const classes = classesOf(view.container.firstElementChild);
- for (const card of ["border", "border-border", "bg-card", "rounded-lg"])
- expect(classes).not.toContain(card);
- expect(classes.filter((name) => name.startsWith("dark:"))).toEqual([]);
-});
-
-test("a list draws its rows' icon tiles only when it asks for them", () => {
- const HIDES = "[&_[data-slot=item-media][data-variant=icon]]:hidden";
- const plain = render(
-
-
+
+ A form
+ >,
);
- expect(classesOf(marked.container.firstElementChild)).not.toContain(HIDES);
+ const [rows, card] = [...view.container.children];
+ for (const element of [rows, card]) {
+ const classes = classesOf(element);
+ expect(classes).toContain("border-border");
+ expect(classes.filter((name) => name.startsWith("dark:"))).toEqual([]);
+ }
});
diff --git a/app/tests/ui-look-guard.allowlist.json b/app/tests/ui-look-guard.allowlist.json
index eaa9cc74bf..6c1a98f711 100644
--- a/app/tests/ui-look-guard.allowlist.json
+++ b/app/tests/ui-look-guard.allowlist.json
@@ -137,7 +137,7 @@
"text": 1
},
"components/layout/page-parts.tsx": {
- "card": 1
+ "card": 2
},
"components/manage/plugin-page.tsx": {
"cornerStep": 1
diff --git a/docs/app-guidelines.md b/docs/app-guidelines.md
index 18899c57b9..038e7e9e7a 100644
--- a/docs/app-guidelines.md
+++ b/docs/app-guidelines.md
@@ -239,22 +239,16 @@ things are drawn, not how big they are.
Nothing else has a shadow, and none is written by hand.
6. **Sizes.** Heights, padding and spacing come from the primitives and `PageShell`. A screen
writes no size by hand (`h-[43px]`); it uses the nearest Tailwind step, never a smaller one.
-7. **Rows and sections.** A list is flat rows split by hairline dividers (`PageRows`), with no
- card around it. A row is as tall as its content: about 53px with a description, never under
- 48px. A row has no leading icon, unless the icon tells the rows apart: an app's mark, a file's
- kind, an avatar. Such a list sets `icons`, and the icon is a 16px glyph in `muted-foreground` on
- a 32px tile with a hairline ring. A section's title is a small grey label above its rows
- (`PageSection`: `text-sm`, `font-medium`, `muted-foreground`). A page or a section says what it
- is for in one short sentence. A longer explanation goes behind "Learn more" (`learnMore`).
+7. **Rows.** One card of rows with hairline dividers (`PageRows`). The leading icon is a 16px
+ glyph in `muted-foreground` on a 32px tile with a hairline ring.
8. **The message box** is a flat card at rest. While someone types in it, it glows in `ring`. It
is the only control that glows.
9. **Icons.** Hugeicons' free set, at their usual sizes, imported from `components/icons` and never
from the set itself. The line is the set's own 1.5, which every glyph carries. An icon that
needs another line says why in a comment.
10. **Widths** come from `PageShell`. A screen sets no `max-w-*` of its own without a comment.
-11. **Cards.** A card is `PageCard`, for a form, or `Card` (`components/ui/card.tsx`), for one
- thing such as a Bot's tile. A list of rows is not a card: it is `PageRows`. No screen draws a
- bordered `bg-card` box by hand.
+11. **Cards.** A card is `PageRows`, `PageCard` or `Card` (`components/ui/card.tsx`). No screen
+ draws a bordered `bg-card` box by hand.
12. **One class, both themes.** No `dark:` override of a color: the token carries both values.
13. **Home's orb.** Behind Home's message box, OpenBot's orb is spread out as a pale field with
rings of dots (`components/home/home-field.tsx`), and typing lights it. It is the app's one
diff --git a/docs/design-system.md b/docs/design-system.md
index ad7ec927f1..af7416f38c 100644
--- a/docs/design-system.md
+++ b/docs/design-system.md
@@ -47,7 +47,7 @@ A screen is a few surfaces, one on another. Each level has its token, and the to
| --- | --- | --- | --- |
| Frame | `sidebar` | The sidebar and the window's edge. The darkest. | None |
| Panel | `background` | What the page sits in. | None |
-| Card | `card` | A group on the panel: a form, a table, one thing such as a Bot's tile. The lightest. | A hairline border, no shadow |
+| Card | `card` | A group on the panel: rows, a form, a table. The lightest. | A hairline border, no shadow |
| Beside | `popover` | What opens beside what opened it: menus, selects, popovers. | A border and `shadow-lg` |
| Over | `popover` | What sits over the app: dialogs, sheets, the command menu. | A border and `shadow-2xl` |
@@ -55,9 +55,8 @@ On a surface, a fill marks a part of it: `secondary` and `muted` for a button, a
`accent` for the highlighted row of a menu. Each surface and fill has a `-foreground` for the text
on it. Every line is `border`, the text color at one strength, so no line is fainter than another.
-- **Choose the level by what the thing is,** never by the shade you want. A form is a card. A
- list of rows sits on the panel, split by lines, with no card. If a card looks wrong where you
- put it, the layout is wrong, not the token.
+- **Choose the level by what the thing is,** never by the shade you want. A group of rows is a
+ card. If a card looks wrong where you put it, the layout is wrong, not the token.
- **In the page, the level is the color. Above it, the level is the shadow.** Nothing in the page
has a shadow, and a shadow never decorates: it says how far something floats.
- **Neighbors never match.** The frame is darker than the panel and the panel darker than a card,
From e78485c366995f3e5138408ccfd3b68b7473fc00 Mon Sep 17 00:00:00 2001
From: Sam Julien
Date: Tue, 1 Dec 2026 16:59:52 -0800
Subject: [PATCH 4/7] Revert "Narrow to shorter page intros; keep the row look
as it is"
This reverts commit 124cf4b9bfddbaea4c1f0aae34533f845e450001.
---
.claude/skills/openbot-screen-layout/SKILL.md | 55 +++++-----
CHANGELOG.md | 11 +-
app/src/components/approvals/waiting.tsx | 17 +--
.../components/artifacts/artifacts-page.tsx | 5 +-
app/src/components/bot-profile/access.tsx | 16 ++-
app/src/components/layout/loading-rows.tsx | 11 +-
app/src/components/layout/page-parts.tsx | 102 ++++++++++++------
app/src/components/layout/row-mark.tsx | 2 +
.../components/manage/plugins-list-page.tsx | 16 ++-
.../components/settings/delete-account.tsx | 4 +-
.../skills/skills-settings-page.tsx | 4 +-
app/src/components/ui/item.tsx | 13 ++-
app/src/routes/_authed/_app/reconnect.tsx | 7 +-
app/tests/page-intro.test.tsx | 35 ------
app/tests/ui-card.test.tsx | 48 ++++++---
app/tests/ui-look-guard.allowlist.json | 2 +-
docs/app-guidelines.md | 14 ++-
docs/design-system.md | 7 +-
18 files changed, 217 insertions(+), 152 deletions(-)
delete mode 100644 app/tests/page-intro.test.tsx
diff --git a/.claude/skills/openbot-screen-layout/SKILL.md b/.claude/skills/openbot-screen-layout/SKILL.md
index 408f94189d..bb9c0fef80 100644
--- a/.claude/skills/openbot-screen-layout/SKILL.md
+++ b/.claude/skills/openbot-screen-layout/SKILL.md
@@ -44,9 +44,9 @@ deviation worth stating out loud and worth a comment saying why.
Four components make the frame. They compose in this order and nest no other way.
```
-PageShell the page: header (title, description, action, backButton) then children
- PageSection a titled group of unrelated decisions, with a deliberately large gap above it
- PageRows the grouped card: rounded-lg border bg-card
+PageShell the page: header (title, one-sentence description, action, backButton) then children
+ PageSection a group of unrelated decisions under a small grey label, a large gap above it
+ PageRows the list: flat rows, no card, split by hairline dividers
Item one row, size="sm", divided from its neighbours by
PageEmpty what a section says when it has nothing to list
```
@@ -66,21 +66,22 @@ components above; a screen that sets its own is drifting.
|---------|-----|----------------|
| Page edge (top / sides / bottom) | 48 / 16 / 64px | `PageShell` column (`pt-12` or `pt-8` under the bar, `px-4`, `pb-16`) |
| Title → description | 8px | `PageShell` header |
+| Section label → description | 0px | `PageSection` |
| Title block → first content | 32px | `PageShell`: `[&>header+*]:mt-8` |
| Title → tabs, tabs → content | 24px, then 32px | `PageShell`: `[&>header+nav]`, `[&>header+nav+*]` |
| Section → section | 48px | `PageSection` (`mt-12`) |
-| Section heading → description | 4px | `PageSection` |
-| Heading block → section content | 16px | `PageRows` / `PageEmpty` (`mt-4`) |
+| Label block → section content | 8px | `PageRows` / `PageEmpty` (`mt-2`) |
| Controls stacked inside a section | 12px | the screen, with `gap-3` |
-| A row in `PageRows` | 65px with a description, never under 56px | `Item` (`px-4 py-3.5 gap-3`), `PageRows` (`min-h-14`) |
-| Divider between rows | inset 16px from both edges | `PageRows`, on every horizontal `Separator` inside it |
+| A row in `PageRows` | about 53px with a description, never under 48px | `Item size="sm"` (`py-2 gap-3`), `PageRows` (`min-h-12`) |
+| Row text → column edge | 0px: the text lines up with the label above | `PageRows` (`-mx-2`, rows `px-2`) |
+| Divider between rows | lined up with the rows' text | `PageRows`, on every horizontal `Separator` inside it |
The 32px under the title is deliberately tighter than the 48px between sections: the title belongs
to the page it introduces. Those `PageShell` selectors outrank the first child's own `mt-*`, so a
section or notice keeps its usual margin everywhere else and loses it only at the top.
-A page with one section gives that section no `title`: the page title already names it, and a second
-heading 32px below the first says the same thing twice. Put the description on `PageShell` instead
+A page with one section gives that section no `title`: the page title already names it, and a label
+32px below it says the same thing twice. Put the description on `PageShell` instead
(`connections.index.tsx`). A count or filter that belongs to a search sits on the search's row, not
on a line of its own.
@@ -93,10 +94,13 @@ the action is right there. A search with no results uses `IconSearch` and "No ma
## Words Under A Title
A page's `description` and a section's `description` are each **one short sentence**: what the page
-or the group is for, or what to do on it. A longer explanation (how rules combine, what happens in
-each case, an exception) goes in `learnMore`, on `PageShell` or `PageSection`. It opens under the
-sentence when the person presses "Learn more". While closed it is hidden until found, so
-find-in-page still reaches it. A section whose title and rows already say it needs no description.
+or the group is for. A longer explanation (how rules combine, what happens in each case, an
+exception) goes in `learnMore`, on `PageShell` or `PageSection`. It opens under the sentence when the
+person presses "Learn more", and stays in the page while closed, so find-in-page reaches it. A
+section whose title and rows already say it needs no description.
+
+The section title is a label, not a heading to read: 13px, medium weight, `muted-foreground`. The
+rows under it are what a person reads.
## Screens, Not Dialogs
@@ -122,19 +126,21 @@ button.
page's one primary verb, on the title's baseline.
3. Group the page's decisions into `PageSection`s, each with a `title` and, where the grouping is not
self-evident, a one-sentence `description`.
-4. Give each section one `PageRows` card. Rows go inside it as `Item size="sm"`, with ``
- between them and none after the last. `PageRows` is a card with dividers, not a stack of cards —
- gaps between rows are the wrong shape.
+4. Give each section one `PageRows`. Rows go inside it as `Item size="sm"`, with ``
+ between them and none after the last. `PageRows` is a flat list with dividers, not a card and not
+ a stack of cards: gaps between rows are the wrong shape.
5. Read `admin/plugins/index.tsx` for the whole pattern end to end, and
`admin/plugins/$key.tsx` or `admin/components/$name.tsx` for a screen with several sections and
mixed row kinds.
### Procedure 2: Compose a row
-1. `ItemMedia variant="icon"` holds a leading icon from `@/components/icons`, drawn as a 16px glyph on
- a 32px muted tile. It is what makes a card of rows scannable; a row without one reads as a
- paragraph. Pass the bare icon — the variant sizes and colours it — and use plain `ItemMedia` only
- for something that is its own picture, such as a Bot's avatar.
+1. A row has no leading icon by default: a glyph beside every row repeats what its title says.
+ Give the rows icons only where the icon tells them apart: an app's mark, a file's kind. Then
+ each row's `ItemMedia variant="icon"` holds the icon from `@/components/icons` (a 16px glyph on a
+ 32px tile), and the list is ``. Without `icons`, `PageRows` does not draw the
+ tile. Plain `ItemMedia` is for something that is its own picture, such as a Bot's avatar or an
+ app's logo, and is always drawn.
2. `ItemContent` holds `ItemTitle` and, where the row needs a second line, `ItemDescription`.
3. `ItemActions` holds the control, or the value when the row is read-only.
4. `ItemHeader` and `ItemFooter` are `basis-full`, so they wrap onto a line of their own inside the
@@ -172,7 +178,7 @@ itself when the screen behind it changes something.
### Procedure 4: Sizes and variants
-1. `Item size="sm"` for rows inside a card. `default` only for a row standing on its own.
+1. `Item size="sm"` for rows inside a list. `default` only for a row standing on its own.
2. `Button size="sm"` for a control inside a row or a dialog footer; `lg` for a page's own actions;
`icon-sm` for a control floating over artwork.
3. `Item variant` — pick **one for the whole screen**. `muted` is a fill with no border; `outline` is
@@ -246,8 +252,10 @@ is actually on screen. The root was once 15px, and every constant taken from the
| Signal | What it means | Do instead |
|--------|---------------|------------|
-| A hand-written `rounded-lg border border-border bg-card` div wrapping rows | `PageRows` re-implemented, and it will drift from the other seven screens | Use `PageRows` |
-| Rows separated by `gap-*` instead of `` | A stack of cards rather than one card of rows | `` between rows, none after the last |
+| A hand-written `rounded-lg border border-border bg-card` div wrapping rows | A card around a list, which `PageRows` no longer draws | Use `PageRows` |
+| Rows separated by `gap-*` instead of `` | A stack of cards rather than one list of rows | `` between rows, none after the last |
+| `` on a list whose icons are one per kind of setting | A tile that repeats the title, the look this layout dropped | Leave `icons` off; keep it for app marks and file kinds |
+| A page or section description of two or more sentences | A paragraph between the title and the rows | One sentence; the rest in `learnMore` |
| `width="wide"` on anything that is not a table | Prose width is the default for a reason; wide was for the audit log | Leave `width` alone |
| A `max-w-*`, `p-*` or text size invented for one screen | A fifth container width, which is what this layout exists to stop | Reach for the existing component |
| Children on an element passed to `Item`'s `render` | They replace the row's own children; the row draws empty | Pass a childless element |
@@ -255,7 +263,6 @@ is actually on screen. The root was once 15px, and every constant taken from the
| `Item variant="outline"` and `variant="muted"` on one screen | Reads as two kinds of list and invites a distinction that is not there | One variant per screen |
| A pixel constant matching a Tailwind rem token (672, 768, 1024) | Breaks the day a width or the root changes | Measure the element |
| An `mt-*` on a screen's first block, or a gap between blocks not in the Rhythm table | A second spacing scale, which is what made every screen feel slightly off | Let `PageShell` and `PageSection` space it |
-| A page or section description of two or more sentences | A paragraph between the title and the rows | One sentence; the rest in `learnMore` |
| A one-section page whose section has a `title` | The heading repeats the page title | Drop the section title; description on `PageShell` |
| A `Switch` on a row that needs two or more values | Half the change happens in place and half somewhere else | A summary, a chevron, and a screen |
| A new `Dialog` nobody asked for | Something with no address, no Back, and no room to grow | A route of its own with `backButton` |
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d4cb0ebf77..13308f200c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -49,12 +49,13 @@ Newest first. `Unreleased` is what is on `main` and not yet tagged.
long list never meets a proxy's limit on an address. The web app uses the new operations, and
falls back to the old ones on a server from before them.
-**Shorter page intros.**
+**Lighter lists.**
-- **Each settings page and section opens with one short sentence.** A longer explanation, such as
- the full approval rules or how Memory shares facts between Bots, is behind "Learn more", and
- find-in-page still reaches it. Approvals, Memory, Notifications, Skills, Vault, a skill's page
- and New routine are shorter to read.
+- **Settings and list pages read as lists, not admin forms.** Rows sit flat, split by thin lines,
+ with no box around each list and no icon beside every row. Icons stay where they tell rows apart,
+ such as app marks and file kinds. Section titles are small grey labels, and each page and section
+ opens with one short sentence. A longer explanation, such as the full approval rules, is behind
+ "Learn more".
## 1.2.7
diff --git a/app/src/components/approvals/waiting.tsx b/app/src/components/approvals/waiting.tsx
index 5865b54be2..c72c6a0c4b 100644
--- a/app/src/components/approvals/waiting.tsx
+++ b/app/src/components/approvals/waiting.tsx
@@ -4,17 +4,17 @@ import {
approvalPhrase,
approvalWords,
} from "@openbot/shared/tool-name";
+import { useMutation, useQuery } from "@tanstack/react-query";
+import { useNavigate } from "@tanstack/react-router";
+import { Fragment, type ReactNode, useState } from "react";
+import { BotOrb } from "@/components/agents/bot-orb";
+import { ShareDetails, shareOf } from "@/components/approvals/share-details";
import {
IconDots,
IconHandStop,
IconMessageQuestion,
IconX,
} from "@/components/icons";
-import { useMutation, useQuery } from "@tanstack/react-query";
-import { useNavigate } from "@tanstack/react-router";
-import { Fragment, type ReactNode, useState } from "react";
-import { BotOrb } from "@/components/agents/bot-orb";
-import { ShareDetails, shareOf } from "@/components/approvals/share-details";
import { PageRows } from "@/components/layout/page-shell";
import {
BoardRow,
@@ -63,12 +63,12 @@ import {
decideApprovalMutationOptions,
dismissPersonQuestionMutationOptions,
} from "@/lib/approvals";
+import { failureSaid } from "@/lib/load-failure";
import { readFailure } from "@/lib/read-failure";
import { relativeTime } from "@/lib/relative-time";
import type { WaitingWhere } from "@/lib/tasks/groups";
import { cn } from "@/lib/utils";
import { queryClient } from "@/query-client";
-import { failureSaid } from "@/lib/load-failure";
type WaitingQuestion = ApprovalInboxData["questions"][number];
type WaitingRequest = ApprovalInboxData["requests"][number];
@@ -823,7 +823,10 @@ export function WaitingForYou({
) : null}
{rows.length > 0 ? (
-
+
{rows.map((row, index) => (
{index > 0 ? : null}
diff --git a/app/src/components/artifacts/artifacts-page.tsx b/app/src/components/artifacts/artifacts-page.tsx
index 6561acac4c..cfeb838bba 100644
--- a/app/src/components/artifacts/artifacts-page.tsx
+++ b/app/src/components/artifacts/artifacts-page.tsx
@@ -247,7 +247,10 @@ export function ArtifactsPage({
))}
) : (
-
+
{artifacts.map((artifact, index) => (
{index > 0 ? : null}
diff --git a/app/src/components/bot-profile/access.tsx b/app/src/components/bot-profile/access.tsx
index 1387389935..99c5aaf69a 100644
--- a/app/src/components/bot-profile/access.tsx
+++ b/app/src/components/bot-profile/access.tsx
@@ -1,3 +1,6 @@
+import { useMutation, useQuery } from "@tanstack/react-query";
+import { Link } from "@tanstack/react-router";
+import { Fragment } from "react";
import {
IconApps,
IconBox,
@@ -5,9 +8,6 @@ import {
IconPlug,
IconPlus,
} from "@/components/icons";
-import { useMutation, useQuery } from "@tanstack/react-query";
-import { Link } from "@tanstack/react-router";
-import { Fragment } from "react";
import {
PageEmpty,
PageRows,
@@ -219,7 +219,10 @@ function YourApps({ agent }: { agent: AgentProfile }) {
Connect an app to let your Bots use it.
) : (
-
+
{rows.map((app, index) => {
const granted = app.access?.granted ?? false;
const locked = granted && !app.access?.givenByOwner;
@@ -534,7 +537,10 @@ function Granted({
)}
) : (
-
+
{shownStates.map((app, index) => {
const labels = tools.get(app.key) ?? [];
return (
diff --git a/app/src/components/layout/loading-rows.tsx b/app/src/components/layout/loading-rows.tsx
index 49a2faf834..1ac9a0ae96 100644
--- a/app/src/components/layout/loading-rows.tsx
+++ b/app/src/components/layout/loading-rows.tsx
@@ -7,8 +7,8 @@ import { cn } from "@/lib/utils";
const WIDTHS = ["w-40", "w-32", "w-48", "w-36", "w-44"] as const;
/**
- * The shape of a list that hasn't loaded yet: the same card of `Item` rows it will be, with bars
- * where the title and description go.
+ * The shape of a list that hasn't loaded yet: the same `Item` rows it will be, with bars where the
+ * title and description go.
*
* Built from the real `PageRows` and `Item`, so each placeholder row is as tall as a loaded one and
* nothing jumps when the rows arrive. Shown only for a first load: a list that has data keeps it
@@ -20,13 +20,16 @@ const WIDTHS = ["w-40", "w-32", "w-48", "w-36", "w-44"] as const;
export function LoadingRows({
label,
rows = 3,
- media = "icon",
+ media = "none",
className,
}: {
/** What is loading, read once: "Loading your Bots". */
label: string;
rows?: number;
- /** The leading mark the loaded rows have: a 32px icon tile, or a round avatar. */
+ /**
+ * The leading mark the loaded rows have: a 32px icon tile (only on a list that draws its tiles,
+ * `PageRows icons`), a round avatar, or none, as most lists have.
+ */
media?: "icon" | "avatar" | "none";
className?: string;
}) {
diff --git a/app/src/components/layout/page-parts.tsx b/app/src/components/layout/page-parts.tsx
index 3ab16720b1..61836be729 100644
--- a/app/src/components/layout/page-parts.tsx
+++ b/app/src/components/layout/page-parts.tsx
@@ -88,8 +88,7 @@ export function PageColumn({
*
* A page or a section says what it is for in one sentence. Anything longer (how the rules combine,
* what happens in each case) is there for the person who asks for it, so it opens below the sentence
- * on demand instead of standing between the title and the rows every time. While closed it is
- * hidden until found: find-in-page still reaches it and opens it.
+ * on demand rather than standing between the title and the rows every time.
*/
export function PageIntro({
children,
@@ -107,11 +106,12 @@ export function PageIntro({
{children}{" "}
-
+
Learn more
-
+ {/* Kept in the page while closed, so find-in-page and a test reading the text still reach it. */}
+
{learnMore}
@@ -154,6 +154,10 @@ export function PageHeader({
* The gap above a section is deliberately large. These pages are lists of unrelated decisions, and
* the space is what stops the eye running two of them together — it is doing the work a divider
* would otherwise do, without drawing a line.
+ *
+ * The title is a label above the group, small and grey, as Claude and Grok draw theirs: the rows are
+ * what a person reads, and a bold heading over every group made each page a stack of titles. The
+ * description is one sentence. A longer explanation goes in `learnMore`.
*/
export function PageSection({
action,
@@ -178,19 +182,24 @@ export function PageSection({
return (
{title ? (
-
- {/*
- * Close to body size and lighter than the page title, so the sections read as parts of
- * the page rather than as a second row of titles competing with it.
- */}
-
{title}
+
+
+ {title}
+
{action}
) : null}
{description ? (
-
- {description}
-
+ {description}
) : null}
{children}
@@ -198,38 +207,63 @@ export function PageSection({
}
/**
- * The card that rows live in.
+ * The rows of a list: flat, one under another, split by hairline dividers.
+ *
+ * Rows are `` with a `` between them. There is no card around them, as
+ * in ChatGPT's and Claude's settings: a bordered box around every list made each page read as an
+ * admin tool. The rows' text lines up with the section's label above it, and a row that is a link
+ * shows its hover as a rounded fill a little wider than the text. Rendering nothing when there is
+ * nothing is deliberate — an empty list reads as nothing to see yet.
*
- * Rows are `` with a `` between them; this is only the border around
- * them. Rendering nothing when there is nothing is deliberate — an empty bordered box reads as a
- * thing that failed to load, where absence reads as nothing to see yet.
+ * A row's icon tile (`ItemMedia variant="icon"`) is not drawn here unless `icons` is set. A glyph
+ * beside every row repeats what the title says. Set `icons` only where the icon tells rows apart:
+ * app marks, file types. A picture of its own (an avatar, a vendor's logo in plain `ItemMedia`) is
+ * always drawn.
*/
export function PageRows({
children,
className,
+ icons = false,
}: {
children: React.ReactNode;
className?: string;
+ /** Draw each row's icon tile. Only where the icon tells the rows apart. */
+ icons?: boolean;
}) {
return (
- /*
- * The rows are squared off and the card clips them. `Item` carries `rounded-lg` of its own, which
- * inside a card of divided rows painted a hover as a floating pill: a middle row has no corners,
- * and the first and last cannot be concentric with the card while sitting a border inside it.
- *
- * Every row is at least 56px, whatever it holds. A title over a description is 65px; a lone
- * line would be 48px and look stunted beside it, so it is held up to the floor. A description
- * that wraps to a second line still grows the row rather than being clipped.
- */
{children}
@@ -240,8 +274,8 @@ export function PageRows({
* The card a page-sized form sits in: the fields, then its buttons on the right.
*
* For a screen that exists to fill something in, reached from a list by its Add button, with
- * `PageShell`'s back button returning to it. The same border and fill as `PageRows`, so a form and
- * a list read as the same kind of surface, padded rather than divided because it holds fields.
+ * `PageShell`'s back button returning to it. A form keeps its card: its fields need an edge to sit
+ * in, where a list of rows reads as a list without one.
*/
export function PageCard({
children,
@@ -288,7 +322,7 @@ export function PageEmpty({
}) {
return (
// `isolate` gives the pattern its own stacking context, so it sits behind the text, not on it.
-
+
{/* The pattern is decoration: see `.empty-pattern` in styles.css and its tokens in theme.css. */}
diff --git a/app/src/components/layout/row-mark.tsx b/app/src/components/layout/row-mark.tsx
index b7fdbbabab..54a0aad7b3 100644
--- a/app/src/components/layout/row-mark.tsx
+++ b/app/src/components/layout/row-mark.tsx
@@ -20,6 +20,8 @@ import { cn } from "@/lib/utils";
* One component rather than a class literal at every call site, because the whole value is that the
* tiles are identical: copies of `size-9 rounded-lg bg-muted/60` are chances for one of them to
* drift, and a list with one tile a pixel out looks broken rather than varied.
+ *
+ * Inside `PageRows` it is drawn only where the list sets `icons`, as every icon tile is.
*/
export function RowMark({
className,
diff --git a/app/src/components/manage/plugins-list-page.tsx b/app/src/components/manage/plugins-list-page.tsx
index 5cb2b85cb4..eeb34654b0 100644
--- a/app/src/components/manage/plugins-list-page.tsx
+++ b/app/src/components/manage/plugins-list-page.tsx
@@ -1,3 +1,6 @@
+import { useQuery } from "@tanstack/react-query";
+import { Link } from "@tanstack/react-router";
+import * as React from "react";
import {
IconApps,
IconBrandGoogleDrive,
@@ -7,9 +10,6 @@ import {
IconPlug,
IconPlus,
} from "@/components/icons";
-import { useQuery } from "@tanstack/react-query";
-import { Link } from "@tanstack/react-router";
-import * as React from "react";
import {
PageEmpty,
PageRows,
@@ -227,7 +227,10 @@ export function PluginsListPage({
Pick one from the list below.
) : (
-
+
{plugins.data?.map((server, index) => {
const note = toolsListError(server.lastError, {
title: server.title,
@@ -301,7 +304,10 @@ export function PluginsListPage({
Every app in the catalogue is connected.
) : (
-
+
{explore.map((entry: CatalogueItem, index) => {
return (
diff --git a/app/src/components/settings/delete-account.tsx b/app/src/components/settings/delete-account.tsx
index 2d4e278c7a..89fe87e7d5 100644
--- a/app/src/components/settings/delete-account.tsx
+++ b/app/src/components/settings/delete-account.tsx
@@ -1,4 +1,3 @@
-import { IconArchive, IconBuilding, IconTrash } from "@/components/icons";
import { useMutation, useQuery } from "@tanstack/react-query";
import { useNavigate, useRouter } from "@tanstack/react-router";
import {
@@ -10,6 +9,7 @@ import {
useState,
} from "react";
import { useSignOut } from "@/components/app-sidebar/use-sign-out";
+import { IconArchive, IconBuilding, IconTrash } from "@/components/icons";
import { PageRows, PageSection } from "@/components/layout/page-shell";
import { LeaveOrganizationDialog } from "@/components/organizations/organization-settings-page";
import { Button } from "@/components/ui/button";
@@ -183,7 +183,7 @@ function BlockerRow({ blocker }: { blocker: AccountDeletionBlocker }) {
{/* Under the words on a phone, as on Organization's members: a button beside them squeezes them. */}
-
+
{settledInItsSettings(blocker) ? (
) : (
diff --git a/app/src/components/skills/skills-settings-page.tsx b/app/src/components/skills/skills-settings-page.tsx
index afd48ca4bc..183495e765 100644
--- a/app/src/components/skills/skills-settings-page.tsx
+++ b/app/src/components/skills/skills-settings-page.tsx
@@ -224,8 +224,8 @@ export function SkillsSettingsPage({
>
{error ? (
diff --git a/app/src/components/ui/item.tsx b/app/src/components/ui/item.tsx
index 80f4649266..137a584477 100644
--- a/app/src/components/ui/item.tsx
+++ b/app/src/components/ui/item.tsx
@@ -43,12 +43,14 @@ const itemVariants = cva(
muted: "border-transparent bg-muted/50",
},
/*
- * Linear's settings row: 16px in from every edge and 12px between media, text and actions.
- * A title over a one-line description comes to 65px, a single line to 48px.
+ * 16px in from the sides and 12px between media, text and actions. `default` is a row standing
+ * on its own: a title over a one-line description comes to 65px. `sm` is a row in a list
+ * (`PageRows`), 8px above and below, as ChatGPT's and Claude's settings rows: the same two lines
+ * come to about 53px, and the list's dividers do the separating the padding did.
*/
size: {
default: "gap-3 px-4 py-3.5",
- sm: "gap-3 px-4 py-3.5",
+ sm: "gap-3 px-4 py-2",
xs: "gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0",
},
},
@@ -89,7 +91,10 @@ const itemMediaVariants = cva(
variants: {
variant: {
default: "bg-transparent",
- // A 32px tile behind a 16px glyph, so a column of rows reads as a column of marks.
+ /*
+ * A 32px tile behind a 16px glyph. Inside `PageRows` it is drawn only where the list asks for
+ * it (`icons`), because the icon tells the rows apart: app marks, file types.
+ */
icon: "size-8 rounded-md bg-background text-muted-foreground ring-1 ring-border group-data-[size=xs]/item:size-6 [&_svg:not([class*='size-'])]:size-4",
image:
"size-10 overflow-hidden rounded-md group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover",
diff --git a/app/src/routes/_authed/_app/reconnect.tsx b/app/src/routes/_authed/_app/reconnect.tsx
index cea8ceb1a4..dd150f64a8 100644
--- a/app/src/routes/_authed/_app/reconnect.tsx
+++ b/app/src/routes/_authed/_app/reconnect.tsx
@@ -1,7 +1,7 @@
-import { IconCheck, IconX } from "@/components/icons";
import { useQuery } from "@tanstack/react-query";
import { createFileRoute, Link, useNavigate } from "@tanstack/react-router";
import * as React from "react";
+import { IconCheck, IconX } from "@/components/icons";
import { PageRows, PageShell } from "@/components/layout/page-shell";
import { RowMark } from "@/components/layout/row-mark";
import { PluginLogo } from "@/components/plugins/plugin-logo";
@@ -145,7 +145,10 @@ export function ReconnectList({
description={DESCRIPTION}
title={TITLE}
>
-
+
{moved.apps.map((app, index) => (
GlobalRegistrator.register());
-afterEach(cleanup);
-afterAll(async () => {
- await settleReactWork();
- GlobalRegistrator.unregister();
-});
-
-test("an intro with nothing more is the sentence alone", () => {
- const view = render(Choose when every Bot asks.);
- expect(view.container.textContent).toBe("Choose when every Bot asks.");
- expect(view.queryByRole("button", { name: "Learn more" })).toBeNull();
-});
-
-test("the longer explanation is behind Learn more, and hidden until found", () => {
- const view = render(
-
- Rules for one Bot are on that Bot's page.
- ,
- );
- expect(view.getByRole("button", { name: "Learn more" })).toBeTruthy();
- const more = view.getByText("The strictest matching rule wins.");
- expect(more.getAttribute("hidden")).toBe("until-found");
-});
diff --git a/app/tests/ui-card.test.tsx b/app/tests/ui-card.test.tsx
index e2f271751d..22b1c71533 100644
--- a/app/tests/ui-card.test.tsx
+++ b/app/tests/ui-card.test.tsx
@@ -8,7 +8,8 @@ import { settleReactWork } from "./settle-react-work";
/*
* Cards and rows in the web app's look (docs/app-guidelines.md, "The look"): a card is flat with a
- * hairline border in both themes, and a row's icon sits on a small tile.
+ * hairline border in both themes, a list of rows has no card at all, and a row's icon sits on a small
+ * tile where the list asks for one.
*/
beforeAll(() => GlobalRegistrator.register());
@@ -60,19 +61,38 @@ test("a row's icon sits on a tile", () => {
);
});
-test("rows and cards keep their border in dark", () => {
+test("a form's card keeps its border in dark", () => {
+ const view = render(A form);
+ const classes = classesOf(view.container.firstElementChild);
+ expect(classes).toContain("border-border");
+ expect(classes.filter((name) => name.startsWith("dark:"))).toEqual([]);
+});
+
+test("a list of rows is flat: no border, no fill and no corners of its own", () => {
const view = render(
- <>
-
-
A row
-
- A form
- >,
+
+
A row
+ ,
+ );
+ const classes = classesOf(view.container.firstElementChild);
+ for (const card of ["border", "border-border", "bg-card", "rounded-lg"])
+ expect(classes).not.toContain(card);
+ expect(classes.filter((name) => name.startsWith("dark:"))).toEqual([]);
+});
+
+test("a list draws its rows' icon tiles only when it asks for them", () => {
+ const HIDES = "[&_[data-slot=item-media][data-variant=icon]]:hidden";
+ const plain = render(
+
+
+ ,
);
- const [rows, card] = [...view.container.children];
- for (const element of [rows, card]) {
- const classes = classesOf(element);
- expect(classes).toContain("border-border");
- expect(classes.filter((name) => name.startsWith("dark:"))).toEqual([]);
- }
+ expect(classesOf(marked.container.firstElementChild)).not.toContain(HIDES);
});
diff --git a/app/tests/ui-look-guard.allowlist.json b/app/tests/ui-look-guard.allowlist.json
index 6c1a98f711..eaa9cc74bf 100644
--- a/app/tests/ui-look-guard.allowlist.json
+++ b/app/tests/ui-look-guard.allowlist.json
@@ -137,7 +137,7 @@
"text": 1
},
"components/layout/page-parts.tsx": {
- "card": 2
+ "card": 1
},
"components/manage/plugin-page.tsx": {
"cornerStep": 1
diff --git a/docs/app-guidelines.md b/docs/app-guidelines.md
index 038e7e9e7a..18899c57b9 100644
--- a/docs/app-guidelines.md
+++ b/docs/app-guidelines.md
@@ -239,16 +239,22 @@ things are drawn, not how big they are.
Nothing else has a shadow, and none is written by hand.
6. **Sizes.** Heights, padding and spacing come from the primitives and `PageShell`. A screen
writes no size by hand (`h-[43px]`); it uses the nearest Tailwind step, never a smaller one.
-7. **Rows.** One card of rows with hairline dividers (`PageRows`). The leading icon is a 16px
- glyph in `muted-foreground` on a 32px tile with a hairline ring.
+7. **Rows and sections.** A list is flat rows split by hairline dividers (`PageRows`), with no
+ card around it. A row is as tall as its content: about 53px with a description, never under
+ 48px. A row has no leading icon, unless the icon tells the rows apart: an app's mark, a file's
+ kind, an avatar. Such a list sets `icons`, and the icon is a 16px glyph in `muted-foreground` on
+ a 32px tile with a hairline ring. A section's title is a small grey label above its rows
+ (`PageSection`: `text-sm`, `font-medium`, `muted-foreground`). A page or a section says what it
+ is for in one short sentence. A longer explanation goes behind "Learn more" (`learnMore`).
8. **The message box** is a flat card at rest. While someone types in it, it glows in `ring`. It
is the only control that glows.
9. **Icons.** Hugeicons' free set, at their usual sizes, imported from `components/icons` and never
from the set itself. The line is the set's own 1.5, which every glyph carries. An icon that
needs another line says why in a comment.
10. **Widths** come from `PageShell`. A screen sets no `max-w-*` of its own without a comment.
-11. **Cards.** A card is `PageRows`, `PageCard` or `Card` (`components/ui/card.tsx`). No screen
- draws a bordered `bg-card` box by hand.
+11. **Cards.** A card is `PageCard`, for a form, or `Card` (`components/ui/card.tsx`), for one
+ thing such as a Bot's tile. A list of rows is not a card: it is `PageRows`. No screen draws a
+ bordered `bg-card` box by hand.
12. **One class, both themes.** No `dark:` override of a color: the token carries both values.
13. **Home's orb.** Behind Home's message box, OpenBot's orb is spread out as a pale field with
rings of dots (`components/home/home-field.tsx`), and typing lights it. It is the app's one
diff --git a/docs/design-system.md b/docs/design-system.md
index af7416f38c..ad7ec927f1 100644
--- a/docs/design-system.md
+++ b/docs/design-system.md
@@ -47,7 +47,7 @@ A screen is a few surfaces, one on another. Each level has its token, and the to
| --- | --- | --- | --- |
| Frame | `sidebar` | The sidebar and the window's edge. The darkest. | None |
| Panel | `background` | What the page sits in. | None |
-| Card | `card` | A group on the panel: rows, a form, a table. The lightest. | A hairline border, no shadow |
+| Card | `card` | A group on the panel: a form, a table, one thing such as a Bot's tile. The lightest. | A hairline border, no shadow |
| Beside | `popover` | What opens beside what opened it: menus, selects, popovers. | A border and `shadow-lg` |
| Over | `popover` | What sits over the app: dialogs, sheets, the command menu. | A border and `shadow-2xl` |
@@ -55,8 +55,9 @@ On a surface, a fill marks a part of it: `secondary` and `muted` for a button, a
`accent` for the highlighted row of a menu. Each surface and fill has a `-foreground` for the text
on it. Every line is `border`, the text color at one strength, so no line is fainter than another.
-- **Choose the level by what the thing is,** never by the shade you want. A group of rows is a
- card. If a card looks wrong where you put it, the layout is wrong, not the token.
+- **Choose the level by what the thing is,** never by the shade you want. A form is a card. A
+ list of rows sits on the panel, split by lines, with no card. If a card looks wrong where you
+ put it, the layout is wrong, not the token.
- **In the page, the level is the color. Above it, the level is the shadow.** Nothing in the page
has a shadow, and a shadow never decorates: it says how far something floats.
- **Neighbors never match.** The frame is darker than the panel and the panel darker than a card,
From 865da252b9677636145605b3a6c62d87b2b468b9 Mon Sep 17 00:00:00 2001
From: Sam Julien
Date: Tue, 1 Dec 2026 17:19:24 -0800
Subject: [PATCH 5/7] Design review: drop the icons switch, keep Item sizes,
label titles
PageRows no longer hides icon tiles with CSS. Each list row that drew a
tile only to repeat its title loses it in the screen code, and the icon
props that fed those tiles go with them. Tiles stay where the icon tells
rows apart: app and provider marks, file kinds, a question versus an
approval, an app call versus a computer action, routine triggers, and a
Bot's activity items.
Item size="sm" is back to main; PageRows sets py-2 on its own rows.
Section titles are text-sm medium in the text color, with an optional
count after them. "Learn more" is hidden until found, its focus ring is
ring-3, and PageEmpty is flat. The Skills intro leads with what to do.
Docs and the layout skill give rows as about 60px.
---
.claude/skills/openbot-screen-layout/SKILL.md | 20 ++++---
CHANGELOG.md | 2 +-
.../artifact-collaboration-section.tsx | 5 --
.../admin/controls/capabilities-section.tsx | 19 +-----
.../admin/controls/computer-sections.tsx | 34 +----------
.../admin/controls/describe-capabilities.tsx | 37 +++---------
.../admin/controls/mcp-allowlist-section.tsx | 20 +------
.../admin/controls/model-sections.tsx | 30 ++--------
.../admin/controls/network-describe.tsx | 10 ----
.../admin/controls/open-apps-section.tsx | 5 --
.../admin/controls/people-learning.tsx | 19 ++----
.../admin/controls/purge-saved-logins.tsx | 5 --
.../admin/controls/recording-section.tsx | 9 +--
.../admin/controls/sign-in-section.tsx | 8 ---
.../admin/controls/skill-sharing-section.tsx | 5 --
app/src/components/approvals/rules.tsx | 14 +----
app/src/components/approvals/settings.tsx | 17 +-----
.../approvals/shared-use-requests.tsx | 7 +--
.../components/approvals/team-settings.tsx | 34 ++---------
app/src/components/approvals/waiting.tsx | 5 +-
.../artifacts/admin/artifact-policy-page.tsx | 21 +------
.../components/artifacts/artifacts-page.tsx | 5 +-
.../page-consent/page-permissions.tsx | 5 --
app/src/components/bot-profile/access.tsx | 19 +-----
app/src/components/bot-profile/activity.tsx | 14 +----
.../components/bot-profile/default-model.tsx | 6 +-
app/src/components/bot-profile/key-page.tsx | 5 --
app/src/components/bot-profile/manage.tsx | 27 +--------
app/src/components/bot-profile/profile.tsx | 17 +-----
.../components/bot-profile/settings-rows.tsx | 12 ++--
app/src/components/bot-profile/setup.tsx | 25 +-------
app/src/components/bot-profile/sharing.tsx | 25 +-------
app/src/components/browser/narration.tsx | 17 +-----
app/src/components/browser/recording.tsx | 14 +----
app/src/components/browser/teach-steps.tsx | 7 +--
.../components/browser/your-recordings.tsx | 5 --
app/src/components/computer/bot-browser.tsx | 12 ----
.../connections/identity-connection-page.tsx | 8 +--
app/src/components/delivery/reaching-you.tsx | 17 ++----
app/src/components/layout/loading-rows.tsx | 4 +-
app/src/components/layout/page-parts.tsx | 60 ++++++++++---------
app/src/components/layout/row-mark.tsx | 2 -
.../components/manage/credentials-page.tsx | 6 +-
app/src/components/manage/describe-grants.tsx | 17 +-----
app/src/components/manage/plugin-page.tsx | 19 +++---
.../components/manage/plugins-list-page.tsx | 10 +---
app/src/components/manage/skill-page.tsx | 11 +---
.../manage/workspace-snapshots-section.tsx | 15 +----
app/src/components/memory/memories.tsx | 8 +--
app/src/components/memory/sources.tsx | 6 +-
.../components/moves/moved-apps-notice.tsx | 5 --
.../notifications/notifications-offer-row.tsx | 5 --
.../organizations/invitations-page.tsx | 6 +-
.../organization-settings-page.tsx | 21 +------
.../sent-invitations-section.tsx | 8 +--
app/src/components/passwords/sign-in-form.tsx | 10 +---
.../components/plugins/access-requests.tsx | 5 --
.../components/plugins/broker-directory.tsx | 5 +-
.../plugins/brokered-account-row.tsx | 6 +-
.../plugins/shared-approval-fields.tsx | 11 +---
.../components/recorder/recorder-collects.tsx | 27 +--------
.../components/responsibilities/goal-page.tsx | 34 ++---------
app/src/components/routines/delete-row.tsx | 5 --
.../components/routines/goal-schedules.tsx | 6 +-
app/src/components/routines/routine-page.tsx | 42 ++-----------
.../routines/routines-connection-page.tsx | 6 +-
app/src/components/routines/routines-list.tsx | 15 +----
.../settings/ai-connection-list.tsx | 6 +-
app/src/components/settings/ai-connection.tsx | 8 +--
app/src/components/settings/api-keys.tsx | 8 +--
.../settings/browser-notifications.tsx | 5 --
.../settings/browsers/connected-browsers.tsx | 7 +--
.../settings/browsers/this-browser.tsx | 5 --
app/src/components/settings/check-ins.tsx | 5 --
.../components/settings/company-sign-in.tsx | 7 +--
.../settings/connection-sections.tsx | 30 +---------
.../components/settings/delete-account.tsx | 6 +-
app/src/components/settings/devices.tsx | 9 +--
.../components/settings/github-sources.tsx | 8 +--
.../components/settings/learning-review.tsx | 6 +-
.../components/settings/learning-sharing.tsx | 18 +-----
.../settings/message-list-preference.tsx | 10 +---
app/src/components/settings/profile.tsx | 8 +--
.../components/settings/provider-pages.tsx | 23 ++-----
.../settings/standing-instructions.tsx | 6 +-
app/src/components/settings/theme-row.tsx | 5 --
.../settings/this-computer-sections.tsx | 49 +--------------
.../components/settings/update-routing.tsx | 11 +---
app/src/components/settings/usage-data.tsx | 5 --
app/src/components/setup/setup-checklist.tsx | 23 +------
app/src/components/skills/skill-tools.tsx | 4 +-
.../skills/skills-settings-page.tsx | 25 +-------
.../components/suggestions/check-in-page.tsx | 24 +-------
.../suggestions/proactive-panel.tsx | 12 ++--
.../team-grants/team-grants-row.tsx | 13 +---
app/src/components/teams/team-models.tsx | 10 +---
app/src/components/teams/team-page.tsx | 35 +++--------
app/src/components/teams/teams-page.tsx | 19 ++----
app/src/components/ui/item.tsx | 13 ++--
app/src/components/vault/saved-logins.tsx | 11 +---
app/src/components/what-if/what-if-result.tsx | 38 +-----------
.../windows-computer-choice.tsx | 5 --
.../windows-computer-page.tsx | 16 +----
app/src/routes/_authed/_app/bots.index.tsx | 18 +-----
.../routes/_authed/_app/connections.index.tsx | 23 +++----
app/src/routes/_authed/_app/reconnect.tsx | 5 +-
app/src/routes/_authed/admin/boundaries.tsx | 14 +----
.../routes/_authed/admin/boundaries_.new.tsx | 17 +-----
.../routes/_authed/admin/components/$name.tsx | 44 ++------------
.../_authed/admin/identity-providers.tsx | 9 +--
app/src/routes/_authed/admin/index.tsx | 6 +-
app/src/routes/_authed/admin/learning.tsx | 22 ++-----
app/src/routes/_authed/admin/management.tsx | 12 ++--
app/src/routes/_authed/admin/people.tsx | 18 +-----
app/src/routes/_authed/admin/proactive.tsx | 16 +----
.../settings/components-gallery/$name.tsx | 19 +-----
app/src/skins/skin-picker.tsx | 5 --
app/tests/page-empty.test.tsx | 16 ++---
app/tests/page-intro.test.tsx | 45 ++++++++++++++
app/tests/ui-card.test.tsx | 21 +------
app/tests/vault.test.tsx | 11 ++--
docs/app-guidelines.md | 11 ++--
122 files changed, 315 insertions(+), 1451 deletions(-)
create mode 100644 app/tests/page-intro.test.tsx
diff --git a/.claude/skills/openbot-screen-layout/SKILL.md b/.claude/skills/openbot-screen-layout/SKILL.md
index bb9c0fef80..a45f02b613 100644
--- a/.claude/skills/openbot-screen-layout/SKILL.md
+++ b/.claude/skills/openbot-screen-layout/SKILL.md
@@ -45,7 +45,7 @@ Four components make the frame. They compose in this order and nest no other way
```
PageShell the page: header (title, one-sentence description, action, backButton) then children
- PageSection a group of unrelated decisions under a small grey label, a large gap above it
+ PageSection a group of unrelated decisions under a small label, a large gap above it
PageRows the list: flat rows, no card, split by hairline dividers
Item one row, size="sm", divided from its neighbours by
PageEmpty what a section says when it has nothing to list
@@ -72,7 +72,7 @@ components above; a screen that sets its own is drifting.
| Section → section | 48px | `PageSection` (`mt-12`) |
| Label block → section content | 8px | `PageRows` / `PageEmpty` (`mt-2`) |
| Controls stacked inside a section | 12px | the screen, with `gap-3` |
-| A row in `PageRows` | about 53px with a description, never under 48px | `Item size="sm"` (`py-2 gap-3`), `PageRows` (`min-h-12`) |
+| A row in `PageRows` | about 60px with a description, never under 48px | `PageRows` sets each row's `py-2` and `min-h-12` |
| Row text → column edge | 0px: the text lines up with the label above | `PageRows` (`-mx-2`, rows `px-2`) |
| Divider between rows | lined up with the rows' text | `PageRows`, on every horizontal `Separator` inside it |
@@ -96,11 +96,14 @@ the action is right there. A search with no results uses `IconSearch` and "No ma
A page's `description` and a section's `description` are each **one short sentence**: what the page
or the group is for. A longer explanation (how rules combine, what happens in each case, an
exception) goes in `learnMore`, on `PageShell` or `PageSection`. It opens under the sentence when the
-person presses "Learn more", and stays in the page while closed, so find-in-page reaches it. A
+person presses "Learn more". While closed it is hidden until found, so find-in-page still reaches
+it. A
section whose title and rows already say it needs no description.
-The section title is a label, not a heading to read: 13px, medium weight, `muted-foreground`. The
-rows under it are what a person reads.
+The section title is a small label, not a heading to read: `text-sm`, medium weight, in the text
+color so it reads as a title over the grey description. A count of what the section lists goes in
+`count`, after the title, muted and in tabular figures. That is the one way to show a section's
+count. The rows under it are what a person reads.
## Screens, Not Dialogs
@@ -138,9 +141,8 @@ button.
1. A row has no leading icon by default: a glyph beside every row repeats what its title says.
Give the rows icons only where the icon tells them apart: an app's mark, a file's kind. Then
each row's `ItemMedia variant="icon"` holds the icon from `@/components/icons` (a 16px glyph on a
- 32px tile), and the list is ``. Without `icons`, `PageRows` does not draw the
- tile. Plain `ItemMedia` is for something that is its own picture, such as a Bot's avatar or an
- app's logo, and is always drawn.
+ 32px tile). Plain `ItemMedia` is for something that is its own picture, such as a Bot's avatar
+ or an app's logo.
2. `ItemContent` holds `ItemTitle` and, where the row needs a second line, `ItemDescription`.
3. `ItemActions` holds the control, or the value when the row is read-only.
4. `ItemHeader` and `ItemFooter` are `basis-full`, so they wrap onto a line of their own inside the
@@ -254,7 +256,7 @@ is actually on screen. The root was once 15px, and every constant taken from the
|--------|---------------|------------|
| A hand-written `rounded-lg border border-border bg-card` div wrapping rows | A card around a list, which `PageRows` no longer draws | Use `PageRows` |
| Rows separated by `gap-*` instead of `` | A stack of cards rather than one list of rows | `` between rows, none after the last |
-| `` on a list whose icons are one per kind of setting | A tile that repeats the title, the look this layout dropped | Leave `icons` off; keep it for app marks and file kinds |
+| `ItemMedia variant="icon"` on rows whose icons are one per kind of setting | A tile that repeats the title, the look this layout dropped | No media; keep tiles for app marks and file kinds |
| A page or section description of two or more sentences | A paragraph between the title and the rows | One sentence; the rest in `learnMore` |
| `width="wide"` on anything that is not a table | Prose width is the default for a reason; wide was for the audit log | Leave `width` alone |
| A `max-w-*`, `p-*` or text size invented for one screen | A fifth container width, which is what this layout exists to stop | Reach for the existing component |
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 13308f200c..a97e362286 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -53,7 +53,7 @@ Newest first. `Unreleased` is what is on `main` and not yet tagged.
- **Settings and list pages read as lists, not admin forms.** Rows sit flat, split by thin lines,
with no box around each list and no icon beside every row. Icons stay where they tell rows apart,
- such as app marks and file kinds. Section titles are small grey labels, and each page and section
+ such as app marks and file kinds. Section titles are small labels, and each page and section
opens with one short sentence. A longer explanation, such as the full approval rules, is behind
"Learn more".
diff --git a/app/src/components/admin/controls/artifact-collaboration-section.tsx b/app/src/components/admin/controls/artifact-collaboration-section.tsx
index 632e0fcb38..159592aec7 100644
--- a/app/src/components/admin/controls/artifact-collaboration-section.tsx
+++ b/app/src/components/admin/controls/artifact-collaboration-section.tsx
@@ -1,12 +1,10 @@
import { useMutation, useQuery } from "@tanstack/react-query";
-import { IconUsers } from "@/components/icons";
import { PageRows, PageSection } from "@/components/layout/page-shell";
import {
Item,
ItemActions,
ItemContent,
ItemDescription,
- ItemMedia,
ItemTitle,
} from "@/components/ui/item";
import { Switch } from "@/components/ui/switch";
@@ -43,9 +41,6 @@ export function ArtifactCollaborationSection() {
) : null}
-
-
- Show who has an artifact open
diff --git a/app/src/components/admin/controls/capabilities-section.tsx b/app/src/components/admin/controls/capabilities-section.tsx
index 2cf85848a4..4d9f20c592 100644
--- a/app/src/components/admin/controls/capabilities-section.tsx
+++ b/app/src/components/admin/controls/capabilities-section.tsx
@@ -1,13 +1,8 @@
-import {
- IconChevronRight,
- IconSparkles,
- IconToggleRight,
- IconUsersGroup,
-} from "@/components/icons";
import { useMutation, useQuery } from "@tanstack/react-query";
import { Link } from "@tanstack/react-router";
import { useState } from "react";
import { BusinessComputerLink } from "@/components/edition/team-features-dialog";
+import { IconChevronRight } from "@/components/icons";
import { PageRows } from "@/components/layout/page-shell";
import { Button } from "@/components/ui/button";
import {
@@ -23,7 +18,6 @@ import {
ItemActions,
ItemContent,
ItemDescription,
- ItemMedia,
ItemTitle,
} from "@/components/ui/item";
import { Label } from "@/components/ui/label";
@@ -44,7 +38,7 @@ import type {
CapabilitySetting,
EnterpriseOverview,
} from "@/lib/enterprise/queries";
-import { loadFailure, failureSaid } from "@/lib/load-failure";
+import { failureSaid, loadFailure } from "@/lib/load-failure";
import { MISSING_TEAM } from "@/lib/teams/names";
import { teamListQueryOptions } from "@/lib/teams/queries";
import { queryClient } from "@/query-client";
@@ -87,9 +81,6 @@ export function CapabilitiesSection() {
return (
-
-
- {capability.title}
@@ -134,9 +125,6 @@ export function CapabilitiesSection() {
}
size="sm"
>
-
-
- Role and team overrides
@@ -154,9 +142,6 @@ export function CapabilitiesSection() {
render={}
size="sm"
>
-
-
- Describe it in words
diff --git a/app/src/components/admin/controls/computer-sections.tsx b/app/src/components/admin/controls/computer-sections.tsx
index a4d8342c44..6b3d628bf1 100644
--- a/app/src/components/admin/controls/computer-sections.tsx
+++ b/app/src/components/admin/controls/computer-sections.tsx
@@ -1,16 +1,7 @@
-import {
- IconAppWindow,
- IconBrandWindows,
- IconChevronRight,
- IconDeviceDesktop,
- IconNetwork,
- IconPlus,
- IconUsersGroup,
- IconWorld,
-} from "@/components/icons";
import { useMutation, useQuery } from "@tanstack/react-query";
import { useId, useState } from "react";
import { useEdition } from "@/components/edition/for-a-team";
+import { IconChevronRight } from "@/components/icons";
import { PageRows, PageSection } from "@/components/layout/page-shell";
import { Button } from "@/components/ui/button";
import {
@@ -34,7 +25,6 @@ import {
ItemActions,
ItemContent,
ItemDescription,
- ItemMedia,
ItemTitle,
} from "@/components/ui/item";
import { Label } from "@/components/ui/label";
@@ -135,9 +125,6 @@ export function InactiveComputersSection() {
}
size="sm"
>
-
-
- Stop inactive computers
@@ -230,9 +217,6 @@ export function WindowsAllowlistSection() {
-
-
- Only the programs listed here
@@ -258,9 +242,6 @@ export function WindowsAllowlistSection() {
-
-
- {program}
@@ -298,9 +279,6 @@ export function WindowsAllowlistSection() {
}
size="sm"
>
-
-
- Add a program
@@ -441,9 +419,6 @@ function NetworkPolicies({ data }: { data: EnterpriseOverview }) {
}
size="sm"
>
-
-
- Organization
@@ -471,13 +446,6 @@ function NetworkPolicies({ data }: { data: EnterpriseOverview }) {
}
size="sm"
>
-
- {policy.scopeKind === "team" ? (
-
- ) : (
-
- )}
-
{/* A long team name wraps, and the row is a button, whose words center unless told. */}
{titleOf(policy)}
diff --git a/app/src/components/admin/controls/describe-capabilities.tsx b/app/src/components/admin/controls/describe-capabilities.tsx
index fc7b24eaaa..c0bb735b7a 100644
--- a/app/src/components/admin/controls/describe-capabilities.tsx
+++ b/app/src/components/admin/controls/describe-capabilities.tsx
@@ -1,7 +1,12 @@
+import type { UseQueryResult } from "@tanstack/react-query";
+import { Fragment } from "react";
+import type { AuditEvent } from "@/components/audit/audit-cells";
+import {
+ type ReplayRow,
+ ReplayRows,
+} from "@/components/boundaries/dry-run-changes";
import {
- IconBuilding,
IconChecklist,
- IconCircleDashed,
IconDeviceDesktop,
IconFolder,
IconKey,
@@ -9,17 +14,7 @@ import {
IconPlug,
IconRobot,
IconTrash,
- IconUser,
- IconUserShield,
- IconUsersGroup,
} from "@/components/icons";
-import type { UseQueryResult } from "@tanstack/react-query";
-import { Fragment } from "react";
-import type { AuditEvent } from "@/components/audit/audit-cells";
-import {
- type ReplayRow,
- ReplayRows,
-} from "@/components/boundaries/dry-run-changes";
import { PageRows } from "@/components/layout/page-shell";
import { Button } from "@/components/ui/button";
import { Field, FieldDescription, FieldLabel } from "@/components/ui/field";
@@ -28,7 +23,6 @@ import {
ItemActions,
ItemContent,
ItemDescription,
- ItemMedia,
ItemTitle,
} from "@/components/ui/item";
import { Separator } from "@/components/ui/separator";
@@ -65,13 +59,6 @@ function scopeWords(change: CapabilityChange, teams: Teams): string {
return change.scopeId;
}
-const SCOPE_ICONS: Partial> = {
- organization: IconBuilding,
- role: IconUserShield,
- team: IconUsersGroup,
- group: IconUsersGroup,
-};
-
/** What a switch is set to, in the overrides dialog's words: a team grants, the rest turn on or off. */
function settingWords(change: CapabilityChange): {
text: string;
@@ -116,7 +103,6 @@ export function ChangeRows({
{changes.map((change, index) => {
const row = index + 1;
- const Icon = SCOPE_ICONS[change.scopeKind] ?? IconCircleDashed;
const setting = settingWords(change);
const title = titles[change.capability] ?? change.capability;
const wrong = problems.filter((problem) => problem.change === row);
@@ -125,9 +111,6 @@ export function ChangeRows({
// biome-ignore lint/suspicious/noArrayIndexKey: see above
-
-
- {title}{scopeWords(change, teams)}
@@ -335,12 +318,6 @@ export function PermissionsPreview({
return (
-
-
- {nameOf(person)}
diff --git a/app/src/components/admin/controls/mcp-allowlist-section.tsx b/app/src/components/admin/controls/mcp-allowlist-section.tsx
index d620bcead6..e7e6fc01fa 100644
--- a/app/src/components/admin/controls/mcp-allowlist-section.tsx
+++ b/app/src/components/admin/controls/mcp-allowlist-section.tsx
@@ -1,10 +1,5 @@
-import {
- IconChevronRight,
- IconKey,
- IconPlug,
- IconWorld,
-} from "@/components/icons";
import { useState } from "react";
+import { IconChevronRight } from "@/components/icons";
import { PageRows } from "@/components/layout/page-shell";
import { Button } from "@/components/ui/button";
import {
@@ -22,7 +17,6 @@ import {
ItemActions,
ItemContent,
ItemDescription,
- ItemMedia,
ItemTitle,
} from "@/components/ui/item";
import { Separator } from "@/components/ui/separator";
@@ -103,9 +97,6 @@ export function McpAllowlistSection() {
<>
-
-
- Only approved connectors
@@ -149,9 +140,6 @@ export function McpAllowlistSection() {