Skip to content

The line under a row's name is text-sm, in muted-foreground - #2721

Merged
samjulien merged 4 commits into
mainfrom
claude/row-description-text-sm
Dec 2, 2026
Merged

samjulien merged 4 commits into
mainfrom
claude/row-description-text-sm

Conversation

@samjulien

@samjulien samjulien commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Split out of #2698 so that PR is the type scale only. One primitive, one concern.

What changes

ItemDescription, the line under a row's name, goes from text-xs to text-sm in muted-foreground: the same size as the name. shadcn's own ItemDescription is text-sm. The design audit measured these lines at 11.25px where ChatGPT, Claude and Grok use 12–14px.

Two screens set the description back to text-xs and no longer do:

  • The allowed models list (admin/controls/model-sections.tsx).
  • A team's models (teams/team-models.tsx).

A third, the Browse apps tile on Apps, was removed on main by #2646, so its edit went with it.

The two monospace addresses (GitHub webhook, MCP server address) stay text-xs.

docs/app-guidelines.md › The look › Type now says the line under a row's name is text-sm, in muted-foreground.

Row height

On main, which has the whole-pixel type scale from #2698, a title over a one-line description goes from 67px to 71px. A single line stays 47px, held at the 56px floor. The comments in item.tsx, page-parts.tsx and the layout skill say 71px.

The conversation row keeps its 12px line

conversation-row-text.test.ts holds the sidebar's conversation row at 12px for its time, Working label and preview, because a preview at the title's size lost the row's hierarchy. This PR does not touch that row. The two cases differ:

  • A card row: its title is always font-medium in foreground, and the description is regular weight in muted-foreground. Weight and color separate them at one size.
  • A conversation row: its title is font-normal once read, so at one size the preview and the title would match in weight too.

Checks

The ui-look-guard, ui-primitives-look, ui-look-theme, design-tokens, failure-said, conversation-row-text, color-scheme, artifacts-kit and skins tests pass (97). tsc passes, and bun run lint and bun run format:check pass on the whole repo.

Changelog

The web app.

  • The line under a row's name is the name's size. It was a step smaller (12px). It is now
    14px, in a muted color. A row with a description is 4px taller.

ItemDescription was text-xs, a step below the title. It is now text-sm, the title's size, as in
shadcn's own Item. The title's medium weight and foreground color set it apart from the detail
in muted-foreground. Three screens that forced it back to text-xs no longer do: the allowed
models list, a team's models and Browse apps on Apps.

A title over a one-line description comes to 69px (was 65px). The look's type rule says where
the line is text-sm.
@samjulien
samjulien marked this pull request as ready for review December 2, 2026 01:57
davidmckayv
davidmckayv previously approved these changes Dec 2, 2026

@davidmckayv davidmckayv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved: moves the line under a row's name from 12px to 14px, checked at 390px and 1440px in Chromium and WebKit, light and dark. Since c10e33a only merges from main. It's the only PR carrying the ItemDescription change now (#2698 dropped it at 7cd8342).

@samjulien
samjulien added this pull request to the merge queue Dec 2, 2026
…n-text-sm

# Conflicts:
#	app/src/routes/_authed/_app/connections.index.tsx
@samjulien
samjulien removed this pull request from the merge queue due to a manual request Dec 2, 2026
davidmckayv
davidmckayv previously approved these changes Dec 2, 2026

@davidmckayv davidmckayv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approved at ccf52fb. It's smaller now: #2646 removed BrowseTile, so one edit dropped away, and nothing new was added.

@samjulien
samjulien added this pull request to the merge queue Dec 2, 2026
@samjulien
samjulien removed this pull request from the merge queue due to a manual request Dec 2, 2026
…n-text-sm

# Conflicts:
#	.claude/skills/openbot-screen-layout/SKILL.md
#	app/src/components/layout/page-parts.tsx
#	app/src/components/ui/item.tsx
#	docs/app-guidelines.md

@davidmckayv davidmckayv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approved at 65e6a6b. The only change is the row-height figures in the comment and docs, re-measured on #2698's scale.

@samjulien
samjulien added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit 17aef66 Dec 2, 2026
37 checks passed
@samjulien
samjulien deleted the claude/row-description-text-sm branch December 2, 2026 05:56
davidmckayv added a commit that referenced this pull request Dec 2, 2026
…about 59px

Main's #2721 made ItemDescription text-sm, 4px taller than text-xs, so the flat row this branch draws (py-2) is about 59px, not 55px. The page-parts comment, the layout skill's rhythm table and the look's rule 7 say so. Rule 2 no longer says the line under a row's name sits in a card, since a list of rows is not a card any more.
nexusatemporal pushed a commit to nexusatemporal/openbot that referenced this pull request Dec 2, 2026
…opilotKit#2701)

* 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.

* 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.

* 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.

* Revert "Narrow to shorter page intros; keep the row look as it is"

This reverts commit 124cf4b.

* 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.

* Keep main's browse-apps loading rows after the merge

The merge kept both sides' icon imports in broker-directory.tsx. The
loading rows there stand in for app logos, which stay, so the file
matches main.

* Row heights after the merge: a row with a description in PageRows is about 59px

Main's CopilotKit#2721 made ItemDescription text-sm, 4px taller than text-xs, so the flat row this branch draws (py-2) is about 59px, not 55px. The page-parts comment, the layout skill's rhythm table and the look's rule 7 say so. Rule 2 no longer says the line under a row's name sits in a card, since a list of rows is not a card any more.

---------

Co-authored-by: David McKay <davidmckayv@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants