Skip to content

feat(ui): a record page's related tab is the child object's full list - #36129

Merged
objectstack-fleet[bot] merged 9 commits into
mainfrom
claude/project-thread-kmk099
Nov 21, 2026
Merged

objectstack-fleet[bot] merged 9 commits into
mainfrom
claude/project-thread-kmk099

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

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:

  • 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 feat(console): a change on a list is a draft, with Discard and Save (#35955 PR 1) #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 #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): RelatedList no longer reads or writes them in sys_user_preference; the RelatedListPreference type 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/ (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.

#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 #36096: the @object-ui/core import line of ui/packages/plugin-list/src/ListView.tsx keeps both isObjectExportOffered and withHeaderSortPick) and with #36131, #36128, #36123, #36114. With #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 #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

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (not touched)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgTKEPqtmiK9SGpHsmW

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
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 21, 2026
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
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
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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 Clause-②: yes (widening) in the claim on #35892: plugin-list exports ListConditionsBlock, plugin-detail adds RelatedListConditionsSlotContext). The record follows as its own comment.

Contract review brief — PR #36129 @ 90fefc3fd53a9f0c309721c2b2c8f4d90d846a4b (card #35892)

You review at TIER_DEFAULT. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face declaration — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35892: its body and EVERY comment (rulings and earlier records included)
· also epic #35590 (body), rulings 7064083597 (sort and filter last this visit only) and 7064246280 (related-tab column widths browser only) on #35892, bodies only, for context; ruling A on changeset levels (level follows the Metadata-protocol line; a Clause-② widening alone ships patch)
· PR #36129: its body, its file list, and the net diff against main at 90fefc3fd53a9f0c309721c2b2c8f4d90d846a4b
· the check-runs on 90fefc3fd53a9f0c309721c2b2c8f4d90d846a4b: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/3d3cbaf6-4903-5fed-92d4-c2b94a45e868/scratchpad/pr-36129/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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 1586ddec, 5 commits, 34 files, +1784/−287 · l1-face CLEAN (13 rows ok, all checks green, 47 success / 15 expected skip).

维护者速读

记录页的子表页签现在就是子对象的一张完整列表:左上是子表名,右上「+ 添加」;下一行是和列表页同一套的「排序」「筛选」;表格可以按列表页的规则在格子里编辑,可以多选批量删除,底部有计算行,合计按全部符合条件的行算;往下滚动自动加载,没有翻页,也不再有「在列表中打开」。改过的排序、筛选、合计在这条记录上一直有效:换页签、在整页和抽屉之间切换都还在,刷新或换一条记录就回到默认。「放弃」一点就回默认,没有「保存」。这些都符合您 14:25 和 14:38 的两条裁决。以前在子表里记住的排序和列宽不再生效,说明里写了一次;服务器上存的旧数据没有删。没有需要改的问题,下面两条小建议可以以后再做。

Must-fix / Should-fix

None.

Nits

  • N1 (relatedTabConditions.ts): the held conditions are module memory keyed by record and relationship, not by reader. The list page's draft store keys by reader (listDraftScope(user?.id, …)), and sign-out (purgeSignedOutUserClientState) sweeps storage, not module state. In one tab, a sign-out and a sign-in as another account that then opens the same record would see the first reader's sort and filter. That's a low-risk window, and keying by the signed-in user id would close it.
  • N2 (claimRecord): opening a related tab of another record drops every held record but the new one. That record could be a related row the record page opened in its own drawer, with the reader switching that drawer to one of its tabs. In that case the page's tab behind the drawer resets while it is still mounted, and stays reset after the drawer closes. It fits a literal reading of ruling 7064083597 ("returns to the default … on another record"). If the seat reads "another record" as navigating away, holding the parent's set while a drawer level is open is the fix. Either way it is not a blocker.

Checked

  • The card (相关子表的页签改成完整的列表:左上子表名、排序和筛选、底部计算行;去掉「在列表中打开」;改过后出现「放弃」(图 41) #35892) item by item.
    • Item 1: head row with the tile and title on the left, toolbar actions and 「+ 添加」 on the right. Condition row. Grid. Footer.
    • Item 2: the ↗ (onViewAll) button is gone.
    • Item 3, the same parts and not a copy: ListConditionsBlock is ConditionChipRow, SortPanel, SortBuilder and FilterBuilder. The field lists come from the list page's rules, now extracted verbatim as conditionCandidatesOf, filterConditionFieldsOf and sortConditionFieldsOf, and ListView calls the same functions. The filter node is convertFilterGroupToAST(appliedFilterGroup(…)). There is no view switch, view settings or search.
    • Item 4: 「放弃」 only while relatedTabConditionsChanged, and no Save.
    • Item 5: the tab title keeps the every-child count. settledTotal reports nothing while a tab filter is set. The footer leads with the matching count (total).
    • Item 6: editable comes from listInlineEdit against the child object, and cellSelection: true. The browser readings for 列表格内编辑重做:编辑时行高不变,不再把表单控件塞进格子;每种字段类型固定用「原地输入、直接弹出、直接操作」三种做法之一 #36023 leftover 2 are in the body.
    • Item 7: the default sort and the columns are unchanged.
    • The drawer has the same tab, because RecordDetailView provides the slot on both faces.
  • Rulings.
    • 7064083597: RELATED_TAB_REMEMBERS_SORT = false, so the stored sort is neither read nor written. A header pick goes through withHeaderSortPick into the tab's conditions.
    • 7064246280: RELATED_TAB_COLUMNS_IN_PREFERENCES = false, so columnState is neither read from nor written to ui.record.<object>. The grid keeps its browser copy under related-<relationship>, and the RelatedListPreference type stays.
    • The upgrade note is in the changeset and the body, said once.
  • Query.
    • The tab filter is ANDed with the parent scope and the list filter (mergeFilterNodes(parentScope, listFilterNode, tabFilterNode)).
    • The legacy no-adapter path treats a tab filter like an authored one, so it refuses rather than widening.
    • Multi-level sort goes to $orderby when windowed, and is compared level by level in memory when not, with masked columns skipped as before.
    • The growing window is $top = (page+1)·50, $skip 0, so a re-read after an edit answers every row on screen. hasMore compares against $top. The page resets to 0 on a sort or filter change.
    • findParams gives the footer the tab's own $filter/$orderby.
  • Bulk delete. One confirm with a count family (deleteRowsConfirmation_*: ar has six forms, ru four, en and zh two). Then onRowDelete row by row and one re-read. A failure stops the loop and is logged, the same as the single-row delete beside it.
  • Package edges.
    • plugin-detail doesn't import plugin-list. The slot RelatedListConditionsSlotContext defaults to null, and the "no condition row" host is tested.
    • It is a host element, not a registered node type, so the registered-types ratchet is untouched.
    • withHeaderSortPick (core) is the list page's old inline rule, moved without change.
    • ConditionDiscardButton now draws the list page's Discard in ListDraftActions, keeping its test ids and its container-query classes.
    • app-shell already imports ListView from plugin-list statically. The new static ConditionDiscardButton import therefore adds no chunk, and the lazy() in relatedListConditions.tsx doesn't split plugin-list out either. The body's eager reading, 339.5 / 346.7 KB, agrees.
  • i18n. relatedNoMatches, the delete title and the count family, and listConditions.chips.discard/discardHint in every locale. zh is 「放弃」, as the card names it.
  • Contract. Clause-② (widening) lists the new exports, the slot and its props, and the keys. Nothing is removed, RelatedListPreference is kept, and the seat's declaration L2 runs in parallel. Fixes #35892 is right: every acceptance line has code or a browser reading in the body.
  • Tests.
    • New: RelatedList.tab-35892 (10), relatedTabConditions-35892 (5), ListConditionsBlock-35892 (5).
    • Rewritten to the ruled behaviour: enlargedListGrid-28865 (window, scroll load, footer, no server widths) and enlargedToolbar-27524 (no ↗, header sort not written, remembered sort not read). These are the behaviours the rulings retire, not loosened pins.
  • Overlap. The one known textual conflict is with feat(ui,spec): userActions.exportCsv false hides the console Export entry #36096 on the @object-ui/core import line of ListView.tsx. Whichever lands second keeps both names.

Owed

  • None from L1. The seat's declaration L2 is running.

…-kmk099-wt

# Conflicts:
#	ui/packages/plugin-list/src/ListView.tsx
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 90fefc3fd53a9f0c309721c2b2c8f4d90d846a4b
Local-runs: none

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 main from merge-base 1586ddec1c), and the check-runs on this head: every run is success or skipped, none failed or is pending (Check Changeset, Type Check UI and workspace, Lint UI and ESLint, Test UI 1-16 of 16, Build and E2E UI, Live E2E UI, Dogfood Regression Gate, Governed Surface Queue Guard, PR-body guards).

① Derived judgments

Public surface (package indexes only; module-level exports outside an index are not published):

  • @object-ui/core: new export withHeaderSortPick. Right. It is the list page's header-pick rule moved out of ListView unchanged (the ternary is the same, now called from both hosts). It widens the surface and removes nothing.
  • @object-ui/plugin-list: new exports ListConditionsBlock, ListConditionsHostProps, ConditionDiscardButton, ConditionDiscardButtonProps. Right. It is a host element and not registered in ComponentRegistry, so the registered-types ratchet and the SDUI manifest are untouched. The claim on the card expected a registry key and a manifest regen. The slot design replaces that, and the PR body says why. ConditionChipRowProps.collapsibleLabels is not on the public surface, because ConditionChipRow is not exported from the package index. The new ListView.tsx module exports (appliedFilterGroup, readDraftOnlyFieldNames, canReadField, isDeclaredHidden, conditionOptionsOf, conditionCandidatesOf, filterConditionFieldsOf, sortConditionFieldsOf, ConditionCandidateField) are internal too: the index has no star export. The refactor moves the logic as it was. The filter tiering, the sort-field and relational rules and the option mapping are the same code paths, now shared with the block, which is what card item 3 asks for ("same components and same read/write logic, not written twice").
  • @object-ui/plugin-detail: new exports RelatedListConditionsSlotContext and RelatedListConditionsProps. Right. This is the right shape for a package below plugin-list, and it follows the existing RecordBodyTableEditorSlotContext pattern. RelatedListProps is unchanged. RelatedListPreference and RecordPagePreference.relatedLists are unchanged, as ruling 7064246280 requires (no narrowing). tabSummaryColumns and RELATED_TAB_WINDOW are module exports and not published.
  • @object-ui/app-shell: ListDraftActions now draws ConditionDiscardButton. The classes, test ids, label and title are the same, so the list page looks and behaves as before (在列表上的改动都改成临时的(排序、筛选、分组、列的显示和顺序):立即生效但不保存,出现「放弃」和「保存」;列宽、行高、标签页顺序只记在浏览器里;退掉服务端的个人列表偏好 #35955 and feat(console): a change on a list is a draft, with Discard and Save (#35955 PR 1) #36026 kept). RecordDetailView fills the slot through the new internal relatedListConditions.tsx, which lazy-loads plugin-list. Right. plugin-list is already a peer dependency of app-shell. The static import in ListDraftActions sits in the lazy ObjectView route chunk, which already loads plugin-list.
  • @object-ui/i18n: new keys listConditions.chips.discard and discardHint, detail.relatedNoMatches, detail.deleteRowsTitle, and detail.deleteRowsConfirmation with its CLDR plural forms. Right. They are present in all 11 locale packs and in both package fallback tables (DETAIL_DEFAULT_TRANSLATIONS, LIST_CONDITION_DEFAULT_TRANSLATIONS). Each locale carries its own plural categories: ar has zero/one/two/few/many/other, ru has one/few/many/other, es, fr and pt-BR have one/many/other, and the rest have one/other. zh-Hans uses 放弃 and zh-Hant uses 放棄, the card's word.

Accept-set (behaviour the published packages now accept or produce):

  • The related tab no longer reads or writes relatedLists[*].sort or relatedLists[*].columnState in the record-page preference. Right under rulings 7064083597 and 7064246280. Nothing stored is deleted, showEmptyFields in the same row is untouched, and the changeset and the PR body both carry the upgrade note.
  • The enlarged face no longer draws the open-in-list arrow (onViewAll). The prop is still accepted, so this is not a type narrowing. Right. Card item 2 asks for it and the card supersedes 相关子表的页签:不放筛选排序,右上角只留「添加」和「在列表中打开」;批量添加要么全成要么全不成 #35601's three items.
  • The tab's query: the reader's filter is ANDed onto the parent scope and the list's own filter (mergeFilterNodes(parentScope, listFilterNode, tabFilterNode)). The sort is sent as a multi-level $orderby. The footer reads the whole set through findParams, which carries the same $filter. Right. All three are pushed to the server, and the whole-set footer is the grid's existing server aggregate path.
  • Tab title count against footer count: under a reader filter, settledTotal reports nothing, so the title keeps the unfiltered child count and the footer leads with the filtered rowCount. Right (card item 5).
  • A status-grouped tab passes residentSummaryRow={false} and no findParams, so it draws no footer and offers no select-all-matching. Right, as on the list page.

② Semver level

  • The changeset bumps @object-ui/core, i18n, plugin-list, plugin-detail and app-shell at patch. Each package the diff changes is named, and no unchanged package is.
  • Under ruling A on changeset levels, the level follows the Metadata-protocol: line, and a Clause-② widening alone ships patch. Both the PR body and the changeset say Metadata-protocol: none, and every surface change in ① is additive. Patch is right. The Check Changeset run is success.
  • Clause-②: yes is on the PR body, and Clause-②: yes (widening) is in the changeset with its list. Right: nothing is removed or renamed, and the stored-preference change is a ruled behaviour change, not a type narrowing. The list leaves out one published name, ConditionDiscardButtonProps (nit 1).

③ Boundary flags

Dev 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:

  • should-fix. The tab's new bulk delete (handleConfirmBulkDelete) awaits onRowDelete once per selected row. The host's handler is a single dataSource.delete, so N rows cost N sequential DELETE requests. Because the tab passes findParams, the grid also offers select-all-matching, which can collect up to BULK_SELECT_ALL_MATCHING_CAP (5000) rows into that loop. DataSource.bulkDelete exists, and the list page's bulk delete uses it through deleteRecords (one call, a partial-failure toast, the cascade warning). The in-code reason ("the row delete this list was handed") covers the host's gate, but that gate is the same delete grant (relatedRowDelete and listBulkDelete both read crud delete), so it does not explain the slower path. A failure stops the remaining rows with only a console.error and nothing on screen. Fix: route the bulk delete through the host's batch path or dataSource.bulkDelete when present, and say on screen how many rows were deleted and how many failed.

Must-fix: none.

Should-fix:

  1. The bulk delete loop above: N sequential deletes where a batch call exists, and failures that the reader never sees.

Nits:

  1. The Clause-② list (PR body and changeset) leaves out the published type ConditionDiscardButtonProps. The changeset's i18n list ends with "a count family", which names nothing beyond the deleteRowsConfirmation plural forms already listed.
  2. RELATED_TAB_REMEMBERS_SORT and RELATED_TAB_COLUMNS_IN_PREFERENCES are constant false switches. They keep unreachable branches alive: the stored-sort effect, the preference sort write and writeTabColumnState. Delete those branches rather than keep the switches.
  3. RelatedListConditionsProps does not carry sortOffered or filterOffered, so the related tab always offers both. That is the card's rule, but the block's two props cannot be reached through the slot.
  4. The growing window re-reads from row 0 at every step ($top = rows loaded so far, $skip 0), so total transfer grows quadratically on deep scrolls. The reason is stated in code: a re-read keeps every row on screen in order.
  5. The store holds one record at a time. Opening a drawer whose related tab shows another record drops the page record's tab conditions. This matches "another record clears them" as written, but could surprise a reader who only peeked.
  6. discardHint says "Back to the default sort and filter", but Discard also clears the footer calculations.
  7. The ListView refactor drops some explanatory comments: the schema.columns sibling-branch note, the date-direction type note, and the relational-picked note. The plugin-list index.tsx gains a trailing blank line, and RelatedList.tsx gains a double blank line.

Implemented-by: claude/project-thread-kmk099
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob (isolated L2 sub-agent of the seat)

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
…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
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — delta ACCEPT (L1-b)

Head-sha: 5b76d7a5ed9310789ae70b291362bd111e0c73ce · range 90fefc3f..5b76d7a5 (main merge + 3 fixes) · read 2026-11-21T18:12Z · prior record 7066212649 @90fefc3f

维护者速读

  • 关联页签里勾选多行删除,现在一次批量删完(数据源支持批量删除时),删完在页签上直接写明「删了几条、失败几条」,和列表页的说法一样。
  • 页签上临时改的排序、筛选、底部计算只属于当前登录的人:同一个浏览器换一个账号登录,看到的是默认状态(上一轮 N1 已改)。
  • 批量删除按钮先看当前用户对子对象有没有「关联行删除」权限,没有就不出现。
  • 和 main 合并只有一处冲突(ListView.tsx 的 import 行),两边的名字都保留了,没有丢东西。
  • 没有必须改的问题。

Must-fix

None.

Should-fix

None.

Nits (ride or drop, seat's call)

  • N1 handleConfirmBulkDelete: a bulkDelete that throws counts every row as failed (succeeded = 0), though the server may have removed some before the throw. The re-read shows the truth, so only the status line can overstate the failures. Saying "the delete failed" without a count on that arm would not mislead.
  • N2 bulkDeleteOutcome is never cleared: the line stays after the reader changes the filter, sorts, or deletes one row through the row menu. Clearing it on the next condition change or on the single-row delete would keep it about the last bulk delete only.
  • N3 The relatedRowDelete read behind onBulkDelete is mapped in the write census, but no behavioural test shows a closed grant hiding the bar's delete. The host's aff.delete already withholds onRowDelete in that case, so this is belt and braces; a one-case pin would keep the double read honest if a host ever hands a delete without that gate.

Checked

  • Merge 5bad102b: git merge-tree --write-tree of its parents conflicts only in ui/packages/plugin-list/src/ListView.tsx. The resolution is the @object-ui/core import line holding both isObjectExportOffered (main, feat(ui,spec): userActions.exportCsv false hides the console Export entry #36096) and withHeaderSortPick (this PR), and it differs from the auto-merge tree in that one line only.
  • Bulk delete (8ef6d6e2, 4e82b601):
    • Rows without an id are dropped, and with no rows left nothing is sent.
    • With api and dataSource.bulkDelete, the delete goes in ONE call (bulkDelete(api, ids)), and the answer number | { succeeded } is capped at ids.length.
    • Otherwise every row goes through the host's delete and is counted with Promise.allSettled, so one failure no longer stops the rest.
    • One re-read follows. The outcome line is role="status" in the list page's keys objectActions.bulkDeleteSuccess / bulkDeletePartial, which already exist in the locale packs (en, zh-Hans read). The plugin-detail defaults are only the fallback.
    • The host's row delete (RelatedRecordActionsBridge handlers.onDelete) is dataSource.delete(objectName, id), so the batch path skips no side effect the host had.
  • Grant (5b76d7a5): onBulkDelete is handed only when onRowDelete exists AND resolveAffordance('relatedRowDelete', …) allows it. The single-row onDelete is unchanged. The census entry RelatedList > handleConfirmBulkDelete :: delete is mapped to relatedRowDelete.
  • Reader key (prior N1, closed):
    • The held conditions key is now ${currentUserId}|${object}:${parentId} (useFilterScope).
    • The new test pins that a second account on the same record starts from the default.
    • Prior N2 (the drawer for another record) is not addressed; it stays a nit.
  • Changeset: Clause-② now lists ConditionDiscardButtonProps and the full plural family. The prose covers the batch delete, the counts and "for that reader only".
  • Tests (+57 lines): one call on the batch path, never row by row; a partial failure on both paths reads 2 deleted, 1 failed; held per reader.
  • CI: green at this head per the thread (47 success, 15 skipped). I did not run anything locally.

Owed

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 5b76d7a5ed9310789ae70b291362bd111e0c73ce
Local-runs: none

This is a delta review over the PASS record at 90fefc3fd53a9f0c309721c2b2c8f4d90d846a4b. It covers the four commits since that head: 5bad102b (merge of main), 8ef6d6e2, 4e82b601 and 5b76d7a5. Everything outside them stands as judged in the earlier record. Check-runs on this head: 47 success and 15 skipped. None failed or is pending.

① Derived judgments

  • Merge 5bad102b. Right. Its remerge-diff holds one hunk in one file: the @object-ui/core import line of ui/packages/plugin-list/src/ListView.tsx. The resolution keeps both isObjectExportOffered (from feat(ui,spec): userActions.exportCsv false hides the console Export entry #36096) and withHeaderSortPick (from this PR). Nothing else differs from a clean merge.
  • S1, the bulk delete. Resolved.
    • handleConfirmBulkDelete now sends the selection's ids in one dataSource.bulkDelete(api, ids) call when the data source has one. It reads the answer as a count or as a BulkWriteResult (succeeded), capped at the number of ids sent.
    • When bulkDelete is absent, it falls back to the row delete the host handed in, with all rows settled together through Promise.allSettled, as the list page settles them.
    • The outcome stays on screen in a role="status" line. It uses the list page's own words: objectActions.bulkDeleteSuccess (with the object label) or objectActions.bulkDeletePartial (succeeded and failed counts).
    • A thrown batch call counts every id as failed, which is the bulkDelete contract (a total error throws). It is no longer only a console.error.
    • Rows without an id are dropped before the call.
    • 4e82b601 makes the call require api, which fixes the dts error. With no api the batch is skipped and the row fallback runs.
    • Tests pin one batch call rather than one call per row, the row fallback, and the partial-failure line on both paths.
  • Grant read and census 5b76d7a5. Right. No permission widening, and the gate is not weaker.
    • The bulk bar's onBulkDelete is now offered only when tabBulkDelete holds. That is !!onRowDelete and resolveAffordance('relatedRowDelete', ...) asked of the child object with the reader's permissions.
    • At 90fefc3f the offer needed onRowDelete alone. It now needs that and the object's relatedRowDelete row, so the gate is strictly stronger.
    • The only host that hands a row delete is record-related-list.tsx. Both of its paths, the host's handlers.onDelete from RelatedRecordActionsBridge and the fallback remove, are a plain dataSource.delete(objectName, id) behind the same relatedRowDelete row. So sending the same ids to dataSource.bulkDelete on the same object deletes nothing the row path would not.
    • The grid still splits the rows by the per-record userActions.delete.visibleWhen predicates before it calls onBulkDelete, as it did before.
    • relatedRowDelete and listBulkDelete both read crud delete and grant delete, so choosing the related-family row is right.
    • The new WRITE_SITES entry, RelatedList.tsx :: RelatedList, handleConfirmBulkDelete :: delete mapped to relatedRowDelete in RELATED_LIST, names a row of the map with the same verb. It is read by the file it names, so the census's mapped-site check holds on it.
  • The held conditions' key (L1-b N1). Right. The key is now the reader (useFilterScope().currentUserId), then object:parent, then the relationship. Another account signed in on the same tab starts from the default, as the list page's draft does. It is module memory only, nothing is written anywhere, and a test pins it.
  • Public surface: no change to the earlier judgment.
    • No export is added, removed or renamed in the delta.
    • DETAIL_DEFAULT_TRANSLATIONS, which @object-ui/plugin-detail publishes, gains four fallback entries: objectActions.bulkDeleteSuccess with _one and _other, and objectActions.bulkDeletePartial. Their text matches the en pack exactly. They add to a published map's content and change no type. They are copies of keys @object-ui/i18n already ships, not new keys, so the locale packs are untouched.
    • The changeset now names ConditionDiscardButtonProps and the detail.deleteRowsConfirmation plural family. Nit 1 from the earlier record is resolved. The changeset body also states the one-batch delete and the per-reader holding.

② Semver level

Unchanged. Patch on the same five packages, with Clause-②: yes (widening) and Metadata-protocol: none on both the PR body and the changeset. The delta adds behaviour only. Under ruling A it stays patch. The Check Changeset run is success.

③ Boundary flags

  • SQL push-down: resolved. The bulk delete is one batch request when the data source has one, as the list page does it. Fan-out is only the documented fallback for a data source without a batch door.
  • The dev's three flags are each answered in the diff: S1 (above), Nit 1 (the changeset list) and L1-b N1 (the per-reader key). The delta brings no open questions.

Must-fix: none.

Should-fix: none.

Nits:

  1. No behaviour test pins the bulk bar being withheld when the child object's relatedRowDelete row is closed while a host still hands in a row delete. The census pins only that the row is read.
  2. The outcome line bulkDeleteOutcome is never cleared while the tab stays mounted. It stays after later sorts, filters or edits until the tab remounts.
  3. The four objectActions.* fallback entries in DETAIL_DEFAULT_TRANSLATIONS are not in the Clause-② list. They are copies of existing i18n keys, so this is only a wording gap in the list.
  4. The earlier record's nits 2 to 7 are not addressed in this delta and still stand as nits.

Implemented-by: claude/project-thread-kmk099
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob (isolated L2 sub-agent of the seat)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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:

  • Seat declaration L2: PASS 7066223192 on 90fefc3f, with one should-fix (bulk delete one call per row, failures only in the console). Fixed; delta PASS 7067099426 on 5b76d7a5. The new grant read (relatedRowDelete on the child object) makes the bulk bar's gate stronger than before, not weaker.
  • L1-b: ACCEPT 7066212649 on 90fefc3f; delta ACCEPT 7067090021, final on this head. Its N1 (held conditions keyed by reader) is fixed.

Gates on this head:

  • Clause-②: yes (widening): withHeaderSortPick (core), ListConditionsBlock, ConditionDiscardButton and their props (plugin-list), RelatedListConditionsSlotContext (plugin-detail), the detail.deleteRowsConfirmation count family. Metadata-protocol: none; patch.
  • check-governed-merges --pr 36129 reads NOT governed (2,169 changed lines).
  • The seat read K by hand: 8 first-parent commits since the merge base. skills/ paths changed on main only; this PR touches none.
  • 47 check-runs are success, 15 skipped, none failed. Mergeable is clean.

The seat readies this PR and arms auto-merge in the same step. The PR carries Fixes #35892. Nits from both reviews (outcome line never clears, no behaviour pin for a closed grant, a drawer over another record resetting the tab behind it) are not carded. #36136 conflicts on one import line in RecordDetailView.tsx; it keeps both names when it merges main.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 18:14
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 8807dcb Nov 21, 2026
63 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-kmk099 branch November 21, 2026 18:34
os-sales pushed a commit that referenced this pull request Nov 21, 2026
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…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>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
… 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

2 participants