Skip to content

feat(record-page): the side preview opens 460 wide, puts the record's name first with one labelled action, and lists a child tab one row per record - #36438

Merged
objectstack-fleet[bot] merged 15 commits into
mainfrom
claude/issue-36149-preview-tighten
Nov 22, 2026
Merged

objectstack-fleet[bot] merged 15 commits into
mainfrom
claude/issue-36149-preview-tighten

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Steedos · project thread
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

Fixes #36149
Fixes #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

维护者速读

What changes

Both cards, one PR (1,119 changed lines incl. tests and docs, under the 1,500-line split threshold).

Width (#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 (#36149 items 2–4, #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 (#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. #36147 (click a value to edit, PR #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.
Runs (ui vitest, verify lock)
  • 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 feat(record-page): the side preview drops the comments icon and panel; a record's comments are on its full page #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 671df74f → 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 38522595 → 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 1b4b33ac → 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 f3d0c848 → 55c538e5). Result: cardFaceHost-36149 「a desktop window with cardFace」 failed (1 failed | 2 passed). Restored: blob == HEAD, git diff HEAD empty.

Acceptance notes

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 + ⋯

before header
after header

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, 删除.

before many actions
after long name
after short name
after more menu

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.

before child tab
after child tab
child in same preview
back to parent

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.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA

…900, one remembered width for every object

The record drawer over a list (and over a record page) opens at 460 px when
the object authors no size, so a 1440 window keeps the list's first columns
beside it. The drag range is 380 to 900 px. The console's two drawer hosts
remember one width for every object instead of one per object, so the
preview does not change width from one record to the next.

Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
Co-authored-by: Claude <noreply@anthropic.com>
…irst: one labelled action, Edit and the id's copy in the ⋯

`RecordHeaderBar.preview` marks the record drawer's bar as the side preview.
There `page:header` draws ONE labelled action, the page's primary, and the
rest go into the ⋯ in their order, the host's Edit too; the edit state's
Cancel and Save keep the row. The one action folds as well while the name is
cut below sixteen characters' width, and the name's full text is its
tooltip. The name has no copy-id icon after it; the console's record view
offers "Copy record ID" in the preview's ⋯. A state's levers (an approval's
approve / reject) are drawn as the state draws them, and a page's bar is
unchanged.

Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
Co-authored-by: Claude <noreply@anthropic.com>
…its untranslated label as the control does

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
…ow per record, its title and one summary line

The side preview's tab hands the list page's grid the new cardFace host
prop, which draws the phone's card rows at any window width, instead of a
table cut off at the preview's 460 px edge.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 22, 2026
…-protocol none requires

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

Final head · 2026-11-22T12:46Z · 79bcf991d4f06f3c98ab9de95b96c43eeaa310fd. CI is complete on this head: every suite is success or an expected skip, none failed, and mergeable_state is clean (os-dev-report 7079073391 on #36149). The area will not push again unless a review asks. A clean main sync before landing is the area's job.
Review owed:

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf

L1 REWORK · head 79bcf991d4f06f3c98ab9de95b96c43eeaa310fd · 2026-11-22T12:51Z

维护者速读

要改的(5 项)

  1. 已发布文档被本 PR 改成了错的。 content/docs/frontend/plugins/plugin-view.mdx:510-512 写「The drawer is 720 px wide, and the reader can drag its edge from 360 px to 60% of the viewport」。本 PR 之后默认是 460,拖动范围是 380 到 900 px。按清单「本轮令其变假的已发布缺陷必修」,在本 PR 里改这一段。头部不再有「编辑」按钮和复制图标这件事,同节若要提也一并写上。

  2. changeset 和正文里「An object that authors its drawer size keeps it」不准。 记住的宽度现在只有一个键(RECORD_PREVIEW_WIDTH_KEY),而 navigation-overlay.tsx:566 是 resize.width != null 时一律用记住的宽度,作者写的 size / width 让位。所以读者在任何一个对象的预览里拖过一次,写了 size: 'xl' 的对象下次打开也是那个拖出来的宽度。以前键是按对象分的,只有拖过这个对象本身才会盖掉。二选一:改这句话,写明「拖过一次后,作者写的尺寸也让位于拖出的宽度」;或者对写了 size / width 的对象不用共享键。选哪种由区域定,但 changeset 必须和代码一致。

  3. 拖动范围的变化不只在右侧预览,changeset 没写。 DRAWER_MIN_PX / DRAWER_MAX_PX 在 @object-ui/components 的 NavigationOverlay 里,所有带 storageKey 的抽屉都受影响:plugin-calendar 的 ObjectCalendar.tsx:1670、plugin-gantt 的 ObjectGantt.tsx:2436、plugin-detail 的 RecordDetailDrawer.tsx:156、plugin-grid 的 ObjectGrid.tsx:3929。具体是:1920 宽的窗口里,上限从 60vw(1152)降到 900;记住的 360 到 379 不再沿用。这是有意的就在 changeset 的 @object-ui/components 段写一句;不是有意的就只对预览收窄。

  4. 右侧预览头部:动作按钮多时记录名被挤成几个字(HotCRM 线索只剩「Mira C...」);记录名优先显示,按钮只留一个主要动作 #36201 的验收截图没有按卡给,也没说为什么换。 卡的验收写「PR 正文附 HotCRM 线索预览头部的改动前后截图」(Mira Costa - Atlas Construction)。正文用的是 app-todo 的任务(5 个动作)。在 Acceptance notes 里补 HotCRM 线索的前后截图,或者写明换成 app-todo 的原因,并说明它证明了同一件事(全名可读、只一个带文字按钮、其余在「⋯」)。同一处再写一句:右侧预览头部:动作按钮多时记录名被挤成几个字(HotCRM 线索只剩「Mira C...」);记录名优先显示,按钮只留一个主要动作 #36201 验收里的「没有自定义动作的记录,头部和现在一样」被 右侧预览收紧:宽度收到 460 可拖动;头部去掉「编辑」和「复制编号」;点子表记录在同一个预览里打开 #36149 盖过了(「编辑」和复制图标都去掉了),这是两卡合做的结果,不是漏改。

  5. 「一个宽度管所有对象」没有测试钉住。 右侧预览收紧:宽度收到 460 可拖动;头部去掉「编辑」和「复制编号」;点子表记录在同一个预览里打开 #36149 验收「关掉再打开另一条,宽度是上次拖的」靠的是 objectViewRecordOverlay.tsx:80 和 recordDrawerStack.tsx:973 都传 RECORD_PREVIEW_WIDTH_KEY。现在把这两处改回 drawer-width:${objectName},没有一个测试会红:navigation-overlay-drawer-27545 用的是固定的 drawer-width:lead。在 app-shell 补一条:对象 A 的预览里拖出的宽度(或写进 ov: + 这个键的值),对象 B 的预览打开时用上。正文写这条测试的消融读数。

不阻塞,顺手可做

席位核对

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 79bcf991d4f06f3c98ab9de95b96c43eeaa310fd
Local-runs: none

Inputs read: card #36149 body and every comment (triage, seat hold, coordinator note 7073032439, claim, os-dev-report 7079073391, claim amendment 7079104853). Card #36201 body and every comment (triage, dispatch, fold hold 7072664137, claim, claim amendment 7079110806). PR #36438 body and its one comment 7079342262. The net diff from merge base ff60149900 to the head: 19 files, +672 / -84. The check-runs on the head.

① Derived judgments

No accept-set change. The diff touches no packages/spec file, no schema and no governed path. The spec's record surface (packages/spec/src/data/record-surface.ts) leaves an auto size to the renderer, so the new 460 default is not a changed meaning of authored metadata.

Public surface, judged from the built entry points (ui/packages/components/src/index.ts, ui/packages/plugin-grid/src/index.tsx):

  • RecordHeaderBar.preview (@object-ui/components, exported type). New optional member. Absent means a page bar, as before. Named right.
  • PageHeaderActionsProps.preview (@object-ui/components, exported type). New optional member, default false. With it off, the row and fold are unchanged: the new fold list ranked minus host minus inline is the same set, in the same order, as the old authoredButtons.slice(rowBudget). hostKeepsRow reduces to isHostButton. The layout effect reduces to the old wrap test. Named right.
  • ObjectGridComponentProps.cardFace (@object-ui/plugin-grid, exported type). New optional host prop. The object-grid renderer passes schema apart from host props, so authored metadata cannot set it. Absent means card rows below 768 px only, as before. Named right.
  • NavigationOverlay (@object-ui/components, exported through ./custom). No prop type changed, but the drag range of the existing storageKey behaviour changed for every caller. See S1. Not named in the declaration.
  • @object-ui/app-shell is private: true. Its new constants RECORD_PREVIEW_DEFAULT_WIDTH and RECORD_PREVIEW_WIDTH_KEY, the RECORD_DRAWER_WIDTH value 720 to 460, and the sys_copy_record_id menu entry are not on a published surface. Named right as internal.
  • i18n: the copy entry uses the existing keys detail.copyRecordId and detail.copied. No new key.

PR body claims checked against the code. These hold: the one labelled action is the first authored variant: 'primary', else the first authored action, never a host or destructive one. In the host's edit state only Cancel and Save stay. The 16 em name floor is measured in previewNameSqueezed. The name has a title tooltip. The copy icon is hidden only when the bar is a preview. The copy entry is preview only. Approval levers are untouched. cardFace is handed only on an enlarged tab under a preview bar. The default width is min(92vw, 460px). The ResizeObserver clears the cap on a host width change, so the primary can return when the name then fits. One claim does not hold as written: "An object that authors its drawer size keeps it". See S2.

② Semver level

The changeset .changeset/36149-side-preview-tighten.md lists @object-ui/components, @object-ui/plugin-grid, @object-ui/plugin-detail and @object-ui/app-shell, each patch. These are exactly the four packages the diff moves. Under AGENTS.md (Land it, item 3) a Metadata-protocol: none change ships patch, widening included. Both Check Changeset runs on the head are success.

Clause-②: yes (widening) is right. The three new optional members are the only type-level additions. Nothing is removed or renamed. Metadata-protocol: none is right. Both lines are line-initial in the PR body and the changeset body. They match the claim amendments on #36149 and #36201. The S1 change does not move either line, because it changes no type and no accept-set, but the declaration prose should name it.

③ Boundary flags

S1 (should-fix) — The drag range change reaches every resizable record overlay, and the declaration names it only for the side preview. DRAWER_MIN_PX and DRAWER_MAX_PX in ui/packages/components/src/custom/navigation-overlay.tsx are component-wide. So ObjectCalendar, ObjectGantt, ObjectKanban, ObjectTree, ObjectGrid's own overlay and RecordDetailDrawer with resizable also change from 360 px to 60vw, to 380 to 900 px. A remembered width from 360 to 379 px is now dropped. On a 1920 px window the widest drag falls from 1152 to 900 px. On a 1024 px window it rises from 614 to 900 px, because the 60vw clamp on a remembered width is gone. The changeset and PR body describe the range only for "the record preview". The Clause-② reason says "new optional members only". Fix: name the component-wide range change in the changeset and the PR body, or scope the range to the preview's host.

S2 (should-fix) — One shared remembered width overrides an authored drawer width on other objects, so the claim "An object that authors its drawer size keeps it" holds only until the reader drags any preview. In NavigationOverlay a remembered width wins over the host's width. Before, the key was per object, so only a drag on that object replaced its authored navigation.size or navigation.width. Now RECORD_PREVIEW_WIDTH_KEY is shared, so a drag on one object's preview resizes every object's preview, authored ones included. A side effect: the console preview and the calendar, gantt and kanban overlays of the same object no longer share one width. The published helper recordOverlayWidthStorageKey still says they do. Fix: qualify the claim in the changeset and PR body, or keep an authored width out of the shared key. Then correct the helper's jsdoc.

S3 (should-fix) — #36201's acceptance names a HotCRM scenario, and the PR body shows a different one without saying so. The card asks for before and after screenshots of the HotCRM lead Mira Costa's preview header, with the full name 「Mira Costa - Atlas Construction」 readable. The body shows an app-todo task with five actions instead and does not call it a substitute. Fix: add the HotCRM lead screenshots, or state the substitution and why, before Fixes #36201 closes the card.

Implemented-by: claude/issue-36149-preview-tighten
Reviewed-by: session_01QsR2jTeURPvEm465RcoYEC

VERDICT: PASS

… side preview; docs and changeset state the new drawer range

The shared remembered width applies only to objects whose drawer width is
not authored; one that authors navigation.size or width remembers a width
under its own per-object key. A test pins the shared width across objects
and both hosts. The plugin-view guide and the checklist give 460 and
380-900; the changeset names every storageKey drawer the range reaches.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

Hold · 2026-11-22T15:30Z · head e3fd50c1a0f75e6bd3e16d5aeee8361d9b42ec67 (main sync of reviewed d8900963 through the relay pr_update_branch, the one sync allowed).
Test UI (2/16) is red again, in the same case: plugin-form masterDetailDetailsMembers-8071.test.tsx case 1, gridOf('Lines') undefined at :259. Every other file in the shard passed (385 of 386). This is #36500, a main flake. It is not this PR's:

…ct width with its other overlays

Reword the changeset, the plugin-view guide and the helper's jsdoc: an
object that authors navigation.size or a navigation.width (pixel or
percent) keeps the per-object key it shares with its calendar, gantt,
kanban, tree and grid overlays.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 88832eb274e3f1d8c2e129beea468f4cdb97d7f3
Local-runs: none

Delta review. The earlier record is comment 7079424660 on head 79bcf991d4f06f3c98ab9de95b96c43eeaa310fd: PASS with S1, S2 and S3 open. Since then: one rework commit d8900963 (10 files, +231 / -16) and main merges with no text conflicts.

Inputs read: card #36149 and card #36201, bodies and every comment, the new os-dev-reports 7080308602 and 7081082244 included. PR #36438 body and its comments (L1 REWORK 7079404899, hold 7081356977, delta head 7082754524). The net diff against main at the head: 24 files. The rework commit on its own. The check-runs on the head.

① Derived judgments

No accept-set change. The rework touches no packages/spec file, no schema and no governed path.

Public surface after the rework:

  • @object-ui/components: the rework changes only the jsdoc of recordOverlayWidthStorageKey. Its spelling and return value are unchanged. The three optional members from the earlier head stand (RecordHeaderBar.preview, PageHeaderActionsProps.preview, and ObjectGridComponentProps.cardFace on @object-ui/plugin-grid). Named right.
  • NavigationOverlay drag range, 380 to 900 px for every storageKey drawer. No type changed. The changeset now has its own paragraph for it, and the PR body too. Named right.
  • @object-ui/app-shell is private: true. The new recordPreviewWidthKey, the new widthKey prop on ObjectViewRecordOverlay and the new drawerWidthKey hook result are internal. None is on a published entry. Named right.
  • Docs: content/docs/frontend/plugins/plugin-view.mdx now gives 460 px, 380 to 900 px, the authored-width exception and the header without Edit or copy icon. The checklist line reads about 460.

Earlier findings:

S1: closed. The changeset names the component-wide range: the calendar, gantt, kanban, tree and grid overlays, a resizable RecordDetailDrawer and the preview. It gives the 1920 px and 1024 px effects and says a remembered width under 380 px is ignored. The PR body says the same. This matches DRAWER_MIN_PX, DRAWER_MAX_PX and the remembered-width read (at least DRAWER_MIN_PX) in navigation-overlay.tsx.

S3: closed. The Acceptance notes state that app-todo stands in for the HotCRM lead, why (the HotCRM checkout has no installed dependencies), and which three points the shots prove. They also state that #36201's line about a record with no custom actions is superseded by #36149. Whether the stand-in is enough to close #36201 is the maintainer's call. The declaration is now honest about it.

S2 (should-fix) — Still open in one part. The storage part is done: recordPreviewWidthKey gives an object with an authored navigation.size (not auto) or navigation.width its own per-object key, both hosts use it, and the helper's jsdoc is corrected. But the new claim "a width dragged in another object's preview never replaces it" holds only on a fresh mount. useDrawerResize in navigation-overlay.tsx keeps the dragged width in React state. Its restore effect sets the state only when the new key holds a value. When the key changes to one that holds nothing, the old width stays. RecordPageDrawerHost keeps one RecordStackDrawer mounted and only switches its storageKey. So on one record page: open a task preview (shared key, 600 px), close it, open a contract that authors 720 px. The contract opens at 600 px until a reload. The same happens in reverse: a width dragged in the authored object's pane carries to the next preview when the shared key is empty. ObjectViewInner has no key by object, so the list host very likely behaves the same when the reader moves from one object's list to another. The stale state is older than this PR, but the changeset, the docs page and the PR body now promise the opposite. The pin recordPreviewWidth-36149 does not see it: both CONTROL cases seed localStorage and mount fresh. This is read from the code, not run. Fix: reset the width to null in the restore effect when the key holds no usable value (and when the key is absent), and add a case that opens an unauthored object and then an authored one in the same mounted host. Or qualify the claim.

New in the rework:

S4 (should-fix) — On a record page's drawer, an authored navigation.size does not set the width, yet the text says it does. RecordPageDrawerHost reads only navigation.width for rootWidth, else the 460 default. recordPreviewWidthKey still treats a size as authored there. So an object with size: 'xl' and no width opens at 460 px on a record page, with its own key, and no longer follows the shared width. The changeset's first line covers "a record page's drawer level" and says such a preview "opens at the authored width". The list host does honour size (recordPaneWidth). Ignoring size in this host is older than the PR; the wording is new. Fix: read the size bucket for rootWidth too, or say in the changeset that on a record page only a pixel navigation.width is the authored width.

N1 (nit) — The list host's wiring is not pinned. The CONTROL "the list preview of an object whose view authors a size keeps its own key" passes widthKey by hand. No test covers drawerWidthKey in useObjectViewRecordNavigation or widthKey={drawerWidthKey} in ObjectView.tsx. Dropping that prop would turn no test red.

② Semver level

The changeset .changeset/36149-side-preview-tighten.md lists @object-ui/components, @object-ui/plugin-grid, @object-ui/plugin-detail and @object-ui/app-shell, each patch. The net diff moves source in exactly these four packages. The rework adds none: its other files are a docs page, the QA checklist and tests. Under AGENTS.md a Metadata-protocol: none change ships patch, widening included. Both lines are line-initial in the PR body and in the changeset.

Clause-②: yes (widening) is right. The type-level additions are the three optional members, as before. Nothing is removed or renamed. The PR body's line adds that recordPreviewWidthKey is app-shell internal, which is true. The range change is behaviour of an existing prop, not a type change, and it is now declared in prose. Metadata-protocol: none is right.

The changeset body is accurate except for the two sentences named in S2 and S4.

③ Boundary flags

Implemented-by: claude/issue-36149-preview-tighten
Reviewed-by: session_01QsR2jTeURPvEm465RcoYEC

VERDICT: PASS

… drawer honours an authored size

useDrawerResize drops the previous width when the new storage key is absent
or holds no usable value, so one mounted host switching from an unauthored
object to an authored one opens at the authored width. RecordPageDrawerHost
now reads the root pane width through the shared recordPaneWidth (moved to
recordDrawerContext), honouring navigation.size like the list host. Pins:
key switch both directions, size xl on a record-page level, and the list
host's drawerWidthKey reaching the overlay.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
…switch drops the previous width

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

Delta head · 2026-11-22T18:36Z · 192a0febefe3167778fec880839ec5d8ebf0174d. CI is complete on this head: 56 success, 12 expected skip, 0 failed, mergeable_state clean.
Range since 88832eb2 (3 commits, 8 files, +133/−41) answers L1-d delta REWORK 7082794312 and the delta L2 should-fixes S2 and S4, plus N1, in 7082818368:

  • f4aaee64 (L1 item, wording; the changeset Width paragraph and plugin-view.mdx): an authored-width object keeps its per-object key, which it shares with that object's calendar, gantt, kanban, tree and grid overlays, and it opens at the authored width until a width is dragged there. "No longer shares" now covers only objects that author no size or width, and the text says "a navigation.width (pixel or percent)".
  • db0edefe (code + tests):
    • S2, navigation-overlay.tsx useDrawerResize: the width resets to null when storageKey is absent, holds no usable value, or storage throws. Pin: in recordPreviewWidth-36149, one mounted drawer opens an unauthored object and then an authored one, and the reverse. Ablation: with both resets removed, 2 of 9 fail; either reset alone still covers the close → reopen path.
    • S4: recordPaneWidth moved into recordDrawerContext.ts, and both hosts use it (objectViewRecordNavigation.ts, recordDrawerStack.tsx), so RecordPageDrawerHost now honours navigation.size.
    • N1: ObjectView.recordOpenPath-35854 pins widthKey={drawerWidthKey}. Ablation: deleting the prop fails 1 of 11.
  • 192a0feb: the changeset and mdx sentences for S2 and S4.
  • PR body (relay issue_patch) updated to match.
    Locally under the lock: 13 files, 117/117; type-check of components and app-shell exits 0; 73 derived gates exit 0.
    Reviews owed: L1-d's delta and the seat's short delta L2 at this head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf

L1 ACCEPT(增量)· head 192a0febefe3167778fec880839ec5d8ebf0174d · 2026-11-22T18:38Z

维护者速读

增量核对(88832eb2 → 192a0feb,3 个提交,8 个文件,没有合并)

  • 我上一轮那一项已改。 changeset 和 plugin-view.mdx:511-520 现在写的是:写了宽度的对象沿用按对象的键,并和这个对象的日历、甘特、看板、树、表格浮层共用;在这个预览或那些浮层里拖过之前,按作者写的宽度打开。「不再和同一对象的浮层共用宽度」限定在没写尺寸和宽度的对象上。navigation.width 写成「pixel or percent」。这和 recordPreviewWidthKey(nav.width != null)、以及那六处都用 recordOverlayWidthStorageKey 的事实一致。recordDrawerContext.ts 的 TSDoc 也同样改了。
  • L2 S2(同一个抽屉换键时沿用了上一个键的宽度)已改。 useDrawerResize 的读取 effect 在三种情况下都 setWidth(null):没有键、新键里没存可用的宽度、读存储抛错。所以宿主自己的宽度生效。迁移旧键的路径不变(读到、写入新键、删旧键)。新键里存着但小于 380 的值,和以前一样不用。新用例在同一个挂着的记录页抽屉里正反各走一次:先开一条任务(共享宽度),再开一个写了 720 的合同,得 720;反过来先在合同里拖到 500,再开任务,回到默认。消融把两处重置一起去掉,9 条里红 2 条;只去掉一处时两条都还是绿的,正文解释了原因(关闭会先经过无键那一支)。复原后 blob 等于 HEAD。changeset 的 @object-ui/components 段补了一句,说明了这个行为。
  • L2 S4(记录页抽屉不认作者写的尺寸)已改。 recordPaneWidth 从 objectViewRecordNavigation.ts 移到 recordDrawerContext.ts,参数改成整个 navigation:有 width 就用 width,否则用 size 对应的宽度,auto 或没写时是 460。列表预览的结果和原来的 authored?.width ?? recordPaneWidth(size) 一样。RecordPageDrawerHost 原来只看 navigation.width,现在也走它,所以写了 size: 'xl' 的对象在记录页抽屉里也按 xl 打开。有新用例,并有 recordPaneWidth 三种情况的单测。记录页没有视图,读的是对象自己的 navigation,所以 changeset 里「reads the same authored size or width as the list's preview」说的是对象层,这样读没有问题。
  • N1(widthKey 的接线)已钉。 ObjectView.recordOpenPath-35854 加了一条:视图写了 size: xl 时不用共享宽度,并有对照。消融删掉 ObjectView 的 widthKey={drawerWidthKey} 后红 1 条,复原后 blob 等于 HEAD。
  • 读数:本 head 上 13 个文件、117 条通过,VERDICT command-exit 0;components 和 app-shell 的 type-check 通过。
  • 其余各项沿用前两轮的核对。两个 Fixes(右侧预览收紧:宽度收到 460 可拖动;头部去掉「编辑」和「复制编号」;点子表记录在同一个预览里打开 #36149、右侧预览头部:动作按钮多时记录名被挤成几个字(HotCRM 线索只剩「Mira C...」);记录名优先显示,按钮只留一个主要动作 #36201)仍成立,l1-face 的 keywords-other-cards 旗是有意的。
  • CI @ 192a0feb:56 success、12 skipped、0 failed;mergeable clean;不在治理面。
  • 落地:非受管。席位的短增量 L2 通过后,由区 ready + auto-merge。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 192a0febefe3167778fec880839ec5d8ebf0174d
Local-runs: none

Delta review. The earlier record is comment 7082818368 on head 88832eb274e3f1d8c2e129beea468f4cdb97d7f3: PASS with S2 open in part, S4 and N1. Since then: three commits (f4aaee64, db0edefe, 192a0feb), 8 files, +133 / -41, no merges.

Inputs read: card #36149 and card #36201 with every comment, the new os-dev-report 7083475654 included. PR #36438 body and comments (L1-d delta REWORK 7082794312, delta head 7083733575). The file list (24 files) and the range since the earlier head, read against the head's own files. The check-runs on the head.

① Derived judgments

No accept-set change. The range touches no packages/spec file, no schema and no governed path.

Public surface in the range:

  • @object-ui/components: useDrawerResize in navigation-overlay.tsx now sets the dragged width back to none when its storageKey is absent, when the key holds no usable value, and when storage throws. No type changed. It is behaviour of the existing storageKey prop and it reaches every resizable drawer. The changeset declares it in the components paragraph. Named right.
  • @object-ui/app-shell is private. recordPaneWidth moved from objectViewRecordNavigation.ts to recordDrawerContext.ts and now takes the navigation block. Both hosts call it. Internal, on no published entry. Named right.

Earlier findings:

S2: closed. The restore effect now resets on every path that finds no usable width. On a record page the drawer's key goes absent on close, so the next open starts from the host's width and then reads the new key. Forward (task at the shared 600, then a contract that authors 720) and reverse (contract at its own 500, then a task at 460) are both pinned in one mounted host in recordPreviewWidth-36149. The dev's ablation (both resets removed, 2 of 9 red) is stated honestly as a joint reading.

S4: closed. RecordPageDrawerHost reads rootWidth through recordPaneWidth, the same helper the list host uses: an authored width as written, else the size bucket through overlayWidthFor, else 460. recordPreviewWidthKey and recordPaneWidth now agree on what is authored (width set, or a size other than auto; a width beats a size in both). A pin opens an object with size: 'xl' on a record page at the xl width with 600 in the shared key.

N1: closed. ObjectView.recordOpenPath-35854 now opens a real list whose view authors size: 'xl' with 600 in the shared key and expects the xl width, with a CONTROL at 600. The ablation (the widthKey prop deleted, 1 of 11 red) fits the code: the overlay's default is the shared key.

L1-d wording (7082794312): answered. The changeset and plugin-view.mdx now say the authored-width object keeps its per-object key, shared with its calendar, gantt, kanban, tree and grid overlays, and opens at the authored width until a width is dragged in the preview or in one of them. "No longer shares" is limited to objects that author nothing. "pixel or percent" matches nav.width != null. One gap against the code: RecordDetailDrawer (when resizable) uses the same key and is not in that list of five. It is named in the range paragraph only. See N3.

Attempts to break the reset and the size honour, all read from the code, none run:

  • Forward and reverse key swap, through a close or directly: holds.
  • Empty versus absent key: an empty string and an absent key both take the no-key branch. A stored empty string falls through to the legacy read and resets.
  • A remembered width under 380 px, zero, or text: reset to the host's width. A remembered width over 900 px is kept and drawn at 900.
  • A percent width: per-object key, '50%' drawn as written, a drag then stores pixels under that key.
  • A phone: the list host passes no navigation to the key and opens a page, so the overlay gets no key. On a record page the card is w-screen below sm and reads the width only from sm up.
  • The spec gives size a default of auto, so parsed metadata without a size stays on the shared key.

New in this range:

S5 (should-fix) — Two new sentences say more than the code does. First, plugin-view.mdx says "a drawer next opened for another object's record opens at that object's width", in the section on the list's drawer. In the list host this is not so for a record a lookup chip opens as the drawer's root (drawerForeignObject, objectstack#36015): the width and the key come from the list's own object and view (navOverlay.width, drawerWidthKey), not from the record's object. A contract that authors 720 opens from a task list at 460 or at the shared dragged width. A child level pushed inside an open drawer also keeps the root's width, in both hosts. Second, the changeset says a record page's drawer level "reads the same authored size or width as the list's preview". The list reads activeView.navigation, and the object's only when the view has none. The record page reads only the object's navigation. So a view-authored width never reaches the record page, and a view with any navigation block hides the object's on the list. Fix: limit both sentences to the root record of a record page's drawer and to the object's own navigation. Or resolve the list host's width and key from the root's object.

N2 (nit) — The "key holds nothing" reset has no pin of its own. The dev says so in the report's out-of-scope note, and I accept the reading. On the close and reopen path each reset covers the other. The one path that needs that branch alone is a mounted overlay whose key moves straight from one key to another, such as a view switch in the list host with the drawer open. A components-level case that rerenders NavigationOverlay with a new storageKey would pin it.

N3 (nit) — Two small things. The new catch now also resets the width when the legacy migration's write throws after its read worked (a full quota), so a readable legacy width is dropped for that mount where it was kept before. And the changeset and docs list five overlays that share the per-object key, while a resizable RecordDetailDrawer shares it too.

② Semver level

The changeset .changeset/36149-side-preview-tighten.md lists @object-ui/components, @object-ui/plugin-grid, @object-ui/plugin-detail and @object-ui/app-shell, each patch. The 24 files move source in exactly these four packages. The range moves source only in components and app-shell, both listed. Under AGENTS.md a Metadata-protocol: none change ships patch, widening included.

Clause-②: yes (widening) is right and unchanged, line-first in the PR body and in the changeset. The type-level additions are still the three optional members (RecordHeaderBar.preview, PageHeaderActionsProps.preview, ObjectGridComponentProps.cardFace). Nothing is removed or renamed. The key-switch reset is behaviour of an existing prop and is declared in prose. Metadata-protocol: none is right.

The changeset body is accurate except for the sentence named in S5.

③ Boundary flags

  • open_questions: empty in the latest report (7083475654).
  • The report's out-of-scope note (the key-holds-nothing reset is reachable alone only on a direct key change, not pinned alone): answered in N2. No carrier owed.
  • L1-d delta REWORK 7082794312, one wording item: done, see above.
  • The dev dropped a direct-switch test because opening a record while the drawer is open pushes a child level on the same root. That matches openFromPage in recordDrawerStack.tsx.
  • Fixes #36149 and Fixes #36201: unchanged.
  • SQL push-down. No data read, no id materialisation and no in-app join in the range.
  • Check-runs on the head: 56 success, 12 skipped, 0 failed. GitHub reports the PR mergeable and clean.
  • Security. None found.

Implemented-by: claude/issue-36149-preview-tighten
Reviewed-by: session_01QsR2jTeURPvEm465RcoYEC

VERDICT: PASS

…he view's navigation first

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 9be733357b0a9b0c7ba259f9f7a34c9b68ed0ef0
Local-runs: none

Delta review, text only. The earlier record is comment 7083789616 on head 192a0febefe3167778fec880839ec5d8ebf0174d: PASS with S5 open, plus N2 and N3. Since then: one commit (9be733357b0), 2 files, +12 / -9, no merges.

Inputs read: card #36149 and card #36201 with every comment, the new os-dev-report 7084222271 included. PR #36438 body and comments. The file list (24 files) and the range since the earlier head. Each new sentence was read against the head's own code: recordDrawerContext.ts, recordDrawerStack.tsx (RecordPageDrawerHost), objectViewRecordNavigation.ts, objectViewRecordOverlay.tsx, navigation-overlay.tsx and plugin-detail's RecordDetailDrawer.tsx. The check-runs on the head.

① Derived judgments

No accept-set change and no public-surface change in the range. The range touches .changeset/36149-side-preview-tighten.md and content/docs/frontend/plugins/plugin-view.mdx only. No product file, no test, no packages/spec file, no schema and no governed path moved. The earlier record's judgments on the code stand as written.

Earlier findings:

S5: closed. Both wrong sentences are gone, and each new sentence holds against the code.

  • "The list's preview reads the view's navigation, then the object's": objectViewRecordNavigation.ts reads activeView?.navigation ?? objectDef.navigation for the width (line 239) and for the key (line 267). True. See N4 for one thing the word "then" leaves out.
  • "a record page's drawer reads only its root record's object's navigation": RecordPageDrawerHost finds rootDef by root.objectName and hands rootDef.navigation to recordPaneWidth and to recordPreviewWidthKey. No view is read. True.
  • "Such a drawer keeps the object's per-object key": recordPreviewWidthKey returns recordOverlayWidthStorageKey(objectName) when a width is set or a size is other than auto. The list host passes the list's object, the record page passes the root's. True.
  • "child levels keep the root's width": RecordStackDrawer gets one width and one storageKey from its host for the whole stack, and openFromPage pushes a child while a root is open. True in both hosts.
  • "in the list a record a lookup chip opens as the root takes the list's width and key": objectViewRecordOverlay.tsx passes navOverlay.width and widthKey, both worked out from the list's objectDef and view, whatever drawerForeignObject says. True.
  • "On a record page, a drawer closed and next opened on another object's record opens at that object's width": on close the root is none and the key is absent, so useDrawerResize drops the width. The next open reads the new root's width and key. True for the case the earlier record cared about. See N5 for the second half of that sentence.
  • plugin-view.mdx dropped the "next opened for another object's record" sentence and now carries the same root, child-level and lookup-chip wording. It matches the changeset and the code.

N3: closed for the overlay list. Both files now name a resizable RecordDetailDrawer beside the five overlays. plugin-detail's RecordDetailDrawer.tsx line 156 uses recordOverlayWidthStorageKey(objectName) when resizable, so the sentence is right. "No longer shares a width with ... its RecordDetailDrawer" is also right: on the merge-base both hosts spelled the same drawer-width:OBJECT key by hand. The other half of N3 (the catch also resets when the legacy migration's write throws) is code, and the code did not move. It stays as noted.

N2: open, unchanged. The "key holds nothing" reset still has no pin of its own. The dev says so. Accepted as before.

New in this range:

N4 (nit) — "reads the view's navigation, then the object's" does not say the fallback is by whole block. The code is activeView?.navigation ?? objectDef.navigation. A view that carries any navigation block hides the object's block, even when the view's block authors no size or width. The spec fills size with auto, so such a view opens at 460 on the shared key although its object authors xl. A reader can take "then" as field by field. "the view's navigation when it has one, else the object's" would say it.

N5 (nit) — The changeset's last Width sentence ends "not the width dragged for the previous one". That holds when either object authors its width. When neither does, both use the one shared key, so the second drawer does open at the width dragged for the first. The paragraph's third sentence already says so, so the two read against each other. Ending the sentence at "opens at that object's width and key" would fix it. The mdx page does not carry this clause.

② Semver level

Unchanged. The changeset lists @object-ui/components, @object-ui/plugin-grid, @object-ui/plugin-detail and @object-ui/app-shell, each patch. The 24 files still move source in exactly these four packages. The range moves no source.

Clause-②: yes (widening) is right and unchanged, line-first in the PR body (line 8) and in the changeset. Metadata-protocol: none is right. The changeset body is now accurate, with the two wording gaps in N4 and N5.

③ Boundary flags

  • open_questions: empty in the latest report (7084222271). out_of_scope_findings: empty.
  • The report says N2 and the quota-catch half of N3 are untouched. That is what the diff shows. No carrier owed.
  • The report says the PR body's Width and Docs paragraphs were mirrored. The body no longer holds either sentence S5 named.
  • Fixes #36149 and Fixes #36201: unchanged.
  • SQL push-down. No data read, no id materialisation and no in-app join in the range.
  • Check-runs on the head, read at about 19:20Z: 14 success, 12 skipped, 38 still running, 0 failed. Build Docs and Check Changeset, the two that bear on this range, were still running. GitHub reports the PR mergeable, state blocked while they run. This verdict rests on the reading above and not on a finished gate set. A check that ends red on this head would reopen it.
  • Security. None found.

Implemented-by: claude/issue-36149-preview-tighten
Reviewed-by: session_01QsR2jTeURPvEm465RcoYEC

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

Delta head · 2026-11-22T19:33Z · 9be733357b0a9b0c7ba259f9f7a34c9b68ed0ef0. CI is complete on this head: 56 success, 12 expected skip, 0 failed, mergeable_state clean.
Range since 192a0feb: one text-only commit, 2 files (.changeset/36149-side-preview-tighten.md, content/docs/frontend/plugins/plugin-view.mdx, +12/−9), answering delta L2 S5 and N3 (7083789616). No product code or test moved.
Seat delta L2 PASS 7084268998: S5 and N3 closed; N4 and N5 accepted as nits.
Review owed: L1-d's delta at this head. Then the area lands.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf

L1 ACCEPT(增量)· head 9be733357b0a9b0c7ba259f9f7a34c9b68ed0ef0 · 2026-11-22T19:34Z

维护者速读

增量核对(192a0feb → 9be73335,1 个提交,只改 changeset 和 plugin-view.mdx)

  • 新的说法我逐句对过代码:
    • 「列表的预览先读视图的 navigation,再读对象的」:objectViewRecordNavigation.ts 里宽度和键都用 activeView?.navigation ?? objectDef.navigation,一致;
    • 「记录页的抽屉只读根记录所属对象的 navigation」:RecordPageDrawerHost 用 rootDef.navigation 算 recordPaneWidth 和 recordPreviewWidthKey,一致;
    • 「按对象的键还和 RecordDetailDrawer 共用」:RecordDetailDrawer.tsx:156 可调宽时用 recordOverlayWidthStorageKey(objectName),一致;我上一轮列的六处里本来就有它,现在 changeset 和文档也列上了;
    • 「宽度和键属于抽屉的根:子层沿用根的宽度;列表里由查找字段的记录标签打开的根记录,用的是列表对象的宽度和键,不是打开那条记录的对象的」:ObjectViewRecordOverlay 的 storageKey 是按列表对象和列表的 navigation 算出的 widthKey,宽度也是列表的 navOverlay 的,和打开的是哪个对象的记录无关,一致;
    • 「记录页上关掉抽屉、再打开另一个对象的记录,按那个对象的宽度打开」:就是上一轮 S2 的换键重置,一致。
  • plugin-view.mdx:510-523 是已发布的文档,和 changeset 的说法一致。
  • 其余各项沿用前几轮的核对,这一轮没有动代码。
  • CI @ 9be73335:56 success、12 skipped、0 failed;mergeable clean;不在治理面。
  • 落地:非受管。席位的短增量 L2 通过后,由区 ready + auto-merge。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

Landing · 2026-11-22T19:35Z · head 9be733357b0a9b0c7ba259f9f7a34c9b68ed0ef0. L1-d delta ACCEPT 7084514516 and the seat's delta L2 PASS 7084268998 (TIER_DEFAULT, Clause-②: yes (widening)) are both at this head.

probe reading
check-governed-merges.mjs --pr 36438 NOT governed · +1010 / −112 ≤ 3000
K (first-parent commits merge-base → origin/main) 7 ⇒ no sync
check-runs @ 9be73335 56 success, 12 expected skip, 0 failed; mergeable_state clean
L2 chain 7079424660 → 7082818368 → 7083789616 → 7084268998, all PASS; S1–S5 closed
accepted N2 (no own pin for the key-holds-nothing reset), the N3 quota-catch half, N4, N5, as the L2 rules
out of scope #36468 (navigation.size describe), #36500 (fixed on main by #36514)

State: ready + auto-merge now. Fixes #36149 and Fixes #36201 close both cards on merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 22, 2026 19:35
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit aad35e6 Nov 22, 2026
69 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36149-preview-tighten branch November 22, 2026 19:59
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 23, 2026
… and group subtotals and the footer total follow a cell save (objectstack-ai#35689 slice B) (objectstack-ai#36476)

Fixes objectstack-ai#35689 — slice B (groups and totals after a save). Slice A (touch,
accessibility, checked rows) landed earlier on its own PR, so nothing
else on the card is left.

Clause-②: no
Metadata-protocol: none

## 维护者速读

-
列表页按阶段分组时,把一条的阶段从甲改成乙:停在这一行时它不动,点到别的行后它出现在乙组,两组的条数和金额小计都对;改金额后分组小计和表尾合计马上更新。
- 列表行内编辑重做专题的最后一块(分组与合计随保存更新),这张卡至此做完。
- 出错时最坏是分组小计或表尾合计显示旧数字、或这一行要刷新后才换组,保存的数据本身不受影响;可以直接撤回。
- 无

## What changes

Measured first on `origin/main` 285ad8d, in a list that selects a cell
first (the list page's grid), with the card-named pins below run against
the unchanged source:

| Card item | Server grouping | Browser grouping | Premise |
|:---|:---|:---|:---|
| A row whose stage changed moves to its new group after the user leaves
the row | did not move | did not move | holds: broken |
| Group counts and amount subtotals after the save | not refreshed | not
refreshed | holds: broken |
| Footer total, flat grid whose rows are the whole set | not refreshed |
n/a | holds: broken |
| Footer total, grid paged on the server (whole-set figure) | already
re-read after a write | n/a | false: works on main, pinned only |

Why: a select-first save redraws only its own row (the row patches of
objectstack-ai#35685) and the list lets its own write go by on the bus, so nothing is
read again. The groups, the group headers' numbers and the footer's row
figures read the rows as loaded, not as saved. The whole-set footer
listens to the bus itself, so it already re-asked.

What this PR does, all in `@object-ui/plugin-grid`:

- **The figures read the saved rows.** `rowsAsSaved` (in
`objectGridRowPatch.ts`) gives the rows with each saved row in place of
the one read, while that read is the one held. The footer reads it, so a
flat grid's total includes the saved value at once. A grid that groups
the rows it was handed buckets it, so its counts and subtotals follow
the save.
- **A row whose save changed a grouping field is held in its group until
the row is left.** `writeRowInPlace` notes such a record in
`heldInGroup`. The browser bucketing reads that record as it was loaded
(it stays in its group, counted and summed there). `onCellSelect` on a
cell of another row lets it go: the browser bucketing then moves it, and
a server-grouped grid reads its group headers and open groups' rows
again (`regroupNonce`). A cell of the same row does not let it go. Any
later save on a held row waits with it.
- **Any other save in a server-grouped grid re-asks only the headers**
(`savedFigureNonce`), so subtotals update at once and no row is read
again. `objectGridGrouping.ts` now keys the header query on that nonce
and the row pages on `regroupNonce` alone.
- A grid without the select-first model still reads everything again
after each save, as before (control pin).

Docs: `content/docs/frontend/plugins/plugin-grid.mdx` gains one bullet
under the per-cell save section. Changeset: `@object-ui/plugin-grid`
patch.

## Tests

One new top-level describe in the component's existing select-first save
harness, `ObjectGrid.autosave-35685.test.tsx`: "ObjectGrid — groups,
subtotals and the footer total after a cell save (objectstack#35689)".
It covers both grouping paths: the server, where the grid asks its own
group headers and group pages, and the browser, where it buckets rows a
host hands it.

- Card line 「离开这一行后它出现在乙组,两个组的条数和金额小计正确」, on each path: a stage pasted
from Prospect to Won keeps the row in Prospect, with both groups at
their old figures. A click on another cell of the same row keeps it
there too. A click on a cell of another row moves it to Won, and the
groups read Prospect 1 · 100 and Won 2 · 80.
- Card text 「分组小计…随保存更新」, on each path: an amount saved is in its
group's subtotal at once. No row is read again. A server-grouped grid
asks its headers exactly once more, and a browser-grouped one asks
nothing.
- Card line 「表尾合计在改了金额后更新」: in a flat grid whose rows are the set, the
footer sum goes from 180 to 200. In a grid paged on the server, the
whole-set footer is read again and reads 200 (this holds on main and is
pinned only).
- Control: without `cellSelection`, a write on the bus re-reads the
grouped grid at once.

Ablations: one run per leg through `scripts/ablation-replace.mjs`. Every
anchor hit x1 and went to x0, and every restore came back to the HEAD
blob `f5aebf14` with `git diff HEAD` empty. The suites import the grid
by relative path (source), so no dist leg was owed:

| Leg | Mutation | Red |
|:---|:---|:---|
| A1 | `onCellSelect` no longer lets a held row go | 2: the move pin on
both paths |
| A2 | no header re-ask on a save | 1: server subtotal |
| A3 | the grouping reads the loaded rows | 2: browser move and browser
subtotal |
| A4 | the footer reads the loaded rows | 1: flat footer |
| A5 | a held row is bucketed as saved | 1: browser hold before leaving
|

<details><summary>Readings (all through
scripts/pm/os-verify-lock.sh)</summary>

- On `origin/main` 285ad8d before any source edit, the new describe
gave 5 failed and 2 passed (the paged footer and the control). The
failures: Won expected Bolt and Cord, got Cord only (both paths); the
subtotal stayed 2 · 150 (both paths); the footer stayed Sum: 180.
- At e96aa67 (after merging origin/main with objectstack-ai#36332 and objectstack-ai#36396): `pnpm
turbo run build --concurrency=2 --filter='@object-ui/plugin-grid^...'
--filter='@objectstack/client-react...'`: 54 successful. Then `pnpm
--filter @object-ui/plugin-grid run type-check` (script echoed): exit 0.
Then `pnpm --dir ui exec vitest run --maxWorkers=2
packages/plugin-grid/`: Test Files 304 passed (304), Tests 2706 passed
(2706). And `pnpm --dir ui exec vitest run --maxWorkers=2 scripts/`:
Test Files 172 passed, 2 skipped; Tests 5127 passed, 2 skipped; exit 0.
- At 1285fe4 (the final head; it only moves the new describe above the
state-machine block, so it does not collide with an open PR's append at
the end of the file): the harness gave Test Files 1 passed (1), Tests 29
passed (29), VERDICT command-exit 0. `pnpm check:nul-bytes` exit 0.

</details>

<details><summary>Gates</summary>

- `node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` at e96aa67 derived 72 families (6 paths vs
merge base d8628ac). All ran with exit 0. Three needed a second
attempt: `check:skill-examples` first exited 3 because client-react had
no dist (built, then exit 0); `check:type-check-debt` first exited 3
because the lock was busy (run under the lock, exit 0, 0 raw tsc
errors); the ui `scripts/` suite first got no turn on the lock (exit
99), and its reading is above.
- `--ran`: 72 derived, 72 run, 0 NOT-MEASURED, 0 UNRUN, with every exit
code recorded.
- `node scripts/pm/overlap-check.mjs` at 1285fe4: VERDICT clean exit 0,
against origin/main 7ae5e07 and 4 open heads (objectstack-ai#36453, objectstack-ai#36438, objectstack-ai#36357,
objectstack-ai#36316).

</details>

## Acceptance notes

- "Leaving the row" means selecting a cell of another row (a click, the
arrow keys, Tab across the row's end). Escape, or a click outside the
grid, keeps the row selected, so it stays in its group until another row
is selected or the list loads again.
- When a server-grouped grid regroups on leaving a row, it reads the
open groups' rows again, so a group pager turned past page 1 starts over
at page 1, as on any refresh.
- A held record stays noted after a later full load. The next time a row
is left, the groups are read one extra time. That read is harmless.

## Verification

Files to read first, by risk:
1. `ui/packages/plugin-grid/src/ObjectGrid.tsx`: `noteSavedPlace`,
`leaveHeldRows`, and the `savedData` and `groupedData` memos.
2. `ui/packages/plugin-grid/src/objectGridGrouping.ts`: the header and
row reload keys.
3. `ui/packages/plugin-grid/src/objectGridRowPatch.ts`: `rowsAsSaved`.

Two-minute check: `pnpm --dir ui exec vitest run
packages/plugin-grid/src/__tests__/ObjectGrid.autosave-35685.test.tsx`.
Expect 29 passed, including the seven under "(objectstack#35689)".

---
_Generated by [Claude
Code](https://claude.ai/code/session_01QsR2jUc3qp6bHKSWijbjds)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 23, 2026
…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) |
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/before-no-primary-light.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-no-primary-light.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-no-primary-dark.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-no-primary-light-menu.png?raw=true)
|
| Actions (Task) |
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/before-primary-light.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-primary-light.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-primary-dark.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-primary-light-menu.png?raw=true)
|
| HotCRM lead (zh-CN) |
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/before-hotcrm-lead-light.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-hotcrm-lead-light.png?raw=true)
| not taken |
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-hotcrm-lead-light-menu.png?raw=true)
|
| Approval (Project) |
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/before-approval-light.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-approval-light.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-approval-dark.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-approval-light-menu.png?raw=true)
|

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>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 23, 2026
…, and object-grid singleClickEdit is retired (objectstack-ai#36357)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9Ubb2rJZB694pnkwLCMmCEJ3ev)_

Fixes objectstack-ai#36270

repo:objectstack#7 · zhuangjianguo · session_01QsR2jSHfkSrXZxbdWoQxnW

Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: none — skills/ never names singleClickEdit,
keyboardNavigation or object-grid's editing gestures (git grep at the
head)

## 维护者速读

- 用户看到的变化:所有「可编辑」的表格(对象视图自己画的表格、页面里放的 object-grid
表格,和列表页一样)都改成「先选中、再编辑」:单击选中单元格,双击、回车、F2 或直接打字进入编辑,改完一格立刻保存;「全部保存 /
全部取消」那条保存栏不再出现。不可编辑的表格不变,单击仍然打开记录。元数据里的
`singleClickEdit`(单击即编辑)作废:写了会报错并提示删掉,`os migrate meta` 能自动删除。
- 为什么:按您的裁定 A「统一新编辑方式」。新方式里单击是「选中」,`singleClickEdit` 已经没有可切换的东西,按
ADR-0049「要么执行、要么删除」退役;`keyboardNavigation` 的说明也改成实际行为(可编辑表格上方向键导航始终开启)。
- 最坏情况:有人在页面元数据里写了
`singleClickEdit`,升级后该页面校验失败,需要删掉这个键(提示里写明了怎么做,迁移工具可自动删);或者某张可编辑表格的使用者习惯了单击就编辑,现在要多一次双击。本仓、hotcrm、gallery
中没有任何地方写过这个键。
- 需要您做的:无(L2 由席位在最终提交上做)。

## What changes

The ruling A on objectstack-ai#36270 (record 7076617499): one editing model. Every
grid that renders editable uses the list page's select-first cell model,
and the key that only made sense in the old model is retired.

- **`ui/packages/plugin-grid/src/ObjectGrid.tsx`** (the one behaviour
hunk): `hostCellSelection = cellSelectionProp ?? inlineEditable`. Absent
a host's `cellSelection`, a grid that renders editable (`editable` AND
the object's inline-edit verdict AND the reader's `update` grant) is
select-first; a read-only grid keeps click-to-open. A host's `true`
(`ListView`, the related tab) or `false` still wins. The data table is
handed `singleClickEdit: true` unconditionally: it is inert under
select-first, and it is the staged model's old default for a host that
passes `false`.
- **`@objectstack/spec`**:
`ComponentPropsMap['object-grid'].singleClickEdit` is a `retiredKey()`
tombstone; D2 conversion `object-grid-single-click-edit-removed` (strip,
whatever the value; order 83), D3
`object-grid-single-click-edit-retired`, `RETIRED_KEYS_BY_MAJOR[18]` row
`ui/ObjectGridProps:singleClickEdit`, a `STEP18_RATIONALE` fragment
(order 123), ledger `page.json` regions note [122] plus the narrowed
[43]. `keyboardNavigation`'s describe narrows to what is enforced:
always on for a grid that renders editable, `true` turns it on for a
read-only grid.
- **`@object-ui/types`**: `ObjectGridSchema.singleClickEdit?: never`
with a `retirementTombstone()` zod twin; the `object-view` `table` slot
inherits it (`TABLE_INHERITED_TOMBSTONES`, as `defaultSort`).
`DataTableSchema.singleClickEdit` (host-paired) is unchanged.
- **`@object-ui/plugin-view`**: `table.singleClickEdit` leaves
`OBJECT_VIEW_TABLE_RELAY_KEYS`. The earlier host-level `cellSelection`
spread is gone: `ObjectGrid`'s default covers the object-view grid,
authored nodes and react pages in one place.
- **`object-grid` inputs, `sdui.manifest.json`,
`content/docs/ui/components/*`**: the `singleClickEdit` input is gone
and the `editable` / `keyboardNavigation` descriptions say what the grid
does. Docs and READMEs (`plugin-grid.mdx`, `plugin-view.mdx`, both
packages' READMEs) describe select-first everywhere and the staged model
as a host's `cellSelection={false}`.
- BREAKING changeset
`.changeset/36270-object-grid-single-click-edit-retired.md`
(`@objectstack/spec` minor plus the three ui packages), with the FROM →
TO table and `<!-- adr-0087: registered … -->`.

## The card's Done-when: the five grid families

- **The object-view grid** (Studio view preview, a page placing an
`object-view`) and **the authored `object-grid` node**: changed here.
Pinned by `ObjectView.perCellSave-36270.test.tsx` and
`authoredGridPerCellSave-36270.test.tsx`, with the ablation below.
- **The related tab**: already select-first. `RelatedList.tsx` passes
`cellSelection: true`, pinned by `RelatedList.tab-35892.test.tsx`;
unchanged.
- **The record picker and the designer grids** (`RecordPickerDialog`,
`ObjectManager`, `FieldDesigner`): they render `ObjectGrid` without
`editable`, so they are read-only and unchanged.
- **Dashboard tables**: they are `data-table` / `object-data-table`
nodes, not `ObjectGrid`, and have no save path. The card's
dashboard-table pin therefore has no subject: there is no editable
dashboard grid to pin. A bare `data-table` that a host hands `editable`
still stages edits and draws its bar; that is the table primitive, which
no in-repo grid host reaches.
- So every grid that renders editable through `ObjectGrid` selects a
cell first, and no in-repo host passes `cellSelection={false}`.
- **The card's second Read-first question** (a child list inside a
parent form saved together, objectstack-ai#35590): no in-repo host draws such a list
through an editable `ObjectGrid`. The form's line items are the
`GridField` widget, which this PR does not touch, and no in-repo host
passes `cellSelection={false}` or its own `onBatchSave`. So no
saved-together list loses its staging here.
- **A React host's `onBatchSave`**: a host that passes `onBatchSave`
alone on an editable `ObjectGrid` now has it bypassed (each cell writes
through `onRowSave` or the grid's own `dataSource.update`). No in-repo
host passes it. The changeset carries a FROM → TO row for it and
`ObjectGridComponentProps.onBatchSave` is marked `@deprecated`.

## Tests

- New: `packages/spec/src/ui/object-grid-single-click-edit.pin.test.ts`
(tombstone at both channels for `true` / `false`, `editable` control,
the narrowed describe, the conversion's delete and its controls, the
step-18 wiring), `object-grid-single-click-edit-retirement.test.ts`
(tree-scoped absence, `repo` project),
`ui/packages/plugin-grid/src/__tests__/authoredGridPerCellSave-36270.test.tsx`
(an authored editable node saves one cell with no Save All; read-only
and host-`false` controls), and the earlier
`ObjectView.perCellSave-36270.test.tsx`.
- Migrated to the enforced contract:
`ObjectGrid.keyboardNavigation-11068.test.tsx` (editable grids read the
select-first pattern and `false` no longer turns it off; a host
`cellSelection={false}` control keeps the old roving-focus reading),
`ObjectGrid.cellSelection-35684.test.tsx`,
`rowContextMenu-28434.test.tsx`, the types slot/round-6 tests, the
ObjectView relay test.
- 25 plugin-grid inline-edit files that pin the staged path now pass
`cellSelection={false}` and no longer author `singleClickEdit`; two that
passed `cellSelection={x || undefined}` pass `cellSelection={x}` (under
the new default `undefined` means select-first).
- `retired-key-removal-version.pin.test.ts` joins the new conversion.

## Acceptance notes

- Select-first only where a grid renders editable, per the ruling;
read-only grids keep click-to-open (pinned by the controls above).
- `Clause-②: no (narrowing)`: the house spelling for a retirement; the
seat re-amended the claim to it (7077058264).
- Census of authored `singleClickEdit` in this repository's examples,
hotcrm and gallery: zero, so the conversion is for stored rows and
outside authors.
- `check-governed-merges --pr 36357`: NOT governed (0 of 60 paths),
1,355 changed lines, under the 3,000 human-merge threshold.
- With objectstack-ai#36332 (seat delta review 7077725274): once both land, a touch
never edits in place on any editable grid. The one exception is a host
that passes `cellSelection={false}`, which keeps the staged
click-to-edit, so there a touch edits in place. Whichever of the two
lands second re-runs overlap-check against the other's head.
- objectstack-ai#35827 (retire `onBatchSave`) is unblocked by this: no authored or
ObjectView grid reaches the batch save any more; only a host's explicit
`cellSelection={false}` does.

## Verification

Two-minute check: author `{ "type": "object-grid", "properties": {
"objectName": "<any>", "editable": true } }` on a page; click a cell (it
is selected, nothing opens), press Enter, type, press Enter: the value
saves at once and no "Save All" bar appears. Add `"singleClickEdit":
true`: the page refuses it with the prescription.

Files to read first, by risk:
`ui/packages/plugin-grid/src/ObjectGrid.tsx` (two hunks),
`packages/spec/src/ui/component.zod.ts`,
`packages/spec/src/conversions/entries/18/object-grid-single-click-edit-removed.ts`,
`ui/packages/types/src/zod/objectql.zod.ts`.

<details><summary>Local runs (final head 493b6a0)</summary>

Final head `493b6a01` = `2bd02429` plus a merge of main `0b2118f4` after
objectstack-ai#36478 landed (`719e8674`: main's side of
`scripts/sdui-manifest.record.json`, and `component.mdx` regenerated
with main's new `mobileMaxVisible` describe), then the regenerated
manifest record (`493b6a01`, one `sha256` line). No rebase.

- Dogfood battery on head 493b6a0: os-verify-lock `VERDICT command-exit
0` · `Test Files 485 passed | 3 skipped (488) · Tests 4108 passed | 68
skipped (4176)`, no failures.
- Derived gate families on 493b6a0: 132 run, 0 NOT-MEASURED, every exit
0. `check-sdui-manifest` intact; `check-regen-pending` clear.
- `overlap-check` on 493b6a0: clean against main `43916f3a` and every
open PR sharing files.
- CI at 493b6a0: 61 success, 9 skipped, 0 failed.

Runs at 2bd0242:

Final head `2bd02429` = a merge of `67fe4551` and main `dda5e74f`, made
after the merge queue dropped the PR on a conflict in the generated
`content/docs/references/ui/component.mdx`. The merge's only own change
is that file, regenerated (main's new `showStar` describe). The code
auto-merged, and `check-regen-pending` reports every deferred artifact
current.

- Dogfood battery on 2bd0242 (superseded by the run on 493b6a0 above):
os-verify-lock `VERDICT command-exit 0` · `Test Files 485 passed | 3
skipped (488) · Tests 4108 passed | 68 skipped (4176)`, no failures.
- Derived gate families on 2bd0242: 132 run, 0 NOT-MEASURED, every exit
0.
- `overlap-check` on 2bd0242: clean against main `70194ffc`; the known
conflict with draft objectstack-ai#36478 on `scripts/sdui-manifest.record.json`
stands.

Runs at 67fe455:

Final head `67fe4551` = `4e94a273` plus the S4 changeset fix (the touch
sentence, and one comment's wording). That commit changes only the
changeset and that comment.

- Dogfood battery on head 67fe455 (`pnpm --filter @objectstack/dogfood
test`, closure built under the lock): os-verify-lock `VERDICT
command-exit 0` · `Test Files 485 passed | 3 skipped (488) · Tests 4108
passed | 68 skipped (4176)`, no failures.
- Derived gate families on 67fe455: 132 derived; `--ran` reconciles 132
run, 0 NOT-MEASURED, every exit 0.
- `overlap-check` on 67fe455: clean against main; one conflict with
draft objectstack-ai#36478 in `scripts/sdui-manifest.record.json` (the regenerated
manifest record both PRs carry): whichever lands second merges main and
regenerates it.

`4e94a273` = the review rework (`3894ea44`: TSDoc and comments,
`onBatchSave` `@deprecated`, changeset rows, docs) plus a merge of main
after objectstack-ai#36332 landed (no rebase, no conflicts).

- Dogfood battery on 4e94a27 (superseded by the run on 67fe455 above)
(`pnpm --filter @objectstack/dogfood test`, closure built under the
lock): os-verify-lock `VERDICT command-exit 0` · `Test Files 485 passed
| 3 skipped (488) · Tests 4108 passed | 68 skipped (4176)`, no failures.
- Derived gate families on 4e94a27: 132 derived; `--ran` reconciles 132
run, 0 NOT-MEASURED, every exit 0 (also 132/132 exit 0 on `3894ea44`
before the merge).
- After the merge: `@object-ui/plugin-grid` `Test Files 305 passed ·
Tests 2705 passed`; `@object-ui/plugin-view` `Test Files 67 passed ·
Tests 732 passed`. `type-check` for `@object-ui/types` and
`@object-ui/plugin-grid` exit 0 on `3894ea44`.
- `overlap-check --exclude-pr=36357` on 4e94a27: clean against main and
the eight open PRs sharing files (objectstack-ai#36439, objectstack-ai#36438, objectstack-ai#36435, objectstack-ai#36411,
objectstack-ai#36392, objectstack-ai#36351, objectstack-ai#36343, objectstack-ai#36316). objectstack-ai#36332 is merged and is in this head.

Earlier runs (head 579f99a; suites on 1c2a16b):

- `@object-ui/plugin-grid` whole package: `Test Files 298 passed | 3
failed (301) · Tests 2676 passed | 6 failed`; the 6 (keyboardNavigation
×4, cellSelection ×1, rowContextMenu ×1) were fixed and those three
files re-run green (8 + 28 + 18).
- `@object-ui/plugin-view` whole package: `Test Files 67 passed (67) ·
Tests 732 passed (732)`. `@object-ui/types`: `Test Files 389 passed ·
Tests 10498 passed`.
- `type-check` for `@object-ui/types`, `@object-ui/plugin-grid`,
`@object-ui/plugin-view`: exit 0.
- `@objectstack/spec` test under the verify lock: 1 failed of 27,924
(`retired-key-removal-version.pin`, the JOIN row this PR then added;
that file re-run 63 passed). `test:repo`: `Test Files 93 passed · Tests
1564 passed`.
- Derived gate families (`dispatch-gates --commands`): 132 derived;
`--ran` reconciles 132 run, 0 NOT-MEASURED. Six first read exit 3 on a
stale spec dist and `check:generated` exit 1 on the same stamp; after
`pnpm --filter @objectstack/spec build` all seven re-ran exit 0.
`check-plugin-teardown-shape --self-test` needed its pinned fixture
commit fetched into the shallow clone, then exit 0.
- `node scripts/gen-sdui-manifest-node.mjs` under the lock, then
`gen-sdui-reference.mjs`; `check-doc-component-types.mjs` green.
- `overlap-check --exclude-pr=36357`: clean against main and the six
open PRs sharing files (objectstack-ai#36392, objectstack-ai#36380, objectstack-ai#36351, objectstack-ai#36343, objectstack-ai#36332, objectstack-ai#36316).
- Earlier dogfood battery on 1c2a16b (superseded by the run on 4e94a27
above): `Test Files 484 passed | 3 skipped (487) · Tests 4107 passed |
68 skipped (4175)`. The one commit after it (579f99a) touches two docs
snippets only.
- `pnpm --dir ui check:doc-snippets` after a scoped build: 544 of 544
blocks judged, 0 failed (the Lint UI red on 1c2a16b was the new
staged-model snippet missing its import, fixed in 579f99a).

</details>

<details><summary>Ablation (`scripts/ablation-replace.mjs`, restored to
the HEAD blob, `git diff HEAD` empty)</summary>

- `cellSelectionProp ?? inlineEditable` → `cellSelectionProp` (the
base's behaviour): 3 failed of 6 — the object-view `table.editable` and
named-view `inlineEdit` per-cell saves and the authored-node per-cell
save; the three controls (read-only object-view, read-only node, host
`false`) stay green.

</details>

---
_Generated by [Claude
Code](https://claude.ai/code/session_01QsR2jSHfkSrXZxbdWoQxnW)_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01QsR2jSHfkSrXZxbdWoQxnW

<!-- signed: repo:objectstack#7 · zhuangjianguo ·
session_01QsR2jSHfkSrXZxbdWoQxnW -->

---------

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

Labels

documentation Improvements or additions to documentation size/xl tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants