Skip to content

fix(list): "Add group field" asks which field, and offers only fields that can group (#36204) - #36223

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-aumcb5
Nov 22, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-aumcb5

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #36204

Clause-②: yes (widening) — @object-ui/components's GroupingEditor gains the optional props askFieldOnAdd, fieldOptionsLoading and fieldLabel, and its labels the optional noFields; @object-ui/i18n gains list.noGroupableFields in every locale (zh-Hant regenerated); nothing removed or renamed. @object-ui/plugin-list's package exports are unchanged.
Metadata-protocol: none

维护者速读

What changes

The card was rewritten after this PR's first version (rewrite note 7072750584, claim amend 7073321855): the first version's "default to the first single select" and "suitable types first, others still selectable" are both gone. In both Group editors (the wide toolbar's Group panel and the 视图设置 menu's Group level):

  1. No default, no grouping on the click. "Add group field" opens a row whose field dropdown is already open. The level is written only on a pick; closing the dropdown without one writes nothing.
  2. Only fields that can group (isGroupableField): select, radio, boolean, toggle, user, lookup, master_detail, tree, and not multiple: true. Order: the view's columns in the reader's column order (schema.columnState.order), then the object's other fields of those types the reader may read and the definition does not hide, business fields before system ones (the Filter panel's tiers).
  3. None to offer: the button is drawn disabled with aria-describedby on the reason 「没有可以用来分组的字段」 / "No field here can group the list".
  4. Still a draft (在列表上的改动都改成临时的(排序、筛选、分组、列的显示和顺序):立即生效但不保存,出现「放弃」和「保存」;列宽、行高、标签页顺序只记在浏览器里;退掉服务端的个人列表偏好 #35955): the pick goes through onGroupingChange to the host's listDraft.patch and the URL, as before.

Not changed, per the card: the group display, kanban, date grouping. A view already grouped by another kind of field keeps its level, shown under the field's label (fieldLabel), and the level can still be changed or removed.

Code:

  • @object-ui/components GroupingEditor: askFieldOnAdd (the pending row, testid grouping-field-pending), fieldOptionsLoading, labels.noFields (disabled button + grouping-no-fields), fieldLabel. Without them the editor behaves as before.
  • @object-ui/plugin-list ListView: one groupOptions list and one groupFieldLabel for both editors; ViewSettingsPopover takes groupOptions / groupOptionsLoading from it (groupFieldOptions and isGroupableField are module helpers, not package exports). allFields carries type and multiple from the definition.
  • Platform checklist records-forms.grid-personalization rev 11 (after feat(console): keep list column widths, row height and tab order in this browser only #36133's rev 10): steps[3] says the dropdown opens without grouping, lists only groupable fields, and Status is picked there.

Small calls made in this thread (Sales 22:19:27Z rule)

  • A field whose type is not loaded yet (L2 should-fix): while the definition read is in flight, nothing is offered and the button is disabled without the reason, so it never says "nothing to group by" before the types are known. If there is no definition to read at all (a host with no getObjectSchema, or the read failed), no type is known and every column is offered, as before. Both pinned.
  • "Status": the spec has no status type; a status is a select. radio counts as a single select.
  • "Linked record" includes master_detail and tree beside lookup; "tick" includes toggle beside boolean.
  • Fields outside the columns: the card says 「这个对象没有…」, so the object's other groupable fields are offered after the columns. The record owner is one (the maintainer's 「加上负责人」). Created by / updated by are offered only when the view shows them as a column; otherwise every object would have a person field and the disabled state could never appear.
  • A field the reader may not read is never offered; a level already holding one keeps showing its name, not its label (RestServer.normalizeConfig still casts crud / metadata / batch / routes instead of parsing them — batch.maxBatchSize bounds and three declared enums never execute #11984).
  • Second level: the same list, less the fields levels use.

Verification

  • ui/packages/components/src/__tests__/grouping-editor-add-default-36204.test.tsx (11): the click writes nothing and opens the dropdown; a pick writes the level; second level; Escape writes nothing; noFields disabled + described; loading disabled without a reason; enabled when options arrive; fieldLabel; three CONTROLs without the new props.
  • ui/packages/plugin-list/src/__tests__/ListView.groupAddDefault-36204.test.tsx (16), both editors: the click writes nothing, the dropdown is Industry, Owner, Stage, VIP, Parent account, Record owner (no name, text, date, number, multi-select, hidden field, unshown created-by), a pick writes the level with no create/update/delete; Escape; no groupable field → disabled + reason; second level; column order; created-by as a column is offered; a view grouped by name shows "Customer name" and can change; loading → disabled without reason, enabled once the definition answers; CONTROL with no definition offers every column; View settings labels a non-column pick (Record owner) on its level and on the menu's Group row; the helper functions.
  • Direction, measured: with main's grouping-editor.tsx, ListView.tsx and ViewSettingsPopover.tsx swapped in, 22 of these 26 fail; the other four include the three editor CONTROLs. The View settings label pin added at 89c82900 fails with that commit's one-line host change reverted.
  • Updated where tests read the old first-column default: ListView.harness (Console list view: the personal "Group" picker offers formula fields, and picking one turns the whole list into a "数据加载失败" error page (the server refuses a formula group key since #29304) #32631: fields typed, CONTROL re-reads the level options after the pick), ListView.onGroupingChange-11860 (stub answers getObjectSchema; the add picks from the dropdown), ListView.fieldListRead-11984 (the Group list offers Status/Secret Status only; the full-read control probes Group with the select), ObjectView.listUrlState-11860 (no definition there, so every column, priority picked).
  • vitest run packages/plugin-list, components grouping* + list-builders*, app-shell ObjectView.listUrlState-11860, packages/i18n: 293 files, 4039 passed / 13 skipped.
  • tsc --noEmit and tsconfig.test.json: components, plugin-list, app-shell, i18n, exit 0. ESLint on changed files: 0 errors. check-platform-checklist.mjs: OK. Changeset checks: OK.

Evidence (1440×900 @2x, zh-CN, light and dark; /mnt/project-files/build-seat1/36204/, index in its README.md)

Console from this branch's ui/; every non-GET request recorded in the page.

  • Self-built 「客户」 (package com.demo.kehu), 「全部客户」 (客户名称, 所属行业, 负责人, 电话): v2-1440-{light,dark}-kehu-all-1-after-add-dropdown.png — the click opens the dropdown (所属行业, 负责人), list not grouped, no request. -2-list-grouped.png — after picking 所属行业: 4 groups of 3, 「放弃」「保存」; the only request is the grouped read POST /api/v1/data/kehu_customer/query.
  • 「联系方式」 (客户名称, 负责人, 电话, 签约日期): v2-…-kehu-contact-1-after-add-dropdown.png (负责人, then the non-column 所属行业), -2-closed-no-pick.png (Escape: no level, no 「放弃」「保存」, no request).
  • 拜访记录 (text, textarea, number, date, multi-select + platform owner): v2-…-kehu-visit-* — dropdown 负责人 only.
  • 便签 (ownership: 'org', no owner; only text, textarea, number, date, multi-select): v2-…-kehu-note-nofield-0-group-panel.png — disabled, 「没有可以用来分组的字段」, a click does nothing.
  • HotCRM (main 6090c83) 客户 → 全部客户: v2-…-hotcrm-accounts-1-after-add-dropdown.png — 行业, 类型, 健康度, 商务能力, 付款周期, 销售区域, 母公司, 是否活跃, 审批状态, 来源线索, 客户分层, 客户细分, 客户负责人; no write, not grouped. -2-list-grouped.png — grouped by 行业, 「放弃」「保存」; only the grouped read.
  • before-* shots show main (one click groups by 客户名称, 12 groups of one). v1/ holds this PR's superseded first version.

Since the first reads (L1-b ACCEPT 7073310792, L2 FAIL 7073316679)

The rework answers the L2's four must-fixes (default, filter, disabled state, rewrite note) and its should-fixes (untyped-field rule + test, checklist, changeset, body). Nits: the plugin-list members are out of Clause-② (not package-public); the harness CONTROL re-checks the level options after the pick. Heads: 4e90470e (rework), 953c8cbf (record owner offered, provenance only as a column; L1-b delta ACCEPT 7074055354, declaration L2 delta PASS 7074084200), 89c82900 (L2 S1: ListView hands groupFieldLabel to ViewSettingsPopover, which labels the menu's Group row and the level with it, so a non-column pick no longer reads as owner_id/industry; pinned; browser: 「联系方式」 pick 所属行业, the row reads 「分组 所属行业」, v2-1440-{light,dark}-kehu-contact-3-menu-row-noncolumn.png. L2 N4: the changeset headline is fix(list) like the title).

Overlap

main merged after #36133 (0d8fc77b): the one conflict was records-forms.grid-personalization, resolved by keeping #36133's steps[2] and rev 10 row; this PR's row is rev 11.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (Not touched.)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes (changed files: 0 errors).
  • 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_01L6bhgXeD1yUYqBJm8uzRrP

…t, and asks when there is none

The Group editors used to add the first column, usually the record's name,
so every record became its own group. Now the first single select or radio
in the reader's column order is added at once (a shown column before a hidden
one); with none, the field dropdown opens and nothing is grouped until a pick.
The dropdown lists the fields that suit grouping first. GroupingEditor gains
the optional pickAddField prop; ViewSettingsField carries the declared type.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXeD1yUYqBJm8uzRrP
…-aumcb5

# Conflicts:
#	docs/qa/platform-checklist/areas/records-forms.json
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-22T03:01Z. The brief handed to the isolated declaration-face reviewer for PR #36223, owed by Clause-②: yes (widening) in claim 7072735866 on #36204. The record follows as its own comment.

Contract review brief — PR #36223 @ 0d8fc77ba6c29a1ea9c2437f078fc7afd3a995ff (card #36204)

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 #36204: its body and EVERY comment (rulings and earlier records included)
· also epic #35547 (body) and card #35955 (body; list-draft rules) for context; the seat claim 7072735866 on #36204 (Clause-② yes widening: the exported GroupingEditor gains an optional prop and ViewSettingsField two optional members; Metadata-protocol none); ruling A on changeset levels (level follows the Metadata-protocol line; a Clause-② widening alone ships patch)
· PR #36223: its body, its file list, and the net diff against main at 0d8fc77ba6c29a1ea9c2437f078fc7afd3a995ff
· the check-runs on 0d8fc77ba6c29a1ea9c2437f078fc7afd3a995ff: 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-36223/ 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. Include: without the new prop the editor behaves exactly as before; adding a group still writes only the list draft (no write request).
② 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: 0d8fc77 · read 2026-11-22T03:04Z · first read · claim 7072735866 · seat declaration L2 runs in parallel; the seat lands on this ACCEPT plus that PASS

维护者速读

列表上点「添加分组字段」时,以前直接按第一列分组,通常是名称列,结果一条记录一组,没法用。现在它按列顺序找第一个单选或单选按钮字段(比如状态)直接分组;视图里没有这类字段时,就打开字段下拉框,等用户选了再分组,关掉下拉框什么都不改。下拉框把适合分组的字段排在前面(单选、人员、关联记录、勾选、日期),其他字段排后面,仍然可以选。分组仍然只进列表草稿,出现「放弃」「保存」,不会写服务器。对开发者的变化只是新增几个可选属性和一个导出函数,不传新属性时组件行为和以前完全一样。

Must-fix

None.

Should-fix

None.

Nits (no change needed to land)

Checked

  • l1-face CLEAN. CI on 0d8fc77: 52 success, 13 skipped, 0 failing. Merge 0d8fc77 is a plain main merge, and the PR diff is merge-base a5a5312..head (11 files, +596/−47).
  • GroupingEditor (components):
    • Without pickAddField the click still adds remaining[0] at once, the same as before. The new CONTROL case in grouping-editor-add-default-36204.test.tsx pins this.
    • With the prop, undefined sets askingField. That shows a Select with defaultOpen, lists only remaining, writes [...current, {field, asc, collapsed:false}] on a pick, and drops the row with no write on close. The add button is hidden while asking.
    • Nothing else in the editor changed: the level rows, order, collapse, remove and maxLevels.
  • ViewSettingsPopover (plugin-list):
  • The write path is draft-only and unchanged. Both editors still call the same onGroupingChange, and this PR changes nothing in it or in the host. The host's listDraft.patch and uf__group URL write are as 在列表上的改动都改成临时的(排序、筛选、分组、列的显示和顺序):立即生效但不保存,出现「放弃」和「保存」;列宽、行高、标签页顺序只记在浏览器里;退掉服务端的个人列表偏好 #35955 left them, and the 11860 URL tests still pass through a pick. groupAddDefault-36204 asserts no create/update/delete on the data source and no onGroupingChange before a pick. The evidence README's network reading agrees: after the click, only the grouped POST .../query read goes out, and no metadata or preference write.
  • Existing pins that were re-pointed: 11984 now lists selects first and the seeded level is status, not title, and the unreadable-field level is still kept and removable. 11860 onGroupingChange now pins status exactly instead of just the length. The Console list view: the personal "Group" picker offers formula fields, and picking one turns the whole list into a "数据加载失败" error page (the server refuses a formula group key since #29304) #32631 harness pins now read the dropdown list. No assertion is weakened beyond N2.
  • Checklist records-forms.json, grid-personalization item, rev 10 → 11:
    • steps[3] no longer says "pre-selects the first field, Title". The stock grid's column order is title, project, assignee, status, priority (task.view.ts:23-30), so Status is in fact the first select, as the step says.
    • I re-read every acceptance and negative clause, and none names the add behaviour. A repo-wide grep finds no other checklist, docs or skills text that does.
  • I read the changeset sentence by sentence against the code: the default pick, the no-select dropdown, close without a pick, friendly types first, the second level, and the draft. The Clause-② line lists exactly the three widenings, with nothing removed or renamed.
  • Screenshots in build-seat1/36204/ (after-1440): the all-customers view groups into 4 by 所属行业 with 「放弃」「保存」. The no-select view opens the dropdown with 负责人 and 签约日期 ahead of 客户名称 and 电话, and the list stays ungrouped.
  • Fixes #36204: the card's three asks (default single select, otherwise ask, friendly types first) are all delivered.

Owed

Seat declaration L2 (parallel).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 0d8fc77ba6c29a1ea9c2437f078fc7afd3a995ff
Local-runs: none

Inputs read: card #36204 body (rewritten 2026-11-22) and its four comments (triage 7071100814, dispatch 7072599281, claim 7072735866, rewrite note 7072750584); PR #36223 body and file list; net diff origin/main...pr-36223 (merge base a5a5312ff4); the check-runs on the head. Every check-run on the head is success or skipped; none failed. The gates are green, but they cannot judge the findings below: the diff is internally consistent, it just implements the wrong card text.

① Derived judgments

Accept set against the card body. WRONG: the PR implements the superseded first version of the card. The claim (02:10:37Z) described version 1: default to the first single select, group-friendly types first. The coordinator rewrote the card one minute later (7072750584, 02:11:40Z). The note says this is now void: 「默认取第一个单选或状态字段」「适合分组的类型排前面、名称仍可选」, and it asks a dev who started on version 1 to adjust. The head still ships version 1.

  • 要做的 1 (no default; open the dropdown, group only after a pick). WRONG, must-fix. pickGroupAddField returns the first select/radio in column order, and GroupingEditor writes it at once. The dropdown opens only when no such field exists. The PR body's own evidence shows the 「全部客户」 click grouping by 所属行业 at once and sending POST .../kehu_customer/query. The card's acceptance says: 出现字段下拉,列表还没有分组,没有任何请求.
  • 要做的 2 (the dropdown lists only single select, status, boolean, person and linked record). WRONG, must-fix. groupFieldOptions only reorders the list: friendly types first, then the rest. Names, text, numbers and multi-value selects are still offered. GROUP_FRIENDLY_TYPES also includes date/datetime, which the card excludes by name (文本、数字、日期、多选不列).
  • 要做的 3 (no groupable field: the button is disabled and says why). WRONG (missing), must-fix. The button shows whenever remaining.length is above 0. There is no disabled state and no explanation text.
  • 要做的 4 (it stays a list draft, 在列表上的改动都改成临时的(排序、筛选、分组、列的显示和顺序):立即生效但不保存,出现「放弃」和「保存」;列宽、行高、标签页顺序只记在浏览器里;退掉服务端的个人列表偏好 #35955). RIGHT. The pick goes through writeFields, then onChange, then the host's onGroupingChange and listDraft.patch, which is unchanged. The new test asserts no create/update/delete on the data source. The only request is the grouped read, which comes from the wrong default (see 要做的 1).
  • 不做的 (saved views grouped by another type keep working). RIGHT as code. A level whose field is missing from the options still mounts. But this only matters once 要做的 2 really filters the list.
  • Platform checklist records-forms.grid-personalization rev 11. WRONG, should-fix. steps[3] and the revision note now write the superseded behaviour into the checklist ("groups at once by the grid's first single select ... lists the fields that suit grouping first").
  • Changeset prose and PR body. WRONG, should-fix. Both describe the superseded behaviour and have to be rewritten with the code.

Public surface:

  • @object-ui/components GroupingEditor: new optional prop pickAddField. RIGHT as a widening. Without the prop, the click still writes remaining[0].value at once. askingField can never turn true, because remaining.length is above 0 whenever the button shows. Hoisting remaining out of the IIFE changes nothing. So without the prop the editor behaves exactly as before. Whether the prop's "return undefined to ask" contract is still the right shape under the rewritten card is part of the rework.
  • @object-ui/plugin-list ViewSettingsField.type/multiple, the optional second argument of groupFieldOptions, and the new pickGroupAddField. Additive. But src/index.tsx does not re-export components/ViewSettingsPopover, so none of these is package-public. Nit: the plugin-list half of the Clause-② line over-declares. That is harmless.
  • ListView gridColumnOrder: it only extracts the expression fieldOrder already used. RIGHT, no behaviour change on the Fields level.
  • Tests. The four rewritten expectations (harness Console list view: the personal "Group" picker offers formula fields, and picking one turns the whole list into a "数据加载失败" error page (the server refuses a formula group key since #29304) #32631, onGroupingChange-11860, fieldListRead-11984, ObjectView.listUrlState-11860) pin the superseded behaviour too. Nit: the harness CONTROL test drops its post-pick grouping-field-0 option-list assertion.

② Semver level

  • Changeset .changeset/36204-group-add-default-field.md: @object-ui/components patch, @object-ui/plugin-list patch. RIGHT under ruling A: the Metadata-protocol line is none, and a Clause-② widening alone ships patch. The rework does not have to change the level if it stays additive.
  • Clause-②: the PR body reads yes, and the changeset reads yes (widening) with the surface listed. RIGHT in kind. The PR names more surface than the claim 7072735866 did (the groupFieldOptions argument and pickGroupAddField). That is declared, additive and module-internal, so it is a nit.
  • Metadata-protocol: none. RIGHT: no spec, no metadata and no protocol path in the diff.

③ Boundary flags

  • Card rewrite 7072750584 (「如果已经按第一版动手,请按新正文调整」). NOT ANSWERED. Must-fix: the head is the version-1 implementation, and the PR body never mentions the rewrite.
  • Dev small call: "Sales 22:19:27Z, no ruling needed" for the friendly type list, "first = column order", and putting unknown types at the back. ESCALATED. The card body, which carries the maintainer's own words, overrides this. The type list must be exactly single select/radio, boolean/toggle, user, lookup/master_detail (tree to be confirmed), with date and multi excluded. "First" becomes moot once there is no default.
  • Dev small call: second level follows the same rule. RIGHT in spirit: card 没有核对的 says the second level should also list only these types. It has to follow the new list rule, not the default rule.
  • Dev small call: status is select/radio because the spec has no status type. RIGHT.
  • Open question carried by the rework: a field whose type has not loaded yet (no object definition). The PR puts it at the back of the list. Under 要做的 2 it would be hidden, which can empty the dropdown before the definition arrives, and then 要做的 3 disables the button. ESCALATE to the dev: settle this behaviour explicitly (wait for the definition, or treat untyped as not groupable) and pin it. ObjectView.listUrlState-11860 already runs without a definition.
  • Card 没有核对的 (whether saved views are grouped by text, number or date fields). Not touched by the diff. The 不做的 rule keeps them rendering. No finding.
  • SQL push-down (Prime Directive 5). No new id materialisation and no in-app join. The change ranks and filters field metadata on the client, and the grouped read path is unchanged. No finding.

Findings:

  • must-fix: 要做的 1 is broken. "Add group field" still groups at once by a default (the first select or radio) instead of opening the dropdown with nothing grouped.
  • must-fix: 要做的 2 is broken. The dropdown still offers every field (name, text, number, multi-value select) and counts date as friendly, instead of listing only select/status, boolean, user and lookup.
  • must-fix: 要做的 3 is missing. There is no disabled state or reason text when the object has no groupable field.
  • must-fix: rewrite note 7072750584 is unanswered. The head implements the superseded version 1 that the note voided.
  • should-fix: the checklist rev 11 steps[3], the changeset prose and the PR body record the superseded behaviour.
  • should-fix: untyped fields (definition not loaded) need an explicit rule under the filtered list, pinned by a test.
  • nit: the plugin-list half of the Clause-② line names module-internal symbols that src/index.tsx does not re-export.
  • nit: the harness CONTROL test lost its post-pick option-list assertion.

Implemented-by: claude/project-thread-aumcb5
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob

VERDICT: FAIL

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

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

Head-sha: 0d8fc77 · read 2026-11-22T03:06Z · withdraws ACCEPT 7073310792 on this head

维护者速读

我上一条 ACCEPT 作废,这个版本不能合。我审的是卡片第一版,那一版会自动选第一个单选字段直接分组;卡片之后按维护者的话改了:不带默认值、先让人选,下拉只列单选、状态、勾选、人员、关联记录,对象里没有这类字段时按钮不可点并说明原因。这个头没有按新要求做,声明 L2 也已判 FAIL。开发线程正在返工,变绿后我按卡片当前正文再读一遍。

Why

I read 7073310792 against the brief the seat relayed, which described the first card body: default to the first single select. The card body was rewritten at 02:11:40Z on the maintainer's words. This head defaults to a pick and lists every type, so it does not meet the current body, items 1–3. The declaration L2 FAILed it the same way.

Owed

A delta read against the current card body (#36204) once the rework is green.

"Add group field" adds no level by itself: the field dropdown opens and
the list is grouped once a field is picked there; closing it without a
pick writes nothing. The dropdown offers only single select or radio,
tick, person and linked-record fields, single-valued. With none, the
button is disabled and says why; until the object's field types are
read it is disabled without a reason, and with no definition at all
every column is offered as before.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXeD1yUYqBJm8uzRrP
The group dropdown's extra fields now follow the Filter panel's tiers:
business fields, then system fields such as the owner. Created by and
updated by are offered only when the view shows them as a column, so
an object without a person or choice field of its own still says it
has nothing to group by.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXeD1yUYqBJm8uzRrP
@objectstack-fleet objectstack-fleet Bot changed the title feat(list): "Add group field" groups by the view's first single select, and opens the field dropdown when there is none (#36204) fix(list): "Add group field" asks which field, and offers only fields that can group (#36204) Nov 22, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-22T04:11Z. The delta brief handed to the isolated declaration-face reviewer for PR #36223 (TIER_DEFAULT), after the rework against the rewritten card. The record follows as its own comment.

Contract review brief — PR #36223 @ 953c8cbf95bde0828c0fc321327f9a11b233a2c3 (card #36204)

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 #36204: its body and EVERY comment (rulings and earlier records included)
· also epic #35547 (body) and card #35955 (body; list-draft rules) for context; the seat claim 7072735866 on #36204 and its amend 7073321855, which replaces it against the rewritten card body (rewrite note 7072750584); ruling A on changeset levels (level follows the Metadata-protocol line; a Clause-② widening alone ships patch)
· PR #36223: its body, its file list, and the net diff against main at 953c8cbf95bde0828c0fc321327f9a11b233a2c3
· EVERY comment on PR #36223, including the earlier record 7073316679 (FAIL on 0d8fc77) and the L1-b withdrawal 7073329852; this is a delta round: name each finding of 7073316679 closed or open by its text, then judge the rest of this head afresh
· the check-runs on 953c8cbf95bde0828c0fc321327f9a11b233a2c3: 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-36223/ 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. Include: without the new props the editor behaves exactly as before; adding a group writes only the list draft and sends no request until a field is picked; the offered field types against the card body's 要做的 2 word for word; the disabled state and its reason against 要做的 3; the untyped (no definition / loading) cases; and the new i18n key list.noGroupableFields with real text in every pack.
② 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

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

Head-sha: 953c8cb · read 2026-11-22T04:13Z · prior: ACCEPT 7073310792 withdrawn by 7073329852 (it followed the first card body) · delta 0d8fc77..953c8cb (4e90470, 953c8cb) · judged against the CURRENT #36204 body (issue updated 03:05:41Z; rewrite note 7072750584, claim amend 7073321855)

维护者速读

这一版按改写后的卡片做了。点「添加分组字段」不再自动选字段,也不会立刻分组:先打开下拉框,选了才分组;不选直接关掉,列表不变,也不发请求。下拉框只列单选或状态、勾选、人员、关联记录这几类字段,文本、数字、日期、多选都不列。视图里的列排在前面,其次是对象里其他可分组的字段,业务字段在系统字段之前。对象里一个可分组的字段都没有时,按钮变灰,并显示「没有可以用来分组的字段」。已经按别的字段分组的视图照常显示,也可以换字段或删掉这一级。分组仍然只进草稿,会出现「放弃」「保存」。HotCRM 的「客户」列表也试过,结果一样。

Must-fix

None.

Should-fix

None.

Nits (no change needed to land)

  • N1 ListView.tsx groupOptions: when a host has no definition (no getObjectSchema) or the definition read failed, every column is offered, text included, as before. The Console always reads a definition, so the card's surfaces never take this path. Offering nothing there would leave a host that has no types unable to group at all. The changeset says so, and a CONTROL case pins it.

The two questions the seat asked

  • tree: it belongs. packages/spec/src/data/field.zod.ts:83 declares 'tree' as a "Hierarchical reference": one record pointing to another of the same kind (a parent category, a parent account). That is a single-valued linked record, which is the card's 「关联记录」 category, the same as lookup and master_detail. Grouping by it gives one group per parent, the same shape as grouping by a lookup. It is not a text, number, date or multi-select, which are the types the card excludes.
  • No request before a pick: none is sent. With askFieldOnAdd the click only sets the editor's local askingField, and nothing reaches onChange. groupAddDefault-36204 covers both editors: onGroupingChange is not called and the data source gets no create, update or delete. Closing without a pick also writes nothing, in both editors and in the components unit test. The evidence README records no request on the click or on Escape (「联系方式」, 「拜访记录」). After a pick, the only request is the grouped POST .../query read, which is a read, not a write.

Checked against the current card body

  1. No default, pick first, close changes nothing. GroupingEditor with askFieldOnAdd opens a row whose dropdown is already open and writes only in onValueChange. onOpenChange(false) drops the row. Both editors pass askFieldOnAdd. In the screenshots, v2-*-kehu-contact-2-closed-no-pick shows no level and no 「放弃」「保存」.
  2. Only these types. isGroupableField = select, radio, boolean, toggle, user, lookup, master_detail, tree, with multiple !== true. Status is a select. groupFieldOptions(..., typesKnown=true) filters by it, and the object's other fields go through the same filter plus canReadField, hidden !== true and not a virtual search field. Created-by and updated-by (AUDIT_FIELD_NAMES) are offered only when they are columns. The 11984 pins now list the selects only, the unreadable one stays out of the add list, and the 32631 formula pins moved to selects with their point intact (a formula is never offered).
  3. None → disabled with the reason. The button gets disabled, and aria-describedby points to the <p> with list.noGroupableFields. The key is added in all 11 locales. zh-Hant is the generated line, and zh-hant-generated.test.ts is green in CI. Screenshot v2-*-kehu-note-nofield-0 shows 「没有可以用来分组的字段」.
  4. Still a draft. onChange → changeGrouping → the host is unchanged by this PR. kehu-all-2-list-grouped shows 「放弃」「保存」.
  • "不做的": a view grouped by another type keeps its level under its label (fieldLabel, with no label for an unreadable field, as in 11984), and the level's dropdown offers only the groupable types. The group display and the kanban picker are untouched.
  • Acceptance: the HotCRM 客户 → 全部客户 dropdown lists select, lookup, tick and owner fields with no 客户名称, 年营收, 员工人数, 电话 or dates; a pick of 行业 groups the list with Discard/Save and only the grouped read is sent. Card "没有核对的" point 2 is answered: the second level uses the same options, less the ones in use.
  • While the definition loads, the button is disabled with no reason, so "nothing to group by" is never claimed before the types are known. objectDefLoaded turns true on every path: no data source, no getObjectSchema, success, and failure (ListView.tsx:3630-3656). This is a small choice the thread made, named in the PR body.

Checked (mechanics)

  • Clause-② line: the public widening is @object-ui/components GroupingEditor (askFieldOnAdd, fieldOptionsLoading, fieldLabel, labels.noFields) and the i18n key. The plugin-list helpers (groupFieldOptions, isGroupableField, ViewSettingsField, the popover's groupOptions) are not in @object-ui/plugin-list's entry (src/index.tsx, which exports TabBar only), so they are rightly not declared. pickGroupAddField never shipped, so removing it is not a narrowing.
  • Without the new props the editor still adds the first unused field at once, and still draws no add button when there are no options. Both are pinned as CONTROL cases.
  • Checklist grid-personalization rev 11: steps[3] is re-pointed to the pick-first behaviour (pick Status). The acceptance and negative clauses do not name the add behaviour, and none changed.
  • I read the changeset sentence by sentence against the code: it matches.
  • CI on 953c8cb: 52 success, 13 skipped, 0 failing. The merge base is still main a5a5312, and the branch merges clean.

Owed

The seat's declaration L2 delta, running in parallel. Fixes #36204 is right, because all four of the card's 要做的 items are delivered.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 953c8cbf95bde0828c0fc321327f9a11b233a2c3
Local-runs: none

What I read: the card #36204 body (rewritten) and all five of its comments (triage 7071100814, dispatch 7072599281, claim 7072735866, rewrite note 7072750584, claim amend 7073321855); the PR #36223 body, file list and every comment on it (brief 7073289471, L1-b ACCEPT 7073310792, the FAIL record 7073316679, the L1-b withdrawal 7073329852, delta brief 7074033032); the net diff origin/main...pr-36223-r2 (22 files, +769/−52; commits d84aa94, merge 0d8fc77, 4e90470, 953c8cb); and the check-runs on this head. Of 63 check-runs, 50 are success and 13 skipped. None failed or is pending. The successes include Type Check UI, Lint UI, all 16 Test UI shards, Build & E2E UI, Live E2E UI, Check Changeset and Governed Surface Queue Guard.

Delta against 7073316679. All eight of its findings are closed.

  • Closed, must-fix "要做的 1 is broken; Add group field still groups at once by a default". Both editors now pass askFieldOnAdd, so the click only sets the editor's local askingField and opens a row whose dropdown is already open. pickGroupAddField is gone.
  • Closed, must-fix "要做的 2 is broken; the dropdown still offers every field and counts date as friendly". GROUPABLE_TYPES filters the list instead of sorting it, and date/datetime are out.
  • Closed, must-fix "要做的 3 is missing". The button is drawn disabled and carries the reason (details below).
  • Closed, must-fix "rewrite note 7072750584 is unanswered". The PR body's What changes section cites the note and amend 7073321855, and the head implements the rewritten body.
  • Closed, should-fix "the checklist rev 11 steps[3], the changeset prose and the PR body record the superseded behaviour". All three are rewritten to the current card.
  • Closed, should-fix "untyped fields need an explicit rule under the filtered list, pinned by a test". The loading case and the no-definition case are each ruled and pinned.
  • Closed, nit "the plugin-list half of the widening line names module-internal symbols". The line now names only @object-ui/components and @object-ui/i18n, and it says plugin-list's exports are unchanged. I checked: src/index.tsx re-exports nothing from ViewSettingsPopover.
  • Closed, nit "the harness CONTROL test lost its post-pick option-list assertion". The Console list view: the personal "Group" picker offers formula fields, and picking one turns the whole list into a "数据加载失败" error page (the server refuses a formula group key since #29304) #32631 CONTROL picks Title, then reads grouping-field-0's options again.

① Derived judgments

Accept set, against the current card body:

  • 要做的 1 (no default; open the dropdown; group only on a pick; closing without a pick leaves the list ungrouped). RIGHT.
    • In both editors, the wide toolbar's Group panel (ListView.tsx) and View settings' Group level (ViewSettingsPopover.tsx), the click writes nothing.
    • The pending Select writes [...current, {field, asc, collapsed:false}] only in onValueChange. Its onOpenChange(false) drops the row and writes nothing.
    • Pinned for both editors in ListView.groupAddDefault-36204: onGroupingChange is not called on the click, there is no grouping-field-0, and Escape leaves the button enabled with no write.
  • No request until a field is picked. RIGHT.
  • 要做的 2, word for word (单选、状态、勾选、人员、关联记录; 文本、数字、日期、多选不列). RIGHT.
    • isGroupableField accepts select and radio (单选; a status is a select, because the spec's FieldType has no status type), boolean and toggle (勾选), user (人员), and lookup, master_detail and tree (关联记录; the spec comments tree as a hierarchical reference). It rejects anything with multiple: true.
    • Outside the set, and so never offered: text, textarea, number, currency, percent, date, datetime, time, multiselect, checkboxes, tags and formula. checkboxes is a checkbox group, so it falls under 多选, not 勾选.
    • I checked every type in the FieldType enum on this head (packages/spec/src/data/field.zod.ts). No other single-valued choice, person or relation type exists.
  • Fields outside the view's columns are offered after the columns, business tier first, then system. RIGHT as a small call.
    • The card supports it twice: 要做的 3 says "这个对象没有" (it speaks of the object), and the acceptance asks for 「负责人」 in the dropdown.
    • The extras are gated by hidden, by canReadField and by the virtual-field check. created_by/updated_by are offered only as a column, so an object owned by an org can still reach the disabled state (the 便签 evidence).
  • 要做的 3 (no groupable field: the button cannot be clicked, and the reason is shown). RIGHT.
    • With empty fieldOptions and labels.noFields, the button has disabled, aria-disabled and aria-describedby pointing at a visible grouping-no-fields paragraph.
    • Both hosts pass list.noGroupableFields. Both editors are pinned, and the id link is asserted.
  • Untyped cases. RIGHT, and each is ruled.
    • While the definition is loading (!objectDefLoaded), the options are [] and fieldOptionsLoading is set. The button is disabled with no reason, so the list never claims "nothing to group by" before the types are known. Pinned: disabled, then enabled once the definition answers.
    • With no definition at all (no getObjectSchema, or a failed read, since both leave objectDef null and objectDefLoaded true), the list calls groupFieldOptions(allFields, order, false) and every column is offered, as before. Pinned by a CONTROL here, and by ObjectView.listUrlState-11860, which picks priority.
    • A column the definition does not declare is not offered while types are known. That is consistent with the filter.
  • 不做的 (a view grouped by another type keeps its level). RIGHT.
    • A level outside the options still mounts, labelled through fieldLabel, and it can be changed or removed. Pinned: a view grouped by name shows "Customer name" and switches to Industry.
    • The group display, kanban (not a GroupingEditor consumer) and date grouping are untouched.
  • Second level. RIGHT. It offers the same list minus the fields levels already use, which also answers the card's 没有核对的 note. Pinned.
  • New i18n key list.noGroupableFields. RIGHT. All eleven packs carry real text: ar, de, en, es, fr, ja, ko, pt-BR, ru, zh-Hans and zh-Hant. These are every pack under ui/packages/i18n/src/locales/, and no other pack in the repo carries the list.* group keys. zh-Hans reads exactly the card's wording, 「没有可以用来分组的字段」.
  • Platform checklist records-forms.grid-personalization rev 11. RIGHT. steps[3] now describes the dropdown opening with nothing grouped, only the groupable types listed, Status picked, and the disabled state. The revision row says no clause changed, and I found none that did.
  • Re-pointed tests. RIGHT, with no weakening that the new file does not re-pin.
  • WRONG, should-fix (S1): the View settings Group summary falls back to a machine name.
    • ViewSettingsContent's own fieldLabel reads allFields, which holds the columns only. It feeds the root menu row's value (groupFields.map(fieldLabel)) and the editor's outside-option label.
    • This head offers non-column fields for the first time. Picking one in View settings, for example Record owner, or 所属行业 in the 「联系方式」 view, leaves the root Group row reading owner_id/industry.
    • The PR body says ListView has "one groupFieldLabel for both editors", but groupFieldLabel reaches only the toolbar GroupingEditor. ViewSettingsPopover is handed groupOptions/groupOptionsLoading and no label function.
    • No test reaches it: the View settings pins pick Industry, which is a column.
    • Fix: hand groupFieldLabel (or the groupOptions labels) to the popover and use it in its fieldLabel, then pin the root row after picking a non-column field.

Public surface:

  • @object-ui/components GroupingEditor gains the optional props askFieldOnAdd, fieldOptionsLoading and fieldLabel, and the optional labels.noFields. RIGHT, and additive.
    • Without them the editor behaves exactly as before. The click writes remaining[0] at once. With no options and no noFields/loading, no button is drawn. fieldLabel?.() falls back to the field name.
    • The new useState/useId hooks run unconditionally, and hoisting remaining out of the IIFE does not change it.
    • Three CONTROLs in grouping-editor-add-default-36204 pin this.
    • The only consumers in the repo are the two plugin-list editors.
  • @object-ui/i18n gains one key. Additive.
  • @object-ui/plugin-list: ViewSettingsField.type/multiple, isGroupableField, the new arguments of groupFieldOptions, and the popover's groupOptions/groupOptionsLoading are all module-internal (not re-exported). The package surface is unchanged, as the body says.
  • gridColumnOrder only extracts the expression fieldOrder already used. No behaviour change on the Fields level.

② Semver level

  • Changeset .changeset/36204-group-add-default-field.md: @object-ui/components patch, @object-ui/plugin-list patch and @object-ui/i18n patch. RIGHT under ruling A: the metadata-protocol declaration reads none, and a widening alone ships patch. Every package that publishes is named. The app-shell and docs edits are tests and the checklist, which publish nothing.
  • The metadata-protocol declaration reads none, in both the PR body and the changeset. RIGHT: the diff touches no spec, metadata or protocol path.
  • The changeset prose describes the shipped behaviour sentence by sentence, including the loading and no-definition rules.
  • The declared surface is wider than the one in claim 7072735866 (three props, labels.noFields and the i18n key). Amend 7073321855 keeps the kind, and the surface is declared in full in both places. No finding.

Clause-②: yes (widening) — RIGHT. The PR body and the changeset both read it line-initially, and the surface listed matches the diff: optional props and one new key, nothing removed or renamed.

③ Boundary flags

The dev's small calls (PR body, "Small calls made in this thread"):

  • Untyped while loading: the button is disabled with no reason. No definition at all: every column is offered. ANSWERED and pinned. This closes the earlier escalation.
  • Status counts as select, and radio as a single select. RIGHT.
  • Linked record includes master_detail and tree, and tick includes toggle. RIGHT against the spec's own comments. The earlier record's "tree to be confirmed" is settled.
  • Non-column fields are offered, with the owner included and provenance offered only as a column. RIGHT. This answers the maintainer's 「加上负责人」, keeps 要做的 3 reachable, and gives rise to S1 above.
  • A field the reader may not read is never offered, and a level that already holds one keeps its name (RestServer.normalizeConfig still casts crud / metadata / batch / routes instead of parsing them — batch.maxBatchSize bounds and three declared enums never execute #11984). RIGHT.
  • Second level: the same list, minus the fields in use. RIGHT.

No open_questions entry is carried.

Card 没有核对的:

  • Attio: not checked, and nothing turns on it.
  • Second level: answered above.
  • Saved views grouped by text, number or date: not surveyed, but 不做的 keeps them rendering and changeable. No finding.

Card 验收, "PR 正文附点「添加分组字段」后的截图": should-fix (S2). The body names the screenshots under a local /mnt/project-files/build-seat1/36204/ path, which no reader of the PR can open. The seat should attach them, or link them from a committed path, before landing.

SQL push-down (Prime Directive 5): no finding. Nothing new materialises ids and nothing joins in the app. The change filters and orders field metadata the client already holds, and the grouped read still goes to the server's grouped query as before.

Findings:

  • should-fix S1: the View settings Group root row (and its outside-option label) shows the machine name of a non-column field picked there, because groupFieldLabel is not handed to ViewSettingsPopover. The body's "one groupFieldLabel for both editors" is inaccurate. Unpinned.
  • should-fix S2: the screenshots the card's acceptance asks for sit at a local path, not in the PR body.
  • nit N1: provenance is excluded through the four AUDIT_FIELD_NAMES. Legacy aliases in SYSTEM_MANAGED_FIELD_NAMES (modified_by, createdBy) would still be offered in the system tier if a definition carried them unhidden. The evidence shows none.
  • nit N2: ViewSettingsPopover's fallback groupFieldOptions(allFields, fieldOrder) defaults to types-known, so a host that passes no groupOptions and no types would draw "no field" rather than every column. ListView always passes groupOptions, and the component is not package-public.
  • nit N3: the Console list view: the personal "Group" picker offers formula fields, and picking one turns the whole list into a "数据加载失败" error page (the server refuses a formula group key since #29304) #32631 harness case for View settings no longer pins the pick's write. groupAddDefault-36204 pins it for that editor.
  • nit N4: the changeset headline reads feat(list) and the PR title fix(list). The level is patch either way.

Implemented-by: claude/project-thread-aumcb5
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob

VERDICT: PASS

The View settings menu labelled grouping levels from the columns only,
so a field the Group level now offers beyond them (the record owner, an
object field the view does not show) read as its machine name on the
menu's Group row and on its level. The host hands the popover the same
label function the toolbar editor uses.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXeD1yUYqBJm8uzRrP
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-22T04:45Z. Delta brief for the declaration-face reviewer on PR #36223 (TIER_DEFAULT), the same reviewer as the PASS record on 953c8cbf: judge head 89c829005b44d4ea22376b84608956a974345970, one commit on top of 953c8cb answering S1 (the View settings Group row showing a machine name for a non-column pick) and N4 (changeset headline). Name S1 and N4 closed or open by id, read the commit's whole diff for anything else it changes, read the check-runs on the new head, and render ONE delta ## Contract review record on it. Read-only, as before.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

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

Head-sha: 89c8290 · read 2026-11-22T04:47Z · prior delta ACCEPT 7074055354 @953c8cbf · delta 953c8cb..89c8290, one commit (the L2's S1) · card #36204 unchanged since 03:05:41Z

维护者速读

这次只修了一个显示问题。在「视图设置」里选一个不在列表列里的字段来分组,比如「记录负责人」时,分组那一行和这一级以前显示的是内部字段名(owner_id),现在显示字段的中文名。行为和上一版审过的一样,没有新的风险。

Must-fix

None.

Should-fix

None.

Nits

None.

Checked

  • ListView.tsx now passes groupFieldLabel to ViewSettingsPopover as well, so both Group editors label a level the same way.
  • In ViewSettingsContent, groupLevelLabel tries the host's label first, then the column label, then the field name. It is used for the menu's Group row and as the editor's fieldLabel.
  • The host's groupFieldLabel returns undefined for a field the reader may not read. The fallback then reaches the column list, which holds readable fields only, so the name shows, as objectui#11984 requires.
  • The new pin in groupAddDefault-36204 picks Record owner, which is not a column, in View settings. It asserts the level and the Group row read "Record owner" and never "owner_id", and that the write is the draft level only.
  • The changeset headline is now fix(list). The Clause-② line is unchanged and still right: groupFieldLabel is a prop of the popover, which is not in the plugin-list entry point.
  • CI on 89c8290: 52 success, 13 skipped, 0 failing. git merge-tree --write-tree --name-only origin/main 89c82900: clean.

Owed

The seat's declaration L2 delta, which runs in parallel. Fixes #36204 still applies.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 89c829005b44d4ea22376b84608956a974345970
Local-runs: none

This is a delta round on top of the PASS record on 953c8cb. That record found two should-fixes (S1, S2) and four nits (N1–N4). What I read this round:

  • the full diff 953c8cbf95bde0828c0fc321327f9a11b233a2c3..89c829005b44d4ea22376b84608956a974345970: one commit, 89c8290, 4 files, +29/−3;
  • the check-runs on the new head: 65 in all, 52 success and 13 skipped, none failed or pending. Type Check UI, Lint UI, Test UI, Check Changeset (both runs) and Governed Surface Queue Guard are among the successes.

The rest of the net diff is unchanged since 953c8cb, so every judgment in the earlier record still stands.

① Derived judgments

  • S1 is closed. The View settings Group row showed the machine name of a field picked from outside the columns.
    • ListView now passes its groupFieldLabel to ViewSettingsPopover.
    • The popover's new optional prop groupFieldLabel feeds groupLevelLabel, which is groupFieldLabel?.(name) || fieldLabel(name). groupLevelLabel labels both places that showed the name: the root menu's Group row value and the editor's outside-option label (fieldLabel={groupLevelLabel}).
    • The phone panel spreads the same element's props into ViewSettingsContent, so it gets the label too.
    • The rule from RestServer.normalizeConfig still casts crud / metadata / batch / routes instead of parsing them — batch.maxBatchSize bounds and three declared enums never execute #11984 still holds. groupFieldLabel returns undefined for a field the reader may not read, so the code falls back to fieldLabel. allFields does not carry that field, so the level shows the field name, as before.
    • A new test in ListView.groupAddDefault-36204 covers it: with compactToolbar, picking Record owner (owner_id, which is not a column) writes the level, and grouping-field-0 reads "Record owner". After options-back, the Group row reads "Record owner" and not owner_id.
  • Nothing else in the accept set moved. The toolbar editor, the click-asks-first behaviour, the type filter, the disabled state with its reason, the untyped cases, the draft-only write path and the i18n key are all untouched by this commit.

Public surface. groupFieldLabel on ViewSettingsPopoverProps is optional and additive. It is module-internal too: src/index.tsx does not re-export ViewSettingsPopover, so plugin-list's package exports stay unchanged. The surface the changeset declares therefore still matches the diff.

② Semver level

  • N4 is closed. The changeset's headline now reads fix(list), the same as the PR title.
  • The levels are unchanged and RIGHT under ruling A: @object-ui/components, @object-ui/plugin-list and @object-ui/i18n each take patch. The changeset still declares a metadata-protocol change of none, and the commit touches no spec, metadata or protocol path.

Clause-②: yes (widening) — RIGHT, unchanged. The one prop this commit adds is module-internal, so the declared surface still matches what the diff publishes.

③ Boundary flags

  • S2 (the screenshots sit at a local path, not in the PR body): the seat accepts it as disclosed. I do not re-grade it.
  • N1, N2 and N3 stay nits, unchanged by this commit.
  • No new dev flag, and no open_questions entry.
  • SQL push-down (Prime Directive 5): no finding. The commit only routes a label function; there is no new id materialisation, no join in the app, and the read path is unchanged.

Findings:

  • closed: S1, N4.
  • accepted by the seat as disclosed: S2.
  • nits, unchanged: N1, N2, N3.
  • new: none.

Implemented-by: claude/project-thread-aumcb5
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat landing · 2026-11-22T04:48Z · #36204, 添加分组, built to the card's current body (rewrite note 7072750584, claim amend 7073321855). "Add group field" has no default: the dropdown opens and only a pick groups the list. Escape writes nothing, and no request goes out before a pick. The dropdown offers only single-valued select, radio, boolean, toggle, user, lookup, master_detail and tree fields: the columns first in column order, then the object's other groupable fields, business before system. created_by and updated_by appear only when shown as columns. With nothing to offer, the button is disabled and says why (new key list.noGroupableFields). A field picked outside the columns shows its label on the toolbar editor and in View settings.

Reviews:

  • L1-b: ACCEPT on the first build, withdrawn 7073329852 when the card was found rewritten; delta ACCEPTs 7074055354 (953c8cb) and 7074379621 on this head.
  • Contract L2 (declaration face, TIER_DEFAULT): FAIL 7073316679 on 0d8fc77 (built to the card's first version). Delta PASS 7074084200 on 953c8cb closed all eight earlier findings and raised S1, a machine name on the View settings Group row. Delta PASS 7074385040 on this head closes S1 and N4. S2 (screenshots in the project folder, not as images on the PR) is accepted as disclosed; N1–N3 stay nits.

Gates on this head (89c82900):

  • check-governed-merges --pr 36223 reads NOT governed (849 changed lines).
  • K = 11 first-parent commits since the merge base; mergeable clean against current main; no translations/ or skills/ path.
  • All check-runs on their latest runs are success (50) or skipped (11).
  • Changeset: patch, Clause-②: yes (widening) (GroupingEditor's optional props and the i18n key), Metadata-protocol: none.

The seat readies this PR and arms auto-merge in the same step. The PR carries Fixes #36204.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 22, 2026 04:49
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 4099ef2 Nov 22, 2026
66 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-aumcb5 branch November 22, 2026 05:09
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…sole build (objectstack-ai#36288)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X6okWxYPWAsooBsJoAhnT1u)_

Fixes objectstack-ai#35280

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 控制台用户打开「帮助 → 关于」时,先看到 ObjectStack 版本号(如 18.5.0),再看到原有的控制台构建号;以前只有构建号。
- 属于控制台体验修缮:管理员和支持人员查版本、做升级核对时不必再去调接口。
- 若读取失败,版本一行会用文字说明「未知版本」,不会留空;改动只在对话框内,可直接撤回。
- 无。

## What changes

Help → About now opens on an **ObjectStack version** row, then the
existing **Console build** row.

- The version is the `version` the discovery document answers, shown
verbatim (an operator's `OS_RUNTIME_VERSION` stamp included, per ruling
A on objectstack-ai#34774). It is read through the shell's adapter
(`useAdapter().getDiscovery()`), which returns the document the
adapter's `connect()` already holds from the console's one shared
discovery read (`getSharedDiscovery`). Opening the dialog sends no new
request, and no second version source is added.
- While the read is in flight the row shows `common.loading`. When
discovery cannot be read (the adapter answers `null`) or names no
version, the row says so in words: "Unknown version (the server did not
report one)". The field is never empty.
- New keys `help.aboutVersion` and `help.aboutVersionUnknown` in all
eleven packs (zh-Hant regenerated with `gen:zh-hant`).
`help.aboutDescription` now names both rows.
- `AboutDialog.tsx`'s module doc no longer says the shell has no request
that reads the runtime version.
- The bug-report and feature-request templates' Version hint now points
at "the ObjectStack version shown under About".
- No server, `packages/spec` or discovery-shape change. No props or
exports change.

Files to read first, by risk:

1. `ui/packages/app-shell/src/layout/AboutDialog.tsx`: the
`useRuntimeVersion` hook (the read, the `undefined`/`null`/string
states) and the two `dl` rows.
2.
`ui/packages/app-shell/src/layout/__tests__/AppHeader.aboutBuild-12970.test.tsx`:
the new top-level describe.
3. `ui/packages/i18n/src/locales/en.ts`: the three `help.about*` lines
(the other ten packs mirror them).

Two-minute check: run `pnpm --dir ui exec vitest run
packages/app-shell/src/layout/__tests__/AppHeader.aboutBuild-12970.test.tsx`.
You should see 15 tests pass. Or open Help → About in a running console:
the first row is "ObjectStack version" with the same value as `GET
/api/v1/discovery`, and "Console build" is the second row.

## Tests

The new pins are a top-level describe in the existing About harness,
`AppHeader.aboutBuild-12970.test.tsx`. They are not in a sibling file
because AGENTS.md puts a new pin into a component's existing shared
harness (ruling record 6583487846). The new cases check:

- Discovery answering `18.5.0`, and a stamped `18.6.0-rc.2+deploy.41`,
fills the first row with exactly that text. The `dt` order is version
then build, and the build row still shows its sha.
- Discovery that cannot be read (`null`), that names no version, or that
names an empty version shows `help.aboutVersionUnknown`, never an empty
field.
- While the read is pending the row shows `common.loading`.

<details><summary>Local runs at head 3298438, under the shared verify
lock</summary>

- The pin file: Test Files 1 passed (1), Tests 15 passed (15).
- `pnpm --dir ui exec vitest run packages/i18n/`: Test Files 105 passed
(105), Tests 1962 passed, 13 skipped. This covers the key-parity suites.
- `pnpm --filter @object-ui/i18n type-check` exit 0. `pnpm --filter
@object-ui/app-shell type-check` exit 0 (both `tsc` programs, including
`tsconfig.test.json`).

</details>

<details><summary>Ablation, one mutation per leg, each landed and
restored on disk by scripts/ablation-replace.mjs</summary>

Each mutation was restored and checked: blob equals HEAD 0aabb59
and `git diff HEAD` is empty.

| Mutation | Pin file result |
|---|---|
| read: `setVersion(discoveryVersion(discovery))` becomes
`setVersion(null)` | 2 failed, 13 passed |
| fallback: `help.aboutVersionUnknown` becomes `common.loading` | 3
failed, 12 passed |
| loading: loading text becomes `null` | 1 failed, 14 passed |
| order: build row moved above the version row | 2 failed, 13 passed |

</details>

## Acceptance notes

- The discovery read reuses the adapter the help menu already holds.
Nothing in the shell kept the parsed discovery document in React state:
`useDiscovery` in `@object-ui/react` reads `SchemaRendererContext`,
which the console header does not sit under. `adapter.getDiscovery()` is
the existing holder.
- `.github/ISSUE_TEMPLATE/**` is not a governed surface: it has no row
in `GOVERNED_SURFACES`, which holds only `.github/workflows/**`. The
wording change is in this PR.
- No `content/docs/frontend` page or package README names the About
dialog, so no docs page changes.
- Not measured locally:
- `pnpm check:type-check-debt`: exit 3, PREREQUISITE NOT MET. Its
closure build never got the verify lock (queue-timeout).
- `pnpm --dir ui exec vitest run scripts/`: lock queue-timeout, exit 99.
This diff touches no `ui/scripts/` file.
  - CI's Test UI and the type-check lanes run both of these.

## Verification

<details><summary>Local gate subset (derived by dispatch-gates
--commands from this diff)</summary>

- 46 of the 48 derived commands, plus `pnpm check:changeset-fixed`,
exited 0. This includes `check:adr-0087-registration --base
origin/main`, `check-empty-changeset`, `check-changeset-no-major`,
`check:nul-bytes`, `check:cross-package-test-inputs`,
`check:published-files`, `check:type-check-coverage` and
`check:undeclared-dep-imports`.
- Two commands were not measured, both listed above.
- `ui` `check:new-line-citations`: 0 new citations.
- `overlap-check`: VERDICT clean (main and objectstack-ai#36234 / objectstack-ai#36223, which share
the locale files, merge cleanly).

</details>

Session: session_01FEkQ5oK4fFfnLADcipbEeT · dispatched by
repo:objectstack#4 area a4-H.

---------

Co-authored-by: Claude <noreply@anthropic.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…he Chinese stream says 动态 (objectstack-ai#36317)

repo:objectstack#4 · os-project-manager ·
session_01FEkQ5oLLK7uoxp33riiBJL
<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XTRdLmK9YYgMSCJ7NH2PuUY)_
Fixes objectstack-ai#36148

Clause-②: no
Metadata-protocol: none
Ruling-ref: 7074372050

## 维护者速读

- 记录页「动态」里的筛选从「全部 · 活动 · 讨论 · 变更」改为「全部 · 事件 · 讨论 · 变更」,英文
Events;中文的空状态改为「暂无动态」,旧标题、无权限、加载失败和筛选读屏标签都改说「动态」。
- 按你 04:45 选的 A(「A 改叫「事件」」)执行;每个筛选装什么不变,「变更」仍只放带前后值的字段变更(objectstack-ai#30074 裁定 C)。
- 出错时最坏是某个语言的筛选或空状态字眼不对,不影响数据;只改语言包的值和一处英文兜底,可直接撤回。
- 无

## What changes

- `detail.streamActivity` (the stream's events chip): zh-Hans and
zh-Hant 「事件」, en `Events`, and each other pack's own word for events: de
`Ereignisse`, es `Eventos`, fr `Événements`, ja `イベント`, ko `이벤트`, pt-BR
`Eventos`, ru `События`, ar `الأحداث`. The row reads 「全部 · 事件 · 讨论 ·
变更」. What the chip holds is unchanged (ruling 6649643659 on objectstack-ai#30074,
option C).
- zh-Hans and zh-Hant only, the rest of the stream takes the tab's word:
`detail.noActivity` 「暂无动态」 / 「暫無動態」 (the panel's one empty state, drawn
under every chip), `detail.activity` 「动态」 / 「動態」 (now equal to
`detail.timeline`, as in the other nine packs),
`detail.activityAccessDenied`, `detail.activityLoadFailed` and
`detail.filterActivity` say 动态. The other packs keep those four values.
- `RecordActivityTimeline.tsx`: the events chip's in-code English
fallback follows the pack (`'Events'`); comments naming the chip row
updated there and in `recordTimelineStream.ts`.
- Values only: no key added, renamed or removed. zh-Hant matches what
`gen:zh-hant` writes (the generator left the pack unchanged after the
edit).

Read first, by risk:
1. `ui/packages/i18n/src/locales/zh-Hans.ts` — the six `detail` values.
2. `ui/packages/i18n/src/locales/en.ts` — `streamActivity: 'Events'`.
3. `ui/packages/i18n/src/__tests__/timelineFilterWording-36148.test.ts`
— the new pins.

Two-minute verification: `pnpm --dir ui exec vitest run
packages/i18n/src/__tests__/timelineFilterWording-36148.test.ts` from
the repo root; expect 16 passed.

## Tests

- New `timelineFilterWording-36148.test.ts` (i18n): in zh-Hans and
zh-Hant no string the stream draws (title, chips, empty, access-denied,
load-failed, filter label) says 活动 / 活動, and the chip, empty state and
title read 事件 / 暂无动态 / 动态; en names the chip Events; in every pack the
events chip differs from the tab word, the stream title and the
field-history chip.
- Old pins updated to the ruled words: `ActivityTimeline.i18n.test.tsx`
(zh empty state), `ActivityTimeline.remainingLiterals.i18n.test.tsx` (zh
card title, whole zh card text, chip group label),
`detail-landmark-aria-i18n-4645.test.tsx` (zh landmark name).
- Ablation (one-off, not kept): zh-Hans `streamActivity` set back to
「活动」 on disk after the commit: 2 failed / 14 passed ("no string the
stream draws says 活动", "the chip reads 事件 …"); restored with `git
checkout HEAD --`, 16 passed.

## Acceptance notes

- Done-when, measured live: hotcrm (18.6.0 server, `pnpm dev` on a fresh
database) with this branch's Console source (Vite, `DEV_PROXY_TARGET` to
the hotcrm server), a zh-CN browser, admin user, a seeded lead. The
record tab row reads 「线索 · 客户 · 活动 · 活动参与者 · 任务 · 营销活动成员 2 · 动态 2」 and
the stream heads 「动态 (2)」. Every 活动 on the page is one of hotcrm's own
labels (the `crm_event` tab and nav entry, 活动参与者, 营销活动成员, 销售活动). On this
page the 动态 tab is a slotted page's `record:chatter`, which since objectstack-ai#36221
lists the system history alone, so no chip row draws there; the chips
and empty state are pinned by the tests above rather than by this page.
- Out of the claim's declared surface (locale packs):
`ui/packages/plugin-detail/src/RecordActivityTimeline.tsx` (the en
fallback, named by the ruling),
`ui/packages/plugin-detail/src/recordTimelineStream.ts` (comments only)
and three plugin-detail pin tests. None is a seat-1 hot file.
- Out of the claim's declared surface, added at `dd26af31`:
`ui/packages/components/src/renderers/layout/containers.tsx`,
`KNOWN_LABEL_DICT` `Activity` 「活动」/「活動」 → 「动态」/「動態」, with
`@object-ui/components` in the changeset. Why: it is the page-tab
strip's own copy of the label, read ahead of the pack, so without it an
authored `Activity` tab kept 活动 and
`page-tabs-builtin-label-i18n-4645.test.tsx` went red on `12a825da`
(Test UI 4/16). Ruling 7074372050 item 3 sets an authored `Activity` tab
to 动态, the same word as `detail.timeline`. Claim amended on objectstack-ai#36148 for
this file and `RecordActivityTimeline.tsx`.
- Residual (stated, not a defect): in zh an `Activity` tab and the
`Activity stream` tab both read 动态. Both draw on one strip only when a
page author writes both labels. Measured: the synthesized record page
writes only `Activity stream` (`buildDefaultPageSchema.ts:1094`); no
authored `Activity` page tab in `examples/**` or hotcrm (the
`'Activity'` hits are an object label and a nav group). The equality is
the ruling's choice (item 3).
- Not changed, measured: `useDetailTranslation.ts` has no
`detail.streamActivity` default, so there is no second English fallback
for the chip.

## Verification

Readings at head `12a825da`, taken under `scripts/pm/os-verify-lock.sh`
(shared box).

<details><summary>Packages (green)</summary>

- `pnpm --dir ui exec vitest run packages/i18n/`: Test Files 106 passed
(106); Tests 1978 passed, 13 skipped.
- `pnpm --dir ui exec vitest run packages/plugin-detail/` before the pin
updates: 4 failed in the two `ActivityTimeline` i18n files (old zh
strings), 405 files passed; after the updates those two files: 20 passed
(20).
- `pnpm --filter @object-ui/i18n run type-check` (both projects): exit
0. `eslint` on the 10 touched TS files: 0 errors (one pre-existing
`react-refresh` warning at `RecordActivityTimeline.tsx:263`, an
untouched line).
- `node ui/packages/i18n/scripts/gen-zh-hant.mjs`: no file changed.

</details>

<details><summary>Derived gates</summary>

- `node scripts/pm/dispatch-gates.mjs --commands` derived 41 commands
for this diff; all 41 ran and exited 0, among them `check:nul-bytes`,
`check:published-files`, `check:cross-package-test-inputs`,
`check:test-source-alias`, `check:type-check-coverage`,
`check:type-check-debt` (0 entries re-measured, none above its number),
`check-sdui-manifest`, `check-adr-0087-registration --base origin/main`,
`check-empty-changeset --base origin/main`, `check-changeset-no-major
--base origin/main` and `pnpm --dir ui exec vitest run scripts/` (Test
Files 172 passed, 2 skipped; Tests 5122 passed, 2 skipped).
- `--ran` reconciliation: 41 derived, 41 run, 0 NOT-MEASURED, 0 UNRUN,
every line carrying its exit code.
- `node scripts/pm/overlap-check.mjs
--branch=claude/project-thread-r2g68m`: VERDICT clean against
origin/main and the three open PRs that share the locale files (objectstack-ai#36295,
objectstack-ai#36288, objectstack-ai#36223).
- Type-check lanes, `check:i18n` (its prerequisite is the CLI build
closure; this diff touches no `translations/*.generated.ts`) and the
repo-wide lint are CI's.

</details>

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

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

https://claude.ai/code/session_01FEkQ5oHi42qJhgAop8CaLs

---------

Co-authored-by: Claude <noreply@anthropic.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…the default list toolbar (objectstack-ai#36339)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XURgXCZHcjPoyo5g9cMEATi)_
Fixes objectstack-ai#36002

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 列表默认工具栏里,看板、日历这类视图如果除了刷新外没有别的显示选项,就不再出现一个点开只有底栏的空「显示」入口;宽工具栏的刷新按钮照旧。
- 属于「列表页重做」专题:两行工具栏按「刷新去掉」落地后剩下的收尾。
- 出错时最坏是这类视图少了「显示」入口,而它本来就没有可用的选项;改动小,可整体撤回。
- 无。

## What changes

- `ui/packages/plugin-list/src/ListView.tsx`: `displayOffered` no longer
ORs `toolbarFlags.showRefresh`. The default (Display) toolbar has no
Refresh since the two-row toolbar landed, neither on the bar nor in the
panel (`viewSettingsElement` is handed no refresh prop), so the key was
the only reason a non-grid view with every other Display control off
drew a Display entry that opened onto just the footer. The stale Refresh
comment ("in the Display form it sits in the panel's footer") now says
Refresh is wide-form only.
- `packages/spec/src/ui/view.zod.ts`: the `userActions.refresh` describe
says the toggle governs only the wide toolbar's Refresh
(`compactToolbar: false`) and changes nothing in the default toolbar.
Description text only: key, type and default unchanged; no retirement
(card item 2, first branch, per the claim).
- `packages/spec/src/ui/view.form.ts`: the form hint for
`userActions.refresh` mirrors the new describe. Required, not chosen:
`src/ui/view-form-composite-children.test.ts` pins every `userActions`
hint equal to the schema description it replaces, and went red without
it.
- Regenerated, never hand-edited:
`content/docs/references/ui/{view,page}.mdx` (`check:generated --fix`,
which named only `check:docs` stale) and
`packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts`
(`node scripts/check-i18n-bundles.mjs --write
--filter=platform-objects`; the other ten locales keep their
hand-written translations, no source-hash entries exist for this leaf).
- Pin: a new top-level block `ListView.refreshOnlyDisplay-36002` in the
shared `ListView.harness.test.tsx` (the harness rule: a ListView pin
that needs no `vi.mock` joins that file). A kanban view with Group, Row
height and Hide fields off and `refresh` at its default draws no
`toolbar-display-trigger`; CONTROLS: `compactToolbar: false` still draws
`refresh-button`, and the same view with Row height on draws the Display
entry.
- Changeset `.changeset/36002-refresh-display-panel.md`: patch for
`@object-ui/plugin-list`, `@objectstack/spec`,
`@objectstack/platform-objects`.

Read first, by risk:
1. `ui/packages/plugin-list/src/ListView.tsx`, the `displayOffered`
hunk: the one behaviour change.
2. `packages/spec/src/ui/view.zod.ts`, the `refresh` describe: a
published-schema text face (contract review on record before landing).
3. `ui/packages/plugin-list/src/__tests__/ListView.harness.test.tsx`,
the new block at the end.

## Tests

Final head: `75244b315e1d79c1455fbd2d343e00be5fbcbf8b` (declared by the
resuming thread; no commit added after the handover).

- CI at `75244b31`: all 70 check-runs completed, each `success` or
`skipped` (Test Core 10/10 shards, Test UI 16/16 shards, Type Check UI,
Lint UI, Build & E2E UI, Live E2E UI, Lint & Repo Gates, TypeScript Type
Check, Check Changeset, Spec property liveness, Governed Surface Queue
Guard, PR-body guards).

<details><summary>Local readings (all under
scripts/pm/os-verify-lock.sh)</summary>

- Final-head union at `75244b31`, after building the
`@objectstack/platform-objects...` and `@object-ui/plugin-list^...`
closures (VERDICT command-exit 0): `pnpm --filter @objectstack/spec
test` Test Files 869 passed (869), Tests 27877 passed, 1 todo (27878);
`pnpm --filter @objectstack/platform-objects test` Test Files 125 passed
(125), Tests 2126 passed (2126); harness file
`ListView.harness.test.tsx` Test Files 1 passed (1), Tests 127 passed
(127). Each VERDICT command-exit 0.
- Harness file `ListView.harness.test.tsx`: Test Files 1 passed (1),
Tests 127 passed (127) at fa1bd43 (the fix commit).
- `pnpm --filter @object-ui/plugin-list test`: Test Files 183 passed
(183), Tests 1998 passed (1998) at d6ea716 (later commits touch no
`ui/` file).
- `pnpm --filter @object-ui/plugin-list type-check`: exit 0 at d6ea716.
- `pnpm --filter @objectstack/spec typecheck`: exit 0 at d6ea716.
- `pnpm --filter @objectstack/spec test` at d6ea716: 1 failed
(`view-form-composite-children.test.ts`, the hint pin), fixed by
e680c59; that file then 20 passed (20).
- `pnpm --dir ui exec vitest run scripts/`: 172 passed, 2 skipped (174
files) at d6ea716.

</details>

<details><summary>Ablation (one-shot, not kept)</summary>

Committed fix first, then `node scripts/ablation-replace.mjs` put `||
toolbarFlags.showRefresh` back into `displayOffered` (anchor x1 -> x0,
blob d73fea0 -> bdd2b94ef1ae). With `-t refreshOnlyDisplay-36002`:
the pin went red (`the default toolbar draws no Display entry when
Refresh was its only option` failed), both CONTROLS stayed green; 1
failed / 2 passed. Restore: blob == HEAD (d73fea0), `git diff HEAD`
empty; re-run 3 passed. The test imports `../ListView` (source), so no
dist rebuild was in the path.

</details>

## Acceptance notes

- Card acceptance 1 ("A view whose only display option was Refresh no
longer opens an empty Display panel in the default toolbar"): pinned by
the new block, ablation red without the fix. Only non-grid views can
reach it: the grid always offers Display (`currentView === 'grid'`, its
columns).
- Card acceptance 2 ("The key's describe matches what it does"):
describe, form hint and generated references now say wide-toolbar only.
- Skills/docs measured for text claiming `userActions.refresh` governs
the default toolbar: zero hits in `skills/**`, `content/docs/**`
(outside `references/` and `releases/`) and `ui/**/*.md`; control term
`userActions.editInline` hits
`content/docs/frontend/plugins/plugin-view.mdx`. No stale text to name.
- Noted, not filed: the ten translated locales of the
`userActions.refresh` form hint still carry only the first sentence
(still true, now less precise than English). Translation is a
translator's edit, outside this card.
- Noted, not filed: the spec describe of `compactToolbar` ("Collapse
Group/Color/Density/Hide-fields into a single View settings popover")
does not say that collapsing is the renderer default
(`schema.compactToolbar !== false`) nor that Refresh is dropped;
observation only.
- File surface beyond the first claim:
`packages/spec/src/ui/view.form.ts` and the regenerated
`en.metadata-forms.generated.ts`, both forced by the hint pin above; the
seat amends the claim.
- Overlap: `node scripts/pm/overlap-check.mjs` re-run at `75244b31`:
VERDICT clean against `origin/main` b3bcfef and objectstack-ai#36343 (shares
`ListView.tsx`), merges cleanly. Earlier run: clean against objectstack-ai#36223
(since merged).

## Verification

Two-minute check: `cd ui && pnpm exec vitest run
packages/plugin-list/src/__tests__/ListView.harness.test.tsx -t
refreshOnlyDisplay-36002` shows 3 passed. In the Console, a kanban list
view with `userActions: { group: false, rowHeight: false, hideFields:
false }` shows no Display button beside the view name; set
`compactToolbar: false` and the Refresh button appears on the bar.

<details><summary>Gates</summary>

- `node scripts/pm/dispatch-gates.mjs --commands` on the final diff: 119
commands; all run locally; `--ran` reconciliation "119 derived
famil(ies) accounted for — 119 run, 0 NOT-MEASURED".
- Exit 0: 115. Exit 3 (PREREQUISITE NOT MET, NOT MEASURED locally, CI
measures): `node scripts/check-plugin-teardown-shape.mjs --self-test`
(shallow clone cannot reach its pinned fixture commit), `pnpm
check:dual-build-cjs-loads` (whole-tree dist absent), `pnpm
check:type-check-debt` (re-measure needs the whole build), `pnpm
--filter @objectstack/spec run check:skill-examples` (client-react dist
absent).
- `pnpm --filter @objectstack/spec check:generated`: all 14 generated
artifacts up to date; `node scripts/check-i18n-bundles.mjs`: OK, all
bundles in sync.
- `node scripts/pm/dispatch-gates.mjs --tier` re-derived at `75244b31`
by the resuming thread: no path-derived mandate (default tier).

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- signed: repo:objectstack#7 · zhuangjianguo ·
session_01QsR2jRPEaXTds3tgVP5XEY -->

---------

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/l tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants