Repository navigation
feat(record-page): the field area is one list in the side preview, on a phone and in the pinned left column (#36147) - #36234
Conversation
… a phone and in the pinned left column The default record page's field area (DetailSection's frameless face) draws one field a row with a hairline between rows, under a column cap of 1 everywhere except a full page whose details are its only face. The phone's grouped-inset face is gone there. A group's chevron sits at the title row's right end (down folded, up open). A referenced record is a chip with the object's colour tile. A single click on an editable value edits it; the pencil stays only as the keyboard's way in, and a read-only value takes no click. Every empty field folds into the list's one last row, remembered per object. The record's provenance is the last group, 「系统信息」, folded, replacing the meta line on this page. Claude-Session: https://claude.ai/code/session_01L6bhgWmyKFrcthV9y5wUiP Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgVdP6nEyftgTJapu6J 维护者速读字段区改成一列、三处共用、关联记录变色块、空字段收到最后一行、「系统信息」替代底部那行小字、单击可编辑字段直接改,这些代码都按卡和裁决做了,写法干净。但这一轮还不能过,原因有四个:① 一个手机触控尺寸的自动化测试会因为铅笔按钮的写法变了而直接报错,CI 的 E2E 会红;② 裁决说手机上不显示复制图标,现在手机上点一下只读值,复制图标还会冒出来;③ 卡上要求的几张截图还缺(深色、预览拉宽到 900、分组折叠、空字段那一行),而且要贴到 PR 上;④ 只有对象声明了「可折叠」的分组才有右侧箭头,CRM 的分组默认不可折叠所以看不到箭头,这个理解要写进 PR 正文。另有一件要席位安排:裁决要求在真手机上确认长按能选中文字,线程没有真机。 席位核对 — REWORK (L1-d) · repo:objectstack#1 · head
|
…, and its pencil is named for a click The phone-target spec reads the pencil classes from module constants and pins that the field list's pencil takes no room until a keyboard focuses it. Tests that count pencils by name read the click name on the field list. Claude-Session: https://claude.ai/code/session_01L6bhgWmyKFrcthV9y5wUiP Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgWmyKFrcthV9y5wUiP Browser evidence for #36147, the L1-d rework (M3, M4) at Rig: examples/app-crm and examples/app-showcase ( Before → after (light; before = main @48c732c4's sources in the same tree):
M4 (light and dark, same numbers in both):
The drawer dragged to 900 stays one column, as the card's first acceptance line asks. M3, a group the object declares foldable (showcase Behaviour, desktop 1440 and iPhone 12 emulation: one click or tap on 金额 opens its editor; a click or tap on the read-only 距成交天数 opens nothing; the 客户 chip's The PNGs are not attached here. This session has no way to upload an image to GitHub (no browser session, and the write relay carries text only), so the shots stay in the project folder, Generated by Claude Code |
Claude-Session: https://claude.ai/code/session_01L6bhgWmyKFrcthV9y5wUiP Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgVdP6nEyftgTJapu6J 维护者速读上次退回的四处都改好了:手机触控尺寸的自动化测试改成读新写法,不会再红;手机上点只读值不再冒出复制图标;读屏念的提示从「双击编辑」改成「点击编辑」;正文写明了只有对象声明可折叠的分组才有右侧箭头。深色、浅色截图都补了,包括预览拉宽到 900 仍是一列、空字段行展开收起、系统信息展开。截图因为工具限制没能贴到 GitHub,放在项目文件夹里,PR 上贴的是逐张的数字表。 席位核对 — ACCEPT (L1-d, delta) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgVdP6nEyftgTJapu6J 维护者速读只多了一行:繁体中文的「点击编辑」改用生成器的写法「點選編輯」,修一个文字一致性测试。结论不变:通过。 席位核对 — ACCEPT (L1-d, delta) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-22T03:52Z. The brief handed to the isolated declaration-face reviewer for PR #36234 ( Contract review brief — PR #36234 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: Read at 2026-11-22T03:58:14Z. Inputs: card #36147 (body, the seat claim 7066162109, the maintainer ruling 7066516044 and every other comment), epic #35590, PR #36136, #36012 and #36042 (bodies), PR #36234 (body, file list, the L1-d rework 7073339471, the delta accepts 7073569893 and 7073583003, the evidence comment 7073553216), the net diff ① Derived judgmentsPublic surface and accept sets:
The behaviour changes, measured against the card and ruling 7066516044:
Findings:
② Semver levelClause-②: yes (widening)
③ Boundary flags
Implemented-by: VERDICT: FAIL |
… with other tabs Claude-Session: https://claude.ai/code/session_01L6bhgWmyKFrcthV9y5wUiP Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-22T04:24Z. Delta brief for the declaration-face reviewer on PR #36234 ( |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: Delta review, read at 2026-11-22T04:25:46Z. It runs from
The check-runs on this head are 45 success and 13 skipped; none failed or is pending. ① Derived judgmentsThe touch-screen sentence now reads: "For a mouse or a keyboard its copy icon, shown on hover or keyboard focus, stays; a touch screen shows none, and the value is selected by a long press."
The one-column bullet now names "a desktop full page that has other tabs but is not pinned (an opportunity's 详情 tab goes from three columns to one)".
The two nits below still stand. Neither affects correctness or the contract.
Everything else in round 1's ① is unchanged, because the code did not move:
② Semver levelClause-②: yes (widening)
③ Boundary flagsThe round-1 escalations stay with the seat. This delta does not change any of them, and none of them blocks this record:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Seat landing · 2026-11-22T04:27Z · #36147: the synthesized record page's field area is one list, one field a row, in the drawer, the split pane, the phone's 详情 tab, the wide page's pinned left column and an unpinned full page that has other tabs. Group titles are on the left with the fold arrow at the right end. A lookup is an object-coloured chip. All empty fields fold into one last row, remembered per object. 系统信息 is the last group, folded, and replaces the one-line meta footer on this page. A single click edits an editable value, with no pencil and no double click. A read-only value takes no click: a mouse or keyboard keeps the copy icon, a touch screen shows none and selects by long press (ruling 7066516044, option A). Authored record pages and other DetailViews are unchanged. Reviews:
Gates on this head (
The seat readies this PR and arms auto-merge in the same step. The PR carries |
…stack-ai#36279) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XTRdLmK9YYgMSCJ7NH2PuUY)_ Fixes objectstack-ai#36078 Clause-②: no Metadata-protocol: none ## 维护者速读 - 看记录页的用户:标题旁的摘要小标签里,百分比字段设成「只显示数字」时,以前仍画进度条,改后只显示百分数;其他情况不变。 - 为什么做:让记录页和列表对同一个百分比字段显示一致,解决胜率、利润率这类比率被误读成进度的问题。 - 出错会怎样:最坏是摘要小标签多画或少画一条进度条,数值文字不受影响,可直接撤回本次改动。 - 要你做什么:无。 ## What changes The record header's `summaryFields` chip now honours a percent field's `percentDisplay` (the `percentDisplay` describe in `packages/spec/src/data/field.zod.ts`: `plain` = "the percentage as text alone, with no bar"). In `DetailView`'s chip percent arm, the bar's fill value is computed only when the merged field bag (view entry over object schema, the same `percentField` bag the arm already reads `scale` and `max` from) does not say `plain`; with `plain`, the chip falls through to the plain Badge branch, so the text (`formatPercent`, unchanged) and the accessible name (`Label: 40%`, unchanged) stay and only the bar goes. Because the arm is chosen by `armType`, a `formula` whose `returnType` is `percent` takes the same path and its own `percentDisplay` counts too. The bar-or-not rule is the literal `percentDisplay === 'plain'` test, inline in `PercentCellRenderer` (`@object-ui/fields`) and not exported, so this is a local read of the one key, not a second copy of an exported helper and not a published-export change. No `packages/spec` change. Changeset: `@object-ui/plugin-detail` patch. Read first (by risk): 1. `ui/packages/plugin-detail/src/DetailView.tsx`, the hunk guarding `summaryChipPercentPoints` with `percentField.percentDisplay !== 'plain'`. 2. `ui/packages/plugin-detail/src/__tests__/summaryChip.percentPlain-36078.test.tsx`. Two-minute check: `pnpm --dir ui exec vitest run packages/plugin-detail/src/__tests__/summaryChip.percentPlain-36078.test.tsx` (spec, formula and client built) prints 7 passed. ## Tests New `summaryChip.percentPlain-36078.test.tsx` (7 cases), stored value `0.4`: - percent field `plain` reads `40%`, accessible name `Probability: 40%`, no bar track; - percent formula (`returnType: 'percent'`) `plain`: same; - `plain` declared on the object schema only (no view entry), judged after an arrival probe: same; - CONTROL: percent field with no `percentDisplay`, and with `bar`, draws the bar filled to `40%`; - CONTROL: percent formula with no `percentDisplay`, and with `bar`, draws the bar; - CONTROL: a view entry `bar` over an object schema `plain` draws the bar (precedence). ## Acceptance notes - Directions on the base tree were predicted before the first run and the ablation matched them: the three `plain` cases red, the four controls green. - Overlap: `overlap-check.mjs` names open PR objectstack-ai#36234 as sharing `DetailView.tsx`; it merges cleanly with this branch. - No out-of-scope findings. ## Verification All readings at head `4bf99c41`. <details><summary>Targeted tests (under the shared verify lock)</summary> - `pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-detail/src/__tests__/summaryChip`: Test Files 10 passed, 1 skipped (11); Tests 106 passed, 8 skipped. The existing `summaryChip*` pins stay green. - `pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-detail/src/__tests__/percentDisplayRelay-28255.test.tsx packages/plugin-grid/src/__tests__/percentAbsentScale.fiveFaces-9843.test.tsx packages/plugin-detail/src/__tests__/DetailView`: Test Files 25 passed (25); Tests 170 passed (170). - `pnpm --filter @object-ui/plugin-detail run type-check`: exit 0 (after building the `@object-ui/plugin-detail^...` closure); `tsconfig.test.json --listFilesOnly` includes the new test file. - The full `@object-ui/plugin-detail` suite (405 test files) is declared to CI's `Test UI`, not run locally. </details> <details><summary>Ablation (one, on the committed fix)</summary> `node scripts/ablation-replace.mjs` replaced the guard `if (percentField.percentDisplay !== 'plain') {` with an always-true guard: anchor 1 to 0, blob `c62b65de4f71` to `915375fad2c8`. The new file then read 3 failed, 4 passed: exactly the three `plain` cases red, all four controls green. Restore: blob after restore equals HEAD (`c62b65de4f71`), `git diff HEAD` empty, marker count 0. The test imports `../DetailView` from source, so no build sits between the mutation and the run. </details> <details><summary>Derived gates</summary> `node scripts/pm/dispatch-gates.mjs --commands` derived 38 commands for this diff; 37 ran locally with exit 0; `pnpm check:type-check-debt` is NOT MEASURED (its closure build never acquired the shared verify lock, exit 3 PREREQUISITE NOT MET) and is CI's `Lint & Repo Gates`. `--ran` reconciliation: 38 derived, 37 run, 1 NOT-MEASURED, 0 UNRUN. Also `pnpm --dir ui run check:new-line-citations`: 0 new citations. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5oLLK7uoxp33riiBJL)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
…sole build (objectstack-ai#36288) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X6okWxYPWAsooBsJoAhnT1u)_ Fixes objectstack-ai#35280 Clause-②: no Metadata-protocol: none ## 维护者速读 - 控制台用户打开「帮助 → 关于」时,先看到 ObjectStack 版本号(如 18.5.0),再看到原有的控制台构建号;以前只有构建号。 - 属于控制台体验修缮:管理员和支持人员查版本、做升级核对时不必再去调接口。 - 若读取失败,版本一行会用文字说明「未知版本」,不会留空;改动只在对话框内,可直接撤回。 - 无。 ## What changes Help → About now opens on an **ObjectStack version** row, then the existing **Console build** row. - The version is the `version` the discovery document answers, shown verbatim (an operator's `OS_RUNTIME_VERSION` stamp included, per ruling A on objectstack-ai#34774). It is read through the shell's adapter (`useAdapter().getDiscovery()`), which returns the document the adapter's `connect()` already holds from the console's one shared discovery read (`getSharedDiscovery`). Opening the dialog sends no new request, and no second version source is added. - While the read is in flight the row shows `common.loading`. When discovery cannot be read (the adapter answers `null`) or names no version, the row says so in words: "Unknown version (the server did not report one)". The field is never empty. - New keys `help.aboutVersion` and `help.aboutVersionUnknown` in all eleven packs (zh-Hant regenerated with `gen:zh-hant`). `help.aboutDescription` now names both rows. - `AboutDialog.tsx`'s module doc no longer says the shell has no request that reads the runtime version. - The bug-report and feature-request templates' Version hint now points at "the ObjectStack version shown under About". - No server, `packages/spec` or discovery-shape change. No props or exports change. Files to read first, by risk: 1. `ui/packages/app-shell/src/layout/AboutDialog.tsx`: the `useRuntimeVersion` hook (the read, the `undefined`/`null`/string states) and the two `dl` rows. 2. `ui/packages/app-shell/src/layout/__tests__/AppHeader.aboutBuild-12970.test.tsx`: the new top-level describe. 3. `ui/packages/i18n/src/locales/en.ts`: the three `help.about*` lines (the other ten packs mirror them). Two-minute check: run `pnpm --dir ui exec vitest run packages/app-shell/src/layout/__tests__/AppHeader.aboutBuild-12970.test.tsx`. You should see 15 tests pass. Or open Help → About in a running console: the first row is "ObjectStack version" with the same value as `GET /api/v1/discovery`, and "Console build" is the second row. ## Tests The new pins are a top-level describe in the existing About harness, `AppHeader.aboutBuild-12970.test.tsx`. They are not in a sibling file because AGENTS.md puts a new pin into a component's existing shared harness (ruling record 6583487846). The new cases check: - Discovery answering `18.5.0`, and a stamped `18.6.0-rc.2+deploy.41`, fills the first row with exactly that text. The `dt` order is version then build, and the build row still shows its sha. - Discovery that cannot be read (`null`), that names no version, or that names an empty version shows `help.aboutVersionUnknown`, never an empty field. - While the read is pending the row shows `common.loading`. <details><summary>Local runs at head 3298438, under the shared verify lock</summary> - The pin file: Test Files 1 passed (1), Tests 15 passed (15). - `pnpm --dir ui exec vitest run packages/i18n/`: Test Files 105 passed (105), Tests 1962 passed, 13 skipped. This covers the key-parity suites. - `pnpm --filter @object-ui/i18n type-check` exit 0. `pnpm --filter @object-ui/app-shell type-check` exit 0 (both `tsc` programs, including `tsconfig.test.json`). </details> <details><summary>Ablation, one mutation per leg, each landed and restored on disk by scripts/ablation-replace.mjs</summary> Each mutation was restored and checked: blob equals HEAD 0aabb59 and `git diff HEAD` is empty. | Mutation | Pin file result | |---|---| | read: `setVersion(discoveryVersion(discovery))` becomes `setVersion(null)` | 2 failed, 13 passed | | fallback: `help.aboutVersionUnknown` becomes `common.loading` | 3 failed, 12 passed | | loading: loading text becomes `null` | 1 failed, 14 passed | | order: build row moved above the version row | 2 failed, 13 passed | </details> ## Acceptance notes - The discovery read reuses the adapter the help menu already holds. Nothing in the shell kept the parsed discovery document in React state: `useDiscovery` in `@object-ui/react` reads `SchemaRendererContext`, which the console header does not sit under. `adapter.getDiscovery()` is the existing holder. - `.github/ISSUE_TEMPLATE/**` is not a governed surface: it has no row in `GOVERNED_SURFACES`, which holds only `.github/workflows/**`. The wording change is in this PR. - No `content/docs/frontend` page or package README names the About dialog, so no docs page changes. - Not measured locally: - `pnpm check:type-check-debt`: exit 3, PREREQUISITE NOT MET. Its closure build never got the verify lock (queue-timeout). - `pnpm --dir ui exec vitest run scripts/`: lock queue-timeout, exit 99. This diff touches no `ui/scripts/` file. - CI's Test UI and the type-check lanes run both of these. ## Verification <details><summary>Local gate subset (derived by dispatch-gates --commands from this diff)</summary> - 46 of the 48 derived commands, plus `pnpm check:changeset-fixed`, exited 0. This includes `check:adr-0087-registration --base origin/main`, `check-empty-changeset`, `check-changeset-no-major`, `check:nul-bytes`, `check:cross-package-test-inputs`, `check:published-files`, `check:type-check-coverage` and `check:undeclared-dep-imports`. - Two commands were not measured, both listed above. - `ui` `check:new-line-citations`: 0 new citations. - `overlap-check`: VERDICT clean (main and objectstack-ai#36234 / objectstack-ai#36223, which share the locale files, merge cleanly). </details> Session: session_01FEkQ5oK4fFfnLADcipbEeT · dispatched by repo:objectstack#4 area a4-H. --------- Co-authored-by: Claude <noreply@anthropic.com>
…the expand/collapse button is the one control, Recent lists this app (objectstack-ai#36112) (objectstack-ai#36297) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X6okWxYPWAsooBsJoAhnT1u)_ repo:objectstack#4 · os-project-manager · session_01FEkQ5oK4fFfnLADcipbEeT Fixes objectstack-ai#36112 This is PR B of two for the card: the sidebar's docking model. PR A (objectstack-ai#36187) moved everything off the desktop top bar. Clause-②: no Metadata-protocol: none Seat claim: [objectstack-ai#36112 claim](objectstack-ai#36112 (comment)). Ruling: [F1, 7069868269](objectstack-ai#36112 (comment)). ## 维护者速读 - 电脑上打开应用:窗口 1280 宽及以上侧边栏默认展开,更窄默认收起;收起和展开按钮是唯一开关,浏览器按宽窄两边各自记住;「保持侧边栏展开」开关去掉;侧边栏的「最近使用」只列当前应用里的;手机不变。 - 「去掉顶栏、侧栏常驻」这张卡的后一半,按你 11 月 21 日的裁定(1280 起默认展开,更窄才收起)收尾,合并后这张卡关闭。 - 出错时用户看到的是侧边栏开始时的展开或收起不对,点一下按钮就能改回,选择会被记住;只改界面,不动数据,可以直接撤回;以前选过「保持展开」的人在窄窗口上照旧是展开的。 - 无 ## Upgrade change and accepted cost - **Upgrade change (stated as the ruling asks):** on 1280–1415 px windows, a user who never set 「保持展开」 now starts with the sidebar expanded (it folded before), unless they had collapsed it on a wide window. - **Accepted cost (stated on the card):** on a 1280 px window the list beside an open record drawer is 304 px wide (560 today), and on 1280–1415 px with the sidebar expanded, opening the comment panel returns the record page's fields to the tab row; collapsing the sidebar restores the three columns. The 304 / 560 figures are pinned in `consoleSidebarRail.width-27593.test.tsx` against the primitive's sidebar width and plugin-view's drawer width. ## What changes `@object-ui/app-shell` - `layout/consoleSidebarRail.ts` - `CONSOLE_SIDEBAR_RAIL_BELOW_WIDTH` is `1280`, one constant, no longer derived (`RECORD_DRAWER_MIN_CONTENT_WIDTH` removed; the drawer and list constants stay, to state the accepted cost). - The narrow-window choice is `CONSOLE_SIDEBAR_NARROW_OPEN_PREFERENCE` (was `CONSOLE_SIDEBAR_KEEP_OPEN_PREFERENCE`), stored under the same name `console.sidebar.keepOpen`, so an existing `on` reads as "expanded on narrow" with no migration. The wide-window choice keeps its key (`os:console-sidebar:wide-open`). Wide and narrow stay stored separately. - New `startingSidebarOpen(wide)`: the reader's choice for that side, else expanded on wide and collapsed on narrow. `primeConsoleSidebarOpen` writes it into the primitive's cookie before the first frame; `seedWideWindowOpen` is gone (with an explicit wide default it has nothing to seed). - `useConsoleSidebarRail` answers `narrowOpen` / `setNarrowOpen` instead of `keepOpen` / `setKeepOpen`; `railMode` is "narrow and collapsed by the narrow choice". - `useConsoleSidebarRailPanel`: `keepOpenControl`, `dock` / `undock` and the `'dock'` closer are removed. While the sidebar is hidden, a press on a sidebar trigger (the page header's expand button, or the corner fallback) now docks it: on a narrow window the capture phase sets the narrow choice to expanded before the provider's toggle opens it, so the open is not a float. ⌘B still floats the menu over a collapsed sidebar (unchanged), and so does the left edge. - `hooks/useResponsiveSidebar.ts`: gives a window its starting state on load and when it crosses 1280 px or the phone breakpoint; keeps an open/close on a wide window as the wide choice (only on a change, so a default is never recorded as a choice), and a close of the docked sidebar on a narrow window as the narrow choice; a narrow choice turned collapsed (this tab or another) collapses an open sidebar. Public signature unchanged. - `layout/UnifiedSidebar.tsx`: the 「保持侧边栏展开」 footer row is gone (the foot holds only the account menu). From 768 px up the Recent group lists only entries whose address names the current app (resolved by `matchAppBySegment`, as Home resolves a recent row's app); the phone drawer is unchanged. `@object-ui/i18n`: `sidebar.keepOpen` removed from all 11 packs (zh-Hant regenerated with `gen:zh-hant`). Text that named 1416 (the ruling's list, plus one more found by grep): - `ui/packages/plugin-detail/src/synth/recordPageColumns.ts` comment (also corrected: it still described the retired 48 px icon rail). Comment only, no bump for plugin-detail. - `docs/qa/platform-checklist/areas/platform-core.json` `platform-core.builtin-apps-nav-render` steps[2], revision 17 → 18 with a history row. - `examples/app-showcase/e2e/detail-shapes.spec.ts`: its comment cited 1416 and the case docked the sidebar with the retired "Keep sidebar open"; it now docks with the page header's expand button. ## Tests New (card-named): - `layout/__tests__/consoleSidebarRail.docking-36112.test.tsx`: threshold 1280; first frame at 1279 collapsed and 1280 expanded whatever the cookie, 768 / 1920 edges, phone keeps the cookie; the mounted layout at 1279 → 1280; a stored choice beats the default on each side and the two sides stay apart; a raw legacy `os:pref:console.sidebar.keepOpen` record `{"value":"on","v":1}` reads as expanded on a narrow window. - `layout/__tests__/UnifiedSidebar.recentThisApp-36112.test.tsx`: Recent lists only this app's entries (other app, Setup, Studio item left out), its five are this app's newest five, no group when this app has none, and the phone drawer still lists every app's. Rewritten (they encoded 1416 or the keep-open switch): - `hooks/__tests__/useResponsiveSidebar.test.tsx`: defaults at 1279 / 1280, no choice recorded by a default, each side's state across the threshold, wide collapse kept, narrow close kept as the narrow choice, a narrow choice turned collapsed elsewhere, phone untouched. - `layout/__tests__/ConsoleLayout.sidebarFirstFrame-28077.test.tsx`: 1280 → 1279 for the collapsed first frame; new cases for 1280 expanded against a collapsed cookie, a wide collapse, and a narrow expand. - `layout/__tests__/consoleSidebarRail.width-27593.test.tsx`: no longer pins the derived 1416; pins 1280, the 256 px width (F2) and the 304 / 560 cost. - `layout/__tests__/UnifiedSidebar.hiddenCollapse-35062.test.tsx`: narrow width 1280 → 1024; the trigger-floats cases now float with ⌘B; the "Keep sidebar open" cases are replaced by "the expand button docks (wide and narrow), a reload keeps it, the collapse button takes it back", the legacy keep-open read, and "the expand button docks even when React renders between the capture phase and the trigger's handler" (the old render-between case, now for the dock). - `layout/__tests__/UnifiedSidebar.railOverlay-27593.test.tsx`: 1280 / 1360 → 1024; floats with ⌘B; the three "Keep sidebar open" cases and the Esc-on-keep-open case are replaced by the expand-button dock and the narrow/wide choices kept apart (objectstack#28079). - `examples/app-showcase/e2e/detail-shapes.spec.ts` (see above). Retired: none as a file. The removed cases are the ones that drove the retired control; each behaviour they pinned that still exists (float, Esc, focus, fold on navigation, choices kept apart) is pinned in the rewritten files above. <details><summary>Local runs (head ce00125)</summary> All at head `ce00125fc`, under the shared verify lock unless marked lock-free. - `pnpm --filter @object-ui/app-shell type-check && pnpm --filter @object-ui/i18n test && vitest run` the seven changed or new app-shell test files: VERDICT command-exit 0; i18n `Test Files 105 passed (105)`, `Tests 1962 passed | 13 skipped`; app-shell `Test Files 7 passed (7)`, `Tests 71 passed (71)`. - Earlier, at `114ccd7a7` (source identical to the head; the last commit adds one import line to a test): `vitest run` app-shell `layout`, `hooks`, `chrome`: `Test Files 279 passed (279)`, `Tests 2217 passed (2217)`. - Derived gate families (`dispatch-gates.mjs`, 65 derived, `--ran` reconciliation: 65 run, 0 unrun): 62 lock-free families re-run at the head, exit 0 each; `check:type-check-debt` exit 0 under the lock; `vitest run scripts/` under `ui/` exit 0 under the lock (the lock-free attempt was SIGKILLed by the box's memory limit, not a red); `check:test-source-alias` red on the first run, fixed by `ce00125fc` and green since. - NOT MEASURED: `check:dual-build-cjs-loads` exit 3, PREREQUISITE NOT MET (needs a full `pnpm build` of 36 framework packages this PR does not touch); CI runs it. - Declared to CI: `test:repo` and the full lint farm. </details> <details><summary>Ablations (one per leg; each mutation committed-first, landed on disk by `scripts/ablation-replace.mjs`, restored to HEAD and proven by blob hash)</summary> Six legs, one lock hold (VERDICT command-exit 0), at head `ce00125fc`. Each leg red, each restored with `git diff HEAD` empty and the file's blob equal to HEAD's. | Leg | Mutation | Suite | Result | |:---|:---|:---|:---| | L1 | threshold 1280 back to 1416 | `consoleSidebarRail.docking-36112` | 4 failed / 8 | | L2 | the narrow choice (legacy keep-open) read always false | `consoleSidebarRail.docking-36112` | 2 failed / 8 | | L3 | the expand press no longer sets the narrow choice | `UnifiedSidebar.hiddenCollapse-35062` | 2 failed / 20 | | L4 | Recent filter removed | `UnifiedSidebar.recentThisApp-36112` | 3 failed / 4 | | L5 | Recent filter applied on the phone too | `UnifiedSidebar.recentThisApp-36112` | 1 failed / 4 | | L6 | a narrow-window close no longer kept | `useResponsiveSidebar` | 1 failed / 7 | The suites import the edited modules by relative path (source), so no build sits between the mutation and the run. </details> ## Acceptance notes Card acceptance, walked against main after PR A (a5a5312) and this branch: | Card acceptance line | Met by | |:---|:---| | Desktop app page: no top bar; sidebar on the left, content beside it, not covered | PR A (no top bar); this PR (docked by default from 1280 px; below it collapsed by default, as ruled) | | Collapse: sidebar disappears, content widens, expand button top-left; left edge slides it out; still collapsed after refresh | PR A (collapse, expand button, edge); this PR (the expand button docks instead of floating; the choice is kept on both sides of 1280) | | App name opens only the app list (search when many) and 「添加应用」; Setup for admins only; switching works | PR A | | Sidebar search works, shortcut works | PR A | | Avatar at the bottom; its menu has switch organization and sign out | PR A | | Bell beside search; panel and count as before | PR A | | Impersonation banner at the content top, exit works; lost-connection notice | PR A | | List, record, dashboard, report, custom page all carry the page-actions group | objectstack-ai#36111 and PR A (always on) | | Phone width unchanged | PR A; this PR leaves the phone drawer's Recent unfiltered and the phone sidebar state untouched | | Setup and Account use the new shell, menus unchanged | PR A | | Onboarding walks through | PR A (the walkthrough component renders nothing on main; no step points at the top bar) | | PR body: before/after desktop screenshots (expanded, collapsed, app menu, banner) and the changed components and rewritten tests | this PR (before/after shots at 1440, 1280 and 1279 (expanded, collapsed, app menu open, the 1279 expand press, and a reload after it), saved with the seat's evidence; the banner was not shot, see Acceptance notes; components and tests above) | | Item 2: 「保持侧边栏展开」 removed | this PR | | Item 5: Recent lists this app's items | this PR | The PR A rows are read from PR A's body and main's code, not re-driven here except where the screenshots show them. Browser evidence (showcase booted on a private port, console served by Vite from this branch; the before set from the same server with the three sidebar files and the English pack swapped back to the merge base, then restored to HEAD and checked by blob hash): - Fresh profile, 1440 px: expanded, before and after. 1280 px: collapsed before, expanded after. - 1279 px: collapsed on load in both. Pressing the expand button: before, the menu floats over the page with the 「Keep sidebar open」 row at its foot, and a reload brings back the collapsed state; after, the sidebar docks beside the page (content reflows), and a reload keeps it docked. - App menu open at 1440: same in both (Showcase, Setup, Add app). - The impersonation banner was not shot: it needs a second user to impersonate on a fresh database, and its surface is PR A's and is not changed here. - Recent was not shot: a fresh profile has no recent items; the filter is pinned by `UnifiedSidebar.recentThisApp-36112` and its ablations L4 and L5. Reading taken where the ruling is literal, carried as an open question in the report: - The expand button's tooltip names ⌘B (it draws the chord the sidebar primitive answers to), but with ⌘B kept unchanged as ruled, ⌘B over a collapsed sidebar floats the menu while a press on the button docks it. Before this PR both floated. Either ⌘B docks too, or the tooltip stops naming it; this PR does neither and leaves it to the seat. Out of scope, noted not filed: none. Overlap: `overlap-check.mjs` exit 1 against objectstack-ai#34223 (a draft from 2026-11-19 that already conflicts with main on another file) in `docs/qa/platform-checklist/areas/platform-core.json`; not merged around, per the order. objectstack-ai#36234 and objectstack-ai#36208 share the i18n packs and merge cleanly. ## Verification Read first (riskiest first): 1. `ui/packages/app-shell/src/layout/consoleSidebarRail.ts`, the capture listener in `useConsoleSidebarRailPanel` (expand docks; ⌘B floats) and `startingSidebarOpen`. 2. `ui/packages/app-shell/src/hooks/useResponsiveSidebar.ts`, the layout effect (which transitions write which choice). 3. `ui/packages/app-shell/src/layout/UnifiedSidebar.tsx`, the `recentItems` filter. Two-minute check: in a fresh browser profile open any app at a 1280 px window: the sidebar is expanded beside the page. Resize to 1279 px: it collapses and the page header shows the expand button; press it: the sidebar docks, and a reload keeps it docked. --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5oK4fFfnLADcipbEeT)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5oK4fFfnLADcipbEeT --------- Co-authored-by: Claude <noreply@anthropic.com>
…draws no body keeps its approval band (objectstack-ai#36287) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XTRdLmK9YYgMSCJ7NH2PuUY)_ Fixes objectstack-ai#35483 repo:objectstack#4 · os-project-manager · session_01FEkQ5oLLK7uoxp33riiBJL Clause-②: no Metadata-protocol: none This PR also carries the folded card objectstack-ai#35484 (authored page with two details nodes), closed into this one by the fold ruling on the card. ## 维护者速读 - 用户能看到什么变化:记录被审批锁定时,「替换详情区」的记录页如果第一个详情区对当前用户隐藏(无权限)或自带标题,原来整页一个锁定标识都不显示,现在由下一个详情区显示一次;其他记录页不变。 - 为什么做:记录页「审批锁定标识每页只显示一次」的收尾,同时核实了自定义页面和页签回退两种情形已经只显示一次。 - 出错会怎样:只影响锁定标识显示在哪个详情区、显示几次,锁定规则本身不变;可以直接撤回。 - 要你做什么:无。 ## What changes Measured first on `origin/main` a5a5312, as the card asks. Three readings, each a rendered test on an approval-locked record through the real `record:details` / `page:tabs` renderers: | Row | Page | Bands drawn | |:---|:---|:---| | (a) | synthesized page falling back to its `page:tabs` strip, two details parts, inside the host's `ApprovalBandOnceScope` | 1 (2 marks); 2 without the scope | | (b) | authored page, two `record:details` nodes | 1 (already pinned at host level by the PR that closed the approvals-tab card) | | (c1) | laid-out synthesized page split around a body table, first part with every section empty | 1 | | (c2) | laid-out slotted page, `details` slot, first `record:details` withheld by `requiredPermissions` | **0** | | (c3) | laid-out slotted page, `details` slot, first `record:details` with `showHeader: true` | **0** | | (c4) | laid-out slotted page, two plain `record:details` | 1 | Rows (a) and (b) were already fixed on `main` by the approvals-tab rework: the host wraps every page drawn as written in `ApprovalBandOnceScope`. The one reachable route to (a) is a slotted page that places a `page:tabs` node in a strip slot (`highlights`, `header`, `actions`, `alerts`): two strips, which `buildDefaultPageColumns` cannot partition. A page the synthesizer writes on its own always lays out. What still failed is the case both cards name ("without dropping the band from a page whose first details node ... draws no body"): on the LAID-OUT page, `RecordPageColumns` gave the band to the first `record:details` node and set `ApprovalBandContext` false on every later one, so a first node that draws no band took it off the page. The fix gives the laid-out details column the same rule as a page drawn as written: - `RecordPageColumns` wraps its details column in `ApprovalBandOnceScope`: the first details body that reaches the band's place draws it. - `ApprovalBandContext` is removed: the per-part suppression was its only provider, and `DetailView` no longer reads it. It was module-internal (not in the barrel, not a prop, not a schema key), so no public face moves. - `resolveApprovalLock` and the lock rule are untouched; a `lockRecord: false` approval still reads `In approval · editable`, once. All edits are under `ui/packages/plugin-detail/**`; `RecordDetailView.tsx` and `RelatedList.tsx` are not touched. Read first, by risk: 1. `ui/packages/plugin-detail/src/RecordPageColumns.tsx` `drawDetailsNodes`: the scope replaces the per-part context; the band still sits above a body table on the split page. 2. `ui/packages/plugin-detail/src/DetailView.tsx`: the band now gates on the scope alone. 3. `ui/packages/plugin-detail/src/defaultRecordPage.ts`: the context and its doc, merged into the scope's doc. ## Tests - `RecordPageColumns.test.tsx`: a new top-level describe (the shared harness file) pins a first part withheld by `requiredPermissions` and a first part with `showHeader: true` (band once, on the second part), a `lockRecord: false` approval behind a withheld first part (editable once, never locked), and CONTROLs for two drawing parts (band on the first), a single part, and a single withheld part (no band, notice shown). The harness's `record:details` stub now hands its node to the body it mounts. - `DetailView.approvalBandOnce-35484.test.tsx`: a new top-level describe draws the synthesized page's `page:tabs` fallback through the real renderers: the page cannot be laid out and its overview holds two details parts; one band under the scope; CONTROL two bands without it; CONTROL one part draws its one band. The file header's pointer to the host pin now names the file that holds it. Reverse verification (one-off, fix committed first): the three `src` files restored to a5a5312, the two test files kept: 3 failed, 39 passed (the two first-part cases and the `lockRecord: false` case: no band found). Restored with `git checkout HEAD`, `git diff HEAD` empty. ## Acceptance notes - Overlap: `overlap-check` reports PR objectstack-ai#36234 (seat 1, the field-list card) sharing the four plugin-detail files, with a textual conflict in `RecordPageColumns.test.tsx` (both append to it). Whichever lands second takes a mechanical merge of that test file. - (a) is reachable only through a slotted page with a `page:tabs` node in a strip slot; whether that shape should be authorable at all is not this card's question (noted, not filed). ## Verification Two-minute check: `pnpm --dir ui exec vitest run packages/plugin-detail/src/__tests__/RecordPageColumns.test.tsx packages/plugin-detail/src/__tests__/DetailView.approvalBandOnce-35484.test.tsx` — expect 42 passed. <details><summary>Readings at head 02f7053 (local, under the shared verify lock; shared-box wall times)</summary> - Measurement (scratch file, deleted), real renderers at a5a5312: `(a) scoped marks 2 bands 1` · `(a) unscoped bands 2` · `(c1) bands 1` · `(c2) refusal 1 bands 0` · `(c3) bands 0` · `(c4) bands 1`; slotted `highlights` slot with `page:tabs` gives `buildDefaultPageColumns` null. - Two pinned files after the fix: `Test Files 2 passed (2)`, `Tests 42 passed (42)`, `VERDICT command-exit 0`. - Reverse verification (src at a5a5312, tests kept): `Tests 3 failed | 39 passed (42)`, `VERDICT command-exit 1`; restored, `git diff HEAD` empty. - Whole `@object-ui/plugin-detail` suite: `Test Files 403 passed | 1 skipped (404)`, `Tests 3737 passed | 18 skipped (3755)`, `VERDICT command-exit 0`. - `pnpm --filter @object-ui/plugin-detail type-check` (both programs, `tsc --noEmit && tsc -p tsconfig.test.json`): `VERDICT command-exit 0`. - `dispatch-gates --commands` derived 38 families; 37 run locally, each exit 0; `pnpm --dir ui exec vitest run scripts/` is reported separately in the dispatch report. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5oLLK7uoxp33riiBJL)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
…e click fills it; an editable value offers the copy icon (objectstack-ai#36385) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> Fixes objectstack-ai#36292 _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbVF7sWPNE4HmjkgyaVxQYif)_ repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Part of epic objectstack-ai#35590 (record page redo). Claim 7075947584 (`Premise: corrected`); binding linked ruling: objectstack-ai#36147 record 7066516044 (option A), shipped by objectstack-ai#36234. Clause-②: yes (widening) Metadata-protocol: none The claim's line reads `Clause-②: no (expected …)` with the instruction to amend it to `yes (widening)` if a key is added: one key is added, `detail.setField`, in every `@object-ui/i18n` pack. No prop, export or schema key is removed or narrowed. ## 维护者速读 - 记录页字段区(右侧预览、手机「详情」、整页)里可以编辑的空字段,从「—」变成浅色的「设置某某」,点一下直接进编辑;可编辑的值鼠标移上去右边也有复制图标。 - 属于记录页重做专题,按维护者「立」的第 4 条(单击进编辑、空字段可点)补齐还没做的部分。 - 出错时最多是空字段显示的字或复制图标位置不对,不影响保存的数据;撤回这个改动即可恢复原样。 - 无 ## What changes Measured on `origin/main` b3bcfef before writing anything (the card's items, one by one, on the synthesized record page's field area, which is `DetailSection`'s frameless face in all of the side preview, the phone 「详情」 tab, the pinned left column and a full page alone): | Card item | On main before this PR | This PR | |:---|:---|:---| | 1. Single click enters edit | **Already shipped** by objectstack-ai#36234: the row's `onClick` on the frameless face calls `onEnterInlineEdit` (guarded by `clickBelongsElsewhere`) | unchanged | | 2a. Links, phone, email, chips: a click on the text opens it, the rest of the value edits | **Already shipped** by objectstack-ai#36234: `clickBelongsElsewhere` hands a click on an `a`, a button or a `role=link` to that element | unchanged | | 2b. Hover copy icon on any value | **Half**: read-only values only. The button block was `canInlineEditField ? pencil : copyOffered ? copy : null`, so an editable value had no copy icon | an editable value on the frameless face also draws the copy button (hover / keyboard focus, `pointer-coarse:hidden` per ruling item 1); the keyboard-only pencil stays beside it | | 3. Empty editable value reads 「设置某某」, one click edits | **Missing**: every empty value drew the shared `EmptyValue` dash | an empty value with `canInlineEditField` on the frameless face reads `t('detail.setField', { field })` in `text-muted-foreground/70`; the row's existing click enters edit. Read-only, no write grant, record not inline-editable: the dash, unchanged | | 4. "Show N empty fields" fold unchanged; shown, empty rows read 「设置某某」 | fold **already shipped** by objectstack-ai#36234 (`EmptyFieldsRow`) | shown rows now read the placeholder | | 5. Full page, side preview, phone alike | the three places are the one frameless face (`DefaultRecordPageContext`) | follows from the one face | - **Authored record pages** (and every other `DetailView`) keep their faces, as objectstack-ai#36234 left them: double-click and the pencil, and the dash on an empty value. A "set" placeholder there would invite a single click that does nothing. Raised as an open question in the report, not built. - i18n: `detail.setField` in all eleven packs (en `Set {{field}}`, zh-Hans `设置{{field}}`, zh-Hant `設定{{field}}`, ja `{{field}}を設定`, ko `{{field}} 설정`, de `{{field}} festlegen`, fr `Définir {{field}}`, es `Establecer {{field}}`, pt-BR `Definir {{field}}`, ru `Указать «{{field}}»`, ar `تعيين {{field}}`). - Changeset `.changeset/36292-record-field-set-placeholder.md` (`@object-ui/plugin-detail`, `@object-ui/i18n`: patch). Files to read first, by risk: 1. `ui/packages/plugin-detail/src/DetailSection.tsx`, the `displayValue` closure's new first branch (`isEmpty && frameless && canInlineEditField`), where the placeholder replaces the dash. 2. Same file, the button block at the end of the read row: the pencil and the copy button are now siblings, the copy one gated `copyOffered && (!canInlineEditField || frameless)`. 3. `ui/packages/plugin-detail/src/__tests__/DetailSection.fieldList-36147.test.tsx`, the two new top-level `describe` blocks. ## Tests New pins in the existing field-list harness (two top-level `describe`s, objectstack#36292): - an empty editable value reads `Set Note` / `Set Phone` and a click on it enters edit with `note`; - CONTROL: a non-empty value reads as before; - CONTROL: a read-only field keeps the `No value` placeholder and its click does not enter edit; - CONTROL: a record that is not inline-editable keeps the placeholder on every empty row; - CONTROL: a field the caller may not write (a real `MePermissionsProvider` envelope, `editable: false`) keeps the placeholder; - CONTROL: off the field face (the section's own empty-fields toggle opened, so the row is on screen) the placeholder is the dash; - through a real `I18nProvider` in `zh-CN` the placeholder reads `设置备注`; - the copy button sits beside an editable value, hidden at rest, revealed on hover / focus, `pointer-coarse:hidden`, copies `Atlas deal` and does not enter edit; CONTROL: an empty editable value has none; CONTROL: off the field face an editable row keeps the pencil alone. <details><summary>Local runs</summary> All under `scripts/pm/os-verify-lock.sh`, vitest from `ui/` with `--maxWorkers=1`: - `vitest run packages/plugin-detail/src/__tests__/DetailSection.fieldList-36147.test.tsx`: `Tests 25 passed (25)`, VERDICT command-exit 0. - `vitest run packages/plugin-detail/ packages/i18n/` (head `7b0e4d41`; the one later commit `2c35661f` edits only the changeset): `Test Files 514 passed | 1 skipped (515)`, `Tests 5790 passed | 31 skipped (5821)`, VERDICT command-exit 0. - `pnpm --filter @object-ui/plugin-detail --filter @object-ui/i18n run type-check` (both `tsc --noEmit` and `tsc -p tsconfig.test.json`): VERDICT command-exit 0. </details> <details><summary>Ablations (one per changed behaviour, through scripts/ablation-replace.mjs)</summary> Both ran on head `2c35661f` inside one hold of the shared lock; each leg is the pin file above, the restore proven by the tool (blob `932402dfeeb2` == HEAD, `git diff HEAD` empty). 1. Placeholder branch disabled (`if (isEmpty && frameless && canInlineEditField) {` to `if (false && isEmpty && frameless && canInlineEditField) {`; mutation landed, anchor 1 to 0, blob `932402dfeeb2` to `dfd20d6b8e8c`): `Tests 4 failed | 21 passed (25)` — the "Set Note" pin, the read-only and no-write-grant controls (each also asserts the remaining `Set Phone`) and the zh-CN pin. Restored. 2. Copy button narrowed back to read-only rows (`{copyOffered && (!canInlineEditField || frameless) && (` to `{copyOffered && !canInlineEditField && (`; blob `932402dfeeb2` to `d71eb76d821d`): `Tests 1 failed | 24 passed (25)` — the editable-value copy pin. Restored. Unmutated, the same pin file: `Tests 25 passed (25)` (the local run above). </details> <details><summary>Derived gate families (dispatch-gates --commands, 41)</summary> All 41 families `node scripts/pm/dispatch-gates.mjs --commands` derives for this diff ran locally on head `7b0e4d41`, every one exit 0 (`pnpm check:type-check-debt` first answered exit 3, PREREQUISITE NOT MET because its closure build never got a lock turn; re-run under the lock: `TCDEBT_EXIT=0`, re-measure OK; `pnpm --dir ui exec vitest run scripts/`: `Tests 5127 passed | 2 skipped`). `--ran` reconciliation: `41 derived famil(ies) accounted for — 41 run, 0 NOT-MEASURED (a DERIVED zero — all 41 recorded an exit code and none of them is 3)`. On the final head `2c35661f` (changeset-only commit) the changeset families were re-run, exit 0 each: `check-adr-0087-registration`, `check-changeset-no-major`, `check-empty-changeset`, `check:nul-bytes`, `check:published-files`. The required CI contexts (`Test UI`, `Type Check UI`, `Lint UI`, `Lint & Repo Gates`, …) are CI's, not re-run here. </details> ## Acceptance notes - Screenshots the card asks for, taken on head `2c35661f` in a live CRM example app (`examples/app-crm`, `objectstack dev --fresh`) with the Console dev server built from that head; Chromium 1440x900 at deviceScaleFactor 2, UI language zh-CN, the lead "Marie Curie" after 「显示 2 个空字段」. Hosted on the side branch `claude/issue-36292-evidence` (never merged), not on this branch. No read-only empty field is cheaply reachable on this record (every empty body field is editable for the admin), so the 「—」 control rests on the jsdom pins above. Full record page, empty editable fields read 「设置分配给」 / 「设置转化商机」:  Full record page, after one click on 「设置转化商机」 (the inline edit session opens):  Side preview, the same two placeholders:  Side preview, after one click on 「设置转化商机」:  - Not re-verified in a browser: Enter / click-away saves and Esc cancels; those are the existing inline-edit session's keys, untouched here. - The card's 没有核对的 items (approval-locked records; tap-vs-scroll on a phone) are unchanged by this PR: a locked record is not inline-editable, so its empty fields keep the dash. ## Verification Two minutes: on a default record page (HotCRM 线索, or any object without an authored record page) open the side preview, click 「显示 N 个空字段」. Expected: each empty field you can edit reads light 「设置字段名」; one click opens its editor. A read-only empty field still reads 「—」. Hover a filled editable value: a copy icon appears at its right, and clicking it copies without entering edit. --- _Generated by [Claude Code](https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA <!-- signed: repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA --> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
…ctions only; Edit moves into the top bar's More (objectstack-ai#36478) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbVF7sWPNE4HmjkgyaVxQYif)_ repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Fixes objectstack-ai#36151 Clause-②: yes (widening) Metadata-protocol: semantic Skills-docs: none — no published skill under `skills/` names `mobileMaxVisible`, the phone record page's bottom bar or its Edit button (searched); the authoring change is one budget's meaning, taught in the spec describe and `content/docs/ui/pages.mdx` here. ## 维护者速读 - 手机上打开记录页:底部按钮条只放这个对象自己的动作(最多两个,撑满一行);没有动作的对象不再出现底部条,内容一直到屏幕底部;「编辑」挪进右上角「更多」。电脑端不变。 - 手机记录页改版的一步:字段已能点一下直接改,底部那颗占位的「编辑」按钮不再需要,把底部留给真正的业务动作。 - 出错时,手机用户会找不到整页编辑的入口,或看到空白的底部条;把本次改动撤回即可恢复原样,不涉及数据。 - 无。 ## What changes On a phone (the console's record page, `phonePage`), per the card's five ruled items: 1. **Edit leaves the bottom bar.** The record's Edit is forced into the `⋯` on the phone (`component: 'action:menu'` on the host's `sys_edit`, always, not only when Edit is off). A field's value is edited by one tap on it (objectstack-ai#36147, PR objectstack-ai#36234); whole-record edit is ⋯ → Edit, which calls the same `onEdit` handler the bar's Edit called (inline edit state on an object without a form, the form route on one with a form). 2. **The bottom bar holds the object's own actions only**: the primary, then the next one, budget unchanged (`PHONE_ACTION_BAR_BUTTONS` = 2, or the authored `mobileMaxVisible`), filling the row (`flex-1`). The edit state keeps its Cancel and Save there. 3. **No action, no bar.** With nothing to draw the toolbar returns nothing and the host's bar hides itself (`:has(> [role=toolbar]:empty)` / no toolbar), so the body runs to the foot of the screen. 4. **Approval unchanged.** A record pending the reader's approval still draws [Approve][Reject][⋯] from `RecordHeaderStateContext`'s state group with its own `⋯`; the top bar draws no second `⋯` then (one `⋯` per screen). 5. **Everything else is in the top bar's `⋯`**, at the right end of `RecordTopBar` (its `frame` slot): actions past the budget, Refresh, Edit (on or off with its reason), Share, Delete. The favorites entry is not in it: since objectstack-ai#36246 (PR objectstack-ai#36456) the favorite star sits beside the record's name, on the phone too. Mechanism: - `PageHeaderPhoneFace` (the `PageHeaderPhoneContext` value, a host slot, never metadata) gains an optional `more: HTMLElement | null`. `PageHeaderActions` in its bar face portals the `⋯` there when a host hands it; a host that does not hand it keeps the `⋯` as the bar's last button, byte-for-byte as before (the legacy pins in `page-header-phone-bar-27058.test.tsx` are untouched and green). - `RecordDetailView` hands a `span[data-record-phone-more]` it mounts in the top bar's `frame`. - Desktop: no change (the `face: 'row'` path is not touched). Spec / docs: `page:header` `mobileMaxVisible` describe now says the phone bar holds the page's own actions and Edit is in the top bar's `⋯`; generated docs regenerated (`check:generated --fix`, `gen-sdui-manifest-node.mjs`, `gen-sdui-reference.mjs`), hand-written `content/docs/ui/pages.mdx` and the designer's config description updated to match. Semantic change: an unset budget now shows two page actions where it showed Edit + one, and an authored value counts the page's actions alone. Rulings carried (not reopened): the card's five items; the maintainer's 「可以,立卡」 on fig. 48; ruling 7066516044 item 2 (a single tap edits on the phone). Linked rules this card reverses, as the claim names: objectstack-ai#34595 (the bottom bar starts with Edit), and the Edit-counted half of objectstack-ai#35840 (two visible by default: still two, now both page actions). ## Tests Step 0 (owed before Edit leaves the bar): every field type the default record page draws editable was checked at 375 px with touch emulation on the live showcase Field Zoo record: one tap on the value opens its editor, and the edit saves (a PATCH carrying that field's key). **All pass; no type raised.** | Result | Types | |---|---| | one tap opens, saves | textarea, email, url, phone, markdown, number, currency, percent, date, datetime, time, boolean, toggle, select, multiselect, radio, checkboxes, tags, lookup, lookups (multiple), master_detail, tree, user, users, owner (current_user default), location, address, code, json, color, rating, slider, signature, qrcode, progress, the system Owner | | not drawn editable (same on desktop, `INLINE_EXCLUDED_FIELD_TYPES` / read-only by kind) | password, secret, html, richtext, formula, autonumber | | not drawn as a detail row | media, embedded and vector types | Pins updated where they pinned the reversed behaviour: - `RecordDetailView.phoneFace-27058.test.tsx` (the objectstack-ai#34595 pins): the bar is [Convert Lead][Assign] with no `⋯`; the `⋯` is the top bar's last control and holds Edit and Share; a third action folds into the top `⋯` before Edit; one action fills the row; no action leaves an empty, hidden bar and ⋯ → Edit calls `onEdit`; the approval control and the Edit-off cases read the top `⋯`. - `RecordDetailView.favoritesEntry-12427.test.tsx` (objectstack-ai#36246's pins, merged in with origin/main): the phone case now opens the top bar's `⋯` (the fixture object declares no action, so its bottom bar is drawn empty); the CONTROL is that menu's Edit and Share, and the assertion that the `⋯` holds no favorites entry is unchanged. Its mount helper waits for the top bar's `⋯` on that case instead of a toolbar. - `RecordDetailView.recordPageTiers-26678.test.tsx`: the phone branch reads the empty bottom bar and the top bar's `⋯`. - `page-header-phone-bar-27058.test.tsx`: new `the phone bar with the host's top-bar ⋯ slot` describe (two actions fill the row and the `⋯` sits in the slot; no page action draws an empty bar; slot not yet mounted draws no `⋯`). - `ui/e2e/record-flow-phone-targets.spec.ts`: the geometry fixture draws the top bar's More (`h-11 w-11`) and an actions-only bar; 6 passed locally. Ablations (one-shot, not kept; both restored, blob == HEAD verified by `scripts/ablation-replace.mjs`): - `RecordDetailView`: Edit forced into the `⋯` only when off (the old rule) ⇒ phoneFace suite 6 failed / 22 passed. - `PageHeaderActions`: top-bar slot ignored (`moreInTopBar = barFace && false`) ⇒ 13 failed / 29 passed across the two suites. Readings on head `a262ef3653` (origin/main merged in, carrying objectstack-ai#36456; the spec reference regenerated on the merged tree; the favorites pin moved to the top `⋯`; the changeset's `⋯` list drops Favorites): `vitest --maxWorkers=1` on favoritesEntry-12427, phoneFace-27058, recordPageTiers-26678, page-header-phone-bar-27058 and headerMenuIcons-12529: Test Files 5 passed (5), Tests 65 passed (65), exit 0; `@object-ui/app-shell` `type-check` VERDICT command-exit 0; `pnpm --dir ui exec vitest run scripts/` 5127 passed, 2 skipped, exit 0; `dispatch-gates --ran` 125 derived, 123 exit 0, 2 NOT MEASURED (the same two exit-3 prerequisites below). The readings below were taken on code head `ec741d2c08`, before the merge: <details><summary>Unit suites, type-check, local gate subset</summary> - `vitest run --maxWorkers=1` phoneFace-27058 + recordPageTiers-26678 + page-header-phone-bar-27058 (under the verify lock): Test Files 3 passed (3), Tests 52 passed (52), exit 0. - `pnpm --dir ui exec vitest run scripts/` (a derived family): Test Files 172 passed, 2 skipped (174); Tests 5127 passed, 2 skipped; exit 0. - `@object-ui/components` and `@object-ui/app-shell` `type-check` (both `tsc --noEmit` and `tsconfig.test.json`, so the edited tests are in): VERDICT command-exit 0, after building the `@object-ui/app-shell^...` closure (a stale `@object-ui/types` dist had first reported a `DataTableSchema.onColumnHide` error outside this diff; rebuilt, gone). - Earlier on this branch, before the last test-only commit: RecordDetailView*, page-header*, record-top-bar* suites 133 files / 1144 tests, the one red being the tiers pin fixed in `ec741d2c08`; ESLint on the changed files 0 errors. - `dispatch-gates --ran`: 125 derived families accounted for, 123 run with exit 0, 2 NOT MEASURED (exit 3, PREREQUISITE NOT MET: `check:skill-examples` needs a built `@objectstack/client-react`, `check:dual-build-cjs-loads` needs studio, client-react and other dists outside this diff; both run in CI). - `@objectstack/spec` `check:generated` green after `--fix`; `check:sdui-reference` and `check-sdui-manifest` green. - Not run locally, CI-owned: `test:repo`, the repo-wide lint, the artifact-roster and wide families. </details> ## Acceptance notes - **The card's own example, the HotCRM lead, measured live at 375 px (zh-CN).** HotCRM at origin/main `689166c` ran from a sister worktree with its own setup (`objectstack dev`, published 18.6.0 server packages, fresh seeded DB), and this branch's Console vite was proxied to it. The record was a New lead (Noah Patel - Vertex Analytics), where 「确认线索」 (`qualify_lead`) is visible. - Before (origin/main renderer): the bar was [编辑][确认线索][⋯]; the ⋯ held 刷新 / 转化线索 / 安排跟进 / 记录通话 / 记录会议 / 安排会议 / 添加到收藏 / 分享 / 删除 (main before objectstack-ai#36456). - After (this branch): the bar is [确认线索][转化线索], with no 编辑. The top bar's ⋯ holds 刷新 / 安排跟进 / 记录通话 / 记录会议 / 安排会议 / **编辑** / 添加到收藏 / 分享 / 删除, measured on `75f16a89de`, before objectstack-ai#36456 landed. Since objectstack-ai#36246 (PR objectstack-ai#36456) 添加到收藏 has left the ⋯ for the star beside the record's name, so on the current head the top ⋯ holds the same list without it (pinned by `RecordDetailView.favoritesEntry-12427.test.tsx`'s phone case). - Why 转化线索 is in the bar too: ruled item 2 keeps the bar budget at its current rule, at most 2 (「最多 2 个,沿用现在的规则」). The slot 编辑 gave up goes to the lead's next action, `convert_lead`. The card's wording 「只有确认线索」 describes the old bar with 编辑 removed. To show 确认线索 alone, HotCRM sets `mobileMaxVisible: 1` on the lead page's `page:header` (an app-side authoring choice, not made here; raised to the seat in the report). - For non-zh readers, the showcase Task shows the same thing: the bar holds only the object's own actions ([Log Time][Archive]), there is no Edit, and the top ⋯ holds Edit. - Edit is in the top `⋯` on the phone in every state, including the record's edit state (where the bar is Cancel/Save). - A host button on the phone (the queue's Claim) still sits in the bar ahead of the page actions and counts toward the budget, as before. - Overlap: objectstack-ai#36357 also regenerates `scripts/sdui-manifest.record.json` (a generated sha/date pair); whichever lands second regenerates it. Clean against objectstack-ai#36438, objectstack-ai#36392, objectstack-ai#36351, objectstack-ai#36343 and origin/main. - Out of scope, reported to the seat (not fixed here): in the lookup picker on a phone, an option's preview carries a record chip link; a tap on the chip navigates away mid-edit instead of selecting (Field Zoo, Master-Detail → Project, tap the "Account: Fabrikam" chip ⇒ the account page opens). ## Verification Read first (by risk): 1. `PageHeaderActions` in `ui/packages/components/src/renderers/layout/containers.tsx`: the `moreInTopBar` branch (the portal into the host slot and the early return that leaves the bar empty). 2. `RecordDetailView` in `ui/packages/app-shell/src/views/RecordDetailView.tsx`: `sys_edit`'s phone `component: 'action:menu'`, the top bar's `frame` slot and the bar's empty-hide class. 3. `PageHeaderPhoneFace` in `page-header-phone-context.ts`: the new optional `more`. Two-minute check: open a New HotCRM lead at 375 px ⇒ [确认线索][转化线索] at the foot, 编辑 in the top-right ⋯. Or open any record of an object with no actions of its own (showcase Account) at 375 px wide ⇒ no bottom bar, a `⋯` at the top bar's right end holding Refresh / Edit / Share / Delete, and the favorite star beside the record's name. A showcase Task ⇒ [Log Time][Archive] filling the bottom row. Screenshots at 375 (live showcase, evidence branch `claude/issue-36151-evidence`): | State | Before | After (light) | After (dark) | After, `⋯` open | |---|---|---|---|---| | No action (Account) |  |  |  |  | | Actions (Task) |  |  |  |  | | HotCRM lead (zh-CN) |  |  | not taken |  | | Approval (Project) |  |  |  |  | The screenshots were taken before objectstack-ai#36456 landed, so the open `⋯` shots still show Add to favorites / 添加到收藏. Since objectstack-ai#36246 that entry has left the `⋯` for the star beside the record's name. --- 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA <!-- signed: repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA --> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
… name first with one labelled action, and lists a child tab one row per record (objectstack-ai#36438) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbVF7sWPNE4HmjkgyaVxQYif)_ repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Fixes objectstack-ai#36149 Fixes objectstack-ai#36201 Clause-②: yes (widening) — new optional members only: `RecordHeaderBar.preview` and `PageHeaderActionsProps.preview` on `@object-ui/components`, `ObjectGridComponentProps.cardFace` on `@object-ui/plugin-grid`; nothing removed or renamed (`recordPreviewWidthKey` is app-shell internal, not on its package entry) Metadata-protocol: none ## 维护者速读 - 用户在列表里点开一条记录的右侧预览:预览从约 720 宽收到 460,可拖动;头部先显示完整记录名,只留一个主要按钮,「编辑」「复制编号」等都进了「更多」;子表页签每条记录一行(标题加一行摘要)。整页记录页不变。 - 属于「记录详情页重做」专题:右侧预览收紧,并解决动作按钮多时记录名被挤成几个字的问题。 - 出错时用户会在预览里找不到某个按钮,或子表显示成卡片行而不是表格;所有动作都还在「更多」里,可直接撤回本改动。 - 页签多时用「更多 N」下拉收起,和整页、手机一致(objectstack-ai#35595 已对所有界面裁定);不改成横向滑动。 ## What changes Both cards, one PR (1,119 changed lines incl. tests and docs, under the 1,500-line split threshold). **Width (objectstack-ai#36149 item 1).** The record preview opens at `RECORD_PREVIEW_DEFAULT_WIDTH` (`min(92vw, 460px)`) and its left edge drags from 380 to 900 px (`navigation-overlay`'s `DRAWER_MIN_PX` / `DRAWER_MAX_PX`). The dragged width is remembered in the browser under ONE key, `RECORD_PREVIEW_WIDTH_KEY`, for both the list's preview (`ObjectViewRecordOverlay`) and a record page's drawer level (`RecordPageDrawerHost`). Shared width, as the coordinator recommended: I found no measured reason for per-object widths. A drawer whose `navigation` authors its width (`navigation.size` other than `auto`, or a `navigation.width`, pixel or percent) does not use the shared key: `recordPreviewWidthKey` gives it the object's old per-object key (`recordOverlayWidthStorageKey`, unchanged). The list's preview reads the view's `navigation`, then the object's; a record page's drawer reads only its root record's object's `navigation`. That key is shared with the object's calendar, gantt, kanban, tree and grid overlays and a resizable `RecordDetailDrawer`, so the drawer opens at the authored width until a width is dragged in it or in one of those overlays; a width dragged in another object's preview never replaces it. Only for an object that authors no size or width does the console's preview no longer share a width with that object's calendar, gantt, kanban, tree or grid overlay or its `RecordDetailDrawer`. The width and its key belong to the drawer's root: child levels keep the root's width, and in the list a record a lookup chip opens as the root takes the list's width and key (the list object's, not the opened record's). Both hosts read the root pane's width through one helper, `recordPaneWidth` (an authored width as written, else the `navigation.size` bucket through `overlayWidthFor`, else 460), so a record page's drawer now honours its root object's authored `size`. And `useDrawerResize` drops the previous width when its `storageKey` becomes absent or holds no usable value: a record page's drawer that closed on a task at the shared 600 px opens a contract next at its authored 720 px, not at 600. `consoleSidebarRail`'s `RECORD_DRAWER_WIDTH` follows to 460, so the rail's list-width budget is unchanged in kind. **Every resizable drawer's range (`@object-ui/components`).** The range lives in `NavigationOverlay`, so it applies to every drawer opened with a `storageKey`: the calendar, gantt, kanban, tree and grid overlays, a resizable `RecordDetailDrawer`, and the console's preview. One drawer family, one range, kept shared on purpose and declared in the changeset. Before, the drag ran from 360 px to 60% of the window; now it runs from 380 to 900 px. On a 1920 px window the widest drag drops from 1152 to 900 px. On a 1024 px window a dragged or remembered width can now reach 900 px, where 60% of the window (614 px) capped it before. It still never overflows: the card's classes cap it at the window less 1rem, so no viewport clamp was added. A remembered width under 380 px is not clamped up; it is no longer used, and the drawer opens at its host's width. **Docs.** The plugin-view guide's 「The Console's record drawer」 section gives 460 and 380–900 px, the authored-width exception (the list reads the view's `navigation`, then the object's; a record page's drawer its root object's) and that the width belongs to the drawer's root. It says the header has no Edit button or copy icon (both in `⋯`), and that a child tab lists one row per record. The platform checklist's ~720 px drawer reads ~460 px. **Header (objectstack-ai#36149 items 2–4, objectstack-ai#36201).** The preview's host bar now says `preview: true` (`RecordHeaderBar.preview`), and `page:header` draws into it this way: - The record's name comes first. At most ONE labelled action is drawn: the page's primary (`previewPick`: the first authored `variant: 'primary'`, else the first authored action). The host's buttons (Edit) and every other action go into the `⋯` in their usual bands and order. - That one action also folds into the `⋯` while the name would be cut below 16 characters' width (`PREVIEW_NAME_MIN_EM`, measured by `previewNameSqueezed` in the width fold's layout effect). It is not drawn back when the pane widens, except on a fresh measurement (another record, a resize), which is how the existing width fold already works. - No copy-id icon after the name. `RecordDetailView` adds `sys_copy_record_id` (「复制记录 ID」, existing i18n keys) to the `⋯`, preview only. The name's full text is its `title` tooltip. - Unchanged: the host's edit state (Cancel / Save stay in the row), an approval state's own levers (`RecordHeaderStateContext.group`, approve / reject), the stage tag, and a page's own header (Edit button and copy icon stay there). **Child tabs (objectstack-ai#36149 item 6).** In a preview, a child list's tab (the enlarged related list) hands the list grid the new host prop `cardFace` (`ObjectGridComponentProps.cardFace`). The grid then draws the phone's card rows at any window width: the title, one summary line and the status chip, one row per record. Before, it drew a table cut off at the pane's edge. 「添加」 stays top-right in the tab's toolbar. A related list outside a preview, and every non-tab related list, is unchanged. **Already true on `main`, verified live, not rebuilt.** Item 7: clicking a child record replaces the preview's content (one drawer, no stacked preview). The leading area shows the back control and 「客户 Initech › 活动」, and back returns to the parent with the 活动 tab still selected. Item 8: header row 1 is unchanged. objectstack-ai#36147 (click a value to edit, PR objectstack-ai#36234) is untouched. ## Tests - `page-header-record-bar-35593`: new describe for the preview bar. One labelled action and the rest in `⋯` in order (also with `maxVisible: 3`); no actions means only `⋯`; edit state keeps Cancel / Save; no copy icon and the name has a tooltip; the name squeezed (120 of 300 px) folds the primary. CONTROLS: a name with room keeps the action; a page bar keeps its copy icon and never folds for the name; approval levers 通过 / 拒绝 are drawn in the preview. - `RecordDetailView.drawerLevelEdit-33111`: the list's preview and a record page's drawer level have no Edit button or copy icon. Their `⋯` has Edit and Copy record ID, and copy writes the id. CONTROL: the record page's own header keeps the Edit button and copy icon, with no copy menu entry. Existing drawer Edit tests go through the `⋯`. - `cardFaceHost-36149` (plugin-grid): `cardFace` at 1440 px draws card rows (title + 「Renewal · Monday」 summary, no column headers). CONTROLS: 1440 px without it keeps the table; 390 px keeps cards. - `RelatedList.previewCardFace-36149` (plugin-detail): a preview bar hands the grid `cardFace`. CONTROLS: none for a page bar, none for no bar, none for a non-tab list in a preview. - Width: `navigation-overlay-drawer-27545`, `navigation-overlay-9299` (380–900 clamp), `consoleSidebarRail.width-27593` (460 and the list keeps its minimum). - `recordPreviewWidth-36149` (app-shell): a width dragged in object A's list preview is the width object B's list preview opens at, and the width a record page's drawer opens object B at. CONTROLS: an object authoring `navigation.width` opens at 720 px with 600 px in the shared key, and a drag in its own pane writes its per-object key, not the shared one. A list preview whose view authors `size: 'xl'` ignores the shared width. `recordPreviewWidthKey` returns the shared key for none, `{}` or `size: 'auto'`, and the per-object key for `size: 'xl'` or a `width`. One mounted record-page drawer: a task at the shared 600, closed, then a contract opens at its authored 720; the reverse, a contract at its own dragged 500, closed, then a task opens at 460. A record page's drawer level opens an object authoring `size: 'xl'` at `recordPaneWidth`'s xl width. `recordPaneWidth` unit cases (none / `auto` → 460, `'50%'` as written, a `width` beats a `size`, xl differs from 460). - `ObjectView.recordOpenPath-35854` (app-shell, the list host's wiring): with 600 in the shared key, a view authoring `size: 'xl'` opens its preview at its xl width, not 600 px. CONTROL: a view authoring no width opens at 600 px. <details><summary>Runs (ui vitest, verify lock)</summary> - 169 test files across components + app-shell drawer/header suites on `01f2ad0a0a` + the test fix: `Test Files 169 passed (169)`, `Tests 1701 passed (1701)`, lock `VERDICT command-exit 0`. - 8 files (new grid/detail tests, related tab suites 28484 / 28865 / 35892, grid card suites 13150 / 35883, rail 27593) on `ae96065452`: `Test Files 8 passed (8)`, `Tests 64 passed (64)`, `VERDICT command-exit 0`. - Final head `ee38012ece` (after merging `origin/main` `ff60149900`): all 55 `RelatedList.*` suites, the four grid card suites, the header, overlay, drawer-level and rail suites, 64 files: `Test Files 64 passed (64)`, `Tests 445 passed (445)`, `VERDICT command-exit 0`. - Type-check on `ee38012ece`, after building the `@object-ui/app-shell^...` closure: `type-check` exit 0 for `@object-ui/components`, `@object-ui/plugin-grid`, `@object-ui/plugin-detail` and `@object-ui/app-shell`. - Head `d8900963e3` (merged `origin/main` with objectstack-ai#36406, plus this rework), after building the `@object-ui/app-shell^...` closure: 96 files (all 55 `RelatedList.*` suites, the grid card suites, header, overlay, drawer-level, rail, `recordPreviewWidth-36149`, `recordDrawerStack-26679` and 30 `ObjectView.*` suites): `Test Files 96 passed (96)`, `Tests 693 passed (693)`, `VERDICT command-exit 0`. Type-check of components, plugin-grid, plugin-detail and app-shell in one `&&` chain: `VERDICT command-exit 0`. - Head `192a0febef` (the L1-d wording plus the S2 reset, S4 size bucket and N1 pin), after building the `@object-ui/app-shell^...` closure: 13 files (`recordPreviewWidth-36149`, `ObjectView.recordOpenPath-35854`, all six `navigation-overlay-*` suites, the three `recordDrawerStack*` suites, `RecordDetailView.drawerLevelEdit-33111`, rail 27593): `Test Files 13 passed (13)`, `Tests 117 passed (117)`, `VERDICT command-exit 0`. Type-check of components and app-shell in one `&&` chain: `VERDICT command-exit 0`. - Ablation (one-off, not kept), the S2 reset: the two `setWidth(null)` resets it added on the paths a close and a reopen take (the no-key branch and the key-holds-nothing branch) removed together, the pre-fix shape (blob 671df74 → 5378b1f6, then the second anchor x1 → x0). Result: `recordPreviewWidth-36149` failed 2 of 9, the forward and reverse one-mounted-drawer cases. Restored: blob == HEAD, `git diff HEAD` empty. Removing either line alone keeps them green: a close sends the key through absent and the next open through a key holding nothing, so each line covers the other in that sequence. A record opened while the drawer is open is a child level on the same root, so the root key never switches straight from one stored key to another. - Ablation (one-off, not kept), the list host's wiring: `widthKey={drawerWidthKey}` deleted from `ObjectView` (anchor x1 → x0, blob 3852259 → be850715). Result: `ObjectView.recordOpenPath-35854` failed 1 of 11, the `size: xl` view case. Restored: blob == HEAD, `git diff HEAD` empty. - Ablation (one-off, not kept): `storageKey={widthKey}` in `ObjectViewRecordOverlay` switched back to the per-object `drawer-width:` + the object's name through `scripts/ablation-replace.mjs` (anchor x1 → x0, blob 1b4b33a → 2d6bbd9d). Result: `recordPreviewWidth-36149` failed 2 of 5, the A-to-B list preview case and the list-to-record-page case. Restored: blob == HEAD, `git diff HEAD` empty. - Ablation (one-off, not kept): `const useCardView = windowCardView || !!hostCardFace` mutated to drop `hostCardFace` through `scripts/ablation-replace.mjs` (anchor x1 → x0, blob f3d0c84 → 55c538e5). Result: `cardFaceHost-36149` 「a desktop window with cardFace」 failed (1 failed | 2 passed). Restored: blob == HEAD, `git diff HEAD` empty. </details> ## Acceptance notes - **Item 5, tabs: the ruled behaviour, shipped as-is.** The preview's tabs are the same set as the full page (详情, one per child list with its count, 动态) and never wrap. When they overflow, they fold into 「更多 N」, the dropdown that objectstack-ai#35595 ruled for every face of the tab row, the side preview included. So the card's "horizontal swipe" wording is answered by that standing ruling, not deviated from. The seat confirmed this reading; no swipe is built. - **Item 7, wording of the back entry.** The card shows 「‹ 父记录名」. `main` draws `←` plus 「客户 Initech › 活动」 (the trail ruled under objectstack-ai#26679). It does the job (one preview, back to the parent, tab kept), so I left it unchanged. - **objectstack-ai#36201 「not restored when wider」.** The fold is decided per measurement. Widening the pane re-measures (the width fold's `ResizeObserver` clears the cap), so a wider pane can draw the primary again if the name then fits. Never more than one labelled action in a preview. - **objectstack-ai#36201 screenshots: app-todo stands in for HotCRM.** The card asks for the HotCRM lead 「Mira Costa - Atlas Construction」. HotCRM cannot run in this container: its checkout has no installed dependencies, and installing into that shared checkout is outside this card. The app-todo task (5 `record_header` actions) proves the same three points. The full name is readable (「Schedule dentist appointment」 is cut to 「Schedule den...」 before and whole after). At most one labelled action is drawn (Clone Task, for a short name). The rest are in `⋯`. - **objectstack-ai#36201's 「a record with no custom actions has the same header as today」 is superseded by objectstack-ai#36149.** Edit and the copy icon left the preview header, so such a record's preview header is the name, the stage and `⋯`. This follows from folding the two cards into one PR, not from an omission. The full page's header is unchanged. - Comment icon: objectstack-ai#36406 removed it from the preview; it has merged and this branch carries it. - Out of scope: the spec `navigation.size` describe still says `auto` derives the width from the field count and the viewport, which has not been true since objectstack-ai#27545. Filed as objectstack-ai#36468. ## Verification Live: `objectstack dev --seed-admin --fresh` (app-crm, app-todo) + Console vite, Chromium 1440×900 @2x, zh-CN. "Before" = this branch's touched sources restored to `97b9d1e63d` in the working tree, then restored to HEAD (`git diff HEAD` empty). Header, CRM opportunity: before 720 wide, copy icon, 「编辑」 / after 460, name + stage + `⋯`   Several actions (app-todo task, 5 `record_header` actions): before, the name is cut to 「Schedule den...」 behind Clone Task / Mark Complete / 编辑. After, the full name with every action in `⋯`. With a short name, one labelled action (Clone Task). The `⋯` holds the actions, then 编辑, 复制记录 ID, 删除.     Child tab (account Initech → 活动 2): before a cut-off table / after one row per record. Then a child opened in the same preview, and back with the tab kept.     Read first (by risk): `PageHeaderActions` (the `previewRow` / `previewPick` / `hostKeepsRow` split and the width-fold effect), `useDrawerResize`'s restore effect in `navigation-overlay` (the key-switch reset touches every resizable drawer), `RelatedList`'s `previewFace` → `enlargedGridHost`. Two-minute check: open any list, click a row. The preview is 460 wide, has no 「编辑」 button and no copy icon, and 「更多」 holds 「编辑」 and 「复制记录 ID」. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA <!-- signed: repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA --> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
Fixes #36147
Requested by Sales · project thread
repo:objectstack#1 · os-sales · session_01L6bhgWmyKFrcthV9y5wUiP
Part of epic #35590 (record page redo). One PR for the card. Claim 7066162109; Sales ruled "all as the card says" (7066516044).
Clause-②: yes (widening):
@object-ui/fieldsexports a newReferenceChipContext(a boolean React context, defaultfalse);@object-ui/i18ngains five keys in every pack (detail.systemInfo,detail.createdTime,detail.updatedTime,detail.recordNumber,detail.clickToEdit). No prop, export or schema key is removed or narrowed. The field-list context (RecordFieldListContext) is module-internal to@object-ui/plugin-detail, not in its barrel.Metadata-protocol: none
维护者速读
What changes
All on the synthesized (default) record page's field area, which is
DetailSection's frameless face in all three places (side preview / split pane, phone 「详情」 tab, wide page's pinned left column). Authored record pages and every otherDetailViewkeep their faces.RecordPageColumnsnow setsDetailsColumnCapContextto 1 everywhere except a full page whose details are its only face (no other tab, none hidden), which keeps 3. Under the cap of 1 the section draws one column of label-left rows with a hairline between them (data-detail-section-list). The phone's iOS grouped-inset branch no longer applies to the frameless face, so the phone draws the same rows. The phone's two-column highlights block was already gone on the default page (记录页默认页不再画阶段条和顶部关键字段条;阶段改成记录名旁的状态标签,点开下拉切换(图 41) #35891); nothing is drawn in its place.ChevronDownfolded,ChevronUpopen; the whole row is the toggle (aria-expanded).ReferenceChipContextistrue, andLookupCellRenderer'sReferencedRecordLinkdraws a pill: the referenced object'sObjectIconTile(ObjectSchema.color/icon, 对象加颜色:从固定的一小组色板里选,图标画成彩色圆角小方块里的白色图标,菜单、标题、关联标签处处同一个样子 #35985) and the whole name,break-words, not truncated. It is still the same anchor (samehref, sameopenRecordclick,stopPropagation), so a click opens the record and is not the row's; with no route it is a plain pill. Outside the context the link face is unchanged.recordFieldList.ts, therecordBodyFields.tsstore pattern:useId+ layout effect, read withuseSyncExternalStore).EmptyFieldsRowcloses the details column with 「显示 N 个空字段」 / 「隐藏空字段」. The choice is the existing per-object record-page preferenceshowEmptyFields(record page read mode: inline edit exists only as an invisible "双击编辑" affordance, and each section's "显示 N 个空字段" toggle is separate and forgets its state on reload #25883). This replaces, on this page only, each section's own toggle andDetailView's 「N 个空分组」 line. An authoredhideEmptysection stays hidden and is not counted; an all-empty group draws nothing until the reader shows empties.RecordMetaFooterdraws a foldedDetailSectiontitled 系统信息 with one read-only row per fact: created by, created on, updated by and updated on (only when the record was updated), the owner (only when neither the strip nor the body draws it, the Default record page: no derived highlight strip (declared highlightFields only); the stage field leaves the body when the path draws it; the owner appears once, under one word #28868 / Record page: the owner shows twice when a field group draws owner_id (header meta line plus the group's field) #35941 owner-once rule unchanged) and the record ID. This reverses objectui#12307's one-line meta footer on the laid-out record page, as the card asks; outside the field list (print, embeddedDetailView, authored pages) the line is unchanged. The group is wrapped so its rows do not report as body fields.onEnterInlineEdit, unless the click lands on a link, button, input orrole=button|link|checkboxinside the value, or the reader has a text selection in the row. The pencilButtonstays in the DOM assr-onlyand shows onfocus-visible, so keyboard users keep a way in; the title hint reads "Click to edit". Double-click is no longer wired there. The pencil, its tooltip and the value's title are named for the gesture that works there,detail.clickToEdit("Click to edit" / 点击编辑); every other face keepsdetail.editInlineHint. Read-only values no longer copy on click (copyInteractiveis off for frameless). The copy icon stays for a mouse (hover / keyboard focus) and ispointer-coarse:hiddenon the field list, so a phone shows no copy icon (ruling 1): a tap would otherwise set:hoverand reveal it. An editable lookup: the chip opens the record (列表格子里单击只选中:去掉邮箱、电话格里的复制按钮;链接和人员标签不在单击时跳转;关联记录标签单击在侧边打开(名称列除外) #36015 precedent), the rest of the row edits.Dev-thread calls (no card needed under the 22:19Z rule):
collapse: 'collapsed' | 'expanded', and 系统信息. A field group's spec default iscollapse: 'none'("always open, no toggle"), so on CRM (商机, 其他) no group has an arrow. Makingnonegroups foldable would override authored metadata, so it is not done here; that would be a separate question for the seat. A declared foldable group (showcase Semantic Zoo, 财务信息) is shown folded and open in the evidence comment.RecordDetailView.tsxis not touched (手机记录页底部按钮条只在有主要动作时出现;「编辑」不再占一个按钮,放进「更多」 #36151, 右侧预览收紧:宽度收到 460 可拖动;头部去掉「编辑」和「复制编号」;点子表记录在同一个预览里打开 #36149 + 右侧预览头部:动作按钮多时记录名被挤成几个字(HotCRM 线索只剩「Mira C...」);记录名优先显示,按钮只留一个主要动作 #36201 wait on this merge).Card checklist
DetailSection.fieldList-36147,RecordPageColumns.test.tsxnew describe)referenceChip-36147; browser href)RecordMetaFooter.systemInfo-36147, control: outside the list the line is unchanged)Verification
vitest run packages/plugin-detail: 406 files / 3,749 tests pass (18 skipped, existing), re-run after the L1-d rework.vitest run packages/fields: 321 files / 4,821 pass (7 skipped).RecordDetailView|RecordPageColumns|record-meta-footer|data-detail-field|…): 2,092 / 2,099 passed first time; the 7 failures were the two owner-once files that read the meta line (RecordDetailView.phoneOwnerLine-28909,RecordMetaFooter.ownerOnceBody-35941). They now open 系统信息 and read its Owner / Record ID rows, with the same owner-once assertions; 9 / 9 pass.type-check(src and tests) clean for plugin-detail and fields; fullpnpm build(consoletscincluded) passes; ESLint on every changed file: 0 errors;check:new-line-citations: 0 new.record-flow-phone-targets(CI E2E UI) now reads the pencil classes from the module constantsPENCIL_CLASS/FIELD_LIST_PENCIL_CLASSinstead of a JSX attribute pattern, and gains one test: on a 375 px touch screen the field list's pencil is 1×1 px until a keyboard focuses it, then drawn at its size (6 / 6 pass locally; the new one failed before the class was given explicith-px w-px).inline-edit-polish-2572(not in the CI live list) is updated from double-click to click and the "Click to edit" hint.read-only-member-recordandRecordDetailView.harnesscount pencils by name and now accept the field list's click name; the admin control counts thesr-onlypencil instead of asking it to be visible.user-select: autowith no click or touch handler, so the phone's native long-press selection applies. NOT MEASURED on a physical phone: that long-press selects a read-only value (ruling 1) was checked only by source (no handler, noselect-none) and in emulation; it is owed to the first hosted phone reading.Human Minimum
packages/specholds no runtime logic. (Nopackages/specchange.)main, one pull request..changeset/36147-record-field-list.md), and both declaration lines are filled in here and in the changeset.packages/spectouched: not touched.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgWmyKFrcthV9y5wUiP