Repository navigation
feat(ui): the console's pages set text in two sizes, 14 and 12, and two weights, 400 and 500 - #36183
Conversation
…wo weights, 400 and 500 The hard-coded 13px on the console's runtime pages becomes 14 (body, cells, field values, inputs, menu items, toolbar controls, the in-cell editor) or 12 (labels, column headers, counts, times, hints, chip text); 10/11px and the odd half sizes become 12. Weights 600/700 become 500 except on titles 18px and up. DropdownMenuLabel is 500 through a declared local Shadcn patch. Studio, metadata administration, settings pages, developer tools, phone-only layouts, avatar initials and authored markdown/SDUI typography are not swept. Slice 2 of 2 for objectstack#36047. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUUrNKCZdu79ooP61V
…-5f2iq5 # Conflicts: # ui/packages/app-shell/src/views/objectViewSwitcherMenu.tsx # ui/packages/components/src/renderers/complex/data-table.tsx # ui/packages/plugin-detail/src/ThreadedReplies.tsx
…-5f2iq5 # Conflicts: # ui/packages/app-shell/src/views/ListDraftActions.tsx
…erge Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUUrNKCZdu79ooP61V
…-5f2iq5 # Conflicts: # ui/e2e/list-frame-geometry-35548.spec.ts # ui/packages/app-shell/src/views/objectViewPageHeader.tsx # ui/packages/plugin-list/src/ListView.tsx
…2px header With the 12px header and weight 500 the five plan columns measured 8 px narrower, so in the 622 px drawer they fitted beside the inline button and nothing folded. The fixture's warehouse name carries a bay: menu-only the table is 593 px, and the inline button adds 64. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUUrNKCZdu79ooP61V
…-5f2iq5 # Conflicts: # ui/packages/plugin-detail/src/comments/CommentsPanel.tsx
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — ACCEPT (L1-b)Head-sha: 维护者速读
Must-fixNone. Should-fixNone. Nits (ride or drop, seat's call)
Checked
Owed
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Seat landing · 2026-11-21T21:27Z · #36047 slice 2, type sizes and weights swept across the console to the card's scale (slice 1 was #36093). The sweep is script-driven: the four mapping-script files are in the PR body, each main merge took main's side on conflicts and re-ran the script, and the body says the script is re-run on main once more after merge, in a new session, from the Reviews:
Gates on this head:
The seat readies this PR and arms auto-merge in the same step. The PR carries |
… and weight sweep) Conflicts, all on the retired rail, resolved to this branch's side: - ui/packages/plugin-detail/src/RecordSummaryRail.tsx: deleted here; main's one sweep line (card title text-[13px] font-semibold -> text-sm font-medium) goes with the file. No rail markup moved into the pinned layout. - ui/e2e/record-tabs-35595.spec.ts (renamed here from record-tabs-rail-35595): main moved the rail card's title pin 13px -> 14px; that test is gone here. - RecordPageColumns.test.tsx: main moved the rail card title pin text-[13px] -> text-sm; that rail test is gone here. - RecordTimelinePanel.chatterInset-34676.test.tsx: main moved the rail peek row pin text-[12.5px] -> text-sm; that rail test is gone here. One pin moved by the sweep: in the pinned 1024 e2e test, the 400 px tab column after the drag holds four tabs at 14 px (five at 13 px), so quote.account_id moved into 「更多」. The CONTROL now opens the last tab still on the row instead of naming quote.account_id. Sweep kept: every line #36183 changed in a file this branch also changes (RecordDetailView.tsx, RecordApprovalsPanel.tsx) is present unchanged in the merge. No source file this branch adds or rewrites holds a size or weight the sweep maps (text-[9|10|10.5|11|11.5|12.5|13|15|17px], font-semibold, font-bold), checked file by file against main. Claude-Session: https://claude.ai/code/session_01L6bhgUZTwDqtEFzNFCVTri Co-authored-by: Claude <noreply@anthropic.com>
…side the record's tabs; the right summary rail is retired (objectstack-ai#35890) (objectstack-ai#36136) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> Fixes objectstack-ai#35890 _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuSuWjKV41568rAPVdLLNa2U)_ repo:objectstack#1 · os-sales · session_01L6bhgUZTwDqtEFzNFCVTri Part of epic objectstack-ai#35590 (record page redo). One PR for the card. Clause-②: yes (widening): `RecordPageColumns` (exported from `@object-ui/plugin-detail`) gains the optional props `fullPage`, `detailsWidth`, `onDetailsWidthChange` and `onShownTabChange`, and `onEnlargeRelated` an optional second argument `{ replace?: boolean }`. `rightColumn` and `rail` stay on the props as `@deprecated` no-ops, so no caller breaks. New exports: `RECORD_PAGE_DETAILS_WIDTH`, `RECORD_PAGE_PIN_MIN_WIDTH`, `recordPagePinsDetails`; `recordPageTierHasRightColumn` stays exported and is now `@deprecated`. `@object-ui/i18n`: two new keys in every pack (`detail.approvalPendingStep`, `detail.detailsColumnResize`), and `detail.recordTabOverview` changes its text (概览 / Overview → 详情 / Details); every key the retired rail read stays in every pack, unread. The `RecordSummaryRail` module was internal (never exported from the package entry) and is deleted. Metadata-protocol: none ## 维护者速读 - 记录整页够宽时(放得下左 320 + 间隔 24 + 右 400),字段固定在左栏,其他页签(子表、附件、审批、动态)在右边,默认打开第一个;左栏默认 400,空间紧时自动让到 320,可以拖动,宽度按对象记在浏览器里。 - 右侧摘要栏(审批 / 附件 / 最近动态 / 其他相关卡片)在所有宽度都去掉了,⊟ 按钮和 ⌘⇧, 快捷键一起去掉;第一个页签改名「详情」。 - 「审批中」标签在有当前步骤时显示「审批中 · 当前步骤」(审批人自己仍是「待你审批」)。 - 抽屉、手机、窄窗口不分栏,照旧是一栏页签;它们也会看到两处变化:右侧摘要栏没了,第一个页签叫「详情」。手写的记录页不受影响;字段里放了子表的页面(objectstack-ai#35889)不分栏。 - 隐藏了的子表仍能从「更多」或带 `?related=` 的链接打开。 - 实测:1440 宽、左侧导航展开、评论栏打开时,内容只有 708,不够 744,页面退回一栏页签(打开的页签保持不变)。1280 和 1366 评论栏打开仍分栏。Sales 已接受这个代价,收起导航即恢复三栏(objectstack-ai#35890 note 7069882604)。等 objectstack-ai#36112 改成 1280 起默认展开导航后,1280 和 1366 展开导航再打开评论栏也会退回页签,收起导航即恢复三栏。 ## What changes **When the page pins.** Ruling on the card ([comment 7064066204](objectstack-ai#35890 (comment)), option 0 of the reviewed decision card): a full page pins its details when its content fits **left 320 + gap 24 + right 400** (744 content px). The left column is 400 px (or the reader's dragged width) and narrows by itself to 320 px to leave the tabs 400 px; narrower than that, the page falls back to the tab row. This replaces the card's line 「沿用出现右栏的宽度」. Pinning is measured on the page content's own width (`clientWidth`, ResizeObserver), never on the window, so the comment panel of objectstack-ai#36075, which gives way at window widths of 1280 and up, narrows the page and the page re-decides by itself. What that means on common windows, **measured** in the console against the CRM example (`measure-l1c.json`; the page frame is the window minus the nav minus the host's 48 px margin, and the content is the frame minus its 48 px padding; at 1280 and 1366 the nav is collapsed, at 1440 it is open at 256 px; comment panel 380 px, `beside`): | Window | Frame, panel closed | Panel closed | Frame, panel open | Panel open | |---|---|---|---|---| | 1280 | 1232 | pinned, details 400 / tabs 760 | 852 | pinned, details 380 / tabs 400 | | 1366 | 1318 | pinned, details 400 / tabs 846 | 938 | pinned, details 400 / tabs 466 | | 1440 | 1136 | pinned, details 400 / tabs 664 | 756 (content 708) | **not pinned**: the tab row, with 「详情」 first and the shown list kept | The earlier 1440 row (record area 1184, tabs 412) assumed no host margin; the measured frame is 48 px narrower, so with the nav open and the panel open the content is 708, under 744, and the page uses the tab row. Windows of about 1416 to 1475 with the nav open and the panel open land here. This follows the ruled threshold as written, and Sales accepted it: with the sidebar expanded, opening the comment panel can return the fields to the tab row, and collapsing the sidebar restores three columns ([note 7069882604](objectstack-ai#35890 (comment)), with objectstack-ai#36112 F1). These windows hold for today's sidebar threshold (expanded from 1416). Once objectstack-ai#36112 PR B makes the sidebar start expanded from 1280 (ruling 7069868269), the band with the sidebar expanded becomes about 1280 to 1475, so 1280 and 1366 also go to the tab row when the panel opens; collapsing the sidebar still restores three columns. The 1416 comment in `recordPageColumns.ts` is updated by objectstack-ai#36112 PR B. **Layout, pinned.** `[details 320–400+ px] [24 px separator] [tabs minmax(0,1fr)]`. The details render at one field column (`DetailsColumnCapContext` = 1). The tab row moves into the right column and drops 「详情」; the open tab is the address's `?related=` when it names one, otherwise the first tab (implied, never written). Each column scrolls on its own when the page has a scroll parent with room (`usePinnedHeight`). Esc does not close a tab while pinned (there is no "back to details" to go to). **The separator.** `role="separator"`, `aria-orientation="vertical"`, `aria-valuenow/min/max`; pointer drag previews and commits on release; ←/→ move 16 px, Home/End go to the ends. The width is the `record.columns.details-width` workspace preference (per object, `{ width, v: 1 }`), which replaces the retired `record.columns.related` (⊟) preference. **Narrowing out.** When a pinned page narrows below the threshold on the same record and the address names no tab, the implied tab is written to the address with `replace`, so the reader stays on what they were looking at and Back history does not grow. **Not pinned.** A page with no other tab draws the details alone, with no tab row. A page whose details hold a related table among the fields (objectstack-ai#35889) does not pin. Drawer, split pane and phone (`fullPage` false or too narrow) keep the one-column tab row and never pin. What reaches them: the rail is gone there too, and the first tab reads 「详情」. Measured: drawer at 1440 (details 622 across, 「详情」 shown) and phone at 375 (details 327 across, 「详情」 shown), both with no rail. **Rail retired.** `RecordSummaryRail` is deleted with the ⊟ panel toggle, its `⌘⇧,` shortcut and the `record.columns.related` preference; the attachment-count hook and approval-pending test move to `recordTabBadges.ts`. The `PanelToggles` plumbing stays (empty) for objectstack-ai#36075. The hidden-list foot line under the rail goes too; hidden lists and the reset are in the tab row's 「更多」 menu. The "default order changed" hint stays, under the tab row. A hidden list still opens, from its 「更多」 item or from `?related=` naming it (`requested` accepts ids in `resolved.hidden`; test red without the fix). **Other card items.** The overview tab is labelled 「详情」 in every locale (`detail.recordTabOverview` takes the `detail.details` word). The in-approval tag reads `In approval · {{step}}` (`detail.approvalPendingStep`, 11 locales) for non-approvers when the request names a step, using the approvals panel's own `stepDisplayText`. **Host.** `RecordDetailView` passes `fullPage={!embedded}`, the width preference and `onShownTabChange`. When the shown tab is the 动态 timeline (implied or chosen), the full activity window is read, as it was when the tab was chosen. Feed reads at open are unchanged (the page payload still asks discussion + activity top 5 for the tab's count), to stay out of objectstack-ai#36075's way. Merged with `main` after objectstack-ai#36114 and objectstack-ai#36178 (the comment panel, PRs 1 and 2), keeping both sides: the rail's 最近动态 card that objectstack-ai#36114's `RecordCommentsInPanelContext` note spoke of no longer exists. `overlap-check.mjs` at push (`241f4b21`): clean against `main`, objectstack-ai#36187, objectstack-ai#36123 and objectstack-ai#35923; it conflicts with objectstack-ai#36183 (objectstack-ai#36047 slice 2, the text-size sweep) in `RecordSummaryRail.tsx` (deleted here), the e2e spec (renamed here) and two plugin-detail tests. Whichever lands second resolves it; objectstack-ai#36183 re-runs its mapping script on `main`. **Docs.** `content/docs/ui/pages.mdx` (Record pages › The synthesized default) now describes the tab row, the pinned layout and when related rows are read, instead of the right column. ## Acceptance notes (card checklist) - Wide full page: fields left, other tabs right, first of them open. ✔ (`RecordPageColumns.test.tsx` pinned block; `recordPageTiers-26678` at 1440 / 1100 / 800 px) - No other tab: fields fill the page, no tab row. ✔ - Right summary cards removed at all widths. ✔ (every tier asserts no `[data-record-summary-card]`) - Left column 400, draggable, remembered per person per object. ✔ (keyboard + pointer tests; host test writes and re-reads the preference). Kept in the browser's workspace preference store, like the other record-page preferences. - First tab 「详情」. ✔ - 「审批中 · 当前步骤」. ✔ (`approvalDeclaredActions` test, machine name and label) - Body-table page does not pin. ✔ - Narrowing keeps the tab (URL replace). ✔ (measured: 1440 with the panel opened wrote `?related=crm_activity.account`) - A hidden list opens from 「更多」 and from `?related=`. ✔ (`readerArrangement-35595`, red without the fix) - Drawer / phone never pin and keep the one-column tab row; what reaches them is the rail's removal and the 「详情」 name. Hand-written pages untouched. ✔ - Deliberate drops: the ⊟ control and `⌘⇧,`; the hidden-list foot line (its job is in 「更多」); the rail's three-row previews of each related list (a list now reads its rows when its tab opens). ## Why Sales asked for the record page they remembered: on a wide full page, the main form on the left and the child tables in tabs on the right (objectstack-ai#35890, under epic objectstack-ai#35590). The width rule was put to Sales after a decision review because the card's 760 px reading and the 1120 px reading both broke the comment panel layout on common laptops; option 0 keeps three columns (fields | tabs | comments) on every common laptop, which is the figure Sales approved on objectstack-ai#36075. ## Verification - Local, on the merged head `079c7723` (shared box, under `os-verify-lock`): plugin-detail, i18n, app-shell Record*, recordCommentsPanel, relatedListConditions and workspacePreference: 647 files / 6,742 tests pass; app-shell type-check (src and tests) clean. On `241f4b21`: plugin-detail + i18n 509 files / 5,677 tests pass, both type-checks clean, `record-tabs-35595.spec.ts` 6/6 locally. Earlier, on `fbe6e33d`: `vitest run packages/plugin-detail packages/i18n`: 500 files / 5,598 tests pass (31 skipped, existing). `vitest run packages/app-shell/src/views/Record packages/app-shell/src/utils/workspacePreference`: 133 files / 1,005 tests pass. The whole app-shell suite did not fit the 28-minute local window; CI is the full reading. - `type-check` (src and tests) clean for plugin-detail, i18n and app-shell; ESLint `--quiet` on every changed file: 0 errors; `check:test-source-alias` OK. - Rewritten / converted tests: `RecordPageColumns.test.tsx` (new pinned describe: threshold 744, auto-narrow 824→400 / 800→376 / 744→320 / 743→not pinned, drag, keyboard, drawer never pins, body table, narrowing writes the implied tab with replace, `onShownTabChange`), `RecordDetailView.recordPageTiers-26678` (host at 1440 / 1100 / 800 / 720 / 390, embedded, `?related=timeline` pinned and not, width preference round-trip), `workspacePreference.test.ts` (details-width codec). Deleted with the code they pinned: `RecordPageColumns.switches-27052`, `RecordDetailView.panelToggles-27052`. - Tests that read the rail now open the 动态 tab or assert its absence: `recordOpenWaves-13010`, `recordOpenOneRequest-28470`, `timelineCount-28737`, `harness › relatedCountsFirst-27056`, `accessibleNames-12625`, `topBar-27524`, `phoneFace-27058`, `feedLoadFailure-29188`. - Screenshots (1280 / 1440 / 1920, light and dark, with and without other tabs) are attached in the project thread, plus the comment panel open at 1280 / 1366 / 1440, the drawer at 1440 and the phone at 375; the measured numbers are in the evidence comment. - e2e: `ui/e2e/record-tabs-35595.spec.ts` (renamed from `record-tabs-rail-35595.spec.ts`). ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (No `packages/spec` change.) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes (changed files, `--quiet`). - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset (`.changeset/35890-record-details-pinned.md`), and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: 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_01L6bhgUZTwDqtEFzNFCVTri)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgUZTwDqtEFzNFCVTri <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgUZTwDqtEFzNFCVTri --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Sales · project thread
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
维护者速读
What changes
The mapping (run as a script, re-run after every merge of
main; conflicts are resolved by takingmainand re-running it, never by hand):text-[13px]text-sm(14)EDITOR_DENSITY_CLASSand the cell input layer in@object-ui/components)text-[13px]text-xs(12)text-muted-foreground,uppercase,tabular-numsortracking-wide, or it is a column header: labels, headers, counts, times, empty-state hintstext-[12.5px],text-[15px]text-sm(14)text-[9px]…text-[11.5px]text-xs(12)font-semibold,font-boldfont-medium(500)text-lgor largerKept 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 (
isMobilerows,Phone*files, the phone search keyword, the phone sidebar app name), authored content typography (markdownstrongand headings, SDUIh1–h6presets), 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 underpages/settingsbut is drawn on the console home, so it is swept.Shared parts beyond the class sweep
DropdownMenuLabel(@object-ui/components, Shadcn-synced) isfont-mediuminstead offont-semibold, through a declared local patchdropdown-menu-label-medium-weightinui/scripts/shadcn-local-patches.mjs, anchored on the already vendoreddropdown-menu.registry.txt.shadcn-components.jsonnames it.ContextMenuLabel,MenubarLabelandSelectLabelare not patched: no console runtime page renders them./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.
¹ 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 ofcomponents,fields,plugin-grid,plugin-list,plugin-detail,plugin-kanban,plugin-form,app-shellandconsole, plusui/scripts/__tests__, all pass; eslint on every changed file: 0 errors. After the second merge withmain(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:
s2map.mjs: the mapping: `node s2map.mjs [--apply] [--table=out.tsv]`s2-files.sh: the file list: `s2-files.sh cat.sh > files.txt`cat.sh: which paths are swepts2-overrides.tsv: the named exceptions and hand-picked sizes, anchored by line content so they survive a `main` mergeFollow-ups owed
mainafter this merges. PRs that land after this one may bring newtext-[13px],font-semiboldorfont-boldinto the swept areas. The re-run belongs to a new session; anything it finds becomes a small follow-up PR.Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintpasses (eslint on every changed file locally; CI's Lint UI is the full reading).main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgUUrNKCZdu79ooP61V