Repository navigation
feat(ui): a record page's related tab is the child object's full list - #36129
Conversation
The related tab draws the list page's condition row (Sort, Filter) through the new list-conditions block, the list page's grid with the column menu, cell editing, selection with the bulk bar and the whole-set footer row, and loads rows as the page scrolls. What the reader changes lasts while they stay on the record; Discard puts the tab back and is the list page's button. The tab no longer remembers its header sort or stores column widths in the reader's record-page preference; widths live in the browser as on the list. The list page's condition-field rules are shared with the new block. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTKEPqtmiK9SGpHsmW
The excerpt sits inside a host's render: its state is the host's own and the host-only tag names no DeclaredNode arm, so it cannot compile alone. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTKEPqtmiK9SGpHsmW
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTKEPqtmiK9SGpHsmW
Every pack spells each plural slot it needs, with the base key beside it, so the confirmation agrees with the number of rows in every language. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTKEPqtmiK9SGpHsmW
The repository keeps every registered node type authorable, so the list page's condition row is no longer registered as list-conditions. plugin-list exports ListConditionsBlock, plugin-detail reads it from RelatedListConditionsSlotContext, and the record page fills that slot with the block, loaded with the first tab that draws it. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTKEPqtmiK9SGpHsmW
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-21T16:59Z. The brief handed to the isolated declaration-face reviewer for PR #36129 (owed by Contract review brief — PR #36129 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — ACCEPT (L1-b)Head-sha 90fefc3 · read 2026-11-21T17:05Z · first L1 record on this PR, full read · base 维护者速读记录页的子表页签现在就是子对象的一张完整列表:左上是子表名,右上「+ 添加」;下一行是和列表页同一套的「排序」「筛选」;表格可以按列表页的规则在格子里编辑,可以多选批量删除,底部有计算行,合计按全部符合条件的行算;往下滚动自动加载,没有翻页,也不再有「在列表中打开」。改过的排序、筛选、合计在这条记录上一直有效:换页签、在整页和抽屉之间切换都还在,刷新或换一条记录就回到默认。「放弃」一点就回默认,没有「保存」。这些都符合您 14:25 和 14:38 的两条裁决。以前在子表里记住的排序和列宽不再生效,说明里写了一次;服务器上存的旧数据没有删。没有需要改的问题,下面两条小建议可以以后再做。 Must-fix / Should-fixNone. Nits
Checked
Owed
|
…-kmk099-wt # Conflicts: # ui/packages/plugin-list/src/ListView.tsx
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: Inputs read: card #35892 (body and all five comments, with rulings 7064083597 and 7064246280), epic #35590 (body), PR #36129 (body, file list of 34 files, net diff against ① Derived judgmentsPublic surface (package indexes only; module-level exports outside an index are not published):
Accept-set (behaviour the published packages now accept or produce):
② Semver level
③ Boundary flagsDev flags and open questions, each answered:
SQL push-down (Prime Directive 5): sort, filter and footer totals are all pushed to the server (see ①). One finding:
Must-fix: none. Should-fix:
Nits:
Implemented-by: VERDICT: PASS |
… tab is the reader's Bulk delete sends the selection to the data source's bulkDelete in one call and falls back to the row delete only without one; the tab shows how many rows were deleted and how many failed. The tab's held sort, filter and footer picks are keyed by the reader as well as the record. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTKEPqtmiK9SGpHsmW
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTKEPqtmiK9SGpHsmW
…elete grant The batch call is a write site of its own, so the tab offers it only where the relatedRowDelete row of the affordance map allows it, beside the row delete the host hands in, and the write census names it. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTKEPqtmiK9SGpHsmW
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — delta ACCEPT (L1-b)Head-sha: 维护者速读
Must-fixNone. Should-fixNone. Nits (ride or drop, seat's call)
Checked
Owed
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: This is a delta review over the PASS record at ① Derived judgments
② Semver levelUnchanged. Patch on the same five packages, with ③ Boundary flags
Must-fix: none. Should-fix: none. Nits:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Seat landing · 2026-11-21T18:14Z · #35892, a record page's related-list tab becomes a full list (epic #35590). The tab uses the list page's own sort, filter and condition row (shared components through a plugin-detail slot), with 「放弃」 and no Save. Sort and filter last for this visit only (ruling 7064083597); column widths are kept only in the browser (ruling 7064246280); both supersede #35601's stored sort and per-person widths, and the upgrade note says so. Bulk delete makes one batch call and shows the deleted and failed counts. The footer totals cover every matching row on the server. Reviews:
Gates on this head:
The seat readies this PR and arms auto-merge in the same step. The PR carries |
Claude-Session: https://claude.ai/code/session_01L6bhgUZTwDqtEFzNFCVTri Co-authored-by: Claude <noreply@anthropic.com>
…ntry (objectstack-ai#36096) <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoM2Z7gQnCvEUfEceUuUKyBZ)_ Fixes objectstack-ai#35619 Clause-②: yes Metadata-protocol: semantic Skills-docs: none — skills/** never teaches the object-level `userActions` block (its only `userActions` hits are the VIEW-level block in objectstack-ui's list-views and navigation rules); the author-facing docs are updated here (content/docs/data-modeling/objects.mdx, content/docs/frontend/plugins/plugin-list.mdx) ## 维护者速读 - 搭建者在对象表单里关掉「导出」开关后,该对象的表格、列表页和报表都不再显示下载数据的「导出」按钮;以前关了也照样显示,没设置的对象不变;甘特图把图表导出成图片或文档的按钮不受这个开关影响。 - 替在设计器里关掉导出开关的搭建者兑现这个设置:开关一直能设,却从没生效(维护者已裁定「生效」而不是「删除」)。 - 出错最多是某个对象的导出按钮该显示却不显示,或反之;它只隐藏入口、不拦服务端导出,整改动可直接撤回。 - 无。 ## What changes Ruling: **Enforce** (comment 7035537883 on the card). An object's `userActions.exportCsv: false` now hides the console's data Export entry for that object: the CSV, XLSX or JSON download on the grid (toolbar menu, table CSV button), the list view (wide toolbar, Display panel) and the dataset report. A view's export of the picture it draws is not covered: the Gantt view's PNG and PDF buttons stay (Acceptance notes). Every surface reads one verdict, `isObjectExportOffered(objectSchema, effectiveApiOperations)`, new in `@object-ui/core`. That verdict is the authored bit over the object's `managedBy` default, ANDed with the caller's effective `export` operation. Before this change the grid's toolbar menu, the list view and the report read the effective operation but not the object's bit, and the grid's table CSV button read neither half (only `operations.export`), so `exportCsv: false` changed nothing. - **The verdict** (`@object-ui/core`): `isObjectExportOffered` in `managedBy.ts`, beside `isObjectInlineEditable`, returns the resolved `exportCsv` bit from `resolveEffectiveCrudAffordances`. No surface calls `resolveEffectiveCrudAffordances` itself, because the affordance-to-grant census (`affordanceGrantMap-12082.test.tsx`) refuses that call outside its home modules. Why a helper and not an `AFFORDANCE_GRANTS` row is under Acceptance notes. - **ObjectGrid** (`@object-ui/plugin-grid`): one name, `objectExportOffered`, gates three things: the toolbar Export menu (`exportEnabled`), `handleExport`, and the table's own CSV button that `operations.export: true` turns on (`exportable`). - **ListView** (`@object-ui/plugin-list`): `exportPermitted` folds in the verdict. Both toolbar forms already read that name: the wide toolbar's Export button and the Display panel's export footer. `handleExport` reads it too. - **Dataset report** (`@object-ui/plugin-report`): `ReportExportControl` reads the base object's definition (the query answer's `object`) through the report's data source with `useSettledSchema`, then applies the same verdict. `DatasetReportRenderer` passes its `dataSource` down. - **RelatedList**: no change. It draws no export entry at all, so there is nothing to gate. Evidence is in Acceptance notes. - **Spec** (`@objectstack/spec`): - the `exportCsv` describe and the Studio object form's help text now say what the key does, narrowed in round 2 to the data Export entry it gates; - round 2 also fixes three older sentences: `CrudAffordances.exportCsv`'s docblock no longer says "CSV / clipboard export"; the `userActions` docblock's example no longer has an append-only table "expose CSV Export", which it does by default; and the `read` / `view` guidance no longer says `userActions` toggles write affordances only. The form row's label stays "Export CSV", since changing it would ripple into ten locale bundles; - the liveness ledger row `object.userActions.exportCsv` moves `dead` → `live`, citing the readers by `file#symbol`; - the generated reference row and the state-count shard are regenerated. - **Docs**: the `userActions` row in content/docs/data-modeling/objects.mdx; a new "The object's Export switch" section in content/docs/frontend/plugins/plugin-list.mdx; an Export section in each of the three plugin READMEs. - **Translations** (`@objectstack/platform-objects`): the English metadata-forms bundle is regenerated for the new help text. The ten translated locales keep their wording (merge mode). - Changeset: `.changeset/35619-user-actions-export-csv-enforced.md`. It grades spec, `@object-ui/core` and the three ui plugins `minor` and platform-objects `patch`, and carries the `Clause-②: yes` and `Metadata-protocol:` lines. - **Docs**, round 1: the core README gains a section on `isObjectExportOffered`; the three plugin READMEs, plugin-list.mdx and the ledger evidence now name the helper. Unchanged, per the rulings: the ADR-0103 bucket defaults (`exportCsv: true` in every bucket) and ADR-0153. No server gate is added; the REST export route is out of scope. The setting hides an entry and is not a permission: who may export is still the permission set's `allowExport`. ### Read first (by risk) 1. `ui/packages/core/src/utils/managedBy.ts`: `isObjectExportOffered`, the one export verdict and the new public name (Clause-② yes). Its docblock says why it asks no `can(object, verb)`. 2. `ui/packages/plugin-report/src/ReportExport.tsx`: the new definition read through the data source. A source that cannot serve `getObjectSchema` keeps the control, and so does a definition still in flight (fail-open). 3. `ui/packages/plugin-grid/src/ObjectGrid.tsx`: the `exportable: operations?.export && objectExportOffered` hunk. The table's own CSV button now also follows the effective `export` operation, which it did not read before. ### Two-minute check `pnpm --dir ui exec vitest run packages/plugin-grid/src/__tests__/exportCsvGate-35619.test.tsx`. Expect `Tests 4 passed (4)`: `exportCsv: false` finds neither the toolbar Export menu nor the table's CSV button, and the three controls find both. ## Tests New render-level pins. Each `false` case has CONTROLS that find the entry, so an absence is a reading and not a blind probe. - `ui/packages/plugin-grid/src/__tests__/exportCsvGate-35619.test.tsx` (4): - `exportCsv: false` hides both the toolbar Export menu and the table CSV button; - CONTROL: unset keeps both; - CONTROL: `true` keeps both; - closing `edit`/`delete` leaves export open. - `ui/packages/plugin-list/src/__tests__/ListView.harness.test.tsx`, new top-level `describe('ListView.exportCsvGate-35619')` (5): - wide toolbar: `false` hides Export; CONTROLS for unset and `true`; - Display panel footer: `false` hides every format entry; CONTROL. - `ui/packages/plugin-report/src/__tests__/ReportExport.exportCsvGate-35619.test.tsx` (3): `false` hides the report's Export control; CONTROLS for unset and `true`. - `ui/packages/core/src/utils/managedBy.test.ts`, new top-level `describe('isObjectExportOffered — the one export verdict (objectstack#35619)')` (5). It covers: - unset, in every bucket; - `false` and `true`, in every bucket; - other verbs closed; - the effective set; - agreement with `resolveEffectiveCrudAffordances(...).exportCsv` over every bucket, authored value and effective set. Readings, fix round 2, at eabd783. The change is prose only. The L2 record (7064709267) raised S1: the sentences claimed every Export entry and every format, but the Gantt view's PNG / PDF buttons are outside the gate. Round 2 narrows the describe, the help text, the `isObjectExportOffered` docblock, the liveness note, the core and plugin-list READMEs, objects.mdx, plugin-list.mdx and the changeset to the data Export entry, and says the Gantt picture export is not covered. N2 and N3 ride the same commit. Behaviour is unchanged. <details><summary>Round 2 readings: regenerated artifacts, check:i18n, check:liveness, spec suite, census and pins</summary> - `pnpm --filter @objectstack/spec check:generated --fix` found 1 stale artifact (`gen:docs`, the reference row in content/docs/references/data/object.mdx) and regenerated it. VERDICT command-exit 0. - `pnpm check:i18n` gave exit 1 (`platform-objects DRIFTED (1)`) before regeneration. After `node scripts/check-i18n-bundles.mjs --write`, only `en.metadata-forms.generated.ts` moved, and `pnpm check:i18n` gave exit 0 (`platform-objects in sync (32 bundle(s))`). - `pnpm --filter @objectstack/spec run check:liveness` gave exit 0. - `pnpm --filter @objectstack/spec test` gave `Test Files 868 passed (868)`, `Tests 27852 passed | 1 todo (27853)`, VERDICT command-exit 0. - The census, `managedBy.test.ts` and the three 35619 pin files gave `Test Files 5 passed (5)`, `Tests 217 passed (217)`, VERDICT command-exit 0. - `pnpm check:nul-bytes` gave exit 0, and a control-byte scan of the changed files found nothing. </details> Readings, fix round 1, at 88f1d55. CI `Test UI (15/16)` was red at 4443783 (job 136860952696) on the census `no console source outside the map reads a CRUD grant on its own`, naming ObjectGrid.tsx, ListView.tsx and ReportExport.tsx. 88f1d55 routes all three through `isObjectExportOffered`. <details><summary>Census, core and the three 35619 pin files at 88f1d55: 5 files, 217 tests passed</summary> `pnpm --dir ui exec vitest run --maxWorkers=2` over `affordanceGrantMap-12082.test.tsx`, `managedBy.test.ts` and the three pin files, under the verify lock: ```text Test Files 5 passed (5) Tests 217 passed (217) os-verify-lock: VERDICT command-exit 0 ``` - `pnpm --dir ui exec vitest run --maxWorkers=2 packages/core/ packages/plugin-form/src/affordanceGrantMap-12082.test.tsx` gave `Test Files 245 passed (245)`, `Tests 4798 passed | 27 skipped (4825)`, VERDICT command-exit 0. - `pnpm --workspace-concurrency=1 --filter @object-ui/core --filter @object-ui/plugin-grid --filter @object-ui/plugin-list --filter @object-ui/plugin-report run type-check` ran all four packages (each `tsc --noEmit && tsc -p tsconfig.test.json`), VERDICT command-exit 0. - eslint over the five changed ui source and test files: 0 errors. - `check:liveness` exited 0 with the evidence anchor `managedBy.ts#isObjectExportOffered`. </details> <details><summary>Ablation of the helper: every surface pin and the helper's pins go red, every CONTROL stays green</summary> `node scripts/ablation-replace.mjs` turned the helper's `return resolveEffectiveCrudAffordances(obj, effectiveApiOperations).exportCsv;` into `return true || …`. The anchor moved 1 to 0. A trap restores with `git checkout HEAD --` on an absolute path. `@object-ui/core` resolves to `src` through the ui vitest alias, so there is no `dist/` leg. ```text Test Files 4 failed (4) Tests 7 failed | 10 passed | 145 skipped (162) ``` - Red: grid "exportCsv false"; ListView wide-toolbar false and Display-panel false; report "exportCsv false"; three of the helper's five cases. - Green: every CONTROL in the three pin files, plus the helper's unset and other-verb cases. - Restore: blob == HEAD 80024db and `git diff HEAD` empty. So all three surfaces read the helper. </details> <details><summary>Clause-② measured on the built declarations</summary> - `ui/packages/core/dist/index.d.ts` line 18 is `export * from './utils/managedBy.js';`. - `dist/utils/managedBy.d.ts` declares `export declare function isObjectExportOffered(obj: SchemaLike | null | undefined, effectiveApiOperations?: readonly string[] | null): boolean;`. Its neighbour `isObjectInlineEditable` is declared the same way (positive control), and `origin/main`'s `managedBy.ts` has 0 hits for the name. - So it is a new name on `@object-ui/core`'s published entry, and `Clause-②` is `yes`. - The earlier `dataSource?` prop on `ReportExportControlProps` is not reachable from plugin-report's entry. Built `dist/index.d.ts` re-exports nothing from `./ReportExport.js`, and no entry declaration imports it. </details> Readings from round 0, before the fix. Their code head is 3e175d0, and 4443783 added only the regenerated English bundle and the changeset. <details><summary>New pins at 3e175d0: 3 files, 127 tests passed</summary> `pnpm --dir ui exec vitest run --maxWorkers=2` over the three pin files (the ListView harness file carries its other 115 cases too), under the verify lock: ```text Test Files 3 passed (3) Tests 127 passed (127) os-verify-lock: VERDICT command-exit 0 ``` </details> <details><summary>Package suites and type-check: plugin-grid, plugin-list, plugin-report, spec, platform-objects</summary> - ui suites, run on the tree that 3e175d0 commits (13af371 plus the test-typing edit, committed unchanged): `pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-grid/ packages/plugin-list/ packages/plugin-report/` gave `Test Files 515 passed (515)`, `Tests 4928 passed | 7 skipped (4935)`, VERDICT command-exit 0. - ui type-check: `pnpm --filter @object-ui/plugin-grid --filter @object-ui/plugin-list --filter @object-ui/plugin-report run type-check` (each runs `tsc --noEmit` and `tsc -p tsconfig.test.json`) gave VERDICT command-exit 0. - spec at 3e175d0: `pnpm --filter @objectstack/spec typecheck && pnpm --filter @objectstack/spec test` gave `Test Files 868 passed (868)`, `Tests 27852 passed | 1 todo (27853)`, VERDICT command-exit 0. - platform-objects at 4443783: `pnpm --filter @objectstack/platform-objects test` gave `Test Files 125 passed (125)`, `Tests 2117 passed (2117)`, VERDICT command-exit 0. - eslint over the changed ui files: 0 errors. </details> <details><summary>Ablation: each pre-fix gate restored, each false case goes red, every CONTROL stays green</summary> `node scripts/ablation-replace.mjs` mutates the gate line, proves the anchor moved (1 to 0), runs the pin file under the lock, and restores. A trap restores with `git checkout HEAD --` on absolute paths. The subjects resolve to `src` through relative imports and the ui vitest aliases, so there is no `dist/` leg. - ObjectGrid (`objectExportOffered = true || …`, which opens the verdict that all three entries read): "exportCsv false" fails, `Tests 1 failed | 3 passed (4)`. - ListView (`exportPermitted` back to its `origin/main` effective-operation test): the wide-toolbar false case and the Display-panel false case fail; the 3 CONTROLS pass (`Tests 2 failed | 3 passed | 115 skipped`, filtered to the block). - ReportExport (back to its `origin/main` line, `if (ops && !ops.includes('export')) return null;`): "exportCsv false" fails; both CONTROLS pass (`Tests 1 failed | 2 passed (3)`). - Restores proven blob == HEAD (ObjectGrid 7c78f1b, ListView edf466e, ReportExport ac11257), with `git diff HEAD` empty after each leg. </details> ## Acceptance notes - **RelatedList has no export entry.** The ruling names RelatedList as an export surface. At `origin/main`, `ui/packages/plugin-detail/src/RelatedList.tsx` draws no Export button, menu or handler, and sets `exportable: false` on its table, so there is nothing to gate. The diff does not touch it, and the ledger note records this. - **Fail-open while the definition loads.** All three surfaces resolve with the bucket default until the object definition lands. Sibling affordances behave the same way. Every bucket defaults `exportCsv` to `true`, so the entry can show for a moment on an object that authors `false`. The pins wait for the definition before they look. - **Table CSV button now follows the effective `export` operation.** Before, the data-table's own CSV button (`operations.export: true`) read nothing but that flag. It now reads `objectExportOffered`, which includes the server's effective operation set. This matches the toolbar menu it sits beside. - **Legacy `ReportViewer` untouched.** It gates on the report's own `allowExport` and is not bound to an object. - **Interim changeset text.** The unreleased `.changeset/35401-user-actions-transfer.md` paragraph says `exportCsv` is dead and warns. If both changesets ship in one release, that paragraph describes an interim state, and the seat may amend it as a DELIBERATE CORRECTION. This PR does not edit another PR's changeset. - **Translated help text kept.** The ten translated `userActions.exportCsv` help texts still say "the CSV export entry, shown when unset". That is still true, but they do not yet mention every format or that the setting is not a permission. Merge mode keeps them, and they are legacy-trusted, so no gate reads them as stale. Refreshing them is translation work and is not done here. - **Why a helper, not an `AFFORDANCE_GRANTS` row.** Both were measured, and the census-prescribed row does not fit export: - the map's rows name a caller grant asked through `can(object, grant)`, typed `create | update | delete`; - `@object-ui/permissions` answers `can(object, 'export')` with `allowRead` (`MePermissionsProvider`'s verb map), not `allowExport`, so a row's grant half would ask the wrong bit; - the caller's `allowExport` already reaches the client through the effective `export` operation. The server derives it from `list` and that grant (`annotateEffectiveApiOperations` in `@objectstack/core`), and its export door answers `403 EXPORT_NOT_PERMITTED` without it (`enforceExportPermission` in `@objectstack/rest`); - the pin holds every row with a CRUD bit closed under an `append-only` bucket, while ADR-0103 keeps `exportCsv` on in every bucket. So the verdict stays exactly as it was, the authored bit ∧ the effective `export` operation, and it lives in the HOME module as a named helper. `OUT_OF_FAMILY` is unchanged. - **Not covered: a view's picture export (S1).** The Gantt view (`ui/packages/plugin-gantt/src/GanttView.tsx`, drawn by ListView for `viewType: gantt`) has two buttons, "Export as PNG" and "Export PDF". They export the chart it draws and read no export verdict. The switch does not hide them, and every sentence this PR writes now says so. Gating them is outside this claim's file surface; it is a separate card if the maintainer wants the chart picture covered. - **N1, follow-up candidate: the report control paints before its definition read settles.** `ReportExportControl` starts the base object's definition read once the table snapshot exists and reads only `def`. So on a report over an `exportCsv: false` object the control is drawn at least once per open, and for the length of the request when the definition is not cached. Holding it until `useSettledSchema`'s `ready` would remove the flash and keep it open where the source cannot serve a definition. Accepted on this head, since the setting is not a permission. - **N4, follow-up candidate: the Studio switch reads off for an unset key whose default is on.** The form row renders `checked` from the stored value, so an object that never authored `exportCsv` shows the switch off while export is offered. Writing `false` takes switching on and then off. This predates this PR: the row's comment and the composite's help text already describe it. It is now the row's only useful write, so the form face deserves its own card. - **Pin placement.** The claim asked for new pin files named for 35619 beside each surface. The ListView pin sits in the shared `ListView.harness.test.tsx` as a top-level describe instead, per the AGENTS.md shared-harness ruling (6583487846). - **Overlap.** `overlap-check` at eabd783 reports textual conflicts with two PRs. With objectstack-ai#35923 they are only on two generated artifacts, `content/docs/references/data/object.mdx` and `packages/spec/liveness/state-counts/object.md`; both PRs regenerate them, so whichever lands second merges main and regenerates them. With objectstack-ai#36129 (a draft, the related-tab list) the conflict is in `ui/packages/plugin-list/src/ListView.tsx`. That queues the second of the two to land. `origin/main` (dc10b3b) merges cleanly. ## Verification Round 2, at eabd783: `dispatch-gates --commands` derives the same 122 families. The local re-run was stopped at the coordinator's finish-now order once CI was green on this head, so the local union is partial, and says so. <details><summary>Reconciliation at eabd783: 122 derived, 98 run, 1 NOT MEASURED, 23 unrun; CI 70 check-runs, 0 failures</summary> ```text Run reconciliation — 122 derived, 98 run, 1 NOT-MEASURED, 23 UNRUN. ``` - All 98 that ran exited 0. They include every family the round-2 files feed: `check:generated`, `check:docs`, `check:liveness`, `check:i18n`, `check:i18n-stale-fill`, the changeset checks and `check:nul-bytes`. - `check:dual-build-cjs-loads` is NOT MEASURED locally (exit 3, needs every package built), as in earlier rounds. - 23 families were not run locally on this head: `check:query-options-erasure` through `check:wildcard-fallthrough`, the tail of the list. Each passed locally at 88f1d55, and this round changes prose only. CI ran them all. - CI check-runs on eabd783, read once: 70 runs, 61 success and 9 skipped, none failed. </details> Round 1, at 88f1d55: `dispatch-gates --commands --repo objectstack-ai/objectstack` derives the same 122 families as at 4443783. All of them were re-run on this head, with exit codes captured before any pipe. <details><summary>Reconciliation at 88f1d55: 122 derived, 121 run, 1 NOT MEASURED, 0 unrun; CI 70 check-runs, 0 failures</summary> ```text Run reconciliation — 122 derived, 121 run, 1 NOT-MEASURED, 0 UNRUN. - pnpm check:dual-build-cjs-loads [recorded exit 3 on line 78 — PREREQUISITE NOT MET] ✓ dispatch-gates --ran: 122 derived famil(ies) accounted for — 121 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3). ``` - 121 families exited 0. Their prerequisites were built first: the CLI closure for `check:i18n` (`platform-objects in sync (32 bundle(s))`) and client-react for `check:skill-examples`. - `check:dual-build-cjs-loads` is NOT MEASURED locally, as in round 0: it needs every package built. CI covers it. - `overlap-check` gave exit 1, only on objectstack-ai#35923's two generated artifacts (see Acceptance notes). `origin/main` (493ad09) merges cleanly. - CI check-runs on 88f1d55, read once: 70 runs, 61 success and 9 skipped, none failed. `Test UI (15/16)`, `Test UI`, `Test Core`, `Lint & Repo Gates`, `Type Check UI`, `Check Changeset`, `Spec property liveness` and `Lint · PM dispatch-gates` are all success. </details> Round 0, at 4443783: the same 122 families, derived by `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack`. Exit codes were captured before any pipe. <details><summary>Reconciliation: 122 derived, 121 run, 1 NOT MEASURED, 0 unrun</summary> ```text Run reconciliation — 122 derived, 121 run, 1 NOT-MEASURED, 0 UNRUN. NOT-MEASURED · DERIVED (1) - pnpm check:dual-build-cjs-loads [recorded exit 3 — PREREQUISITE NOT MET] ✓ dispatch-gates --ran: 122 derived famil(ies) accounted for — 121 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3). ``` - 117 families ran at 3e175d0 and exited 0. - Three refused their prerequisite there (exit 3). Each passed after its prerequisite was met: - `check-plugin-teardown-shape --self-test`, once its pinned fixture commit was fetched; - `check:skill-examples`, once client-react was built; - `check:i18n`, once the CLI closure was built. - `check:i18n` then went red (exit 1, `platform-objects DRIFTED (1)`). That red came from this diff: the object form's `exportCsv` help text is extracted into `en.metadata-forms.generated.ts`. 4443783 regenerates it with `node scripts/check-i18n-bundles.mjs --write` (only `en` moved), and `pnpm check:i18n` now exits 0 with every bundle in sync. - At 4443783 these exited 0: `check:i18n-stale-fill` (new to the derivation), the two changeset checks, `check:nul-bytes` and `check:published-files`. - `check:dual-build-cjs-loads` needs every package built (36 have no `dist/`), so it is NOT MEASURED locally: declared narrowing, and CI runs it. - `check:dev-prereqs` is local-only: exit 1, "the workspace is not built", 23 of 108 packages have no `dist/`. That describes this container, not the diff. - `check:liveness` exited 0 and `check:generated --fix` regenerated the two artifacts this PR commits. </details> CI families: the seat reads the check-runs on 88f1d55. Round 0's red `Test UI (15/16)` is the census this round fixes. --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibxUmEWpcN3eh4vH1WY)_ <!-- signed: repo:objectstack#7 · os-tesla · session_01L9qibxUmEWpcN3eh4vH1WY --> --------- Co-authored-by: Claude <noreply@anthropic.com>
… page only; a phone and the side drawer draw the standard page (objectstack-ai#36150) (objectstack-ai#36174) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuKobRqmoXkrWkHE4z9tvY3k)_ repo:objectstack#1 · os-sales · session_01L6bhgVHYk1S4MD4WibYGKk Fixes objectstack-ai#36150 Clause-②: no Metadata-protocol: semantic Skills-docs: follow-up objectstack-ai#36179 — skills/objectstack-ui/rules/record-page.md rules 4 and 5 (the `record_more` advice); skills edits ride a domain:skills PR ## 维护者速读 - 手写的记录页(`kind: 'full'`)现在只在电脑整页上生效。手机整页、电脑右侧抽屉(以及分栏预览、界面页预览)一律画平台标准页:字段一列、每张子表一个页签、动态在最后。抽屉里「整页打开」打开的仍是手写页。 - 按您的两条裁决:审批请求页和用户页三处都保留自己的页;页面区块里的动作(`record_section`)标准页不画,演示应用任务的「重算工时」加了 `record_more`,手机和抽屉里在「⋯」里能找到;队列成员、审计日志「同一记录的变更」、发票的打印按钮只在电脑整页有(后续卡由席位立)。 - 不变:插槽页(HotCRM 线索、工单的告警,项目的甘特图)三处照旧;网址点名的页面(打印页等)照旧;电脑整页一点不变。 - HotCRM 主干已经没有手写整页(hotcrm#2671),所以 HotCRM 三处都没有变化,作对照;手写页的三处效果用演示应用的项目页拍。 ## What changes - **One reader of where an authored page applies**, `authoredRecordPageApplies` in the new `ui/packages/app-shell/src/views/recordPageSurface.ts`: true on the desktop full page, false on a phone (`usePhoneViewport`) and in every embedded view. Two exceptions are the host's, named there and nowhere else: a page named in the URL (`…/record/:id/page/:pageName`, which only the full-page route reads, objectui#12715), and `OBJECTS_KEEPING_AUTHORED_PAGE` = `sys_approval_request`, `sys_user` (maintainer rulings 7066490078). There is no author switch. - **`RecordDetailView`**: `usePhoneViewport()` moves up to where the page is assigned, and `assignedPage` is `null` where the authored page does not apply, so the view takes the synthesized standard page there. Inside the view everything downstream (columns, phone header, comments, related lists) keys off `assignedPage`. Slotted pages never populate `assignedPage` and keep their slots everywhere. - **The record route's object scope** (`console/appObjectScope.ts`, L2 M1): `declaredRecordPage` reads the same `authoredRecordPageApplies`, so on a phone the record route takes the synthesized page's arm (the objects pointing at the record's, from the bundle or the registry) instead of only the objects the authored page binds; the standard page's child tabs are then all there. `AppContent` and `useAppObjectScopePrefetch` hand it `usePhoneViewport()`, so the scope follows the width across 768 as the view does. A page named in the URL and the two kept platform pages still read their page's objects. - **Showcase**: `showcase_recalc_estimate` declares `['record_section', 'record_more']` (ruling 7066506909). The authored Task Detail header lists its action ids and leaves it out, so the full page still draws it once, in the section bar; the standard page reaches it under ⋯. `record-action-location-hosts.test.ts` now holds: the authored header lists the record_header / record_more set less the section bar's actions; no action is both a section action and an inline header one; every section action is reachable under ⋯ on the standard page. - **Docs**: `content/docs/ui/pages.mdx` gains "Where an authored page applies" (a window narrower than 768 px counts as the phone; an interface page's preview is embedded). - **Not in this PR** (L2 S1, seat): the spec describes of `kind`, `isDefault`, `apps` and the `slots.tabs` remedy → objectstack-ai#36180 (schema face); `skills/objectstack-ui/rules/record-page.md` rules 4 and 5 and the `record_more` advice → objectstack-ai#36179 (domain:skills). - **Changeset**: `@object-ui/app-shell` minor, both declaration lines. ## Why Card objectstack-ai#36150 (child of epic objectstack-ai#35590; maintainer 2026-11-22 「自定义记录页在手机和右侧预览里不生效、统一用标准页」). The card's item 5 list (page-only things, and what each becomes off the full page) was posted on the card before the build; the two questions it raised were ruled (7066490078, 7066506909). ### Item 5, and how each was handled | Page | Page-only | Off the desktop full page now | |---|---|---| | showcase project | Tasks inline-edit grid tab, three sections, own highlights, footer discussion | standard page: Tasks as the master-detail child tab, ungrouped fields, the object's own highlights, discussion in 动态 (the comment panel once objectstack-ai#36114 lands) | | showcase task | review banner, Recalculate Estimate (section bar), three sections, path | banner gone; Recalculate under ⋯ (`record_more` added); stage menu in the header | | showcase settings | two sections | ungrouped | | showcase invoice (default print page) | letterhead, print line items, Print button | standard page, no Print button (full page only, ruled) | | `sys_approval_request` | `record:approval_decision` | **kept on every surface** (ruled) | | `sys_user` | Security tab, effective access, AI assistants, verify banner, picker | **kept on every surface** until objectstack-ai#35897 (ruled) | | `sys_organization` | three related tabs with set columns | the three stay; the other lookups to the organization also become tabs until objectstack-ai#35897 | | `sys_queue` | Members list paired by text value | full page only (ruled; follow-up card by the seat) | | `sys_audit_log` | "Changes to the same record" list, five sections | list full page only (ruled; same follow-up); ungrouped | | HotCRM main | no authored full page since hotcrm#2671 | no change on any surface | ## Side effects reviewers should know - **Seventeen `RecordDetailView.*` test files mounted the drawer (`embedded`) only as a harness for an authored page** (`feedGrant-12082`, `feedCommentEditDelete-12268`, `reactionRecords-12078`, `authoredActivityThreading-12249`, `reactionWriteFailure-10899`, `withheldMentions-28218`, `discussionFallbackPipeline-8983`, `discussionExplicitComposition-7298`, `commentWriteFailure-10899`, `reactionsCommentRowsOnly-11035`, `reactionKeepIds-11019`, `feedRecordScope`, `topInset-35745`, `oneProvenanceFooter-12307`, `appendInset-27520`, `replyCountOnRead-12144`, `feedLoading`). They now mount the full page, with a one-line note where `embedded` was; no assertion changed. One case changed meaning: `harness` › recordPagePlacesNoComponent-32478 "the record drawer explains it the same way" now pins that the drawer draws the standard page and no explanation, since the authored page does not apply there. - **objectstack-ai#36114** (desktop comment panel) is merged; `main` is merged into this branch. Its pin "no icon on a hand-written page" (`commentsPanel-36075.test.tsx`) now mounts the full page, where an authored page keeps its discussion and shows no icon; a new case beside it pins the opposite on the drawer: an authored-page object's drawer draws the standard page and offers the panel (L1-c item 1). - The phone reading is the window width (`usePhoneViewport`, below 768): a desktop window narrowed below 768 also takes the standard page. ## Verification - New `AppContent.authoredPagePhoneScope-36150.test.tsx` (6), through the real `AppContent` and `MetadataProvider`, the view a double printing the objects it is handed: desktop reads the authored page's objects, a child it does not bind left out (CONTROL); a phone reads every object pointing at the record's, that child included; the width crossing 768 on an open record moves the scope; a media-query change that leaves the window wide (what printing fires) keeps the authored page's scope (L2 N4); on a phone a page named in the URL and the `sys_user` page still read their own objects. **Red before**: with the scope handed `phone = false`, 2 of 6 fail (phone, width crossing). - New `RecordDetailView.authoredPageDesktopOnly-36150.test.tsx` (19, one added for N4: the authored page survives a print-style media-query change), through the real `RecordDetailView`: an authored page draws on the desktop full page; the standard page with its tab strip on the phone (375) and the drawer, the authored block gone; on the drawer the object's `record_more` action is in ⋯. CONTROL: no authored page, the standard page on all three. Exceptions on the phone and the drawer: a slotted page keeps its slot; `sys_approval_request` and `sys_user` keep their page; a page named in the URL draws on the phone. **Red before**: with the reader returning `true`, 4 of 18 fail (the unit pin, phone, drawer, ⋯). - Local: every `app-shell` `RecordDetailView.*`, `recordDrawer*`, `ObjectView*` and `console/__tests__/AppContent*` file, plus every other `ui/` test file naming `RecordDetailView`, `recordDrawer` or `RecordPageDrawerHost`: 319 files, 3,003 tests, all pass. `examples/app-showcase` `record-action-location-hosts.test.ts` 14/14; `objectstack validate` passes. ESLint on every changed file: 0 errors. `overlap-check.mjs`: clean against main and the 4 open PRs that share a file (objectstack-ai#36136, objectstack-ai#36129, objectstack-ai#36114, objectstack-ai#35923). `type-check` for app-shell did not run locally (the ui packages' declarations are not built in this container); CI is the reading. - Browser, showcase on this branch (server 18.6.0, console from this branch's `ui/` on Vite), zh-CN, light and dark, shots in the project evidence folder `build-seat1/36150/`: | Surface | Showcase project | Showcase task | |---|---|---| | Desktop full page, 1280 | authored: tabs 详情 / 任务 / 相关 2 / 附件, footer 讨论 | authored: path, review banner slot, 重算工时 in the section bar, once | | Drawer from the list, 1280 | standard: 概览 / 字段动物园 1 / 成员 1 / 任务 2 / 客户简报 / 附件 / 动态 | standard: 概览 / 动态; ⋯ holds 打开文档, **重算工时**, 重算所选 … 整页打开 | | Phone, 390 | standard: 概览 / 字段动物园 1 / 成员 1 / 任务 2 / 更多 3, fields one column, bottom bar | standard; ⋯ holds 记录工时, 归档, **重算工时** … | - HotCRM main (`1468877`, on 18.6.0) as the no-change control, lead: the standard page with its tabs on all three surfaces (it is a slotted page), its record actions in the header / ⋯ (转化线索, 安排跟进, 记录通话 …). ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes (ESLint on the changed files, 0 errors). - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English (the 维护者速读 block is the maintainer's summary, in the maintainer's language). - [x] The *Before Submitting* list in CONTRIBUTING.md is done. Branch name is the harness-assigned `claude/project-thread-0slbpo`. --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgVHYk1S4MD4WibYGKk)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgVHYk1S4MD4WibYGKk <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgVHYk1S4MD4WibYGKk --> --------- Co-authored-by: Claude <noreply@anthropic.com>
repo:objectstack#1 · os-sales · session_01L6bhgTKEPqtmiK9SGpHsmW
Fixes #35892
What changes
On a record page, a related list opened as its own tab (and the same list in the record drawer) now works like the child object's list page:
@object-ui/plugin-listexports it asListConditionsBlock, and becauseplugin-detailsits belowplugin-list, the record page hands it to the tab through a new slot,RelatedListConditionsSlotContext(@object-ui/plugin-detail), the wayRecordBodyTableEditorSlotContexthands in the edit-state editor. It is a host element, not a registered node type, so the registered-types ratchet (every registered type is authorable) is untouched. No view switch, view settings or search. Its labels fold to icons by the row's own width (narrow tab, drawer, phone); no horizontal page scroll.listInlineEditaffordance), row selection with the floating bulk bar, and the footer row. Bulk delete is offered where the host hands a row delete and the child object'srelatedRowDeleterow of the affordance map allows it (the write census names the new site). It asks once, counting the rows, then sends the selection (up to every matching row) to the data source'sbulkDeletein one call; only a data source without one falls back to the row delete the list was handed, all rows settled together, as the list page settles them. The tab then shows how many rows were deleted and how many failed, in the list page's own words (objectActions.bulkDeleteSuccess/bulkDeletePartial). Footer calculations run over every matching row (findParams), not the loaded ones. A status-grouped tab draws no footer row.ConditionDiscardButton(app-shell'sListDraftActionsnow draws it; same look and behaviour as feat(console): a change on a list is a draft, with Discard and Save (#35955 PR 1) #36026).withHeaderSortPick(@object-ui/core).app-shellRecordDetailView, which the drawer draws too) fills the slot with the block, lazy-loaded with the first tab that draws it.Supersedes the remembered related-tab sort of #35601 (取代 #35601 的记住排序), on ruling #35892 (comment) (session-only). Column widths and order for the related tab move to the reader's browser, as the list page keeps them, on ruling #35892 (comment):
RelatedListno longer reads or writes them insys_user_preference; theRelatedListPreferencetype stays (no narrowing). Keeping widths after sign-out is #36110, not this PR.Upgrade note (also in the changeset): the header sort and the column widths and order an earlier version remembered for a related tab no longer apply (子表页签里以前记住的排序不再生效). The tab opens in its declared order and its widths start from the default once. Nothing stored is deleted. The default sort and columns of every related list are unchanged.
Why
#35892 (epic #35590): the related tab was a reduced list with a pager and an exit to the list page; the reader had to leave the record to sort, filter or total the children.
Verification
Evidence:
/mnt/project-files/build-seat1/35892/(indexREADME.md, shots inshots/), fromexamples/app-crmwith this branch's console build, Acme Corp → Opportunities (70 children). Light and dark at 1440, 720, 375, plus the record pane opened from the list (app-crm has no drawer navigation).Measured in the real console:
#36023 leftover 2 (三项实测, in the tab at 1440):
PATCH crm_opportunity {"amount":9100}, toast "1 row saved", the selection stays on the same cell.PATCH {"amount":9000}, the selection moves one cell right.PATCH {"close_date":"2026-12-15"}, the cell reads "Dec 15" and the calendar closes.The edited record was restored afterwards.
Tests:
RelatedList.tab-35892.test.tsx(13, including a host that supplies no condition row, the batch delete in one call, a partial failure on both paths, and a second reader starting from the default),relatedTabConditions-35892.test.ts(5),ListConditionsBlock-35892.test.tsx(5).RelatedList.enlargedListGrid-28865.test.tsx(growing window, scroll load, footer, column widths no longer stored server-side),RelatedList.enlargedToolbar-27524.test.tsx(no ↗, header sort not written, remembered sort not read).vitest run packages/plugin-detail: 398 files / 3664 tests passed. plugin-list, i18n, app-shell views, core: see the checks.@object-ui/plugin-list,plugin-detail,app-shell, console: pass. ESLint on the changed files: 0 errors. Eager ui-components budget unchanged in kind (339.5 / 346.7 KB).Overlap (
scripts/pm/overlap-check.mjsat 5b76d7a): merges cleanly withorigin/main(main merged in at 5bad102, which also took #36096: the@object-ui/coreimport line ofui/packages/plugin-list/src/ListView.tsxkeeps bothisObjectExportOfferedandwithHeaderSortPick) and with #36131, #36128, #36123, #36114. With #36136 one line conflicts: the@object-ui/plugin-detailimport line ofui/packages/app-shell/src/views/RecordDetailView.tsx, where this PR addsRelatedListConditionsSlotContext(plus the./relatedListConditions.jsimport) and #36136 addsstepDisplayTextto the./RecordApprovalsPanel.jsimport. Whichever lands second keeps both.Clause-②: yes
Metadata-protocol: none
Clause-② is a widening: new exports
ListConditionsBlockandListConditionsHostProps(@object-ui/plugin-list), the slotRelatedListConditionsSlotContextandRelatedListConditionsProps(@object-ui/plugin-detail), new exportsConditionDiscardButtonand its typeConditionDiscardButtonProps(@object-ui/plugin-list) andwithHeaderSortPick(@object-ui/core), new i18n keys in every locale pack (listConditions.chips.discard,listConditions.chips.discardHint,detail.relatedNoMatches,detail.deleteRowsTitle, and the count familydetail.deleteRowsConfirmationwith the plural slots each pack needs); nothing removed or renamed.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgTKEPqtmiK9SGpHsmW