Skip to content

Commit 6c7c6db

Browse files
feat(ui): the console's pages set text in two sizes, 14 and 12, and two weights, 400 and 500 (#36183)
<!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuAYvjHzALCM1EMkMFJVSe7r)_ repo:objectstack#1 · os-sales · session_01L6bhgUUrNKCZdu79ooP61V Fixes #36047 Slice 2 of 2. Slice 1 (#36093, merged `3ae62acd`) set the theme tokens and shared controls: the 8px control corner, the white content area and the badge weight. This slice sweeps the per-site text sizes and weights on the console's pages. Clause-②: no Metadata-protocol: none ## 维护者速读 - 控制台运行时页面只剩两种字号:正文 14(列表单元格、字段值、输入框、菜单项、工具栏按钮、单元格编辑框),次要信息 12(字段标签、表头、计数、时间、提示、小块里的字)。页面里不再有 13;原来的 10、11 和 11.5、12.5 这些零碎字号也收到 12 或 14。 - 字重只剩 400 和 500:记录名称、页签、按钮、分区标题、表头是 500,正文 400。600/700 只留在 18 号以上的页面和弹框大标题上。下拉菜单的分组标题也从 600 改成 500。 - 记录页的页签选中和未选中现在都是 14。 - 没设宽度的列表列按内容自动变宽,14 号字下会宽约 8%;视图里写死宽度或用户拖过的列宽度不变,每列少显示约 8% 的字,悬停可看全文。客户列表 1440 宽一屏可见列数前后都是 5(5 列全部放得下)。 - 单选/多选的彩色标签保持全圆(标签形状未改)。 - 不改的:Studio 和元数据管理内部、设置页、开发者工具、手机专用布局(另有 #35880 专题)、头像里的缩写字母、作者写的 markdown 和 SDUI 标题、文档阅读页的正文字号。 ## What changes **The mapping** (run as a script, re-run after every merge of `main`; conflicts are resolved by taking `main` and re-running it, never by hand): | Before | After | Where | |---|---|---| | `text-[13px]` | `text-sm` (14) | body text, cells, field values, inputs, menu items, toolbar and bar buttons, condition chips, the in-cell editor (`EDITOR_DENSITY_CLASS` and the cell input layer in `@object-ui/components`) | | `text-[13px]` | `text-xs` (12) | the same class run carries `text-muted-foreground`, `uppercase`, `tabular-nums` or `tracking-wide`, or it is a column header: labels, headers, counts, times, empty-state hints | | `text-[12.5px]`, `text-[15px]` | `text-sm` (14) | record-page panel heads and rows, the comment composer, home section headings | | `text-[9px]` … `text-[11.5px]` | `text-xs` (12) | captions, counts, kbd hints, chip text, badges | | `font-semibold`, `font-bold` | `font-medium` (500) | everything except a class run that also sets `text-lg` or larger | Kept on purpose, each named in the script's exception list: avatar initials and the one-letter record-link mark (glyphs sized to their circle), phone-only branches (`isMobile` rows, `Phone*` files, the phone search keyword, the phone sidebar app name), authored content typography (markdown `strong` and headings, SDUI `h1`–`h6` presets), and the docs reader's prose size. Directories not swept: `views/studio-design`, `views/metadata-admin`, the settings pages, `pages/developer`, `views/item-tools`, the draft-preview bar, and dev-only harnesses. The home page's first-run checklist lives under `pages/settings` but is drawn on the console home, so it is swept. **Shared parts beyond the class sweep** - `DropdownMenuLabel` (`@object-ui/components`, Shadcn-synced) is `font-medium` instead of `font-semibold`, through a declared local patch `dropdown-menu-label-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`, anchored on the already vendored `dropdown-menu.registry.txt`. `shadcn-components.json` names it. `ContextMenuLabel`, `MenubarLabel` and `SelectLabel` are not patched: no console runtime page renders them. - The list view bar: the object name is 14 (it was 13), the `/` separator after it is 14 (it inherited 16). **Counts**, on the branch merged with `main` (`a2dc8589`): 386 sizes and weights changed in 123 source files; 110 kept by the rules above (76 titles 18px and larger, 25 named exceptions, 9 avatar initials). A dry re-run of the script on the merged branch changes nothing. ## Why #36047 items 1 and 2 (maintainer-approved Attio comparison): two text sizes, 14 and 12, and two weights, 400 and 500, with page titles excepted. The card's own measurement found 12, 13 and 14 and 400, 500 and 600 on one page. ## Verification Measured in a real browser (CRM example, console dev server against it), 1440 and 375, light and dark, before and after: list (account), record page (opportunity), kanban (opportunity pipeline), create dialog, console home. Font size and weight of every visible text node outside the sidebar. | page, 1440 light | sizes before | sizes after | weights before | weights after | |---|---|---|---|---| | list | 10, 12, 13, 14, 16 | 12, 14, 16¹ | 400, 500, 600 | 400, 500 | | record | 10, 11, 12, 13, 14, 16 | 12, 14, 16² | 400, 500, 600 | 400, 500 | | kanban | 10, 11, 12, 13, 14, 16 | 10³, 12, 14, 16¹ | 400, 500, 600 | 400, 500 | | create dialog | 10, 11, 12, 13, 14, 16 | 12, 14, 16⁴ | 400, 500, 600 | 400, 500, 600⁴ | | home | 10, 11, 12, 13, 14, 15, 16, 24 | 12, 14, 16, 24⁵ | 400, 500, 600 | 400, 500, 600⁵ | ¹ the visually hidden skip link. ² the record name (16/500). ³ avatar initials. ⁴ the dialog title (16/600, #35980). ⁵ the greeting (24/600) and the checklist title (16/500). Dark is identical. At 375 the phone faces are unchanged by design (15px record rows, the 17px phone title). Visible columns on the account list at 1440: 5 before, 5 after (all five fit). Record tabs: selected and unselected are both 14px. Tests, local, on the branch merged with `main` (`146b6f9b`): the full vitest suites of `components`, `fields`, `plugin-grid`, `plugin-list`, `plugin-detail`, `plugin-kanban`, `plugin-form`, `app-shell` and `console`, plus `ui/scripts/__tests__`, all pass; eslint on every changed file: 0 errors. After the second merge with `main` (`a2dc8589`, which brought the comment panel and the list draft buttons): the 175 test files that import a re-mapped file pass (2,608 tests) and eslint on every changed file has 0 errors. Pins moved with the values: ten unit-test assertions and three e2e specs (`list-frame-geometry-35548`, `narrow-drawer-time-34614`, `record-tabs-rail-35595`; 20 passed locally against a production build). ## The mapping script Not committed: it is a one-off for this sweep and the follow-up re-run. All four files, as run: <details><summary><code>s2map.mjs</code>: the mapping: `node s2map.mjs <ui-dir> <files.txt> <overrides.tsv> [--apply] [--table=out.tsv]`</summary> ```js #!/usr/bin/env node // #36047 slice 2 mapping script: text sizes -> 14/12, weights 600/700 -> 500, on the console's runtime pages. // // node s2map.mjs <ui-dir> <files.txt> <overrides.tsv> [--apply] [--table=out.tsv] // // files.txt ui-relative paths to sweep (one per line). // overrides.tsv `path<TAB>anchor<TAB>token<TAB>result` rows: the anchor is a substring of the line // (so a row survives line moves on a main merge); result is a replacement token or // `keep`. A row whose token is `*` applies to every token on that line. // Without --apply it only prints the table (path:line, before, after, rule, excerpt). import fs from 'node:fs'; import path from 'node:path'; const [uiDir, filesTxt, overridesTsv, ...rest] = process.argv.slice(2); const apply = rest.includes('--apply'); const tableOut = (rest.find((a) => a.startsWith('--table=')) || '').slice(8); const overrides = []; if (overridesTsv && fs.existsSync(overridesTsv)) { for (const raw of fs.readFileSync(overridesTsv, 'utf8').split('\n')) { if (raw.startsWith('#') || !raw.trim()) continue; const [file, anchor, token, result] = raw.split('\t'); overrides.push({ file, anchor, token, result, id: overrides.length }); } } const usedOverrides = new Set(); // A Tailwind token with optional variant prefixes (md:, [&_input]:, before:, !). const TOKEN = /(?<![\w\-\[])((?:[^\s"'`{}]*?:)?)(!?)(text-\[(\d+(?:\.\d+)?)px\]|font-(?:semibold|bold|extrabold))(?![\w\-])/g; const BIG = /\btext-(?:lg|xl|[2-9]xl)\b|text-\[(?:1[7-9]|[2-9]\d)px\]/; const SECONDARY = /text-muted-foreground|\buppercase\b|tabular-nums|tracking-wide|<th\b|TableHead|thead/; function decide(rel, lineNo, lineText, prefix, bang, body, px) { const hit = overrides.find((o) => o.file === rel && lineText.includes(o.anchor) && (o.token === '*' || o.token === body || o.token === `${prefix}${bang}${body}`)); if (hit) { usedOverrides.add(hit.id); return hit.result === 'keep' ? { after: null, rule: 'override:keep' } : { after: hit.result, rule: 'override' }; } // Initials inside an avatar are a glyph sized to its circle, not text. if (/AvatarFallback/.test(lineText)) return { after: null, rule: 'avatar:keep' }; if (body.startsWith('font-')) { if (BIG.test(lineText)) return { after: null, rule: 'big-title:keep' }; return { after: 'font-medium', rule: 'weight' }; } const n = Number(px); if (n === 13) { return SECONDARY.test(lineText) ? { after: 'text-xs', rule: '13→12 secondary' } : { after: 'text-sm', rule: '13→14 body' }; } if (n === 12.5) return { after: 'text-sm', rule: '12.5→14' }; if (n < 13) return { after: 'text-xs', rule: 'small→12' }; if (n === 15) return { after: 'text-sm', rule: '15→14' }; return { after: null, rule: 'big:keep' }; } const files = fs.readFileSync(filesTxt, 'utf8').split('\n').map((s) => s.trim()).filter(Boolean); const rows = []; let changedFiles = 0; for (const rel of files) { const abs = path.join(uiDir, rel); if (!fs.existsSync(abs)) { rows.push([`${rel}:-`, '-', '-', 'missing', '']); continue; } const src = fs.readFileSync(abs, 'utf8'); const lines = src.split('\n'); let touched = false; for (let i = 0; i < lines.length; i++) { const text = lines[i]; if (!TOKEN.test(text)) continue; TOKEN.lastIndex = 0; lines[i] = text.replace(TOKEN, (m, prefix, bang, body, px) => { const { after, rule } = decide(rel, i + 1, text, prefix, bang, body, px); rows.push([`${rel}:${i + 1}`, m, after ? `${prefix}${bang}${after}` : '(keep)', rule, text.trim().slice(0, 160)]); if (!after) return m; touched = true; return `${prefix}${bang}${after}`; }); } if (touched) { changedFiles++; // A `text-sm md:text-sm` pair left by the swap collapses to one token. let out = lines.join('\n').replace(/\b(text-(?:xs|sm)) md:\1\b/g, '$1'); if (apply) fs.writeFileSync(abs, out); } } const tsv = rows.map((r) => r.join('\t')).join('\n') + '\n'; if (tableOut) fs.writeFileSync(tableOut, tsv); else process.stdout.write(tsv); const unused = overrides.filter((o) => !usedOverrides.has(o.id)).map((o) => `${o.file} ${o.anchor.slice(0, 40)}`); const counts = rows.reduce((a, r) => ((a[r[3]] = (a[r[3]] || 0) + 1), a), {}); console.error(JSON.stringify({ sites: rows.length, changedFiles, apply, counts, unusedOverrides: unused }, null, 1)); ``` </details> <details><summary><code>s2-files.sh</code>: the file list: `s2-files.sh <ui-dir> cat.sh > files.txt`</summary> ```bash #!/bin/bash # Regenerate the slice 2 sweep file list from the current tree. usage: s2-files.sh <ui dir> <cat.sh> > files.txt cd "$1" SCOPE="packages/app-shell/src packages/plugin-grid/src packages/plugin-list/src packages/plugin-detail/src packages/plugin-kanban/src packages/plugin-form/src packages/fields/src packages/components/src/renderers packages/components/src/custom packages/components/src/share packages/components/src/notifications apps/console/src" git ls-files $SCOPE | grep -E '\.(tsx?|css)$' | grep -vE '(\.test\.|\.spec\.|__tests__|\.stories\.|/test/|/e2e/)' | grep -vE 'views/(studio-design|metadata-admin)/' \ | xargs grep -lE 'text-\[(9|10|10\.5|11|11\.5|12\.5|13|15|17)px\]|font-(semibold|bold|extrabold)\b' \ | while read f; do [ "$("$2" "$f")" = sweep ] && echo "$f"; done ``` </details> <details><summary><code>cat.sh</code>: which paths are swept</summary> ```bash #!/bin/bash # classify a ui-relative path f="$1" case "$f" in apps/console/src/pages/settings/FirstRunChecklist.tsx) echo sweep;; # drawn on the console home apps/console/src/dev/*|apps/console/src/*-preview.tsx|apps/console/src/preview-gallery.tsx|apps/console/src/dev-*) echo devonly;; */Phone*|*/Mobile*|*/phone/*|*/mobile/*) echo phone;; apps/console/src/pages/settings/*|*/console/organizations/*|*/console/notification-settings/*|*/views/setup/*|*/console/cloud-connection/*|apps/console/src/pages/system/ProfilePage.tsx) echo settings;; apps/console/src/pages/developer/*|*/views/item-tools/*|*/views/MetadataInspector.tsx|*/preview/*) echo devtools;; *) echo sweep;; esac ``` </details> <details><summary><code>s2-overrides.tsv</code>: the named exceptions and hand-picked sizes, anchored by line content so they survive a `main` merge</summary> ```tsv # #36047 slice 2 per-site overrides: path<TAB>line anchor<TAB>token (or *)<TAB>replacement or keep # --- 13px muted controls / menu items are body controls -> 14 packages/plugin-list/src/conditions/FilterValuePanel.tsx className="ml-auto h-7 w-auto min-w-0 gap-1 border-0 px-2 text-[13px] text-muted-foregroun text-[13px] text-sm packages/plugin-list/src/conditions/ListConditionControls.tsx className="flex h-8 w-full items-center gap-2 rounded-sm px-2 text-left text-[13px] text-m text-[13px] text-sm packages/plugin-list/src/conditions/ListConditionControls.tsx 'flex h-7 flex-1 items-center justify-center gap-1 rounded-sm text-[13px] text-muted-foreg text-[13px] text-sm packages/plugin-list/src/conditions/ListConditionControls.tsx className="flex h-8 w-full items-center gap-2 rounded-sm px-2 text-left text-[13px] text-m text-[13px] text-sm packages/plugin-list/src/conditions/ListConditionControls.tsx 'max-sm:h-11 max-sm:min-w-11 inline-flex h-6 shrink-0 items-center gap-1 rounded-md border text-[13px] text-sm packages/plugin-list/src/conditions/ListConditionControls.tsx className="ml-auto h-6 shrink-0 gap-1 px-1.5 text-[13px] text-muted-foreground" text-[13px] text-sm packages/plugin-list/src/components/ViewSettingsPopover.tsx 'flex w-full items-center gap-1.5 rounded-sm px-2 py-1.5 text-left text-[13px] text-muted- text-[13px] text-sm packages/plugin-list/src/ListView.tsx "hidden sm:inline-flex h-7 text-muted-foreground hover:text-foreground text-[13px] transit text-[13px] text-sm packages/plugin-list/src/listToolbarRow.ts 'h-7 min-w-7 gap-1 px-1.5 sm:px-2 text-[13px] font-normal text-muted-foreground hover:text text-[13px] text-sm packages/app-shell/src/views/ListDraftActions.tsx px-1.5 text-[13px] font-normal text-muted-foreground shadow-none text-[13px] text-sm # --- 12.5px panel heads, rows and the composer look-alike input are body -> 14 packages/plugin-detail/src/RecordActivityTimeline.tsx className="flex h-11 sm:h-8 w-full items-center rounded-md border border-input bg-backgrou text-[12.5px] text-sm packages/plugin-detail/src/RecordActivityTimeline.tsx className="flex h-8 items-center gap-2 border-t border-border px-3 text-[12.5px]" text-[12.5px] text-sm packages/plugin-detail/src/RecordActivityTimeline.tsx className="flex h-8 w-full items-center border-t border-border px-3 text-left text-[12.5px text-[12.5px] text-sm packages/plugin-detail/src/RelatedList.tsx className="group/panel-head relative flex h-11 sm:h-9 items-center gap-1.5 px-3 text-[12.5 text-[12.5px] text-sm packages/plugin-detail/src/RelatedList.tsx className="flex min-h-11 sm:h-8 sm:min-h-0 items-center justify-between gap-2 border-t bor text-[12.5px] text-sm packages/plugin-detail/src/RecordTimelinePanel.tsx className="group/panel-head relative flex h-11 sm:h-9 items-center gap-1.5 px-3 text-[12.5 text-[12.5px] text-sm # --- glyphs in fixed tiny boxes (avatar initials, record-link initial, chevron): not text, keep packages/plugin-grid/src/ObjectGrid.tsx '[&_td_a[data-record-link]]:before:flex [&_td_a[data-record-link]]:before:h-3.5 [&_td_a[da * keep packages/plugin-kanban/src/KanbanImpl.tsx className={cn("text-[10px] transition-transform shrink-0", collapsed ? "" : "rotate-90")} * keep packages/plugin-detail/src/RichTextCommentInput.tsx <div className="h-5 w-5 rounded-full bg-muted flex items-center justify-center text-[10px] text-[10px] keep packages/components/src/custom/config-field-renderer.tsx {opt.icon ?? <span className="text-[10px]">{opt.label.charAt(0)}</span>} * keep # --- phone-only branches (the card leaves phone sizes alone, epic #35880) packages/plugin-detail/src/DetailSection.tsx <span className="text-[15px] text-muted-foreground shrink-0">{fieldLabelText}</span> * keep packages/plugin-detail/src/DetailSection.tsx <span className="text-[15px] text-foreground text-right break-words min-w-0 leading-snug"> * keep packages/app-shell/src/layout/UnifiedSidebar.tsx <span className="flex-1 truncate text-[15px] font-semibold"> * keep packages/app-shell/src/console/home/HomePage.tsx <h1 className="px-5 pb-2 text-[17px] font-semibold"> * keep packages/app-shell/src/layout/AppSwitcher.tsx <span data-testid="app-switcher-phone-name" className="truncate whitespace-nowrap text-[17 * keep packages/plugin-list/src/ListView.tsx <span className="max-w-[5rem] truncate text-[11px]" data-testid="phone-search-active-keywo * keep packages/plugin-grid/src/ObjectGrid.tsx <div data-testid="grid-card-title" className="truncate text-sm font-semibold"> * keep packages/plugin-grid/src/ObjectGrid.tsx className="ml-auto shrink-0 whitespace-nowrap text-sm font-semibold tabular-nums" * keep packages/app-shell/src/views/ObjectView.tsx <span className="flex min-w-0 max-w-full items-center gap-1.5 max-sm:text-base max-sm:font * keep packages/plugin-detail/src/renderers/record-path.tsx const PHONE_SUMMARY_STAGE_CLASS = 'min-w-0 font-semibold [overflow-wrap:anywhere]'; * keep # --- the docs reader's prose size (#35424) is a reading face, keep apps/console/src/pages/DocPage.tsx className: '!text-[15px]', * keep # --- authored content typography (markdown / SDUI headings and bold): keep packages/components/src/renderers/basic/elements.tsx h6: 'text-base font-semibold tracking-tight', * keep packages/components/src/renderers/basic/elements.tsx strong: 'font-semibold', * keep packages/components/src/renderers/basic/text.tsx h6: 'text-base font-semibold tracking-tight', * keep packages/app-shell/src/console/marketplace/MarkdownText.tsx strong: 'font-semibold text-foreground', * keep packages/app-shell/src/console/marketplace/MarkdownText.tsx h2: 'mt-3 text-base font-semibold tracking-tight', * keep packages/app-shell/src/console/marketplace/MarkdownText.tsx h3: 'mt-2 text-sm font-semibold tracking-tight text-foreground/80', * keep packages/app-shell/src/console/marketplace/MarkdownText.tsx h1: 'text-sm font-semibold tracking-tight text-foreground', * keep packages/app-shell/src/console/marketplace/MarkdownText.tsx h2: 'text-xs font-semibold tracking-tight text-foreground', * keep packages/app-shell/src/console/marketplace/MarkdownText.tsx <th key={c} className={`border-b px-3 py-2 font-semibold text-foreground ${alignClass(c)}` * keep packages/app-shell/src/views/objectViewPageHeader.tsx data-testid="list-view-bar-object-name" text-[13px] text-sm packages/plugin-list/src/conditions/ListConditionControls.tsx h-6 shrink-0 gap-1 px-1.5 text-[13px] font-normal text-muted-foreground shadow-none text-[13px] text-sm ``` </details> ## Follow-ups owed - **A re-run of the mapping script on `main` after this merges.** PRs that land after this one may bring new `text-[13px]`, `font-semibold` or `font-bold` into the swept areas. The re-run belongs to a new session; anything it finds becomes a small follow-up PR. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes (eslint on every changed file locally; CI's Lint UI is the full reading). - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (not touched) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English (the 维护者速读 block is the maintainer's summary, in the maintainer's language). - [x] The *Before Submitting* list in CONTRIBUTING.md is done. --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgUUrNKCZdu79ooP61V)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgUUrNKCZdu79ooP61V --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 16a96ac commit 6c7c6db

