Repository navigation
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
Conversation
…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
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
…-protocol none requires Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Final head · 2026-11-22T12:46Z ·
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf L1 REWORK · head 维护者速读
要改的(5 项)
不阻塞,顺手可做
席位核对
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract reviewServed-tier: 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 ① Derived judgmentsNo accept-set change. The diff touches no Public surface, judged from the built entry points (
PR body claims checked against the code. These hold: the one labelled action is the first authored ② Semver levelThe changeset
③ Boundary flags
S1 (should-fix) — The drag range change reaches every resizable record overlay, and the declaration names it only for the side preview. 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 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 Implemented-by: 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
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Hold · 2026-11-22T15:30Z · head
|
…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
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract reviewServed-tier: Delta review. The earlier record is comment 7079424660 on head 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 ① Derived judgmentsNo accept-set change. The rework touches no Public surface after the rework:
Earlier findings: S1: closed. The changeset names the component-wide range: the calendar, gantt, kanban, tree and grid overlays, a resizable 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: New in the rework: S4 (should-fix) — On a record page's drawer, an authored 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 ② Semver levelThe changeset
The changeset body is accurate except for the two sentences named in S2 and S4. ③ Boundary flags
Implemented-by: 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
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Delta head · 2026-11-22T18:36Z ·
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf L1 ACCEPT(增量)· head 维护者速读
增量核对(
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract reviewServed-tier: Delta review. The earlier record is comment 7082818368 on head 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 judgmentsNo accept-set change. The range touches no Public surface in the range:
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 S4: closed. N1: closed. L1-d wording (7082794312): answered. The changeset and Attempts to break the reset and the size honour, all read from the code, none run:
New in this range: S5 (should-fix) — Two new sentences say more than the code does. First, 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 N3 (nit) — Two small things. The new ② Semver levelThe changeset
The changeset body is accurate except for the sentence named in S5. ③ Boundary flags
Implemented-by: VERDICT: PASS |
…he view's navigation first Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract reviewServed-tier: Delta review, text only. The earlier record is comment 7083789616 on head 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: ① Derived judgmentsNo accept-set change and no public-surface change in the range. The range touches Earlier findings: S5: closed. Both wrong sentences are gone, and each new sentence holds against the code.
N3: closed for the overlay list. Both files now name a resizable 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 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 levelUnchanged. The changeset lists
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Delta head · 2026-11-22T19:33Z · |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf L1 ACCEPT(增量)· head 维护者速读
增量核对(
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Landing · 2026-11-22T19:35Z · head
State: ready + auto-merge now. |
… 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>
…ctions only; Edit moves into the top bar's More (objectstack-ai#36478) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbVF7sWPNE4HmjkgyaVxQYif)_ repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Fixes objectstack-ai#36151 Clause-②: yes (widening) Metadata-protocol: semantic Skills-docs: none — no published skill under `skills/` names `mobileMaxVisible`, the phone record page's bottom bar or its Edit button (searched); the authoring change is one budget's meaning, taught in the spec describe and `content/docs/ui/pages.mdx` here. ## 维护者速读 - 手机上打开记录页:底部按钮条只放这个对象自己的动作(最多两个,撑满一行);没有动作的对象不再出现底部条,内容一直到屏幕底部;「编辑」挪进右上角「更多」。电脑端不变。 - 手机记录页改版的一步:字段已能点一下直接改,底部那颗占位的「编辑」按钮不再需要,把底部留给真正的业务动作。 - 出错时,手机用户会找不到整页编辑的入口,或看到空白的底部条;把本次改动撤回即可恢复原样,不涉及数据。 - 无。 ## What changes On a phone (the console's record page, `phonePage`), per the card's five ruled items: 1. **Edit leaves the bottom bar.** The record's Edit is forced into the `⋯` on the phone (`component: 'action:menu'` on the host's `sys_edit`, always, not only when Edit is off). A field's value is edited by one tap on it (objectstack-ai#36147, PR objectstack-ai#36234); whole-record edit is ⋯ → Edit, which calls the same `onEdit` handler the bar's Edit called (inline edit state on an object without a form, the form route on one with a form). 2. **The bottom bar holds the object's own actions only**: the primary, then the next one, budget unchanged (`PHONE_ACTION_BAR_BUTTONS` = 2, or the authored `mobileMaxVisible`), filling the row (`flex-1`). The edit state keeps its Cancel and Save there. 3. **No action, no bar.** With nothing to draw the toolbar returns nothing and the host's bar hides itself (`:has(> [role=toolbar]:empty)` / no toolbar), so the body runs to the foot of the screen. 4. **Approval unchanged.** A record pending the reader's approval still draws [Approve][Reject][⋯] from `RecordHeaderStateContext`'s state group with its own `⋯`; the top bar draws no second `⋯` then (one `⋯` per screen). 5. **Everything else is in the top bar's `⋯`**, at the right end of `RecordTopBar` (its `frame` slot): actions past the budget, Refresh, Edit (on or off with its reason), Share, Delete. The favorites entry is not in it: since objectstack-ai#36246 (PR objectstack-ai#36456) the favorite star sits beside the record's name, on the phone too. Mechanism: - `PageHeaderPhoneFace` (the `PageHeaderPhoneContext` value, a host slot, never metadata) gains an optional `more: HTMLElement | null`. `PageHeaderActions` in its bar face portals the `⋯` there when a host hands it; a host that does not hand it keeps the `⋯` as the bar's last button, byte-for-byte as before (the legacy pins in `page-header-phone-bar-27058.test.tsx` are untouched and green). - `RecordDetailView` hands a `span[data-record-phone-more]` it mounts in the top bar's `frame`. - Desktop: no change (the `face: 'row'` path is not touched). Spec / docs: `page:header` `mobileMaxVisible` describe now says the phone bar holds the page's own actions and Edit is in the top bar's `⋯`; generated docs regenerated (`check:generated --fix`, `gen-sdui-manifest-node.mjs`, `gen-sdui-reference.mjs`), hand-written `content/docs/ui/pages.mdx` and the designer's config description updated to match. Semantic change: an unset budget now shows two page actions where it showed Edit + one, and an authored value counts the page's actions alone. Rulings carried (not reopened): the card's five items; the maintainer's 「可以,立卡」 on fig. 48; ruling 7066516044 item 2 (a single tap edits on the phone). Linked rules this card reverses, as the claim names: objectstack-ai#34595 (the bottom bar starts with Edit), and the Edit-counted half of objectstack-ai#35840 (two visible by default: still two, now both page actions). ## Tests Step 0 (owed before Edit leaves the bar): every field type the default record page draws editable was checked at 375 px with touch emulation on the live showcase Field Zoo record: one tap on the value opens its editor, and the edit saves (a PATCH carrying that field's key). **All pass; no type raised.** | Result | Types | |---|---| | one tap opens, saves | textarea, email, url, phone, markdown, number, currency, percent, date, datetime, time, boolean, toggle, select, multiselect, radio, checkboxes, tags, lookup, lookups (multiple), master_detail, tree, user, users, owner (current_user default), location, address, code, json, color, rating, slider, signature, qrcode, progress, the system Owner | | not drawn editable (same on desktop, `INLINE_EXCLUDED_FIELD_TYPES` / read-only by kind) | password, secret, html, richtext, formula, autonumber | | not drawn as a detail row | media, embedded and vector types | Pins updated where they pinned the reversed behaviour: - `RecordDetailView.phoneFace-27058.test.tsx` (the objectstack-ai#34595 pins): the bar is [Convert Lead][Assign] with no `⋯`; the `⋯` is the top bar's last control and holds Edit and Share; a third action folds into the top `⋯` before Edit; one action fills the row; no action leaves an empty, hidden bar and ⋯ → Edit calls `onEdit`; the approval control and the Edit-off cases read the top `⋯`. - `RecordDetailView.favoritesEntry-12427.test.tsx` (objectstack-ai#36246's pins, merged in with origin/main): the phone case now opens the top bar's `⋯` (the fixture object declares no action, so its bottom bar is drawn empty); the CONTROL is that menu's Edit and Share, and the assertion that the `⋯` holds no favorites entry is unchanged. Its mount helper waits for the top bar's `⋯` on that case instead of a toolbar. - `RecordDetailView.recordPageTiers-26678.test.tsx`: the phone branch reads the empty bottom bar and the top bar's `⋯`. - `page-header-phone-bar-27058.test.tsx`: new `the phone bar with the host's top-bar ⋯ slot` describe (two actions fill the row and the `⋯` sits in the slot; no page action draws an empty bar; slot not yet mounted draws no `⋯`). - `ui/e2e/record-flow-phone-targets.spec.ts`: the geometry fixture draws the top bar's More (`h-11 w-11`) and an actions-only bar; 6 passed locally. Ablations (one-shot, not kept; both restored, blob == HEAD verified by `scripts/ablation-replace.mjs`): - `RecordDetailView`: Edit forced into the `⋯` only when off (the old rule) ⇒ phoneFace suite 6 failed / 22 passed. - `PageHeaderActions`: top-bar slot ignored (`moreInTopBar = barFace && false`) ⇒ 13 failed / 29 passed across the two suites. Readings on head `a262ef3653` (origin/main merged in, carrying objectstack-ai#36456; the spec reference regenerated on the merged tree; the favorites pin moved to the top `⋯`; the changeset's `⋯` list drops Favorites): `vitest --maxWorkers=1` on favoritesEntry-12427, phoneFace-27058, recordPageTiers-26678, page-header-phone-bar-27058 and headerMenuIcons-12529: Test Files 5 passed (5), Tests 65 passed (65), exit 0; `@object-ui/app-shell` `type-check` VERDICT command-exit 0; `pnpm --dir ui exec vitest run scripts/` 5127 passed, 2 skipped, exit 0; `dispatch-gates --ran` 125 derived, 123 exit 0, 2 NOT MEASURED (the same two exit-3 prerequisites below). The readings below were taken on code head `ec741d2c08`, before the merge: <details><summary>Unit suites, type-check, local gate subset</summary> - `vitest run --maxWorkers=1` phoneFace-27058 + recordPageTiers-26678 + page-header-phone-bar-27058 (under the verify lock): Test Files 3 passed (3), Tests 52 passed (52), exit 0. - `pnpm --dir ui exec vitest run scripts/` (a derived family): Test Files 172 passed, 2 skipped (174); Tests 5127 passed, 2 skipped; exit 0. - `@object-ui/components` and `@object-ui/app-shell` `type-check` (both `tsc --noEmit` and `tsconfig.test.json`, so the edited tests are in): VERDICT command-exit 0, after building the `@object-ui/app-shell^...` closure (a stale `@object-ui/types` dist had first reported a `DataTableSchema.onColumnHide` error outside this diff; rebuilt, gone). - Earlier on this branch, before the last test-only commit: RecordDetailView*, page-header*, record-top-bar* suites 133 files / 1144 tests, the one red being the tiers pin fixed in `ec741d2c08`; ESLint on the changed files 0 errors. - `dispatch-gates --ran`: 125 derived families accounted for, 123 run with exit 0, 2 NOT MEASURED (exit 3, PREREQUISITE NOT MET: `check:skill-examples` needs a built `@objectstack/client-react`, `check:dual-build-cjs-loads` needs studio, client-react and other dists outside this diff; both run in CI). - `@objectstack/spec` `check:generated` green after `--fix`; `check:sdui-reference` and `check-sdui-manifest` green. - Not run locally, CI-owned: `test:repo`, the repo-wide lint, the artifact-roster and wide families. </details> ## Acceptance notes - **The card's own example, the HotCRM lead, measured live at 375 px (zh-CN).** HotCRM at origin/main `689166c` ran from a sister worktree with its own setup (`objectstack dev`, published 18.6.0 server packages, fresh seeded DB), and this branch's Console vite was proxied to it. The record was a New lead (Noah Patel - Vertex Analytics), where 「确认线索」 (`qualify_lead`) is visible. - Before (origin/main renderer): the bar was [编辑][确认线索][⋯]; the ⋯ held 刷新 / 转化线索 / 安排跟进 / 记录通话 / 记录会议 / 安排会议 / 添加到收藏 / 分享 / 删除 (main before objectstack-ai#36456). - After (this branch): the bar is [确认线索][转化线索], with no 编辑. The top bar's ⋯ holds 刷新 / 安排跟进 / 记录通话 / 记录会议 / 安排会议 / **编辑** / 添加到收藏 / 分享 / 删除, measured on `75f16a89de`, before objectstack-ai#36456 landed. Since objectstack-ai#36246 (PR objectstack-ai#36456) 添加到收藏 has left the ⋯ for the star beside the record's name, so on the current head the top ⋯ holds the same list without it (pinned by `RecordDetailView.favoritesEntry-12427.test.tsx`'s phone case). - Why 转化线索 is in the bar too: ruled item 2 keeps the bar budget at its current rule, at most 2 (「最多 2 个,沿用现在的规则」). The slot 编辑 gave up goes to the lead's next action, `convert_lead`. The card's wording 「只有确认线索」 describes the old bar with 编辑 removed. To show 确认线索 alone, HotCRM sets `mobileMaxVisible: 1` on the lead page's `page:header` (an app-side authoring choice, not made here; raised to the seat in the report). - For non-zh readers, the showcase Task shows the same thing: the bar holds only the object's own actions ([Log Time][Archive]), there is no Edit, and the top ⋯ holds Edit. - Edit is in the top `⋯` on the phone in every state, including the record's edit state (where the bar is Cancel/Save). - A host button on the phone (the queue's Claim) still sits in the bar ahead of the page actions and counts toward the budget, as before. - Overlap: objectstack-ai#36357 also regenerates `scripts/sdui-manifest.record.json` (a generated sha/date pair); whichever lands second regenerates it. Clean against objectstack-ai#36438, objectstack-ai#36392, objectstack-ai#36351, objectstack-ai#36343 and origin/main. - Out of scope, reported to the seat (not fixed here): in the lookup picker on a phone, an option's preview carries a record chip link; a tap on the chip navigates away mid-edit instead of selecting (Field Zoo, Master-Detail → Project, tap the "Account: Fabrikam" chip ⇒ the account page opens). ## Verification Read first (by risk): 1. `PageHeaderActions` in `ui/packages/components/src/renderers/layout/containers.tsx`: the `moreInTopBar` branch (the portal into the host slot and the early return that leaves the bar empty). 2. `RecordDetailView` in `ui/packages/app-shell/src/views/RecordDetailView.tsx`: `sys_edit`'s phone `component: 'action:menu'`, the top bar's `frame` slot and the bar's empty-hide class. 3. `PageHeaderPhoneFace` in `page-header-phone-context.ts`: the new optional `more`. Two-minute check: open a New HotCRM lead at 375 px ⇒ [确认线索][转化线索] at the foot, 编辑 in the top-right ⋯. Or open any record of an object with no actions of its own (showcase Account) at 375 px wide ⇒ no bottom bar, a `⋯` at the top bar's right end holding Refresh / Edit / Share / Delete, and the favorite star beside the record's name. A showcase Task ⇒ [Log Time][Archive] filling the bottom row. Screenshots at 375 (live showcase, evidence branch `claude/issue-36151-evidence`): | State | Before | After (light) | After (dark) | After, `⋯` open | |---|---|---|---|---| | No action (Account) |  |  |  |  | | Actions (Task) |  |  |  |  | | HotCRM lead (zh-CN) |  |  | not taken |  | | Approval (Project) |  |  |  |  | The screenshots were taken before objectstack-ai#36456 landed, so the open `⋯` shots still show Add to favorites / 添加到收藏. Since objectstack-ai#36246 that entry has left the `⋯` for the star beside the record's name. --- 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA <!-- signed: repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA --> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
…, 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>
Requested by Steedos · project thread
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA
Fixes #36149
Fixes #36201
Clause-②: yes (widening) — new optional members only:
RecordHeaderBar.previewandPageHeaderActionsProps.previewon@object-ui/components,ObjectGridComponentProps.cardFaceon@object-ui/plugin-grid; nothing removed or renamed (recordPreviewWidthKeyis 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'sDRAWER_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 whosenavigationauthors its width (navigation.sizeother thanauto, or anavigation.width, pixel or percent) does not use the shared key:recordPreviewWidthKeygives it the object's old per-object key (recordOverlayWidthStorageKey, unchanged). The list's preview reads the view'snavigation, then the object's; a record page's drawer reads only its root record's object'snavigation. That key is shared with the object's calendar, gantt, kanban, tree and grid overlays and a resizableRecordDetailDrawer, 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 itsRecordDetailDrawer. 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 thenavigation.sizebucket throughoverlayWidthFor, else 460), so a record page's drawer now honours its root object's authoredsize. AnduseDrawerResizedrops the previous width when itsstorageKeybecomes 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'sRECORD_DRAWER_WIDTHfollows to 460, so the rail's list-width budget is unchanged in kind.Every resizable drawer's range (
@object-ui/components). The range lives inNavigationOverlay, so it applies to every drawer opened with astorageKey: the calendar, gantt, kanban, tree and grid overlays, a resizableRecordDetailDrawer, 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), andpage:headerdraws into it this way:previewPick: the first authoredvariant: 'primary', else the first authored action). The host's buttons (Edit) and every other action go into the⋯in their usual bands and order.⋯while the name would be cut below 16 characters' width (PREVIEW_NAME_MIN_EM, measured bypreviewNameSqueezedin 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.RecordDetailViewaddssys_copy_record_id(「复制记录 ID」, existing i18n keys) to the⋯, preview only. The name's full text is itstitletooltip.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 withmaxVisible: 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):cardFaceat 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 gridcardFace. CONTROLS: none for a page bar, none for no bar, none for a non-tab list in a preview.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 authoringnavigation.widthopens 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 authorssize: 'xl'ignores the shared width.recordPreviewWidthKeyreturns the shared key for none,{}orsize: 'auto', and the per-object key forsize: 'xl'or awidth. 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 authoringsize: 'xl'atrecordPaneWidth's xl width.recordPaneWidthunit cases (none /auto→ 460,'50%'as written, awidthbeats asize, xl differs from 460).ObjectView.recordOpenPath-35854(app-shell, the list host's wiring): with 600 in the shared key, a view authoringsize: '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)
01f2ad0a0a+ the test fix:Test Files 169 passed (169),Tests 1701 passed (1701), lockVERDICT command-exit 0.ae96065452:Test Files 8 passed (8),Tests 64 passed (64),VERDICT command-exit 0.ee38012ece(after mergingorigin/mainff60149900): all 55RelatedList.*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.ee38012ece, after building the@object-ui/app-shell^...closure:type-checkexit 0 for@object-ui/components,@object-ui/plugin-grid,@object-ui/plugin-detailand@object-ui/app-shell.d8900963e3(mergedorigin/mainwith 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 55RelatedList.*suites, the grid card suites, header, overlay, drawer-level, rail,recordPreviewWidth-36149,recordDrawerStack-26679and 30ObjectView.*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.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 sixnavigation-overlay-*suites, the threerecordDrawerStack*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.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-36149failed 2 of 9, the forward and reverse one-mounted-drawer cases. Restored: blob == HEAD,git diff HEADempty. 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.widthKey={drawerWidthKey}deleted fromObjectView(anchor x1 → x0, blob 38522595 → be850715). Result:ObjectView.recordOpenPath-35854failed 1 of 11, thesize: xlview case. Restored: blob == HEAD,git diff HEADempty.storageKey={widthKey}inObjectViewRecordOverlayswitched back to the per-objectdrawer-width:+ the object's name throughscripts/ablation-replace.mjs(anchor x1 → x0, blob 1b4b33ac → 2d6bbd9d). Result:recordPreviewWidth-36149failed 2 of 5, the A-to-B list preview case and the list-to-record-page case. Restored: blob == HEAD,git diff HEADempty.const useCardView = windowCardView || !!hostCardFacemutated to drophostCardFacethroughscripts/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 HEADempty.Acceptance notes
maindraws←plus 「客户 Initech › 活动」 (the trail ruled under console record drawer v2: the bar is ↑ ↓ · ⤢ · ✕ (no object name, no counter); a related row or a lookup opens its record in place with a trail, ← / Esc go back one level; ⤢ carries the trail into the page; on the record page a related row opens a drawer over the page #26679). It does the job (one preview, back to the parent, tab kept), so I left it unchanged.ResizeObserverclears the cap), so a wider pane can draw the primary again if the name then fits. Never more than one labelled action in a preview.record_headeractions) proves the same three points. The full name is readable (「Schedule dentist appointment」 is cut to 「Schedule den...」 before and whole after). At most one labelled action is drawn (Clone Task, for a short name). The rest are in⋯.⋯. This follows from folding the two cards into one PR, not from an omission. The full page's header is unchanged.navigation.sizedescribe still saysautoderives the width from the field count and the viewport, which has not been true since Record drawer v4: a bounded peek over the list — md cap instead of the field-count bucket, no dim overlay, the list stays readable and clickable, ⤢ maximizes in place at the same URL; the full page is reached only from the row ↗ and the header ⋯ #27545. Filed as spec: navigation.size describe says auto derives the drawer size from field count and viewport, which the renderer no longer does #36468.Verification
Live:
objectstack dev --seed-admin --fresh(app-crm, app-todo) + Console vite, Chromium 1440×900 @2x, zh-CN. "Before" = this branch's touched sources restored to97b9d1e63din the working tree, then restored to HEAD (git diff HEADempty).Header, CRM opportunity: before 720 wide, copy icon, 「编辑」 / after 460, name + stage +
⋯Several actions (app-todo task, 5
record_headeractions): before, the name is cut to 「Schedule den...」 behind Clone Task / Mark Complete / 编辑. After, the full name with every action in⋯. With a short name, one labelled action (Clone Task). The⋯holds the actions, then 编辑, 复制记录 ID, 删除.Child tab (account Initech → 活动 2): before a cut-off table / after one row per record. Then a child opened in the same preview, and back with the tab kept.
Read first (by risk):
PageHeaderActions(thepreviewRow/previewPick/hostKeepsRowsplit and the width-fold effect),useDrawerResize's restore effect innavigation-overlay(the key-switch reset touches every resizable drawer),RelatedList'spreviewFace→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