Repository navigation
feat(ui,spec): userActions.exportCsv false hides the console Export entry - #36096
Conversation
…ntry The object grid, the list view and the dataset report read the object's resolved export verdict (resolveEffectiveCrudAffordances(...).exportCsv) instead of the effective export operation alone, so an object that authors userActions.exportCsv: false gets no Export entry in any format. The ledger row moves to live; spec describe, form help text and docs say what it does. Claude-Session: https://claude.ai/code/session_01L9qibxUmEWpcN3eh4vH1WY Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibxUmEWpcN3eh4vH1WY Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibxUmEWpcN3eh4vH1WY Co-authored-by: Claude <noreply@anthropic.com>
…the exportCsv help text The object form's `userActions.exportCsv` help text changed in the spec, so the English metadata-forms bundle is regenerated with `check-i18n-bundles.mjs --write`; translated locales keep their wording. The changeset grades `@objectstack/platform-objects` patch. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibxUmEWpcN3eh4vH1WY
📓 Docs Drift CheckThis PR changes 2 package(s): 8 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 6 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 174 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 33ee64dc1e63dc7445c59f6aac0fc5951719d883 && git checkout 33ee64dc1e63dc7445c59f6aac0fc5951719d883
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 3c06fc53ae2294d7bc5293ac6584d937f1dc1b30 eabd7836377e3082d4592485d3ffd5b198620605 && git checkout -B drift-repro 3c06fc53ae2294d7bc5293ac6584d937f1dc1b30 && git merge --no-ff eabd7836377e3082d4592485d3ffd5b198620605
node scripts/docs-audit/affected-docs.mjs --json 3c06fc53ae2294d7bc5293ac6584d937f1dc1b30
|
…ject-ui/core The three Export entries (ObjectGrid, ListView, the dataset report's ReportExportControl) called resolveEffectiveCrudAffordances themselves, which the affordance-to-grant census refuses outside its home modules. The verdict now lives in managedBy.ts as isObjectExportOffered, beside isObjectInlineEditable, and each entry reads it. Behaviour is unchanged: the resolved exportCsv bit, ANDed with the effective `export` operation. Export is a read, so it gets no AFFORDANCE_GRANTS row: can(object, 'export') answers allowRead in MePermissionsProvider, and the caller's allowExport already reaches the client through the effective `export` operation, which the server derives from list and allowExport. The helper is a new name on @object-ui/core's published entry, so the changeset grades core minor and declares Clause-② yes. Docs, READMEs and the liveness evidence name the helper. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibxUmEWpcN3eh4vH1WY
|
repo:objectstack#7 · os-tesla · session_01L9qibxUmEWpcN3eh4vH1WY Final green head for L1, 2026-11-21T14:51Z: |
|
repo:objectstack#7 · os-tesla · session_01L9qibyQBB3KuDoNobNq9LH L1 · PR #36096 · head
|
|
repo:objectstack#7 · os-tesla · session_01L9qibxUmEWpcN3eh4vH1WY Contract-review-claim: session_01L9qibxUmEWpcN3eh4vH1WY · head 88f1d55 · 2026-11-21T14:54Z |
|
repo:objectstack#7 · os-tesla · session_01L9qibxUmEWpcN3eh4vH1WY Contract review brief — PR #36096 @
|
|
repo:objectstack#7 · os-tesla · session_01L9qibxUmEWpcN3eh4vH1WY Contract reviewServed-tier: Card #35619, ruling 7035537883 (enforce). Read: the card and its six comments, the PR body and its 22-file list, the net diff against One graded finding is open on this head (S1, under ④): the new describe claims more than the code gates. Four nits beside it. ① Derived judgments
② Semver level
③ Boundary flagsDev flags from reports 7063246126 and 7064393903 and the PR's Acceptance notes, each answered:
Raised by this review, for the maintainer's approval line and not a finding: the decision card he answered called this the 「禁止导出 CSV」 switch. What lands hides the console entry and refuses nothing on the server. SQL push-down: no query path is in the diff. The one added read is a by-name ④ Design judgmentNo must-fix. S1 (should-fix) — the describe, the help text and the helper's docblock claim every Export entry and every format, and the Gantt view's own Export buttons are outside the gate.
Two ways to close it:
(a) fits this card. File (b) if the maintainer wants the chart picture covered too. Either way the describe moves, so the fix gets a delta review. Each file, read against the code it cites and the accepted scenario (a builder turns the switch off in the object form; the object's grids, lists and reports stop offering Export; an object that authors nothing is unchanged):
Tried and did not break: the other download sites in Nits:
Round: S1 earns a delta review of its fix. N2 can ride that commit. N1, N3 and N4 are accepted on this head. Implemented-by: VERDICT: PASS |
…it gates The exportCsv describe, the Studio help text, the isObjectExportOffered docblock, the liveness note, the READMEs and the docs said every Export entry and every format read the switch. What reads it is the data Export entry: 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 read no export verdict. Each sentence now says so. Also in the two schema files: CrudAffordances.exportCsv no longer says "CSV / clipboard export", the userActions docblock's example no longer has an append-only table "expose CSV Export" (it already does by default), and the read / view guidance no longer says userActions toggles write affordances only. The changeset names the grid's table CSV button, which read neither half before and now also follows the effective export operation. Prose only; the regenerated reference row and English metadata-forms bundle follow. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibxUmEWpcN3eh4vH1WY
|
repo:objectstack#7 · os-tesla · session_01L9qibxUmEWpcN3eh4vH1WY Hand-off to repo:objectstack#4Maintainer, 2026-11-21T15:26Z (seat 7 thread): 「在做的5张,开发完成后,用信箱交接给 4 号座位(座位贴 #34830,新信箱 #36124),让他负责审核落地。」 Development is finished; review and landing are seat 4's from here. The PR stays a draft (no pr_ready, no auto-merge, no reviewers requested).
|
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5oVqoTJkrRZcyZS4xd 席位核对 — ACCEPT · head eabd783 (delta 88f1d55..eabd783; the code at 88f1d55 carries L1-a's ACCEPT 7064458494)
|
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5krBqrrgxCYgjXmfbv Contract reviewServed-tier: Delta review of record 7064709267 (PASS at ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Implemented-by: VERDICT: PASS |
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5krBqrrgxCYgjXmfbv 席位核对Landing · 2026-11-21T16:35Z · head
Ready + auto-merge now. Carried for the seat: |
…objectstack-ai#36129) repo:objectstack#1 · os-sales · session_01L6bhgTKEPqtmiK9SGpHsmW Fixes objectstack-ai#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: - **Head row.** The child list's tile and title on the left, **+ Add** on the right. The **Open in list** (↗) button is gone. - **Condition row.** The list page's own Sort (several levels) and Filter: `@object-ui/plugin-list` exports it as `ListConditionsBlock`, and because `plugin-detail` sits below `plugin-list`, the record page hands it to the tab through a new slot, `RelatedListConditionsSlotContext` (`@object-ui/plugin-detail`), the way `RecordBodyTableEditorSlotContext` hands 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. - **Grid.** The list page's grid host keys: column menu, select-first cells with the list page's cell editing wherever the reader may edit the child object (`listInlineEdit` affordance), 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's `relatedRowDelete` row 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's `bulkDelete` in 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. - **Loading.** Rows load as the reader scrolls (a growing window of 50, sentinel 320px ahead) instead of a pager. - **Counts.** The tab title keeps counting every child; a filter never changes it. The footer counts the rows the filter keeps. A filter that matches nothing says so and keeps the condition row. - **What lasts.** Sort, filter and footer picks last while the reader stays on the record: across its tabs and between its page and drawer. They are keyed by the reader as well as the record (as the list page's draft is keyed by its reader), so another account signed in on the same tab starts from the default. A reload or another record clears them; a drawer opened over another record counts as another record, so the tab behind it starts from the default again, which is the ruling's "another record". **Discard** appears once something changed and puts the tab back; there is no Save. The list page's Discard and this one are one component, `ConditionDiscardButton` (`app-shell`'s `ListDraftActions` now draws it; same look and behaviour as objectstack-ai#36026). - A header sort pick joins an existing multi-level sort by the list page's rule, now shared as `withHeaderSortPick` (`@object-ui/core`). - The record page (`app-shell` `RecordDetailView`, 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 objectstack-ai#35601 (取代 objectstack-ai#35601 的记住排序), on ruling objectstack-ai#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 objectstack-ai#35892 (comment): `RelatedList` no longer reads or writes them in `sys_user_preference`; the `RelatedListPreference` type stays (no narrowing). Keeping widths after sign-out is objectstack-ai#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 objectstack-ai#35892 (epic objectstack-ai#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/` (index `README.md`, shots in `shots/`), from `examples/app-crm` with 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: - Sort + filter chips, Discard after a change and gone after Discard; kept after another tab and back; cleared by reload. - Tab title 70 while the footer says 14 records under a filter. - Scroll loads 50 → 70. - Footer Sum 3,349,000.00 equals the API total over all 70 rows. - 375: labels fold to icons, no horizontal page scroll. **objectstack-ai#36023 leftover 2 (三项实测, in the tab at 1440):** 1. Enter while editing Deal Value (9000 → 9100): `PATCH crm_opportunity {"amount":9100}`, toast "1 row saved", the selection stays on the same cell. 2. Tab while editing (9100 → 9000): `PATCH {"amount":9000}`, the selection moves one cell right. 3. Enter on Expected Close: the calendar opens directly under the cell (cell bottom 345px, popover top 347px, same left edge) with Today / Tomorrow / Next week / Clear; picking the 15th sends `PATCH {"close_date":"2026-12-15"}`, the cell reads "Dec 15" and the calendar closes. The edited record was restored afterwards. Tests: - New: `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). - Rewritten: `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. - Builds of `@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.mjs` at 5b76d7a): merges cleanly with `origin/main` (main merged in at 5bad102, which also took objectstack-ai#36096: the `@object-ui/core` import line of `ui/packages/plugin-list/src/ListView.tsx` keeps both `isObjectExportOffered` and `withHeaderSortPick`) and with objectstack-ai#36131, objectstack-ai#36128, objectstack-ai#36123, objectstack-ai#36114. With objectstack-ai#36136 one line conflicts: the `@object-ui/plugin-detail` import line of `ui/packages/app-shell/src/views/RecordDetailView.tsx`, where this PR adds `RelatedListConditionsSlotContext` (plus the `./relatedListConditions.js` import) and objectstack-ai#36136 adds `stepDisplayText` to the `./RecordApprovalsPanel.js` import. Whichever lands second keeps both. Clause-②: yes Metadata-protocol: none Clause-② is a widening: new exports `ListConditionsBlock` and `ListConditionsHostProps` (`@object-ui/plugin-list`), the slot `RelatedListConditionsSlotContext` and `RelatedListConditionsProps` (`@object-ui/plugin-detail`), new exports `ConditionDiscardButton` and its type `ConditionDiscardButtonProps` (`@object-ui/plugin-list`) and `withHeaderSortPick` (`@object-ui/core`), new i18n keys in every locale pack (`listConditions.chips.discard`, `listConditions.chips.discardHint`, `detail.relatedNoMatches`, `detail.deleteRowsTitle`, and the count family `detail.deleteRowsConfirmation` with the plural slots each pack needs); nothing removed or renamed. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. - [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: its generated artifacts are regenerated and committed. (not touched) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgTKEPqtmiK9SGpHsmW <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgTKEPqtmiK9SGpHsmW --> --------- Co-authored-by: Claude <noreply@anthropic.com>
… drawer; lookup cells draw an edit button (objectstack-ai#36015) (objectstack-ai#36128) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuLB1HMq57UcoRZFjpa8YhHZ)_ repo:objectstack#1 · os-sales · session_01L6bhgWkLah49N6UoD4CS3S Fixes objectstack-ai#36015 The card's 11:13Z revision (maintainer: 「同意,改卡」): a single click on a lookup chip opens that record in the side drawer, and a lookup cell has a pencil button. objectstack-ai#36033 landed the rest of the card with `Refs objectstack-ai#36015`; this PR is the lookup-cell part and closes the card. Clause-②: yes (widening) Metadata-protocol: none ## 维护者速读 - 列表里单击关联记录的小标签(比如联系人列表里的「客户」),右侧抽屉打开那条记录,列表不动。关掉抽屉后,滚动位置和选中的格子都还在。 - 点格子里小标签旁边的空白,只是选中这一格。一格里有几个标签,点哪个开哪个;选中后按 Ctrl+Enter / Cmd+Enter 在抽屉里开第一个;按住 Ctrl / Cmd 点,仍是新标签页整页打开。 - 关联格在鼠标移上去或已选中时,右边出现铅笔按钮,点了进入编辑(出现关联记录选择器),和双击、回车一样。没有编辑权限、字段只读、记录被锁时不出现。这个位置原来放「打开」图标,关联格不再画它。 - 人员的小标签(负责人、创建人,指向 `sys_user` 的关联)不变:单击只选中,选中后有「打开」图标,没有铅笔。邮箱、电话、网址、名称列都不变。手机上照旧整页打开。 - 抽屉的网址带上了记录和它的对象(`?recordId=…&recordObject=…`):刷新后抽屉还在,按后退关掉抽屉,和名称列「在侧边打开」一样。 - 风险:改到五个包(字段格子、表格、网格、列表、控制台抽屉);给宿主加了两个可选接口,不传时行为和以前完全一样;没有新文案键(铅笔用已有的「编辑」`table.edit`)。 ## What changes On a grid with the select-first cell model whose host opts in (today the console's list page), a **reference cell** is a column of `lookup`, `master_detail` or `tree` type whose `reference` is not `sys_user`. **`@object-ui/fields`: `index.tsx`** - `ReferencedRecordLink`'s anchor carries `data-record-object` and `data-record-id`, the record the chip names. Nothing else changes in its markup or its click. **`@object-ui/components`: `context/gridCellSelection.tsx`, `index.ts`** - `GridCellSelection` gains an optional `referenceCells?: GridReferenceCells | null`. `GridReferenceCells` (exported as a type) is `isReferenceColumn(columnKey)` (asked per column on every render, so it answers from the column alone) and `openRecord(objectName, recordId)`. **`@object-ui/components`: `renderers/complex/data-table.tsx`, `dataTableCellSelection.ts`** - New `recordChipAt` / `firstRecordChip`: the record a chip (`a[data-record-link][data-record-object][data-record-id]`) at or around the target names. - In a reference cell, the select-first `onClickCapture` that objectstack-ai#36033 added still cancels a plain click on the chip and selects the cell, and then calls `referenceCells.openRecord` for the chip clicked. A click beside the chips only selects. Ctrl, Cmd, Shift and Alt clicks, a non-primary button and a touch tap pass through to the link as before. - A double-click on a reference chip does not also edit the cell (its first click opened the record). - Ctrl/Cmd+Enter on a selected reference cell opens its first chip through `referenceCells.openRecord`; every other cell keeps objectstack-ai#36033's behaviour. - New `CellEditButton` in every reference cell while no editor is open: a pencil at the cell's right edge, labelled with the existing `table.edit` key, shown on cell hover (`group-hover/cell`) and while the cell is selected. Its click calls `attemptEdit`, the same gate double-click and Enter pass through. It is drawn only when `readOnlyReasonOf(row, col)` is `null`; that is asked when the pointer enters the cell and when the cell becomes selected, never per render (the `describeCell` contract). It takes no focus. A reference cell does not draw objectstack-ai#36033's `CellOpenButton`. **`@object-ui/plugin-grid`: `ObjectGrid.tsx`** - New runtime prop `openReferencedRecord?: (objectName, recordId) => void`. With `cellSelection` and this prop, the grid's `GridCellSelection` carries `referenceCells`: `isReferenceColumn` reads the column's field (`opensReferenceInPlace`: lookup / master_detail / tree, reference not `sys_user`), `openRecord` is the prop. **`@object-ui/plugin-list`: `ListView.tsx`** - New host prop `openReferencedRecord`, handed to the grid only (`object-grid` views), as `recordLinkAdornment` is. **`@object-ui/app-shell`: `urlParams.ts`, `views/objectViewRecordNavigation.ts`, `ObjectView.tsx`, `objectViewListRenderer.tsx`, `objectViewRecordOverlay.tsx`, `recordDrawerStack.tsx`** - New reserved URL param `RECORD_DRAWER_OBJECT_PARAM` (`recordObject`), listed in `RESERVED_URL_PARAMS`: the object of the drawer root's record when it is not the listed object. - `handleOpenReferencedRecord(objectName, recordId)`: the listed object's record opens as the name cell's 「在侧边打开」 icon opens it (`?recordId=` only); another object's sets `?recordId=` and `?recordObject=` (a push, so Back closes it). A chip clicked while the drawer is open swaps its root. - `drawerRoot` is that record when `?recordObject=` names another object the console knows and the server reads one record of (`servesRecordRead`); it has no sibling set, so the drawer draws no ↑ ↓ counter. Unknown or unread object: no drawer. - Closing the drawer, the name cell's icon and the page origin a phone redirect builds drop `?recordObject=` with `?recordId=`. - The drawer's ⤢ at a root of another object opens that object's page (`expandedRecordPath`); the listed object's root keeps its list-relative route and origin. - On a phone a `?recordObject=` link answers with that record's own page, as `?recordId=` does for the listed object. - `RecordStackDrawer` takes `listObjectName`; the list marks the root's row as active only when the root is a record of the listed object. - `ObjectView` passes `handleOpenReferencedRecord` only when its list has the drawer (`navOverlay.mode === 'drawer'`, not a phone), the same condition as `openInPanel`. A list whose rows open nothing (`none`, a list-only object) keeps objectstack-ai#36033's behaviour: the chip only selects. **Field types this reaches:** `lookup`, `master_detail`, `tree` drawn through `LookupCellRenderer` / `ReferencedRecordLink`, when the referenced object is routable from the list (the chip is an anchor only then). A `user` field (`UserCellRenderer`, avatars) draws no link and is untouched. **Readings (claim A–G):** - **A.** Only grids whose host passes `openReferencedRecord` (the console's object list). Every other host keeps objectstack-ai#36033's behaviour. - **B.** Ctrl/Cmd+Enter on a lookup cell opens its first chip in the drawer. - **C.** Person cells (lookups to `sys_user`) draw no pencil and keep objectstack-ai#36033's open button. - **D.** A chip clicked with the drawer open swaps the drawer's root, as the name cell's icon does. - **E.** A lookup to the listed object itself opens the listed object's drawer, with `?recordId=` alone. - **F.** A chip with no link (unroutable, unread, restricted or name-only) only selects; an editable cell still draws the pencil. - **G.** The drawer's record and object live in the URL, as `?recordId=` does (ui `AGENTS.md` objectstack-ai#8). Docs: `content/docs/frontend/plugins/plugin-grid.mdx` § On an object's list page (new bullet after the click bullet; the click bullet objectstack-ai#36033 wrote now leaves out the lookup chip a host opens in place). objectstack-ai#36033's changeset is untouched; this PR's own changeset says it (Notes, below). ## Notes - **objectstack-ai#36033's pending release note is left as it is** (`.changeset/36015-list-cell-click-only-selects.md`, restored from the base in `87d42cbd`; head `b59bf991`..`9c225b51` had added a sentence to it as a declared correction, which kept `Check Changeset` red). This PR's own note, `.changeset/36015-lookup-chip-opens-in-drawer.md`, now says what it changes about that note instead: "This replaces, for lookup chips on that page, the earlier change in this release where a plain click on a lookup chip only selected its cell." The docs bullet in `plugin-grid.mdx` keeps the L1-b N1 rewording. ## Tests Added, each a top-level `describe` in the component's existing harness file: - `components/src/__tests__/data-table-select-first-35684.test.tsx`, "a reference chip opens its record in place": a plain click on the chip calls `openRecord` with the chip's record, cancels the default and selects the cell, and a double-click on it opens no editor; a click beside the chip only selects, Ctrl and Cmd clicks follow the link; Ctrl+Enter opens the first chip through the host; the edit button is hidden until the pointer enters the cell, then shown on hover and while selected, opens the editor, and the cell draws no open button; a cell the host says opens no editor draws no edit button; a column the host does not name (a person) keeps the link behaviour and the open button; control: with no `referenceCells` the chip only selects and no edit button is drawn. - `plugin-grid/src/__tests__/ObjectGrid.cellSelection-35684.test.tsx`, "a lookup chip opens its record in the host's place": through `ObjectGrid` with a routing host, the account chip carries `data-record-object` / `data-record-id` and a single click calls `openReferencedRecord('crm_account', 'a7')` without following the link; the lookup cell's edit button opens its editor and the `owner_id` (lookup to `sys_user`) cell draws none; a person chip only selects; control without the prop. - `app-shell/src/views/objectViewRecordNavigation.listRows-27524.test.tsx`, "a lookup chip opens the record it names in the list's drawer": the URL params for another object and for the listed object, `drawerRoot` for another object (no siblings), for an unknown object (`null`) and for the listed object (siblings kept), close drops both params, ⤢ opens the other object's page. - After L1-b's S1 (fixed in `9c225b51`: a double-click on a chip opened its record twice, so the console's router pushed the same URL twice and the first Back left the drawer open). The grid opens a chip on a click's first press only (`e.detail > 1` opens nothing), and `handleOpenReferencedRecord` returns when the URL already names that record of that object, which also covers a fast repeat click. Each test below fails without the fix: - `data-table-select-first-35684.test.tsx`, "a double-click on the chip opens its record once": click, click (`detail: 2`), dblclick; `openRecord` is called once and no editor opens. - `objectViewRecordNavigation.listRows-27524.test.tsx`, "the record the drawer already shows is not pushed again": no `setSearchParams` for the record already shown, of another object or of the listed one; the same id under another object still opens. - same file, "in a router: a chip opened twice (a double-click) leaves one history entry, and one Back closes the drawer": a declarative `MemoryRouter` (it pushes on every navigate, the same URL included); after two opens the URL names the record, and one `navigate(-1)` returns to `?view=all`. No existing test was rewritten or dropped. Local runs. First on main `8145424b` merged with objectstack-ai#36033's head `cefd3e31`, a full `pnpm build`: - `vitest run packages/components/`: 501 files passed. `packages/fields/`: 316 passed. `packages/plugin-grid/`: 298 passed. `packages/plugin-list/`: 181 passed. - `packages/app-shell/` in full did not finish inside this container's 50-minute window; the parts this diff touches ran: `src/views/ObjectView*`, `src/views/objectView*`, `src/views/__tests__/recordDrawer*`, `src/views/__tests__/recordPane*`, `src/urlParams*`, `src/__tests__/`: 128 files passed. - After objectstack-ai#36033 merged, the change was replayed on main `dc10b3b4` as one commit (conflicts only in `objectViewListRenderer.tsx`'s memo dependencies and the two appended describes of `ObjectGrid.cellSelection-35684.test.tsx`, both sides kept), then a full `pnpm build` and `vitest run` of `components/src/__tests__/data-table*`, `plugin-grid/src/__tests__/ObjectGrid.cellSelection*`, `app-shell/src/views/objectViewRecordNavigation*`, `app-shell/src/views/__tests__/recordDrawer*` and `fields/src/`: 348 files passed (2 skipped). - `type-check` in `components`, `fields`, `plugin-grid`, `plugin-list`, `app-shell`: exit 0 (on both bases). - `eslint` on the changed files: 0 errors. - `overlap-check` on the pushed head `b59bf991`: clean against `origin/main` (`dc10b3b4`, objectstack-ai#36033 merged) and the four open PRs sharing a file (objectstack-ai#36114, objectstack-ai#36105, objectstack-ai#36096, objectstack-ai#36024). - `87d42cbd`: `main` `6c7c6db2` merged in (clean). `check-empty-changeset` and `check-changeset-no-major`: pass. `overlap-check`: clean against `main` and objectstack-ai#36123; objectstack-ai#36133 (draft) conflicts only on the one-line `useMemo` dependency list in `objectViewListRenderer.tsx`, which each PR extends by one name; the second to land merges `main`. ## Verification (browser) CRM and Todo examples (`--fresh`), Console via Vite on this tree, Chromium, 1280 light and dark, 375 light and dark. Screenshots and the journey log: project folder `build-seat1/36015/PR2/` (`after-*`, `after-journey.log`). The before state is objectstack-ai#36033's after state (`build-seat1/36015/after-*`): a chip only selected its cell. | Step | After | |:--|:--| | Contacts, hover the Account cell | pencil at the cell's right edge | | Click the Acme Corp chip | drawer opens Acme Corp (`?recordId=…&recordObject=crm_account`), the list stays, the cell is selected | | Close the drawer | params gone, the Account cell still selected | | Click beside the chip | cell selected, nothing opens | | Click the pencil | the lookup editor opens in the cell | | Ctrl+Enter on the selected Account cell | drawer opens Acme Corp | | Click the email text | cell selected, no navigation, open button in the cell | | Click the name | the contact's record page | | Todo tasks, hover the Assigned To cell (lookup to `sys_user`) | no pencil | | Click the Dev Admin chip | cell selected, page stays, open button on hover | | 375 | phone cards (no grid), unchanged | ## Acceptance notes 1. Click a lookup chip: the drawer opens that record, the list stays, closing it keeps scroll and selection: yes (browser). 2. Click beside the chip: the cell is selected, nothing opens: yes. 3. Hover a lookup cell: a pencil; it opens the cell's editor (the lookup picker); none on a read-only field: yes (browser for the pencil and the editor; read-only unit-pinned). 4. Person chips (owner): single click only selects: yes (browser, Todo's Assigned To, a lookup to `sys_user`). 5. Ctrl/Cmd-click a chip opens the record in a new tab: yes (the click passes through to the anchor; unit-pinned). 6. Email, phone, URL, Ctrl/Cmd+Enter on them and the name column: unchanged from objectstack-ai#36033: yes. 7. This body lists the field types reached and the tests: above (none rewritten). --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgWkLah49N6UoD4CS3S)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgWkLah49N6UoD4CS3S <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgWkLah49N6UoD4CS3S --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…es and publishes it; layout and row colour join the list draft (objectstack-ai#35955 PR 2) (objectstack-ai#36123) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuG6LywHEovAnGuZpiKQEc2W)_ repo:objectstack#1 · os-sales · session_01L6bhgWyeXh2Keywo6oK1Nn Part of objectstack-ai#35955 (PR 2 of three: PR 1 objectstack-ai#36026 made a list change a draft; PR 3 retires the server-side list preference and runs in parallel. The card stays open.) Clause-②: yes (widening) — five new `console.objectView.draft.*` keys in every `@object-ui/i18n` locale pack (`saveToViewConfirmTitle`, `saveToViewConfirm`, `saveToViewConfirmButton`, `savedForEveryone`, `pendingDraft`); `@object-ui/plugin-list` `ListView` gains the optional host prop `onRowColorChange` and two optional `viewDefaults` members, `viewType` and `rowColor`; nothing removed or renamed Metadata-protocol: none ## 维护者速读 - 共享视图上,能改这个视图的人(管理员,且视图所在的包接受保存)在「保存 ▾」里也看到「保存到这个视图」:先问一次「所有用这个视图的人都会看到」,确认后存并立刻发布,提示「已保存,所有人可见」。选项菜单里的「保存」同一条路。 - 这个视图已有没发布的修改(谁存的都算)时什么都不写,提示先去视图设置里发布或放弃;不替任何人发布。保存人的行高、列宽不会写进共享视图。 - 显示面板的「布局」「行颜色」现在也是草稿:点开记录再回来还在,两条「保存」都会存进去,「放弃」还原成视图自己的。 ## What changes **Save to this view on a shared view** (`ObjectView.tsx`, `objectViewViewCrud.tsx`, `runtime-metadata-persistence.ts`) - Offered when `canSaveToSharedView`: not an environment list, not a personal view, and the same test the footer calculation's pick uses (`isAdmin && !activeViewPackageRefusesSaves && isSavedViewId(savedViews, id)`), so a read-only package's view and the fallback tab never get it. A personal view keeps its own save. The phone / narrow `Save ▾` is the same component; the options menu's Save calls the same handler. - It asks once through `confirmHandler` (`saveToViewConfirmTitle` / `saveToViewConfirm` naming the view / `saveToViewConfirmButton`, cancel `console.objectView.cancel`). - The body is the view's own config with the draft laid over it (`layListStateOverView`, split out of `buildPersonalViewConfig`), then `buildViewConfigSaveBody`, the body the view settings panel saves. The reader's row height is left out (`rowHeight: undefined` on the laid preference, F5); column widths never travel. - New `saveAndPublishRuntimeMetadata(type, name, body, ctx)`: a draft write with the first-write pin (`{ mode: 'draft', ifNoneMatch: '*' }`), then `publish`. A `409 METADATA_CONFLICT` on the write means a draft is already pending; it resolves `'pending-draft'` and nothing is written or published. A publish the server refuses discards the draft this save wrote (`reset(type, name, { state: 'draft' })`) and rethrows. Caches are invalidated and the draft ledger announced on both paths. - `handleViewSaveAndPublish` shows the saved body at once (`setViewDraft`) and lets `handleDraftBarChange` drop it when the saved-views re-read lands (objectstack-ai#36031), so the list does not flash the old sort. On `'published'` the list draft is dropped (`handleResetView`) and "Saved, visible to everyone" is toasted; on `'pending-draft'` the draft stays and `pendingDraft` is toasted. - Using the server's pin instead of a client read of the draft closes the read-then-write window the premise read named (P4). The window left is between this save's draft write and its publish: the view settings panel writes its draft without the pin, so a settings save landing in those milliseconds would overwrite this draft and be published with it. A known edge, not closed here: card objectstack-ai#36137. **Layout and row colour join the draft** (`objectViewListRenderer.tsx`, `ListView.tsx`, `personalViews.ts`) - The renderer wires the published `onViewChange` to `listDraft.patch({ viewType })` and the new `onRowColorChange` to `listDraft.patch({ rowColor })`; picking the view's own value drops the entry. The draft's values go to `ListView` as `schema.viewType` / `schema.rowColor`, and the view's own through `viewDefaults.viewType` / `viewDefaults.rowColor`, so the `layout` / `rowColor` parts and the Display count still judge against the view after a remount. - `ListView`: `onRowColorChange` fires on a pick in the row colour panel (the rule in force) and on Clear (`null`), never at mount or for a reset. Each new `viewDefaults` member is read only when its key is present; without them nothing changes. - Both saves read them: `PersonalViewListState.display` carries `viewType` and `rowColor`; a layout switch retypes the view and fills the kanban / gallery mirror from the saved columns when the block lacks one (`IN_PLACE_COLUMN_MIRRORS`). Save as my view builds from `listDraft.draft.viewType ?? activeView.type` and passes the row colour. **i18n**: the five keys in all ten hand-written packs; zh-Hant regenerated (`pnpm gen:zh-hant`). **Docs**: `ui/packages/plugin-list/README.md` (new host-props section), `content/docs/ui/views.mdx` (§ "A user's list state never writes the view"), `docs/qa/platform-checklist/areas/records-forms.json` `records-forms.adhoc-filter-sort-builder` revision 14 (steps[8], acceptance[5], negative[4]; not loosened). ## Tests - New `ObjectView.sharedViewSave-35955.test.tsx` (8): confirm, then `save(... { mode: 'draft', ifNoneMatch: '*' })` then `publish`, body carries the draft sort and the view's own row height `short` while the reader's stored one is `tall`; cancel writes nothing; pending draft (409 `METADATA_CONFLICT`) writes nothing more and toasts; refused publish resets the draft; a read-only package's view is not offered; layout and row colour laid into the schema and `viewDefaults` and kept across a remount; picking the view's own value drops it; the save retypes to kanban with its columns mirror and the row colour. - `runtime-metadata-persistence.test.ts` (+4): published; pending-draft; a `409` with another code (`DESTRUCTIVE_CHANGE`) rethrows; refused publish resets and rethrows. - `ListView.personalization-28950.test.tsx` (+4): the `rowColor` part judged against `viewDefaults`, a control without them, `onRowColorChange` on pick and on Clear (`null`), and no call at mount. - `ObjectView.personalViews-29635.test.tsx` (+1): the draft row colour reaches the personal save and Save as my view. - L1-b S1 (`ObjectView.sharedViewSave-35955.test.tsx` +3, `ObjectView.personalViews-29635.test.tsx` +2): the confirm and Save as my view's default name read the view's tab label (`listLabel`, `viewTabLabel`), with a view that has no label and one whose label is a locale map (plus a plain-label control on the confirm). Ablated: the raw label turns the locale-map confirm case and both copy-name cases red. In the shared-view harness a stored view with no label already arrives named by its name, so that case is a pin, not a discriminator. - `ObjectView.listUrlState-11860.test.tsx` (+2, G2): a reload whose address was rewritten before the seed applies its `uf_*` state; a reload on a record page then Back applies the list entry's `uf_*` state. Pins of current behaviour, no behaviour change. ## Acceptance notes - P3 (seat 14:28Z): any pending draft refuses, the saver's own earlier draft too; the server does not record a draft's author. - F5: a shared save never carries the saver's row height or column widths; a personal save still carries the row height, as on main. - The view settings panel and the footer calculation still save a shared view as a draft that the view settings publish (ruling 7045525672 unchanged). - Not touched: where column widths, row height and the view order are stored (PR 3). - Landing order with objectstack-ai#36133 (PR 3): both bump `records-forms.adhoc-filter-sort-builder` to revision 14 and edit the same section of `content/docs/ui/views.mdx`. Whichever lands second renumbers to 15 and merges the two history entries. - L1-b N1 taken: the pending-draft test is `isDraftVersionConflict` from `DraftConflictDialog.tsx`, the predicate the other draft-door callers use. ## Verification CI and local runs at head `da8b797b`; the S1 commit's tests and type check at `0ada6797`. - CI: every check green (54 passed, 10 skipped by path), mergeable clean. The first head (`433d7c02`) went red on four pins, each fixed in its own commit: the `rowColor` firing control in `object-view-unmirrored-keys-7779.test.ts` now reads `const viewOwnRowColor = viewDef.rowColor ?? listSchema.rowColor;` (the relay reads the view's own rule once, so the draft's can lie over it); the de quote-pair count in `de-quote-pairing-3876.test.ts` goes 120 to 121 for `saveToViewConfirm` („{{name}}“); three `viewDefaults` equalities in `ObjectView.userListState-12418.test.tsx` gain `viewType`; a checker narrowing in the new test is read through a cast. No pin was loosened: each asserts the same thing at the new spelling. - Local (`pnpm --dir ui exec vitest run` over `app-shell/src/views/ObjectView*`, `runtime-metadata*`, `personalViews*`, `listDraft*`, `plugin-list/src/__tests__/ListView*`): 237 files, 2290 tests; the only 3 failures were the `viewDefaults` equalities above, 40/40 after the fix. `packages/i18n`: 105 files, 1962 passed. `packages/types` 7779: 236/236. - `pnpm --dir ui/packages/app-shell run type-check` exit 0; `pnpm --dir ui/packages/plugin-list run type-check` exit 0 (both include `tsconfig.test.json`). - eslint on every changed `ui/` source and test: 0 errors. `check:i18n-keys`, `check:i18n-drift`, `check:control-bytes`, `check:vi-mock-specifiers`, `check:vi-mock-override-shape`, `check:metadata-write-doors`, `check:changeset-claims`, `check:pending-changeset-literals`, `check:readme-exports`, `check:new-line-citations` exit 0; `node scripts/check-platform-checklist.mjs` OK. - `node scripts/pm/overlap-check.mjs --base=origin/main`: clean against main `dc10b3b4` and open objectstack-ai#36114, objectstack-ai#36105, objectstack-ai#36096, objectstack-ai#36024. - Clause-② measured on the built `ui/packages/plugin-list/dist/ListView.d.ts`: `onRowColorChange` and the two `viewDefaults` members are added, optional; no member removed or narrowed. The seat runs the declaration L2. - Browser, at `0ada6797` (showcase `objectstack dev`, the `ui/` HMR console pointed at it; checklist `records-forms.adhoc-filter-sort-builder` steps[8]), on a shared view the admin created and published (`showcase_task.team_tasks`, package `com.example.showcase.custom`): - admin, sort by Priority: Save offers "Save to this view"; the confirm reads "Everyone who uses “Team tasks” will see these changes."; confirming sends `PUT /api/v1/meta/view/showcase_task.team_tasks?mode=draft` with `If-None-Match: *` (200) then `POST …/publish` (200) and toasts "Saved, visible to everyone"; Discard and Save go. - a second reader who is not an administrator (`phone.demo@example.com`) opens the view sorted by Priority, and after a sort of their own is offered only "Save as my view". Control: on the read-only package's `showcase_task.in_progress` the admin is offered only "Save as my view" too. - with a draft of the view already pending, the admin's confirmed save gets `409` on the pinned `PUT`, sends no publish, toasts the pending-draft hint and keeps Discard and Save; the pending draft is still there afterwards and the live view unchanged. - Not driven in the browser: the row height (F5) and the layout and row colour round trip, pinned in the unit tests above. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgWyeXh2Keywo6oK1Nn --- _Generated by [Claude Code](https://claude.ai/code)_ <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgWyeXh2Keywo6oK1Nn --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Tesla · project thread
Fixes #35619
Clause-②: yes
Metadata-protocol: semantic
Skills-docs: none — skills/** never teaches the object-level
userActionsblock (its onlyuserActionshits 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: falsenow 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'smanagedBydefault, ANDed with the caller's effectiveexportoperation. 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 (onlyoperations.export), soexportCsv: falsechanged nothing.@object-ui/core):isObjectExportOfferedinmanagedBy.ts, besideisObjectInlineEditable, returns the resolvedexportCsvbit fromresolveEffectiveCrudAffordances. No surface callsresolveEffectiveCrudAffordancesitself, because the affordance-to-grant census (affordanceGrantMap-12082.test.tsx) refuses that call outside its home modules. Why a helper and not anAFFORDANCE_GRANTSrow is under Acceptance notes.@object-ui/plugin-grid): one name,objectExportOffered, gates three things: the toolbar Export menu (exportEnabled),handleExport, and the table's own CSV button thatoperations.export: trueturns on (exportable).@object-ui/plugin-list):exportPermittedfolds in the verdict. Both toolbar forms already read that name: the wide toolbar's Export button and the Display panel's export footer.handleExportreads it too.@object-ui/plugin-report):ReportExportControlreads the base object's definition (the query answer'sobject) through the report's data source withuseSettledSchema, then applies the same verdict.DatasetReportRendererpasses itsdataSourcedown.@objectstack/spec):exportCsvdescribe 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;CrudAffordances.exportCsv's docblock no longer says "CSV / clipboard export"; theuserActionsdocblock's example no longer has an append-only table "expose CSV Export", which it does by default; and theread/viewguidance no longer saysuserActionstoggles write affordances only. The form row's label stays "Export CSV", since changing it would ripple into ten locale bundles;object.userActions.exportCsvmovesdead→live, citing the readers byfile#symbol;userActionsrow 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.@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/35619-user-actions-export-csv-enforced.md. It grades spec,@object-ui/coreand the three ui pluginsminorand platform-objectspatch, and carries theClause-②: yesandMetadata-protocol:lines.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: truein 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'sallowExport.Read first (by risk)
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 nocan(object, verb).ui/packages/plugin-report/src/ReportExport.tsx: the new definition read through the data source. A source that cannot servegetObjectSchemakeeps the control, and so does a definition still in flight (fail-open).ui/packages/plugin-grid/src/ObjectGrid.tsx: theexportable: operations?.export && objectExportOfferedhunk. The table's own CSV button now also follows the effectiveexportoperation, which it did not read before.Two-minute check
pnpm --dir ui exec vitest run packages/plugin-grid/src/__tests__/exportCsvGate-35619.test.tsx. ExpectTests 4 passed (4):exportCsv: falsefinds neither the toolbar Export menu nor the table's CSV button, and the three controls find both.Tests
New render-level pins. Each
falsecase 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: falsehides both the toolbar Export menu and the table CSV button;truekeeps both;edit/deleteleaves export open.ui/packages/plugin-list/src/__tests__/ListView.harness.test.tsx, new top-leveldescribe('ListView.exportCsvGate-35619')(5):falsehides Export; CONTROLS for unset andtrue;falsehides every format entry; CONTROL.ui/packages/plugin-report/src/__tests__/ReportExport.exportCsvGate-35619.test.tsx(3):falsehides the report's Export control; CONTROLS for unset andtrue.ui/packages/core/src/utils/managedBy.test.ts, new top-leveldescribe('isObjectExportOffered — the one export verdict (objectstack#35619)')(5). It covers:falseandtrue, in every bucket;resolveEffectiveCrudAffordances(...).exportCsvover 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
isObjectExportOffereddocblock, 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.Round 2 readings: regenerated artifacts, check:i18n, check:liveness, spec suite, census and pins
pnpm --filter @objectstack/spec check:generated --fixfound 1 stale artifact (gen:docs, the reference row in content/docs/references/data/object.mdx) and regenerated it. VERDICT command-exit 0.pnpm check:i18ngave exit 1 (platform-objects DRIFTED (1)) before regeneration. Afternode scripts/check-i18n-bundles.mjs --write, onlyen.metadata-forms.generated.tsmoved, andpnpm check:i18ngave exit 0 (platform-objects in sync (32 bundle(s))).pnpm --filter @objectstack/spec run check:livenessgave exit 0.pnpm --filter @objectstack/spec testgaveTest Files 868 passed (868),Tests 27852 passed | 1 todo (27853), VERDICT command-exit 0.managedBy.test.tsand the three 35619 pin files gaveTest Files 5 passed (5),Tests 217 passed (217), VERDICT command-exit 0.pnpm check:nul-bytesgave exit 0, and a control-byte scan of the changed files found nothing.Readings, fix round 1, at 88f1d55. CI
Test UI (15/16)was red at 4443783 (job 136860952696) on the censusno console source outside the map reads a CRUD grant on its own, naming ObjectGrid.tsx, ListView.tsx and ReportExport.tsx. 88f1d55 routes all three throughisObjectExportOffered.Census, core and the three 35619 pin files at 88f1d55: 5 files, 217 tests passed
pnpm --dir ui exec vitest run --maxWorkers=2overaffordanceGrantMap-12082.test.tsx,managedBy.test.tsand the three pin files, under the verify lock:pnpm --dir ui exec vitest run --maxWorkers=2 packages/core/ packages/plugin-form/src/affordanceGrantMap-12082.test.tsxgaveTest 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-checkran all four packages (eachtsc --noEmit && tsc -p tsconfig.test.json), VERDICT command-exit 0.check:livenessexited 0 with the evidence anchormanagedBy.ts#isObjectExportOffered.Ablation of the helper: every surface pin and the helper's pins go red, every CONTROL stays green
node scripts/ablation-replace.mjsturned the helper'sreturn resolveEffectiveCrudAffordances(obj, effectiveApiOperations).exportCsv;intoreturn true || …. The anchor moved 1 to 0. A trap restores withgit checkout HEAD --on an absolute path.@object-ui/coreresolves tosrcthrough the ui vitest alias, so there is nodist/leg.git diff HEADempty.So all three surfaces read the helper.
Clause-② measured on the built declarations
ui/packages/core/dist/index.d.tsline 18 isexport * from './utils/managedBy.js';.dist/utils/managedBy.d.tsdeclaresexport declare function isObjectExportOffered(obj: SchemaLike | null | undefined, effectiveApiOperations?: readonly string[] | null): boolean;. Its neighbourisObjectInlineEditableis declared the same way (positive control), andorigin/main'smanagedBy.tshas 0 hits for the name.@object-ui/core's published entry, andClause-②isyes.dataSource?prop onReportExportControlPropsis not reachable from plugin-report's entry. Builtdist/index.d.tsre-exports nothing from./ReportExport.js, and no entry declaration imports it.Readings from round 0, before the fix. Their code head is 3e175d0, and 4443783 added only the regenerated English bundle and the changeset.
New pins at 3e175d0: 3 files, 127 tests passed
pnpm --dir ui exec vitest run --maxWorkers=2over the three pin files (the ListView harness file carries its other 115 cases too), under the verify lock:Package suites and type-check: plugin-grid, plugin-list, plugin-report, spec, platform-objects
pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-grid/ packages/plugin-list/ packages/plugin-report/gaveTest Files 515 passed (515),Tests 4928 passed | 7 skipped (4935), VERDICT command-exit 0.pnpm --filter @object-ui/plugin-grid --filter @object-ui/plugin-list --filter @object-ui/plugin-report run type-check(each runstsc --noEmitandtsc -p tsconfig.test.json) gave VERDICT command-exit 0.pnpm --filter @objectstack/spec typecheck && pnpm --filter @objectstack/spec testgaveTest Files 868 passed (868),Tests 27852 passed | 1 todo (27853), VERDICT command-exit 0.pnpm --filter @objectstack/platform-objects testgaveTest Files 125 passed (125),Tests 2117 passed (2117), VERDICT command-exit 0.Ablation: each pre-fix gate restored, each false case goes red, every CONTROL stays green
node scripts/ablation-replace.mjsmutates the gate line, proves the anchor moved (1 to 0), runs the pin file under the lock, and restores. A trap restores withgit checkout HEAD --on absolute paths. The subjects resolve tosrcthrough relative imports and the ui vitest aliases, so there is nodist/leg.objectExportOffered = true || …, which opens the verdict that all three entries read): "exportCsv false" fails,Tests 1 failed | 3 passed (4).exportPermittedback to itsorigin/maineffective-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).origin/mainline,if (ops && !ops.includes('export')) return null;): "exportCsv false" fails; both CONTROLS pass (Tests 1 failed | 2 passed (3)).git diff HEADempty after each leg.Acceptance notes
RelatedList has no export entry. The ruling names RelatedList as an export surface. At
origin/main,ui/packages/plugin-detail/src/RelatedList.tsxdraws no Export button, menu or handler, and setsexportable: falseon 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
exportCsvtotrue, so the entry can show for a moment on an object that authorsfalse. The pins wait for the definition before they look.Table CSV button now follows the effective
exportoperation. Before, the data-table's own CSV button (operations.export: true) read nothing but that flag. It now readsobjectExportOffered, which includes the server's effective operation set. This matches the toolbar menu it sits beside.Legacy
ReportVieweruntouched. It gates on the report's ownallowExportand is not bound to an object.Interim changeset text. The unreleased
.changeset/35401-user-actions-transfer.mdparagraph saysexportCsvis 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.exportCsvhelp 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_GRANTSrow. Both were measured, and the census-prescribed row does not fit export:can(object, grant), typedcreate | update | delete;@object-ui/permissionsanswerscan(object, 'export')withallowRead(MePermissionsProvider's verb map), notallowExport, so a row's grant half would ask the wrong bit;allowExportalready reaches the client through the effectiveexportoperation. The server derives it fromlistand that grant (annotateEffectiveApiOperationsin@objectstack/core), and its export door answers403 EXPORT_NOT_PERMITTEDwithout it (enforceExportPermissionin@objectstack/rest);append-onlybucket, while ADR-0103 keepsexportCsvon in every bucket.So the verdict stays exactly as it was, the authored bit ∧ the effective
exportoperation, and it lives in the HOME module as a named helper.OUT_OF_FAMILYis unchanged.Not covered: a view's picture export (S1). The Gantt view (
ui/packages/plugin-gantt/src/GanttView.tsx, drawn by ListView forviewType: 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.
ReportExportControlstarts the base object's definition read once the table snapshot exists and reads onlydef. So on a report over anexportCsv: falseobject the control is drawn at least once per open, and for the length of the request when the definition is not cached. Holding it untiluseSettledSchema'sreadywould 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
checkedfrom the stored value, so an object that never authoredexportCsvshows the switch off while export is offered. Writingfalsetakes 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.tsxas a top-level describe instead, per the AGENTS.md shared-harness ruling (6583487846).Overlap.
overlap-checkat eabd783 reports textual conflicts with two PRs. With feat(spec): relatedLists is the record page's tab list, with built-in tabs by object name and per-entry title and columns #35923 they are only on two generated artifacts,content/docs/references/data/object.mdxandpackages/spec/liveness/state-counts/object.md; both PRs regenerate them, so whichever lands second merges main and regenerates them. With feat(ui): a record page's related tab is the child object's full list #36129 (a draft, the related-tab list) the conflict is inui/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 --commandsderives 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.Reconciliation at eabd783: 122 derived, 98 run, 1 NOT MEASURED, 23 unrun; CI 70 check-runs, 0 failures
check:generated,check:docs,check:liveness,check:i18n,check:i18n-stale-fill, the changeset checks andcheck:nul-bytes.check:dual-build-cjs-loadsis NOT MEASURED locally (exit 3, needs every package built), as in earlier rounds.check:query-options-erasurethroughcheck:wildcard-fallthrough, the tail of the list. Each passed locally at 88f1d55, and this round changes prose only. CI ran them all.Round 1, at 88f1d55:
dispatch-gates --commands --repo objectstack-ai/objectstackderives the same 122 families as at 4443783. All of them were re-run on this head, with exit codes captured before any pipe.Reconciliation at 88f1d55: 122 derived, 121 run, 1 NOT MEASURED, 0 unrun; CI 70 check-runs, 0 failures
check:i18n(platform-objects in sync (32 bundle(s))) and client-react forcheck:skill-examples.check:dual-build-cjs-loadsis NOT MEASURED locally, as in round 0: it needs every package built. CI covers it.overlap-checkgave exit 1, only on feat(spec): relatedLists is the record page's tab list, with built-in tabs by object name and per-entry title and columns #35923's two generated artifacts (see Acceptance notes).origin/main(493ad09) merges cleanly.Test UI (15/16),Test UI,Test Core,Lint & Repo Gates,Type Check UI,Check Changeset,Spec property livenessandLint · PM dispatch-gatesare all success.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.Reconciliation: 122 derived, 121 run, 1 NOT MEASURED, 0 unrun
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:i18nthen went red (exit 1,platform-objects DRIFTED (1)). That red came from this diff: the object form'sexportCsvhelp text is extracted intoen.metadata-forms.generated.ts. 4443783 regenerates it withnode scripts/check-i18n-bundles.mjs --write(onlyenmoved), andpnpm check:i18nnow exits 0 with every bundle in sync.check:i18n-stale-fill(new to the derivation), the two changeset checks,check:nul-bytesandcheck:published-files.check:dual-build-cjs-loadsneeds every package built (36 have nodist/), so it is NOT MEASURED locally: declared narrowing, and CI runs it.check:dev-prereqsis local-only: exit 1, "the workspace is not built", 23 of 108 packages have nodist/. That describes this container, not the diff.check:livenessexited 0 andcheck:generated --fixregenerated the two artifacts this PR commits.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