139 files changed

Lines changed: 457 additions & 391 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
'@object-ui/console': patch
3+
'@object-ui/app-shell': patch
4+
'@object-ui/components': patch
5+
'@object-ui/fields': patch
6+
'@object-ui/plugin-detail': patch
7+
'@object-ui/plugin-form': patch
8+
'@object-ui/plugin-grid': patch
9+
'@object-ui/plugin-kanban': patch
10+
'@object-ui/plugin-list': patch
11+
---
12+
13+
feat(ui): the console's pages set text in two sizes, 14 and 12, and two weights, 400 and 500
14+
15+
Clause-②: no
16+
Metadata-protocol: none
17+
18+
- **Two sizes.** Body text, list cells, field values, inputs, menu items, toolbar controls and buttons are 14px (`text-sm`); field labels, column headers, counts, timestamps, hints and chip text are 12px (`text-xs`). The hard-coded 13px is gone from the console's runtime pages, and the 10px, 11px and other odd sizes there are 12px. The in-cell editor is 14px, like the cell it edits.
19+
- **Two weights.** Record names, tabs, buttons, section titles and column headers are 500 (`font-medium`); body text is 400. Weight 600 and 700 stay only on page and dialog titles 18px and larger. `DropdownMenuLabel` is weight 500 through a declared local patch on the Shadcn primitive (`dropdown-menu-label-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`), so it survives a registry sync.
20+
- **Not changed:** Studio and metadata administration internals, the settings pages, developer tools, phone-only layouts, avatar initials, authored markdown and SDUI heading typography, the docs reader's prose size, and the shape of coloured option badges (still pills).
21+
- A list column with no declared width measures its content, so it grows with the 14px text; a column whose width a view or a user set keeps that width and shows about 8% fewer characters before it truncates.

‎ui/apps/console/src/pages/AppDocsIndex.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ export default function AppDocsIndex() {
7070
>
7171
<BookOpen className="mt-0.5 h-5 w-5 shrink-0 text-muted-foreground" />
7272
<div className="min-w-0">
73-
<div className="text-sm font-semibold">{card.label}</div>
73+
<div className="text-sm font-medium">{card.label}</div>
7474
{card.description ? (
7575
<div className="mt-0.5 line-clamp-2 text-xs text-muted-foreground">
7676
{card.description}
7777
</div>
7878
) : card.subtitle ? (
79-
<div className="mt-0.5 truncate font-mono text-[11px] text-muted-foreground/70">
79+
<div className="mt-0.5 truncate font-mono text-xs text-muted-foreground/70">
8080
{card.subtitle}
8181
</div>
8282
) : null}

‎ui/apps/console/src/pages/BookSidebar.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ export function BookSidebar({
4242
return (
4343
<nav aria-label={book.label ?? book.name} className="text-sm">
4444
{showLabel && book.label ? (
45-
<div className="mb-3 px-2 text-sm font-semibold text-foreground">{book.label}</div>
45+
<div className="mb-3 px-2 text-sm font-medium text-foreground">{book.label}</div>
4646
) : null}
4747
<div className={headings ? 'space-y-5' : undefined}>
4848
{book.groups.map((group) => (
4949
<div key={group.key}>
5050
{headings ? (
51-
<div className="mb-1 px-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground">
51+
<div className="mb-1 px-2 text-xs font-medium uppercase tracking-wide text-muted-foreground">
5252
{group.label}
5353
</div>
5454
) : null}

‎ui/apps/console/src/pages/DocPage.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ export default function DocPage() {
469469
{toc.length >= 3 ? (
470470
<aside className="hidden w-56 shrink-0 xl:block">
471471
<nav aria-label={tocLabel} className="sticky top-6 max-h-[calc(100svh-6rem)] overflow-auto">
472-
<div className="mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground">
472+
<div className="mb-2 text-xs font-medium uppercase tracking-wide text-muted-foreground">
473473
{tocLabel}
474474
</div>
475475
<ul className="border-l border-border text-sm">

‎ui/apps/console/src/pages/DocsIndex.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export default function DocsIndex() {
135135
<div className="flex flex-col gap-8">
136136
{groups.map((group) => (
137137
<section key={group.app ?? '_other'} aria-labelledby={`docs-group-${group.app ?? '_other'}`} data-testid="docs-group">
138-
<h2 id={`docs-group-${group.app ?? '_other'}`} className="mb-3 text-sm font-semibold text-foreground/90">
138+
<h2 id={`docs-group-${group.app ?? '_other'}`} className="mb-3 text-sm font-medium text-foreground/90">
139139
{group.label ?? t('help.otherDocs', { defaultValue: 'Other documentation' })}
140140
</h2>
141141
<ul className="grid items-stretch gap-3 sm:grid-cols-2 lg:grid-cols-3">
@@ -161,7 +161,7 @@ function BookCardLink({ card }: { card: BookCard }) {
161161
to={`/docs/${card.slug}`}
162162
className="flex h-full flex-col gap-1 rounded-lg border border-border p-4 hover:bg-muted/50"
163163
>
164-
<span className="text-sm font-semibold">{card.label}</span>
164+
<span className="text-sm font-medium">{card.label}</span>
165165
{card.description ? <span className="line-clamp-2 text-sm text-muted-foreground">{card.description}</span> : null}
166166
<span className="mt-auto pt-1 text-xs text-muted-foreground/80">
167167
{t('help.articleCount', {

‎ui/apps/console/src/pages/DocsNav.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export function DocsNav({
9393
aria-expanded={open}
9494
disabled={searching}
9595
onClick={() => setToggled((prev) => ({ ...prev, [slug]: !open }))}
96-
className="flex w-full items-start gap-2 rounded px-2 py-1.5 text-left font-semibold text-foreground hover:bg-muted/50 disabled:cursor-default disabled:hover:bg-transparent"
96+
className="flex w-full items-start gap-2 rounded px-2 py-1.5 text-left font-medium text-foreground hover:bg-muted/50 disabled:cursor-default disabled:hover:bg-transparent"
9797
>
9898
<span className="min-w-0 flex-1 break-words">{label}</span>
9999
<span className="mt-px shrink-0 text-xs font-normal tabular-nums text-muted-foreground">{count}</span>

‎ui/apps/console/src/pages/SharedRecordPage.tsx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,14 @@ export default function SharedRecordPage() {
298298
<header className="sticky top-0 z-10 flex items-center gap-2 border-b bg-background px-4 py-3">
299299
<MessageSquare className="h-5 w-5 text-muted-foreground" />
300300
<div className="min-w-0 flex-1">
301-
<h1 className="truncate text-sm font-semibold">
301+
<h1 className="truncate text-sm font-medium">
302302
{conv.title ?? t('sharedRecord.sharedConversation', { defaultValue: 'Shared conversation' })}
303303
</h1>
304-
<p className="truncate text-[11px] text-muted-foreground">
304+
<p className="truncate text-xs text-muted-foreground">
305305
Read-only · Shared via ObjectStack
306306
</p>
307307
</div>
308-
<Badge variant="outline" className="text-[10px] capitalize">
308+
<Badge variant="outline" className="text-xs capitalize">
309309
{data.link.permission}
310310
</Badge>
311311
</header>
@@ -330,7 +330,7 @@ export default function SharedRecordPage() {
330330
/>
331331
)}
332332
</main>
333-
<footer className="border-t bg-muted/30 px-4 py-2 text-center text-[11px] text-muted-foreground">
333+
<footer className="border-t bg-muted/30 px-4 py-2 text-center text-xs text-muted-foreground">
334334
Powered by ObjectStack
335335
</footer>
336336
</div>
@@ -341,14 +341,14 @@ export default function SharedRecordPage() {
341341
return (
342342
<div className="mx-auto flex h-svh max-w-3xl flex-col bg-background">
343343
<header className="border-b px-4 py-3">
344-
<h1 className="text-sm font-semibold">
344+
<h1 className="text-sm font-medium">
345345
{t('sharedRecord.sharedObject', { defaultValue: 'Shared {{object}}', object: data.link.object_name })}
346346
</h1>
347347
</header>
348348
<main className="flex-1 overflow-y-auto p-4">
349349
<SharedRecordFields record={data.record} fields={data.fields} />
350350
{data.redactedFields && data.redactedFields.length > 0 && (
351-
<p className="mt-2 text-[11px] text-muted-foreground">
351+
<p className="mt-2 text-xs text-muted-foreground">
352352
{t('sharedRecord.redactedFields', {
353353
defaultValue: 'Some fields are hidden by the owner: {{fields}}',
354354
fields: data.redactedFields.join(', '),

‎ui/apps/console/src/pages/auth/AuthLayout.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export function AuthLayout({ children, formWidth = 'sm' }: AuthLayoutProps) {
163163
{showHostPill ? (
164164
<div className="flex justify-center">
165165
<span
166-
className="rounded-full border border-border/60 bg-background/60 px-2 py-0.5 font-mono text-[10px] uppercase tracking-wide text-muted-foreground"
166+
className="rounded-full border border-border/60 bg-background/60 px-2 py-0.5 font-mono text-xs uppercase tracking-wide text-muted-foreground"
167167
title={t('auth.shell.tenantHostHint', {
168168
defaultValue: 'You are signing in to this system',
169169
})}
@@ -174,7 +174,7 @@ export function AuthLayout({ children, formWidth = 'sm' }: AuthLayoutProps) {
174174
) : null}
175175
{children}
176176
{showPoweredBy ? (
177-
<p className="text-center text-[11px] text-muted-foreground">
177+
<p className="text-center text-xs text-muted-foreground">
178178
<a
179179
data-testid="auth-powered-by"
180180
href={OBJECTSTACK_SITE_URL}

‎ui/apps/console/src/pages/auth/LoginPage.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ export function LoginPage() {
519519
? t('auth.login.firstOwner.title', { defaultValue: 'Set up this deployment' })
520520
: t('auth.login.welcomeTitle', { defaultValue: 'Welcome back' })}
521521
</h1>
522-
<p className="mt-1 text-[13px] text-muted-foreground">
522+
<p className="mt-1 text-xs text-muted-foreground">
523523
{invitationCopy
524524
? invitationCopy.description
525525
: firstOwner
@@ -620,7 +620,7 @@ function DirectSignInRetry({ onRetry }: { onRetry: () => void }) {
620620
<h1 className="text-xl font-semibold tracking-tight text-foreground">
621621
{t('auth.login.welcomeTitle', { defaultValue: 'Welcome back' })}
622622
</h1>
623-
<p className="mt-1 text-[13px] text-muted-foreground">
623+
<p className="mt-1 text-xs text-muted-foreground">
624624
{t('auth.login.directSignIn.description', {
625625
defaultValue: "Sign in with your organization's single sign-on.",
626626
})}

‎ui/apps/console/src/pages/settings/FirstRunChecklist.tsx‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,14 @@ function ChecklistRow({
273273
{title}
274274
{optional ? (
275275
<span
276-
className="ml-2 rounded-full border border-border px-1.5 py-px align-middle text-[11px] font-normal text-muted-foreground"
276+
className="ml-2 rounded-full border border-border px-1.5 py-px align-middle text-xs font-normal text-muted-foreground"
277277
data-testid={`first-run-checklist-optional-${id}`}
278278
>
279279
{t('console.firstRunChecklist.optional')}
280280
</span>
281281
) : null}
282282
</p>
283-
{detail ? <p className="mt-0.5 text-[13px] text-muted-foreground">{detail}</p> : null}
283+
{detail ? <p className="mt-0.5 text-xs text-muted-foreground">{detail}</p> : null}
284284
{children}
285285
</div>
286286
{action ? <div className="shrink-0">{action}</div> : null}
@@ -942,7 +942,7 @@ export function FirstRunChecklist({ placement = 'top' }: { placement?: FirstRunC
942942
aria-labelledby="first-run-checklist-title"
943943
>
944944
<p className="flex min-w-0 items-baseline gap-2">
945-
<span id="first-run-checklist-title" className="text-[13px] font-semibold tracking-tight">
945+
<span id="first-run-checklist-title" className="text-sm font-medium tracking-tight">
946946
{t('console.firstRunChecklist.title')}
947947
</span>
948948
<span className="shrink-0 text-xs text-muted-foreground" data-testid="first-run-checklist-progress">
@@ -961,10 +961,10 @@ export function FirstRunChecklist({ placement = 'top' }: { placement?: FirstRunC
961961
data-optional={optionalRow(id) ? 'true' : undefined}
962962
>
963963
<Circle className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
964-
<span className="min-w-0 text-[13px]">{title}</span>
964+
<span className="min-w-0 text-sm">{title}</span>
965965
{optionalRow(id) ? (
966966
<span
967-
className="shrink-0 rounded-full border border-border px-1.5 py-px text-[11px] text-muted-foreground"
967+
className="shrink-0 rounded-full border border-border px-1.5 py-px text-xs text-muted-foreground"
968968
data-testid={`first-run-checklist-optional-${id}`}
969969
>
970970
{t('console.firstRunChecklist.optional')}
@@ -1005,7 +1005,7 @@ export function FirstRunChecklist({ placement = 'top' }: { placement?: FirstRunC
10051005
aria-labelledby="first-run-checklist-title"
10061006
>
10071007
<p className="flex min-w-0 items-baseline gap-2">
1008-
<span id="first-run-checklist-title" className="truncate text-[13px] font-semibold tracking-tight">
1008+
<span id="first-run-checklist-title" className="truncate text-sm font-medium tracking-tight">
10091009
{t('console.firstRunChecklist.title')}
10101010
</span>
10111011
<span className="shrink-0 text-xs text-muted-foreground" data-testid="first-run-checklist-progress">
@@ -1039,10 +1039,10 @@ export function FirstRunChecklist({ placement = 'top' }: { placement?: FirstRunC
10391039
>
10401040
<div className="flex items-start justify-between gap-4">
10411041
<div className="min-w-0">
1042-
<h2 id="first-run-checklist-title" className="text-base font-semibold tracking-tight">
1042+
<h2 id="first-run-checklist-title" className="text-base font-medium tracking-tight">
10431043
{t('console.firstRunChecklist.title')}
10441044
</h2>
1045-
<p className="mt-1 text-[13px] text-muted-foreground">{t('console.firstRunChecklist.description')}</p>
1045+
<p className="mt-1 text-xs text-muted-foreground">{t('console.firstRunChecklist.description')}</p>
10461046
</div>
10471047
<div className="flex shrink-0 items-center gap-2">
10481048
<span className="text-xs text-muted-foreground" data-testid="first-run-checklist-progress">

0 commit comments

Comments
 (0)