Skip to content

feat(kanban): the board's own view settings, lane header create and menu, and a lane statistic - #36411

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

objectstack-fleet[bot] merged 22 commits into
mainfrom
claude/project-thread-klklkh

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Steedos · project thread

repo:objectstack#7 · zhuangjianguo · session_01QsR2jRKaa4gJCNNF5QMd8t

Fixes #36370

Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: carried by #36422

Claim: 7076741092

维护者速读

What changes

1. The board's own 视图设置 (plugin-list). ViewSettingsPopover takes a kanban prop (ViewSettingsKanban); ListView builds it on a board, and the panel then draws, in place of the table's columns, Group, Row height and Row colour:

Row What it writes
分列字段 (lane field) groupByField, from the object's select and radio fields, and drops lanes with it
显示哪几列 5 / 7 lanes: hide, show (at the end), drag to reorder, 「显示全部」; the last shown lane has no eye; undefined when the list is every option in its own order
卡片上显示的字段 columns: drag, hide in place, 「+ 添加字段」 adds at the end
显示字段名 / 隐藏空字段 showFieldLabels / hideEmptyFields: false when turned off, absent when on
列底统计 summary: none, count, or the sum of a field the aggregate table's sum row accepts (a number or currency; no percent, formula or yes / no field); None over a view with summarizeField writes { type: 'none' }

ListView gains onKanbanChange(patch) (null in a patch means the key leaves the block) and laneCollapseKey. The phone settings sheet shares ViewSettingsContent, so it shows the same board rows. FieldList gains hiddenTitle and typeIcons so the lanes list reads 「隐藏的列」, draws no field-type icon, and carries the line 「隐藏的列里的卡片会显示在「未分类」。」

Lane fields left out. A lookup, user, master-detail or tree field draws no sensible lanes yet: the board keys a lane on the stored value, and an expanded reference is an object (measured live: [object Object] lanes). A boolean has no options to title its lanes. So the picker offers select and radio only, and #36430 carries the reference lanes. An authored lookup groupByField draws wrong today, independently of this PR.

Hiding a lane. lanes keeps its #28211 meaning: it picks lanes, not records, so the cards of a hidden lane show under 「未分类」. The 「⋯」 item reads 「隐藏这一列」 with 「这一列的卡片会移到「未分类」」 under it, and the lanes level says the same.

2. Lane header 「+」 and 「⋯」 (plugin-kanban). ObjectKanban takes the host's laneMenu request (KanbanLaneMenuRequest: collapseKey, onHideLane, onCreateInLane), relayed to KanbanImpl over a package-private context (the KanbanColumnSummary pattern; never a node key). Without it no header draws either control. 「+」 reports its lane; an empty lane also gets a 「+ 新建」 row. 「⋯」 holds 折叠这一列 / 展开这一列 and 隐藏这一列; the Uncategorized lane offers collapse only. Collapse is kept per browser under objectui:kanban-lanes-collapsed:<collapseKey>, written only after a user toggle; ListView passes <user id>:<object>:<view>, the view named by the host's laneCollapseKey (the Console passes the view's id), else the schema's id, else -; a signed-out reader is -. A collapsed lane's heading opens it again, and an open lane keeps its bare title. ListView wires create as onEdit({ [laneField]: value }), the seeded-record create the calendar already uses (objectui#12291), and hide as unticking the lane (at least one lane stays).

3. The lane statistic and the card toggles (plugin-kanban). summary draws at each lane's foot ([data-kanban-lane-statistic], 「计数 2」, 「合计 · 金额 ¥40」) and replaces the summarizeField header total; { type: 'none' } draws neither. laneStatistic(cards, field, type) counts or sums. count is the lane's own count, the server's where the board pages the lane, and a windowed count reads +. sum totals the cards the lane has loaded, not every record of the lane: a windowed lane's sum says so, 「合计 · 金额 · 仅已加载的卡片」 (data-kanban-lane-statistic-partial), rather than a + on a sum, and the summary docblock and .describe() say the same. Why no push-down here: the board has no lane aggregate read today, and adding one (one grouped sum over the view's filter, answering every lane) is the next stage. Per the maintainer's ruling of 13:52Z (「还没开工的不应该开工啊,分多个阶段的只做完当前阶段」) and seat 7's ruling on L2 S3, this PR ships the current stage only and #36520 carries the server lane statistic: the whole-lane sum, then average, minimum and maximum. Those three are not admitted by the schema meanwhile: over the loaded cards of a windowed lane they would be wrong with no honest marker. showFieldLabels: false draws card values without their names (KanbanCardDisplayContext); hideEmptyFields: false keeps an empty field's line with a dash. Without the keys, boards draw as before.

4. The draft (app-shell). The board's changes are a list-draft part: ListDraft.kanban holds only the changed keys (nextKanbanDraft drops a key changed back to the view's own as the board draws it, kanbanViewOptions, so an auto-detected lane field picked back is no change; null = removed). objectViewListRenderer lays it over the view's block (layKanbanDraft) and wires onKanbanChange; ObjectView hands it to 「保存到这个视图」 and 「另存为我的视图」 as display.kanban, and Discard drops it. On a board whose view declares no kanban block (or one without groupByField), the lane field is auto-detected, so the draft holds no lane; kanbanDraftToSave lays the lane the board draws under the draft, so a saved block carries the groupByField KanbanConfigSchema requires whenever the board draws one (a view naming no lane on an object with no detectable lifecycle field draws no lanes, and a save there is refused by the server as before) (found in the L2 of 7258985; red without the fix on both save paths, pinned). ListDraftActions lists the part as 「看板设置」.

5. In-surface fixes: both producers relay the board block. kanbanViewOptions (Console) relayed the lane field, title, card fields and summarizeField but never lanes, so a Console board drew every option whatever the view declared (#28211). It now relays lanes (a non-empty array) and the three new keys, each only when declared. plugin-view's ObjectView#generateViewSchema (Studio preview, SDUI object-view) relays summary, showFieldLabels and hideEmptyFields the same way, so summary: { type: 'none' } hides the header total there too. This is the relay #36426 asks for; #36426 holds no claim naming this branch, so the seat closes it.

6. Lint (@objectstack/lint). validate-list-view-field-refs walks kanban.summary.field as a field reference (error, the columns[].summary.field level: a stale name draws nothing, so the statistic the author asked for is gone without a word), and refuses, under list-view-summary-field-type-refused at kanban.summary, a sum over a field the aggregate table's sum row refuses and over a boolean or toggle field, which the table admits but the board does not add (the picker leaves them out the same way). os explain names the position.

7. Spec widening (@objectstack/spec). KanbanConfigSchema gains summary: KanbanLaneSummarySchema.optional(), showFieldLabels: z.boolean().optional(), hideEmptyFields: z.boolean().optional(), no defaults. KanbanLaneSummarySchema is a discriminated union of none, count and sum with a required non-empty field (exports KanbanLaneSummary and KanbanLaneSummaryParsed). Regenerated: authorable-surface/ui.json, api-surface, export-origins, the strictness ledger, content/docs/references/{ui/view,api/protocol,data/object,index}.mdx. variant-docs.json gains the union's row (generated-reference-only; the teaching is #36422). Liveness: the kanban row of liveness/view.json names each key's read points on both producers.

Seat rulings this PR follows

Both from seat 7 (domain:objectstack seat 7, thread session session_01QsR2jTeURPvEm465RcoYEC), in the #36370 card thread at 2026-11-22T11:19Z, answering this PR's two questions:

Also followed: seat 7 on L2 S3 (2026-11-22T16:41Z): carrier, no push-down in this PR, current stage only; #36520 filed.

Left out (stated)

Tests

  • plugin-kanban/src/ObjectKanban.laneMenu-36370.test.tsx (4): no controls without laneMenu; 「+」 and the empty-lane row report their lane, an open lane's heading is no disclosure; 「Hide column」 reports its lane, Uncategorized offers collapse only; collapse persists under the host key, reopens from the heading, another key is unaffected.
  • plugin-kanban/src/ObjectKanban.laneStatistic-36370.test.tsx (7): count, sum (in place of the header total), none (also over summarizeField), a partial sum worded as the loaded cards' with its CONTROL, the two toggles and their defaults; laneStatistic units.
  • plugin-list/src/__tests__/ViewSettingsPopover.kanban-36370.test.tsx (6) and ListView.kanbanSettings-36370.test.tsx (3): the board rows and none of the table's; the lane field picker offers select and radio only; the statistic offers number and currency sums and no percent, formula or boolean; lanes hide/show/keep-last with the 「Hidden columns」 heading and no type icon; card fields hide/add; toggles and statistic writes; the collapse key per reader, object and view; the zh pack names every row.
  • plugin-view/src/__tests__/ObjectView.harness.test.tsx (+1): the three keys reach the generated board node when declared, none when not.
  • app-shell/src/views/kanbanDraft-36370.test.ts (7) and ObjectView.kanbanSaveAs-36370.test.tsx (3; the first red without the save-as fix, the other two red without kanbanDraftToSave: 「另存为我的视图」 and 「保存到这个视图」 on a board with no kanban block store groupByField): the draft keeps changed keys only; lay with null; Save lays the draft into a body ListViewSchema accepts; 「另存为我的视图」 on a package board writes nothing before Save and stores the board's changes; the kanbanViewOptions relay and its omissions.
  • packages/spec/src/ui/kanban-config-lane-summary.test.ts (4) and packages/lint (+5 cases): the schema takes none, count and a field's sum and refuses avg/min/max, a fieldless sum and a stray key; lint's stale-field row, the sum-type verdict, and a sum over a boolean and a toggle refused at kanban.summary.
  • After the L2 of 7258985 (this head): @objectstack/lint validate-list-view-field-refs.test.ts 199 / 199; the 32 app-shell files naming kanban, the draft, personal views, save-as, shared-view save, the footer calculation draft, the stored row or view options, 269 / 269; @objectstack/spec src/ui 185 / 6568; check:generated all 14 up to date; eslint on the moved files 0 errors.
  • Suites on the earlier head: plugin-kanban 83 files / 546 tests, plugin-list 186 / 2027, plugin-view 66 / 730, @object-ui/i18n 106 / 1978, @objectstack/lint 225 / 9431, @objectstack/spec 964 / 29475, and the app-shell test files naming kanban, the list draft, personal views or the relay; type-check of plugin-kanban, plugin-list, plugin-view, i18n, app-shell and lint exit 0. dispatch-gates --ran: 121 derived, 121 run, 0 NOT MEASURED. overlap-check: merges cleanly with main; fix(spec)!: retire columnState from the stored view row #36435, feat(console): the app's menu is edited in the design mode (#36363) #36437 and feat(automation): the stage confirms name the flows a move would start (#35928) #36316 meet it only on generated counts and the de quote-pair pin, which the second to land regenerates.

Verification (live)

Head 9f8726f1ec is a merge of main (65ce7983) on top of 16a019dc05, with no code change. It resolves the de quote-pair pin to 127 (main's 125 plus this PR's two spans) and regenerates the deferred references and authorable-surface/ui.json. The test and live readings below stand from 16a019dc05. On the merged tree, ObjectView.kanbanSaveAs-36370, kanbanDraft-36370, plugin-view ObjectView.harness and de-quote-pairing-3876 were rerun (4 files, 139 tests, all green), check:generated reports all 14 artifacts up to date, and overlap-check is clean.

Head dd9e0bb782 is a second merge of main (84853fd1), with no code change. It clears the runner-shutdown cancel on 9f8726f1's Type Check · workspace. The merge was textually clean. view.mdx and object.mdx were regenerated, and check:generated is clean. On the merged tree, vitest over i18n, plugin-kanban, ObjectView.kanbanSaveAs-36370 and objectViewOptions passed (190 files, 2527 tests). overlap-check is clean against main and open PRs.

Local backend (objectstack dev --seed-admin --fresh) and the Console in zh (CNY), signed in as the seeded administrator, at the code of 16a019d. Two boards: the CRM example's pipeline (a view the read-only CRM package ships) and a self-built app made through the administrator's own doors (POST /api/v1/packages for package com.qa.board36370, then PUT /api/v1/meta/object/qab_task, PUT /api/v1/meta/view/qab_task.board and PUT /api/v1/meta/app/qab_app into it, five records by POST /api/v1/data/qab_task; lane field 阶段 = 待办 / 进行中 / 评审 / 完成, card fields 名称 / 工时 / 备注, 备注 empty on three cards).

Screenshots are not inline. GitHub has no API that uploads an image into a PR body (the user-attachments upload is the browser's only), and AGENTS.md's 「Delete temporary artifacts — screenshots…」 rule keeps them out of the branch. They are in the project folder issue-36370/ under the names given below; the seat weighs this against the card's 「PR 正文附视图设置和列菜单的截图」.

Writes are read off the browser's network log. The only writes not listed are the reader's recent-items rows (sys_user_preference, written when a page opens, before any change).

CRM pipeline (first run):

  • 视图设置 shows 分列字段 阶段, 显示哪几列 5 / 5, the card fields, both toggles and 列底统计; no 显示的列, 分组, 行高 or 行颜色. The lane field picker offers 阶段 and 审批状态 (both select). The statistic offers 无, 计数, 合计 · 金额 and 合计 · 产品合计. (settings.png, settings-lane-field.png, settings-summary.png)
  • On the package view: hiding 输单, turning 显示字段名 off and picking 计数 apply at once (4 lanes plus 未分类, no dt, 计数 1 / 2 / 1 / 7 / 1) with no write; 放弃 restores every lane, label and the header total with no write. Save offers 另存为我的视图 alone. (settings-lanes.png, board-sum-nolabels.png)
  • 另存为我的视图: one POST sys_personal_view; the new view opens with the changes and keeps them after a reload. This run found the path dropped the board part; fixed in ObjectView#handleSaveAsMyView and pinned. (board-saved-reload.png)
  • On that own view: 合计 · 金额 at each foot; 保存到这个视图 writes one PATCH sys_personal_view, kept after a reload. (save-menu-own.png)
  • 「⋯」 on 需求确认 offers 折叠这一列 and 隐藏这一列 with its 未分类 line; collapse is stored under objectui:kanban-lanes-collapsed:<user id>:crm_opportunity:<view id> and holds after a reload. (lane-menu.png, board-collapsed.png)
  • 「+」 on 方案报价 opens 新建商机 with 阶段 = 方案报价. (lane-create.png)
  • This run also found the statistic offering a sum of the two percent fields; the picker now asks the aggregate table's sum row, as lint does.

CRM pipeline (supplement for the acceptance lines the first run did not walk):

  • Lane field swap, then 放弃. 分列字段 → 审批状态: the board re-lanes at once to 待审批 / 已批准 / 已驳回 / 已撤回 / 未分类 (all 12 opportunities in 未分类, none has an approval status), 放弃 / 保存 appear, no write. 放弃: back to 初步接洽 / 需求确认 / 方案报价 / 赢单 / 输单, the bar gone, no write. (sup-lane-field-picker.png, sup-relane-approval.png) The card's line names 商机负责人, a user field, which ruling A moves to kanban: a board grouped by a lookup or user field draws [object Object] lanes holding every card #36430.
  • Drag a lane to the front. In 显示哪几列, dragging 方案报价 onto the first row (a mouse drag) orders the list 方案报价 / 初步接洽 / 需求确认 / 赢单 / 输单 and the board follows in that order, with 放弃 / 保存 and no write. (sup-lanes-order.png, sup-board-reordered.png) The pipeline has no 谈判 stage, so the lane is 方案报价.
  • 隐藏空字段. With 审批状态 added as a card field (empty on every card): 隐藏空字段 on, 36 field rows and no dash; turned off, 48 rows, the 12 new ones each 「—」; no write. (sup-hide-empty-on.png, sup-hide-empty-off.png)
  • Another browser. With 需求确认 collapsed in one browser, a second browser context signed in as the same reader (its own local storage) draws 需求确认 open with its two cards and holds no collapse key. (sup-other-browser.png)

Self-built app (com.qa.board36370), administrator:

  • The board draws 待办 / 进行中 / 评审 / 完成 with 7 field rows (empty 备注 takes none). 视图设置 shows the same board rows; the statistic offers 无 / 计数 / 合计 · 工时. (self-board.png, self-settings.png)
  • 合计 · 工时 picked and 隐藏空字段 turned off: 10 rows, three 「—」, feet 合计 · 工时 8 / 8 / 2 / 1. 隐藏空字段 back on and 评审 dragged to the front: 7 rows, lanes 评审 / 待办 / 进行中 / 完成, feet follow. No write. (self-empty-off.png, self-changed.png)
  • 保存到这个视图 as an administrator: Save offers 保存到这个视图 and 另存为我的视图; the confirmation reads 「保存到这个视图?所有用「任务看板」的人都会看到这些改动。」; confirming writes PUT /api/v1/meta/view/qab_task.board?mode=draft with kanban: { groupByField: 'phase', columns: [...], summary: { type: 'sum', field: 'hours' }, lanes: ['review','todo','doing','done'] } (no hideEmptyFields: it was turned back to the view's own) and POST …/publish. After a reload the board draws 评审 first with the 合计 · 工时 feet and no draft bar. (self-save-menu.png, self-save-confirm.png, self-after-reload.png)

NOT MEASURED live: the partial-sum wording (no lane here holds more than it loaded; pinned in the unit test), and the Studio preview relay (pinned in plugin-view). The board with no kanban block was measured in tests only (both save paths), not live.

🤖 Generated with Claude Code

@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation protocol:ui tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 22, 2026
@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

8 anchor(s) derived from 2 changed package(s); no hand-written page names any of them. ⚠️ 7 changed file(s) yielded no anchor (packages/spec/api-surface/ui.json, packages/spec/authorable-surface/ui.json, packages/spec/declaration-map/ui.json, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 7 changed file(s) yielded no anchor (packages/spec/api-surface/ui.json, packages/spec/authorable-surface/ui.json, packages/spec/declaration-map/ui.json, …) — pages documenting those are invisible to this run
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 68 of 251 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 175 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 934ac077504db35fc00ba40f9061506117d148d2 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from e509def6eddf62d1fdc0291cf4d5687cee55a3f6 — the merge of head dd9e0bb782cfee2157d0f54df2738ba20106f341 into base 934ac077504db35fc00ba40f9061506117d148d2, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin e509def6eddf62d1fdc0291cf4d5687cee55a3f6 && git checkout e509def6eddf62d1fdc0291cf4d5687cee55a3f6
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 934ac077504db35fc00ba40f9061506117d148d2 dd9e0bb782cfee2157d0f54df2738ba20106f341 && git checkout -B drift-repro 934ac077504db35fc00ba40f9061506117d148d2 && git merge --no-ff dd9e0bb782cfee2157d0f54df2738ba20106f341

node scripts/docs-audit/affected-docs.mjs --json 934ac077504db35fc00ba40f9061506117d148d2

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jSpi3g1dQNTvN6zEuH

席位核对

L1 (L1-e) on head e94bb55125300f3f9df0dc2be629ff7f18562ba6, card #36370: REWORK. Four items are owed. Items 2–4 are text or filing only. Item 1 is evidence, and it changes no code unless the run finds something.

Owed

  1. One live run, as the card's acceptance asks (the report and body record it NOT MEASURED). The card lists live checks, and the value here crosses the /meta boundary: a view saved with the new kanban keys has to pass the server's validation and be read back by kanbanViewOptions. Against a fresh local backend and the console, report readings for:
  2. Skills-docs: still reads follow-up owed — …. skills: objectstack-ui list-views does not teach the new board settings (summary, showFieldLabels, hideEmptyFields) #36422 is filed, so rewrite the line to Skills-docs: carried by #36422 (l1-face flags it).
  3. A false sentence in 维护者速读: 「折叠只记在本浏览器(localStorage,按用户+对象+视图分键)」. The key is objectui:kanban-lanes-collapsed:<object>:<view id> (KanbanLaneMenu.ts:67, ListView collapseKey), with no user in it. Fix the sentence to say what the key holds, or key the storage by user too. The card asks only for 「每个人自己的,只记在浏览器里」, so fixing the sentence is enough.
  4. The out-of-scope observation has carrier: none. plugin-view ObjectView#generateViewSchema relays none of summary / showFieldLabels / hideEmptyFields, while the spec now publishes them. This PR does not touch that file, so it is not this PR's to fix. Per the checklist it gets a card (noticed, not touched ⇒ 立卡), and the body names it.

Checklist (passes)

  • Shape (l1-face.mjs --pr 36411): open, draft, base main, Fixes #36370, no keyword near another card. Every line is ok except skills-docs (item 2).
  • Fixes is right. Items 1–3 and 5–8 are built. Item 4's footer icons are left out on the seat's ruling: the card's own 没有核对的 allows 「没有的话这个小图标先不显示,请席位在 PR 里说明」, the body says so, and kanban: card footer with comment and attachment counts and time in column #36423 carries it. The two switches of item 4 are built. The card's open question, what happens to the lanes when the lane field changes, is answered: lanes: null with a new field (layKanbanDraft drops it).
  • Scope: 38 files, all inside the card's reader packages plus the spec widening and its regenerated outputs. There is no one-off script. The in-surface fix (the Console never relayed kanban.lanes, Kanban board draws only the declared lanes, in their order: ObjectKanban reads kanban.lanes #28211) is the same defect class and is mechanical: kanbanViewOptions gains one relay line, pinned by kanbanDraft-36370 (d), named in the body and in the changeset. Accepted.
  • Changeset: minor on spec / plugin-kanban / plugin-list / app-shell / i18n, with Clause-②: yes (widening) and Metadata-protocol: added. I read each sentence against the diff and all are true: three optional keys with no default, summary taking precedence over summarizeField, { type: 'none' }, the two "absent means true" switches, the board rows in place of the table rows, the draft until Save, the lane 「+」/「⋯」, and the Console relaying lanes. The semver level is L2's.
  • Regenerated docs (references/ui/view.mdx, api/protocol.mdx, data/object.mdx): the rows match the three .describe() strings. The liveness/view.json note names read points that exist at this head (ListView board branch, ObjectKanban#columnSummary, KanbanColumnSummary.ts#laneStatistic, KanbanImpl#SortableCard, kanbanViewOptions).
  • Gates at this head: 61 success, 9 expected skip, 0 failed, 0 pending. Lint & Repo Gates and TypeScript Type Check are success. dogfood is not owed. The local check:dual-build-cjs-loads NOT MEASURED is answered by CI at this head.
  • Draft and save: nextKanbanDraft keeps changed keys only, null drops a key, and layListStateOverView lays display.kanban over the stored block. That means Save to the view and Save as a personal view both carry it, and Discard drops the part. ListDraftActions names the part.
  • SQL push-down: the lane statistic (laneStatistic) aggregates over the cards the board already holds, client-side, and the body says a windowed lane reads +. This is the existing summarizeField pattern, so the reason is given; no new query is added.

Nits (not blocking)

  • nextKanbanDraft(…, viewDef.kanban) compares with the stored block. A view whose lane field is auto-detected (detectStatusField, no groupByField stored) keeps groupByField in the draft after the reader picks the detected field back, so Discard/Save stays shown. Comparing against kanbanViewOptions(viewDef, objectDef) would drop it.
  • collapseKey is <object>:<schema.id ?? ''>, so two id-less views of one object share collapse state.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e94bb55125300f3f9df0dc2be629ff7f18562ba6
Local-runs: none
Scope: packages/spec/src/ui/view.zod.ts + packages/spec/liveness/view.json, ui/packages/plugin-kanban/src/ObjectKanban.tsx, ui/packages/plugin-kanban/src/KanbanImpl.tsx, ui/packages/plugin-kanban/src/KanbanColumnSummary.ts, ui/packages/plugin-kanban/src/KanbanCardDisplay.ts, ui/packages/plugin-list/src/ListView.tsx (its case 'kanban' relay and the statistic write), ui/packages/app-shell/src/views/objectViewOptions.ts
Security-touching: no
Rule-change-verified: none

Inputs read: card #36370 body and its 5 comments, PR #36411 body and 38-file list, the net diff against main, and the 70 check-runs on this head (all success or skipped). The rest of the diff (lane menu, settings panel, draft store, i18n, tests, generated docs, changeset prose) is the lane seat's ACCEPT at TIER_DEFAULT.

① Derived judgments

  • Accept set, KanbanConfig.summary: new optional key, ColumnSummaryConfigSchema, no default. A widening. Right as a kind. Wrong in width: see M1.
  • Accept set, KanbanConfig.showFieldLabels and hideEmptyFields: new optional booleans, no default. Right. Absent reads as true in both readers, which is the card every board drew before.
  • Nothing an author wrote before is refused. The block stays a strict object and only gains keys. Right.
  • Nothing an author wrote before is read differently by the new keys. With no summary, ObjectKanban#columnSummary falls to the old summarizeField branch unchanged. With no hideEmptyFields, the card loop still skips an empty field. With no showFieldLabels, the name is drawn. Right.
  • One read does change, outside the new keys: kanbanViewOptions now relays kanban.lanes. A Console board whose view declared lanes drew every option before and draws the declared lanes now. This is the Kanban board draws only the declared lanes, in their order: ObjectKanban reads kanban.lanes #28211 contract finally kept on the Console, not a new meaning. Right, and the changeset says so.
  • Liveness: the one kanban row of liveness/view.json names a read point for each of the three keys, and each read point is in this diff and does read the key (ObjectKanban#columnSummary, the card loop in ObjectKanban, KanbanImpl#SortableCard). No declared-but-unread key. Right for the ListView producer. The row is silent on the second producer: see S1.
  • Authorable surface: three rows added to authorable-surface/ui.json, matching the schema. Right.
  • Two ways to say one thing: summarizeField: 'amount' and summary: { type: 'sum', field: 'amount' } both total a lane. The schema states the precedence (summary wins, { type: 'none' } silences summarizeField) and ObjectKanban holds it. The only difference left is place: header for the old key, foot for the new. Right on the ListView path. Not held on the second producer: see S1.

② Semver level

  • Changeset .changeset/36370-kanban-view-settings.md: @objectstack/spec minor, @object-ui/plugin-kanban, plugin-list, app-shell, i18n minor. Metadata-protocol: added takes at least minor on each package the diff moves. All five are moved and all five are minor. Right.
  • added is the right kind: new keys only, no key removed, no default or meaning changed. The dev was right to refuse changed, which is not in the closed set.
  • Clause-②: yes (widening) on the PR body and in the changeset body, line-initial in both. Right for the diff as written. No BREAKING banner is owed.
  • The fix for M1 narrows a set that has not shipped, so it stays a widening and the level does not move.
  • Check Changeset and PR-body guards are green on this head.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • Deviation, Metadata-protocol: added not changed: accepted, see ②.
  • Deviation, skills teaching owed: carried by skills: objectstack-ui list-views does not teach the new board settings (summary, showFieldLabels, hideEmptyFields) #36422.
  • Deviation, card footer icons left out by seat ruling: carried by kanban: card footer with comment and attachment counts and time in column #36423.
  • Deviation, screenshots off GitHub and no live run on the Sales pipeline, a real backend or a self-built app: this is acceptance evidence, the lane seat's to accept or refuse. Not a contract matter. The record notes that three of the card's acceptance lines are NOT MEASURED live.
  • Deviation, plugin-view does not relay the three keys, carrier none: not accepted as stated. See S1.
  • Deviation, no merge of main: main's spec change touches other hunks of view.zod.ts; the merge base diff is clean. Accepted.
  • SQL push-down (Prime Directive 5): the lane statistic is a new aggregate computed in the browser over the cards a lane has loaded. count is right: it reads the server's lane count. sum, avg, min and max are not pushed down and the diff gives no reason. See S3.
  • Out-of-scope note for the lane seat: ListView builds the collapse key from the object and the view id only. The PR body and KanbanLaneMenu.ts both say one per reader. listLayoutStore keys per signed-in reader. The card's item 7 says the collapse is each person's own.

④ Design judgment

packages/spec/src/ui/view.zod.ts, against the card, its first consumer and the ledger row.

M1 (must-fix) — summary accepts more than any reader computes. The key takes ColumnSummaryConfigSchema, whose type has 13 members. ObjectKanban#columnSummary computes count, sum, avg, min, max and honours none. The other seven (count_empty, count_filled, count_unique, percent_empty, percent_filled, count_true, count_false) are accepted green, draw nothing, and also switch off the summarizeField total the view had. The same holds for { type: 'sum' } with no field: accepted, nothing drawn, old total gone. The inherited field text says it "defaults to the column field", and a board has no column. The schema text says "one of the list footer calculations", while the ledger row and the changeset both say count, sum, avg, min, max. So the published accept set is wider than the contract the PR itself states. This is the declared-but-unread case at the value level, and it must be settled before it ships: narrowing it after a release is a breaking change. Fix either way: give the key its own set (none, count, sum, avg, min, max) with field required for the four field calculations, or compute every member the schema accepts.

S1 (should-fix) — the second producer reads the same view differently. ui/packages/plugin-view/src/ObjectView.tsx#generateViewSchema builds the object-kanban node for the registered object-view (Studio view preview, the Studio records canvas, SDUI nodes). It relays summarizeField and lanes and none of the three new keys. On that path summary: { type: 'none' } over a summarizeField still draws the total the author turned off, summary: { type: 'count' } draws the old sum, and both toggles are ignored. The schema says summary takes precedence, without limit. The ledger row names both producers for lanes and only ListView for the new keys. Relay the three keys there (the node already takes them), or state the limit in the ledger row and card it.

S2 (should-fix) — summary.field is a field-naming position no validator walks. packages/lint/src/validate-list-view-field-refs.ts lists the kanban block as groupByField, summarizeField, titleField and columns. It walks columns[].summary.field on a list and refuses a function the field type cannot take. kanban.summary.field gets neither check: a stale or text field is accepted and the board draws nothing. That table exists so that no position is forgotten. Add the position at the summarizeField tier, with the field-type check, here or on a card named in the PR.

S3 (should-fix) — the statistic is computed over the loaded window, and the mark is wrong for three of four. KanbanColumnSummary.ts#laneStatistic reads the lane's loaded cards. On a lane that holds more than it drew, LaneFootStatistic appends +. For a sum of non-negative values that is a lower bound, as the header total already was. For avg, min and max it is not a bound at all: "Avg 40+" and "Min 5+" can be wrong in either direction. The schema reused here documents the opposite rule for a grouped list: a group's numbers are properties of the query, not of the fetched page. No reason is given for not pushing down, though the board already asks the server for each lane's count. Push the aggregate down beside the lane count, or give the reason and draw no avg, min or max on a partial lane.

Nit: summarizeField's own text does not say it yields to summary, and nothing says which of the two a new view should write. The settings panel never removes summarizeField; it writes { type: 'none' } over it, so saved views will carry both. #36422 can carry the teaching.

Implementing files, sentence by sentence.

  • ObjectKanban.tsx: summary takes the place of the summarizeField total, none draws neither, absent keeps the old branch. Agrees. A field the reader may not read draws no statistic, as the old total did. Agrees. hideEmptyFields: false keeps the line with a dash; any other value skips it. Agrees. The comment "or a calculation the board does not compute" is the code-side admission of M1.
  • KanbanImpl.tsx: LaneTotal stands down when the statistic is at the foot, so one figure is drawn, never two. Agrees. SortableCard drops the name only on false. Agrees. The windowed + is S3.
  • KanbanColumnSummary.ts: count, sum, avg, min, max as described; a non-number makes the figure unknowable. Agrees.
  • KanbanCardDisplay.ts: default true without a provider. Agrees.
  • ListView.tsx relay: each key goes onto the node only when declared, by type. Agrees. "None" over a summarizeField writes { type: 'none' }; over nothing it drops the key. Agrees with the schema.
  • objectViewOptions.ts: relays the three keys and lanes, each only when declared. Agrees.
  • liveness/view.json: accurate for ListView; incomplete for the second producer (S1).

Carried, not re-raised: #36422 (skills teaching), #36423 (card footer icons).

Implemented-by: claude/project-thread-klklkh
Reviewed-by: session_01QsR2jTeURPvEm465RcoYEC

VERDICT: FAIL

…r-reader collapse, and the Studio relay

The lane foot statistic is none, count or the sum of a number field; a sum
over a windowed lane says it totals the loaded cards. The lane field picker
offers select and radio fields only. Hiding a lane says its cards move to
Uncategorized. Lane collapse is kept per reader, object and view. ObjectView's
generateViewSchema relays summary, showFieldLabels and hideEmptyFields, and a
lane field picked back to the board's own is no draft.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRKaa4gJCNNF5QMd8t
kanban.summary.field is walked as a field reference, and a sum over a field
that is no number is refused under list-view-summary-field-type-refused.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRKaa4gJCNNF5QMd8t
The lane statistic gets its own schema with only what the board computes,
and the sum member requires its field.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRKaa4gJCNNF5QMd8t
… key reads no view name

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

A percent, a formula or a yes / no field is no longer offered as a lane sum,
matching the lint verdict on kanban.summary.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jRKaa4gJCNNF5QMd8t
The save-as body laid the draft's row colour over the view and never its
board part, so a board saved as the reader's own view opened as the view it
came from.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 9f8726f1ecd152366970c8c4c8b3b260aca5aa66
Local-runs: none
Scope: packages/spec/src/ui/view.zod.ts + packages/spec/liveness/view.json, packages/lint/src/validate-list-view-field-refs.ts, packages/lint/src/rule-explanations.ts, ui/packages/plugin-kanban/src/ObjectKanban.tsx, ui/packages/plugin-kanban/src/KanbanImpl.tsx, ui/packages/plugin-kanban/src/KanbanColumnSummary.ts, ui/packages/plugin-kanban/src/KanbanCardDisplay.ts, ui/packages/plugin-list/src/ListView.tsx (its case 'kanban' relay, the statistic write, laneStatisticSums and the laneCollapseKey prop doc), ui/packages/plugin-view/src/ObjectView.tsx, ui/packages/app-shell/src/views/objectViewOptions.ts (kanbanViewOptions and kanbanDraftToSave), ui/packages/app-shell/src/views/ObjectView.tsx (the two save call sites of kanbanDraftToSave)
Security-touching: no
Rule-change-verified: none

Delta review of the record on 16a019dc0567403740ae7915c1ae5c125e562a1f (comment 7082698044, PASS, N4 and N5 open as small items).

What moved: this head is a two-parent merge of 16a019dc056 with main at 65ce798307a (the PR's base on GitHub). The old merge base was bb89b2d7c70; main gained 29 commits and 446 changed files since. The queue had dropped 16a019dc on a merge conflict after #36437 landed.

Inputs read: card #36370 body and its 8 comments, PR #36411 body and its 12 comments, the net diff against main at this head (54 files, +2957 / -59), the remerge diff of this head recomputed from git, the 29 commits main gained, #36520 and its 3 comments, and the 47 check-runs on this head as they stood at 22:55Z. Nothing was built or run.

Result of this round: the merge changes nothing the earlier record judged. The contract files are byte-equal to 16a019dc. No new finding.

⚠️ The gates are not in. Of the 47 check-runs on this head, 12 are success, 9 skipped and 26 still running. None is red. This verdict is the contract reading only; the seat reads the check-runs again before it acts.

  • Success: Check Changeset, Check PR Size, Spec property liveness, Governed Surface Queue Guard, PR-body guards, Check Documentation Links, Flag docs affected by code changes, Dogfood Regression Gate, Plan Test Core shards, Plan Test UI shards, Auto Label, filter.
  • Still running: Type Check (workspace, source gates, consumer gates, debt ledger), Lint (ESLint, repo & tooling gates, CI release & engine gates, docs & code guards, PM dispatch-gates, and the three scoped lanes), Build Core, Build UI Deps, Build Docs, Live E2E UI, and Test Core 1/10 to 10/10. The UI test shards are planned and not yet created. So check:generated, the type check of the merged tree and the i18n pin test have no CI verdict on this head yet.

① Derived judgments

② Semver level

  • Changeset .changeset/36370-kanban-view-settings.md: byte-equal to 16a019dc. Minor on @objectstack/spec, @objectstack/lint, @object-ui/plugin-kanban, plugin-list, plugin-view, app-shell and i18n. Right for the diff, which is the same diff.
  • Clause-②: yes (widening) and Metadata-protocol: added each stand at the start of their own line, in the PR body (lines 8 and 9) and in the changeset body. Unchanged and right: new keys and exports only, nothing that validated on main can fail. No BREAKING banner is owed. Main's own breaking change in the merge (feat(spec,ui)!: every grid that renders editable selects a cell first, and object-grid singleClickEdit is retired #36357, singleClickEdit retired) carries its own changeset and is not this PR's.
  • Liveness ledger, the kanban row of packages/spec/liveness/view.json: byte-equal to 16a019dc; the producers and read points it names are in files main did not move. Spec property liveness is green on this head.
  • Check Changeset is green on this head.

③ Boundary flags

④ Design judgment

No must-fix, no should-fix.

Earlier findings.

S3: closed
S4: closed
N1: closed
N2: closed
N3: closed
N4: carried by #36520 (comment 7082726819). The code is unchanged.
N5: left as it was. kanbanDraftToSave is byte-equal to 16a019dc. Still an accepted small deviation: a board with no lane field and no detectable lifecycle field saves a block the schema refuses, and that view could not draw lanes before either.

Implementing files on this head.

  • view.zod.ts, liveness/view.json, validate-list-view-field-refs.ts, rule-explanations.ts, ObjectKanban.tsx, KanbanImpl.tsx, KanbanColumnSummary.ts, KanbanCardDisplay.ts, ListView.tsx, objectViewOptions.ts: byte-equal to 16a019dc. The earlier sentence-by-sentence reading stands.
  • plugin-view/src/ObjectView.tsx: this PR's one hunk (the three keys relayed into the board node) is unchanged; the merge adds main's one-line removal in the table relay list. Agrees.
  • app-shell/src/views/ObjectView.tsx: this PR's four hunks are unchanged, both kanbanDraftToSave call sites included; the merge adds main's two drawer lines. Agrees.
  • I tried to break the merge on three points and found nothing. A locale key lost or doubled by the text merge: the changed lines of all 11 packs against main are the same lines as before. A generated file carrying a stale line from the branch side: each differs from main by this PR's lines only. A main-side rename under a name this PR calls: main touched none of the files this PR's code reads.

Carried, not re-raised: #36520 (the server lane statistic, the three other statistics and N4), #36422, #36423, #36426, #36430.

Implemented-by: claude/project-thread-klklkh
Reviewed-by: session_01QsR2jTeURPvEm465RcoYEC

VERDICT: PASS

@os-zhuang
os-zhuang enabled auto-merge November 22, 2026 23:02
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jRKaa4gJCNNF5QMd8t

CI note, 2026-11-22T23:13Z: the red Type Check · workspace on 9f8726f (job 137386259276) is a runner cancel, not this diff. At 2026-11-22T23:10:55Z the log reads "The runner has received a shutdown signal". The ELIFECYCLE lines after it come from that cancel, and the log has no error TS at all. The packages it was on (hono, connector-slack, cloud-connection) are outside this PR, which touches spec, lint and ui. TypeScript Type Check is that job's aggregate. Nothing is pushed for it; a rerun is the seat's call.


Generated by Claude Code

@os-zhuang

Copy link
Copy Markdown
Contributor

我批准了,开发修正好错误就可以自己落地

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: dd9e0bb782cfee2157d0f54df2738ba20106f341
Local-runs: none
Scope: packages/spec/src/ui/view.zod.ts + packages/spec/liveness/view.json, packages/lint/src/validate-list-view-field-refs.ts, packages/lint/src/rule-explanations.ts, ui/packages/plugin-kanban/src/ObjectKanban.tsx, ui/packages/plugin-kanban/src/KanbanImpl.tsx, ui/packages/plugin-kanban/src/KanbanColumnSummary.ts, ui/packages/plugin-kanban/src/KanbanCardDisplay.ts, ui/packages/plugin-list/src/ListView.tsx (its case 'kanban' relay, the statistic write, laneStatisticSums and the laneCollapseKey prop doc), ui/packages/plugin-view/src/ObjectView.tsx, ui/packages/app-shell/src/views/objectViewOptions.ts (kanbanViewOptions and kanbanDraftToSave), ui/packages/app-shell/src/views/ObjectView.tsx (the two save call sites of kanbanDraftToSave)
Security-touching: no
Rule-change-verified: none

Delta review of the record on 9f8726f1ecd152366970c8c4c8b3b260aca5aa66 (comment 7087201497, PASS, N4 and N5 open as small items).

What moved: two commits. 702593a1af4 is a two-parent merge of 9f8726f1 with main at 84853fd18eb (the PR's base on GitHub now). dd9e0bb782c regenerates two reference pages. The old merge base was 65ce798307a; main gained 13 commits and 200 changed files since.

Inputs read: card #36370 body and its 8 comments (none new), PR #36411 body and its 15 comments (two new: the CI note 7087416109 and the maintainer's approval 7088581228), the net diff against main at this head (54 files, +2957 / -59), the remerge diff of 702593a1af4 and the diff of dd9e0bb782c, both recomputed from git, the 13 commits main gained, and the 74 check-runs on this head. Nothing was built or run.

Result of this round: the two commits change nothing the earlier records judged. No new finding.

Check-runs on this head, read at the time of writing: 74 in all. 62 success, 11 skipped, 1 cancelled, 0 failure, 0 pending. The combined commit status holds no entries.

  • Type Check · workspace is success, as are Type Check · source gates, Type Check · consumer gates, Type Check · debt ledger, Type Check UI and the aggregate TypeScript Type Check. This is the job the runner shutdown cancelled on 9f8726f1.
  • The one cancelled run is PR-body guards (claim · duplicate · Part-of · single-writer path), job 137420846936, cancelled at 00:51:45Z. A second run of the same job, 137421000322, started at 00:51:47Z and is success. So the cancelled run is a superseded copy, not a red gate.
  • The 11 skipped are opt-in, not-applicable or duplicate-trigger jobs (Auto Label and Check PR Size each also have a success run): Auto Label, Check PR Size, Dogfood Verify CLI, the unexpanded Dogfood Regression Gate matrix row, Temporal Conformance, UI Published Artifacts, Schedule gate, Packed-tarball smoke, 18.x upgrade harness, Queue verdict and Borrowed queue verdict.
  • The lint lanes that carry check:generated, the UI test shards and the i18n pin test are among the 62 green. The gap the last record named is closed.

① Derived judgments

  • (a) The merge carries no hand change. The remerge diff of 702593a1af4 is empty. The two generated pages are not text-merged in this repo; the merge kept the branch side for both (blobs 5b2de3a9 and c50ab82e, equal to 9f8726f1). The 198 paths that differ between 9f8726f1 and the merge are all paths main changed. Right.
  • (a) dd9e0bb782c touches two files only, content/docs/references/ui/view.mdx (+3 / -3) and content/docs/references/data/object.mdx (+2 / -2). No other path. Right.
  • (b) Every line dd9e0bb782c changes is main's text, not this PR's. In view.mdx it is the addRecord.formView REMOVED row, three places, now with main's wording from feat(console)!: record create and edit stop loading internal forms; a field's Show on create switch #36543 (fieldGroups, showOnCreate: false). In object.mdx it is the lookupAutofill row, two places, now with main's CURRENCY RULE from fix(fields): a pick leaves an amount in another currency empty and says why #36351. Both wordings match the describes in main's view.zod.ts and field schema. Right.
  • (b) After the regeneration, view.mdx against main is +72 / -8 and object.mdx is one line, the same counts and the same lines as on 9f8726f1: the three KanbanConfig keys, the KanbanLaneSummary section, the two import lines, and the kanban row's type summary. Right.
  • (c) The net diff against main is the change the earlier records judged. The per-file added and removed counts of 65ce798..9f8726f1 and 84853fd..dd9e0bb7 are equal for all 54 files. The sorted set of changed lines is equal too, with no line different. Right.
  • Accept set of KanbanConfig.summary, showFieldLabels and hideEmptyFields: unchanged. main did edit view.zod.ts in this range (feat(console)!: record create and edit stop loading internal forms; a field's Show on create switch #36543), but only the addRecord prose, the addRecord.formView REMOVED message, one userActions describe and the modalSize jsdoc. No hunk is in or next to KanbanConfig, and the text merge is clean. Right.
  • The other generated baselines of this PR (authorable-surface/ui.json, api-surface, declaration-map, export-origins, json-schema.manifest, variant-docs.json, index.mdx, protocol.mdx, the strictness counts) carry the same changed lines as before. main touched api-surface/contracts.json, which this PR does not. Right.
  • The pin in de-quote-pairing-3876.test.ts, 127: still right. main did not touch the pin test. Main's three new German strings (fix(fields): a pick leaves an amount in another currency empty and says why #36351, the autofill currency messages) hold no German quote mark. I counted the opening quote in the four German files: 126 on 65ce798 and on 84853fd, 128 on 9f8726f1 and on this head. One is in a code comment, so the pack holds 125 on main and 127 here. Both pins read 127.
  • I did not run the generators. check:generated is green on this head and is the gate for byte equality.

② Semver level

  • (e) Changeset .changeset/36370-kanban-view-settings.md: byte-equal to 9f8726f1. Minor on @objectstack/spec, @objectstack/lint, @object-ui/plugin-kanban, plugin-list, plugin-view, app-shell and i18n. Right for the diff, which is the same diff.
  • (e) Clause-②: yes (widening) and Metadata-protocol: added each stand at the start of their own line, in the PR body (lines 8 and 9) and in the changeset body. Unchanged and right: new keys and exports only, nothing that validated on main can fail. No BREAKING banner is owed. Main's own breaking change in the merge (feat(console)!: record create and edit stop loading internal forms; a field's Show on create switch #36543, internal forms no longer loaded) carries its own changeset and is not this PR's.
  • Liveness ledger, packages/spec/liveness/view.json: main edited three notes in this range (the addRecord note, the form type note and the modalSize note). The kanban row is this PR's and merges clean beside them. Spec property liveness is green on this head.
  • Check Changeset is green on this head.

③ Boundary flags

④ Design judgment

No must-fix, no should-fix.

Earlier findings.

S3: closed
S4: closed
N1: closed
N2: closed
N3: closed
N4: carried by #36520 (comment 7082726819). The code is unchanged.
N5: left as it was. kanbanDraftToSave is byte-equal to 9f8726f1. Still an accepted small deviation.

Implementing files on this head.

  • validate-list-view-field-refs.ts, ObjectKanban.tsx, KanbanImpl.tsx, KanbanColumnSummary.ts, KanbanCardDisplay.ts, ListView.tsx, plugin-view/src/ObjectView.tsx, objectViewOptions.ts, app-shell/src/views/ObjectView.tsx: byte-equal to 9f8726f1. The earlier sentence-by-sentence reading stands.
  • view.zod.ts, liveness/view.json, rule-explanations.ts: this PR's hunks are unchanged; the merge adds main's feat(console)!: record create and edit stop loading internal forms; a field's Show on create switch #36543 lines only, none of them about the board. Agrees.
  • I tried to break the merge on three points and found nothing. A hand edit hidden in the merge: the remerge diff is empty. A generated page carrying a stale branch-side line after the regeneration: each page differs from main by this PR's lines only, and check:generated is green. A main-side change under a name this PR calls: main touched none of the files this PR's code reads, and its view.zod.ts hunks are in the addRecord and form blocks.

Carried, not re-raised: #36520 (the server lane statistic, the three other statistics and N4), #36422, #36423, #36426, #36430.

Implemented-by: claude/project-thread-klklkh
Reviewed-by: session_01QsR2jTeURPvEm465RcoYEC

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Landing (seat 7, 2026-11-23T01:24Z): head dd9e0bb782cfee2157d0f54df2738ba20106f341 · approved by os-zhuang (APPROVED review, which counts on any commit per the 2026-09-27 ruling, #20153), and their comment 7088581228 「我批准了,开发修正好错误就可以自己落地」 · the error was the runner-shutdown cancel of Type Check · workspace on 9f8726f, cleared by a main sync · contract delta PASS 7087201497 and same-head delta PASS 7089113486 (no hand change, same net diff) · check-governed-merges --pr 36411: size limb (3016 lines), covered by the approval · CI on the head: 62 success, 11 skipped, 1 superseded PR-body guards run, 0 failed · mergeable clean. → pr_ready + automerge_enable (merge queue). On merge the seat closes #36426, which this PR folds in.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 73f2cf4 Nov 23, 2026
73 of 74 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-klklkh branch November 23, 2026 02:01
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 23, 2026
…ted (showOnCreate) (objectstack-ai#36449)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbCxiFE11rsKwyNffJZKYqJs)_

repo:objectstack#7 · zhuangjianguo · session_01QsR2jVMKrYARogu1S6PcHj

Part of objectstack-ai#36425 (PR 1 of 2: the field key and its save-time refusal. PR 2
retires the internal create and edit forms in the Console and Studio,
adds the readers of this key, the Studio switch and the lint notice. The
skills text is objectstack-ai#36455, a domain:skills card.)

Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: follow-up objectstack-ai#36455

## 维护者速读

-
用户能看到什么变化:这一步用户无感。对象的字段定义可以写「新建时显示」开关(默认开);给必填字段关掉它,保存定义时会被拒绝并说明原因。新建弹窗按这个开关隐藏字段,要等第二个改动。
-
为什么做:这是「内部新建和编辑表单作废」这张卡的前一半,先把字段上的开关定下来,后一半让新建弹窗、整页新建和动作弹出的新建窗口都按字段分组排,并读这个开关。
-
出错会怎样:最坏情况是某个应用包给必填字段关了这个开关,安装或保存时被拒绝,提示里写了两种改法;现有的定义里没有这个开关,不受影响,撤回本次合并即可。
- 要你做什么:无。

## What changes

`FieldSchema` (`packages/spec/src/data/field.zod.ts`) gains
**`showOnCreate`**, an optional boolean.

- **Meaning.** Absent or `true`: the field is asked for when a record is
created, as today. `false`: every create surface (the create dialog, the
full-page create, an action-opened create) leaves the field out;
editing, the record page and lists still show it. The key has no
default, so no field parsed today changes shape.
- **Name and admission (ADR-0085 §2).** Per the seat's reading on the
claim: the key is a field's creation-time intent (which fields this
business asks for when a record is born), not inferable from the schema,
and it binds every create surface rather than one page, so its name
names no page or dialog. The ADR note rides the week's ADR card after
this lands; `docs/adr/**` is untouched here.
- **The one refused pair.** `showOnCreate: false` on a `required: true`
field is refused in `FieldSchema`'s `superRefine`, at the field's
`showOnCreate` key, so every door that parses a field refuses it
(`defineStack`, `os validate`, the metadata save; the object door
locates it at `fields.NAME.showOnCreate`). The reason it gives is the
card's item 6, which makes no exception: a required field is always
asked for when a record is created, so the person creating it sees every
value the record must have. The message names both fixes (keep the field
on create, or drop `required`). A `defaultValue` makes no exception
either (the seat's ruling, card comment 7079131071 item 3): the insert
would resolve the default, so such a create could pass, but the field is
still asked for, with its default filled in. A `requiredWhen` field is
accepted: its gate is a predicate the parse cannot judge, and the write
door still refuses a create born inside it.
- **Liveness ledger.** `liveness/field.json` gains a `showOnCreate` row,
`planned`, evidence the parse-time refusal. Its readers are PR 2's
create surfaces, and the row flips to `live` in that PR, citing them.
- **Generated.** `authorable-surface/data.json`
(`data/Field:showOnCreate`), `liveness/state-counts/field.md`, and the
three reference pages that render `FieldSchema` (`data/field.mdx`,
`data/object.mdx`, `system/migration.mdx`), from `check:generated
--fix`.
- **Changeset.** `@objectstack/spec` minor; `@objectstack/driver-sql`
and `@objectstack/metadata-core` patch, since their every-field-key
ledgers (`FIELD_KEY_STORAGE_CLASS`, `FIELD_REFERENCE_POSITIONS`) now
classify the key.

### What this PR deliberately leaves to PR 2

The claim's lines (`Clause-②: yes (narrowing)`, `Metadata-protocol:
semantic`) describe the whole card. Their narrowing and semantic halves
belong to PR 2, where an internal form stops steering the create and
edit forms; the seat amends the claim when PR 2 opens. Two items move
there by the seat's ruling on this split, and the skills text goes to
its own card:

- the lint notice for a still-declared internal form (card item 8): its
sentence says the form is no longer loaded, which is false until PR 2
retires the readers;
- the Studio switch (card item 7: the `field.form.ts` row, the eleven
metadata-forms locale packs, the field inspector): a switch offered
before any create surface honours it is the shape ADR-0078 rules out;
- the skills text (card item 9) is objectstack-ai#36455 (domain:skills: skills text
lands only in a domain:skills PR), hence `Skills-docs: follow-up
objectstack-ai#36455`.

## Tests

- `packages/spec/src/data/field-show-on-create.test.ts` (new): the key
parses switched on and off and stays absent when not authored;
`showOnCreate: false` beside `required: true` is a full `safeParse`
failure located at `showOnCreate` with a `custom` issue whose message
opens with its first sentence; the same with a `defaultValue`; the
object door locates it at `fields.amount.showOnCreate`; four controls
are full `safeParse` successes (on + required, required alone, off + not
required, off + `requiredWhen`).
- Review round at `1c0012aa`: the refusal's comment, message, describe
and the changeset now give the card's reason instead of saying no create
could pass (L2 S1); the skills follow-up names objectstack-ai#36455 (L1-d). The new
test's message assertion follows the reworded first sentence; that file
and the reconciliation file ran green at `1c0012aa` (`Tests 81 passed`);
`check:generated` 14 of 14 up to date after regenerating the three
reference pages; `check:liveness`, `check-changeset-no-major` and
`check-nul-bytes` exit 0. The rest of the derived set ran at `197434e9`;
this round changed only prose, a test regex and regenerated references.
- CI round at `b86db2be`: Test Core at `1c0012aa` was red in three
shards, all field-key pins this key owes: `metadata-protocol`
`protocol.meta-types-degenerate-derivation.test.ts` (`field` serves 85
top-level properties, was 84), `driver-sql`
`builtin-column-collision.test.ts` ("classifies EVERY FieldSchema key":
`showOnCreate` is `presentation`, the DDL never reads it) and
`metadata-core` `object-schema-fls-references.test.ts` ("classifies
every FieldSchema key": `showOnCreate: keep`, a boolean facet that names
no field). Each of the three files ran green locally at `b86db2be` (18,
11 and 63 tests).
- L1-d round at `d8b82f70`: the changeset adds those two patch entries;
`check-changeset-no-major`, `check-empty-changeset` and
`check-changeset-fixed` exit 0 against `origin/main`. No code changed
since `b86db2be`, where all 74 checks finished green (62 success, 12
skipped).
- Reverse verification (one-off, committed fix first,
`scripts/ablation-replace.mjs`): replacing the refusal's condition with
`false` turned exactly the three refusal cases red and left the controls
green; the file was restored to its HEAD blob (`aebcfbd38223`, `git diff
HEAD` empty).

- Package suite at the head before the last commit: `pnpm --filter
@objectstack/spec test` (local project, under the verify lock) → `Test
Files 1 failed | 871 passed (872)`, `Tests 1 failed | 27913 passed | 1
todo`. The one red was `metadata-form-zod-reconciliation.test.ts`
("field: every top-level key the author may write is offered, or its
omission is recorded" named `showOnCreate`). The last commit records the
key as not yet offered (an `omit` row whose reason is the `planned`
grade; PR 2 deletes the row and offers the switch); that file and the
new test then ran green at `197434e9`: `Test Files 2 passed`, `Tests 81
passed`.
- `pnpm --filter @objectstack/spec typecheck` → exit 0.
`scripts/liveness/` (repo project) → `Test Files 2 passed`, `Tests 87
passed`.
- `test:repo` beyond `scripts/liveness/` is left to CI's Test Core: the
diff touches no repo-project test.

## Acceptance notes

- Overlap at push (`d8b82f70`, unchanged from `b86db2be`):
`overlap-check.mjs` reports clean merges with `origin/main` and objectstack-ai#36435,
objectstack-ai#36411, objectstack-ai#36386, objectstack-ai#36351. objectstack-ai#36392 conflicts only in the generated
`liveness/state-counts/field.md`; objectstack-ai#36399, which also adds a field key,
conflicts there and in the `field` property-count pin, which whichever
lands second raises by one and regenerates.
- The card's acceptance lines are UI readings (the create dialog, the
full-page create, the action modal, the Studio switch). They are PR 2's,
with live checks and screenshots there; this PR has no rendered surface.

## Verification

<details><summary>Derived gate families at 197434e: 115 derived, 114
run green, 1 NOT MEASURED</summary>

- `node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack
--commands` derived 115 commands; each ran with its exit code recorded
before any pipe, and `--ran` reconciled: "115 derived famil(ies)
accounted for — 114 run, 1 NOT-MEASURED".
- Seven families first exited 3 (PREREQUISITE NOT MET: a
`packages/spec/dist` the loop's own siblings had rebuilt without
declarations, and the shallow clone missing the teardown fixture
commit). After `pnpm --filter @objectstack/spec build` and fetching the
fixture commit, all seven re-ran at exit 0: `check-plugin-teardown-shape
--self-test`, `check:api-surface`, `check:dual-source-exports`,
`check:entry-nameability`, `check:exported-any`, `check:generated` (it
had reported `api-surface/` stale against that same dist; 14 of 14 up to
date after the rebuild), `check:skill-examples`.
- NOT MEASURED: `pnpm check:dual-build-cjs-loads` (exit 3, prerequisite
not met in this container), left to CI.
- `node scripts/check-nul-bytes.mjs` → exit 0.

</details>

Two-minute check: `pnpm --filter @objectstack/spec exec vitest run
src/data/field-show-on-create.test.ts` → 5 passed.

First files to read: `packages/spec/src/data/field.zod.ts` (the
`showOnCreate` key beside `hidden`, and the new `superRefine` block
before `referenceVia`), `packages/spec/liveness/field.json` (the
`planned` row).

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

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

https://claude.ai/code/session_01QsR2jVMKrYARogu1S6PcHj
<!-- signed: repo:objectstack#7 · zhuangjianguo ·
session_01QsR2jVMKrYARogu1S6PcHj -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 23, 2026
…led locked chip (objectstack-ai#36529)

<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9GPJ8pmbK219Pay95x25Uno)_
Fixes objectstack-ai#36507
Clause-②: no
Metadata-protocol: none

## 维护者速读

- 用户能看到什么变化:在仪表盘或报表上按「客户行业」这类关联字段钻取后,弹出列表顶部那枚锁定的条件标签,从「所属客户:= [object
Object]」变成「所属客户的行业:科技」(英文界面为「Account › Industry: Technology」)。
- 为什么做:属于「报表与仪表盘」专题,补上钻取弹窗那张卡留下的另一半,让读者看懂这份名单是按什么筛出来的。
- 出错会怎样:只影响这枚标签的文字,列表里筛出的记录不变;读不到关联对象的定义时退回显示原始字段名,可直接撤回。
- 要你做什么:无。

## What changes

- `ui/packages/plugin-list/src/conditions/conditionModel.ts` —
`readViewConditions` reads the nested-relation form (a lookup whose
condition is one related field equal to one scalar), as written and as
lowered to the triple `[lookup, '=', { field: V }]`, into one locked
chip whose `field` is the path `lookup.field` and whose operator is
`equals`. A plain-object value in a triple is never printed any more: a
nested condition the chip cannot say as one equality (several fields, an
operator map, a deeper relation, a non-`=` operator) reads as the
field-less 「View filter」 chip, which the model's header already promised
for any shape it does not read. New module-internal helper
`relationPathOf` (not exported from the package barrel). The
plain-object test is `isPlainRecord` imported from
`@objectstack/spec/data`, not a local copy (`check:spec-symbols` refuses
a local declaration under a spec export's name).
- `ui/packages/plugin-list/src/conditions/ListConditionControls.tsx` —
`viewChipText` labels a path chip as `relationPath(lookup label, related
field label)` + the value through `describeConditionValue` on the
related field, so a select's option label shows. New hook
`useRelatedConditionFields` reads the related object's definition
(`getObjectSchema(referenceTo)`, one read per distinct target, only
while such a chip is on screen, keyed on the target names) and
translates the field and option labels with `useSafeFieldLabel`
(`fields.OBJECT.FIELD`, `fieldOptions.OBJECT.FIELD.VALUE`), falling back
to the declared label, then the raw name. No record-name read is made
for a path chip.
- `listConditions.chips.relationPath` added to the default translations
and to all eleven locale packs, each in its own word order (`{{lookup}}
› {{field}}` in en/de/es/fr/pt-BR, `{{lookup}}的{{field}}`
zh-Hans/zh-Hant, `{{lookup}}の{{field}}` ja, `{{lookup}}의 {{field}}` ko,
`{{field}} ({{lookup}})` ru/ar).
- `.changeset/36507-drill-relation-chip.md` — patch,
`@object-ui/plugin-list` and `@object-ui/i18n`.

No new public ListView prop, no objectql change, no change to the
filter's execution shape: the chip is locked, as the card rules.

**Request count:** a list whose view filter carries a relation-path
condition makes one more `getObjectSchema` call per related object (the
HotCRM drill: `crm_account`, once). The ObjectStack adapter serves it
from its `metadataCache`. Lists with no such condition make no new call
(pinned by the CONTROL case).

**Shape measured:** PR objectstack-ai#36461's `drillConditions.ts` (read at its head
`5af2f6e3`) keeps the nested relation part as the list's base `filter`
(`{ crm_account: { industry: V } }`). `ListViewBlock`'s
`ElementDataSourceGate` lowers it through `toFilterNode` →
`convertFiltersToAST`, whose nested-relation arm writes `[field, '=',
condition]`. So the list's `readViewConditions` receives the triple,
which matches the card's measured chip (`data-field=crm_account`,
「所属客户:= [object Object]」). Both that triple and the card's written form
are read.

## Tests

Pins live in the shared harness
`ui/packages/plugin-list/src/conditions/__tests__/listConditions.test.tsx`
as a new top-level `describe` (AGENTS.md: a new pin for a component that
already has a shared harness file goes into that file), not in new
per-card files:

- model: the triple, the written object, the array element; two
unreadable nested shapes read as the field-less chip; CONTROL
`['amount', '>=', 10]` unchanged.
- en: chip reads `Account › Industry: Technology`,
`data-field="crm_account.industry"`, one
`getObjectSchema('crm_account')`, no `find`.
- zh-CN (I18nProvider, app bundle with `fields.crm_account.industry` and
`fieldOptions.crm_account.industry.technology`): chip reads
`所属客户的行业:科技`, the aria-label too.
- fallbacks: lookup not among the list's fields ⇒ `crm_account ›
industry: equals technology`, no read; definition read rejects ⇒
`Account › industry: equals technology`.
- CONTROL: a same-object view condition reads `Amount: >= 10`,
`data-field="amount"`, and reads no definition.

Existing tests changed: none.

## Acceptance notes

- The fallback chip text when the related definition cannot be read
keeps the operator word (`equals technology`): that is
`describeConditionValue`'s existing wording for an unknown field, the
same a same-object chip on an unknown field gets.
- A relation-path condition inside an `and` AST node at the top (a drill
whose base filter keeps two or more parts, e.g. a nested relation plus
an `$or`) still reads as one 「View filter」 chip: the model reads `and`
nodes that way for every condition, and the card names only the single
nested form. Not changed here.
- Latin-script packs (de/es/fr/pt-BR) carry the same format string as
en; the non-Latin packs carry their own word order, which
`untranslated-identity-4376.test.ts` asks for.

## Verification

Two-minute check: `pnpm --dir ui exec vitest run
packages/plugin-list/src/conditions/__tests__/listConditions.test.tsx -t
"related record"` ⇒ 6 passed.

Read first: `conditionModel.ts` `tripleChip` (the plain-object arm),
`ListConditionControls.tsx` `useRelatedConditionFields`, then
`viewChipText`.

<details><summary>Test and gate readings</summary>

All readings at head `6db1538b` (base origin/main `316f7571`).

- Patch round: `Type Check UI` was red at `749ddb3e` on
`check:spec-symbols`: `conditionModel.ts` declared a local
`isPlainRecord`, a name `@objectstack/spec/data` exports. `6db1538b`
imports the spec's (same predicate) and deletes the local copy. That
job's script steps rerun locally at `6db1538b` after the spec closure
build: `check:phantom-deps`, `check:self-import`,
`check:unreferenced-sources`, `check:doc-example-readers`,
`check:handler-key-reads`, `check:metadata-write-doors`,
`check:published-tsconfig-exclude`, `check:side-effects-array`,
`check:element-data-source-declaration`, `check:esm-specifiers`,
`check:spec-symbols`, `check:action-forward-parity`,
`check:designer-field-key-parity`, `check:icon-record-names`,
`check:i18n-keys`, `check:i18n-drift` ⇒ every one exit 0. The job's
turbo type-check over all ui packages is left to CI; the two packages
this diff touches were type-checked below.
- Dependency closure: `pnpm --workspace-concurrency=2 --filter
'@object-ui/plugin-list^...' build` under the verify lock ⇒ `VERDICT
command-exit 0`.
- Package tests: `vitest run packages/plugin-list/ packages/i18n/` at
the first commit ⇒ 290/291 files, 1 failed:
`untranslated-identity-4376.test.ts` flagged the new key byte-identical
to en in zh/ja/ko/ru/ar. Fixed by giving those packs their own word
order (third commit). At `6db1538b`: `vitest run
packages/plugin-list/src/conditions/ packages/i18n/` ⇒ `Test Files 108
passed (108)`, `Tests 2046 passed | 13 skipped`, `VERDICT command-exit
0`.
- At `6db1538b`: `pnpm --filter @object-ui/plugin-list run type-check`
and `pnpm --filter @object-ui/i18n run type-check` ⇒ `VERDICT
command-exit 0` (the harness file is in `tsconfig.test.json`'s program,
`--listFilesOnly` count 1).
- Ablation (committed fix first; `scripts/ablation-replace.mjs`, anchor
x1 → x0, blob `cfa314f0` → `87ab0641`): the plain-object arm of
`tripleChip` removed ⇒ 5 of the 6 new cases red, the CONTROL green; the
zh-CN case received `所属客户:= [object Object]`, the card's measured chip.
Restored: blob == HEAD `cfa314f0`, `git diff HEAD` empty.
- Derived gates (`dispatch-gates.mjs --commands`, 41 families, same list
at `6db1538b` as at `749ddb3e`): every one run untimed, every one `exit
0`. `--ran` reconciliation: 41 derived, 41 run, 0 NOT-MEASURED (a
derived zero).
- `pnpm --dir ui exec vitest run scripts/` under the lock at `6db1538b`
⇒ `Test Files 172 passed | 2 skipped`, `VERDICT command-exit 0`.
- `node scripts/pm/overlap-check.mjs
--branch=claude/issue-36507-drill-relation-chip` at `6db1538b` ⇒
`VERDICT clean exit 0` (merges cleanly with origin/main and with objectstack-ai#36437,
objectstack-ai#36411, objectstack-ai#36351, which share the locale files).

</details>

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

<!-- signed: repo:objectstack#2 · os-steve ·
session_01ADHkmRGDrq6JSytBsNFabU -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 23, 2026
…, and object-grid singleClickEdit is retired (objectstack-ai#36357)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9Ubb2rJZB694pnkwLCMmCEJ3ev)_

Fixes objectstack-ai#36270

repo:objectstack#7 · zhuangjianguo · session_01QsR2jSHfkSrXZxbdWoQxnW

Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: none — skills/ never names singleClickEdit,
keyboardNavigation or object-grid's editing gestures (git grep at the
head)

## 维护者速读

- 用户看到的变化:所有「可编辑」的表格(对象视图自己画的表格、页面里放的 object-grid
表格,和列表页一样)都改成「先选中、再编辑」:单击选中单元格,双击、回车、F2 或直接打字进入编辑,改完一格立刻保存;「全部保存 /
全部取消」那条保存栏不再出现。不可编辑的表格不变,单击仍然打开记录。元数据里的
`singleClickEdit`(单击即编辑)作废:写了会报错并提示删掉,`os migrate meta` 能自动删除。
- 为什么:按您的裁定 A「统一新编辑方式」。新方式里单击是「选中」,`singleClickEdit` 已经没有可切换的东西,按
ADR-0049「要么执行、要么删除」退役;`keyboardNavigation` 的说明也改成实际行为(可编辑表格上方向键导航始终开启)。
- 最坏情况:有人在页面元数据里写了
`singleClickEdit`,升级后该页面校验失败,需要删掉这个键(提示里写明了怎么做,迁移工具可自动删);或者某张可编辑表格的使用者习惯了单击就编辑,现在要多一次双击。本仓、hotcrm、gallery
中没有任何地方写过这个键。
- 需要您做的:无(L2 由席位在最终提交上做)。

## What changes

The ruling A on objectstack-ai#36270 (record 7076617499): one editing model. Every
grid that renders editable uses the list page's select-first cell model,
and the key that only made sense in the old model is retired.

- **`ui/packages/plugin-grid/src/ObjectGrid.tsx`** (the one behaviour
hunk): `hostCellSelection = cellSelectionProp ?? inlineEditable`. Absent
a host's `cellSelection`, a grid that renders editable (`editable` AND
the object's inline-edit verdict AND the reader's `update` grant) is
select-first; a read-only grid keeps click-to-open. A host's `true`
(`ListView`, the related tab) or `false` still wins. The data table is
handed `singleClickEdit: true` unconditionally: it is inert under
select-first, and it is the staged model's old default for a host that
passes `false`.
- **`@objectstack/spec`**:
`ComponentPropsMap['object-grid'].singleClickEdit` is a `retiredKey()`
tombstone; D2 conversion `object-grid-single-click-edit-removed` (strip,
whatever the value; order 83), D3
`object-grid-single-click-edit-retired`, `RETIRED_KEYS_BY_MAJOR[18]` row
`ui/ObjectGridProps:singleClickEdit`, a `STEP18_RATIONALE` fragment
(order 123), ledger `page.json` regions note [122] plus the narrowed
[43]. `keyboardNavigation`'s describe narrows to what is enforced:
always on for a grid that renders editable, `true` turns it on for a
read-only grid.
- **`@object-ui/types`**: `ObjectGridSchema.singleClickEdit?: never`
with a `retirementTombstone()` zod twin; the `object-view` `table` slot
inherits it (`TABLE_INHERITED_TOMBSTONES`, as `defaultSort`).
`DataTableSchema.singleClickEdit` (host-paired) is unchanged.
- **`@object-ui/plugin-view`**: `table.singleClickEdit` leaves
`OBJECT_VIEW_TABLE_RELAY_KEYS`. The earlier host-level `cellSelection`
spread is gone: `ObjectGrid`'s default covers the object-view grid,
authored nodes and react pages in one place.
- **`object-grid` inputs, `sdui.manifest.json`,
`content/docs/ui/components/*`**: the `singleClickEdit` input is gone
and the `editable` / `keyboardNavigation` descriptions say what the grid
does. Docs and READMEs (`plugin-grid.mdx`, `plugin-view.mdx`, both
packages' READMEs) describe select-first everywhere and the staged model
as a host's `cellSelection={false}`.
- BREAKING changeset
`.changeset/36270-object-grid-single-click-edit-retired.md`
(`@objectstack/spec` minor plus the three ui packages), with the FROM →
TO table and `<!-- adr-0087: registered … -->`.

## The card's Done-when: the five grid families

- **The object-view grid** (Studio view preview, a page placing an
`object-view`) and **the authored `object-grid` node**: changed here.
Pinned by `ObjectView.perCellSave-36270.test.tsx` and
`authoredGridPerCellSave-36270.test.tsx`, with the ablation below.
- **The related tab**: already select-first. `RelatedList.tsx` passes
`cellSelection: true`, pinned by `RelatedList.tab-35892.test.tsx`;
unchanged.
- **The record picker and the designer grids** (`RecordPickerDialog`,
`ObjectManager`, `FieldDesigner`): they render `ObjectGrid` without
`editable`, so they are read-only and unchanged.
- **Dashboard tables**: they are `data-table` / `object-data-table`
nodes, not `ObjectGrid`, and have no save path. The card's
dashboard-table pin therefore has no subject: there is no editable
dashboard grid to pin. A bare `data-table` that a host hands `editable`
still stages edits and draws its bar; that is the table primitive, which
no in-repo grid host reaches.
- So every grid that renders editable through `ObjectGrid` selects a
cell first, and no in-repo host passes `cellSelection={false}`.
- **The card's second Read-first question** (a child list inside a
parent form saved together, objectstack-ai#35590): no in-repo host draws such a list
through an editable `ObjectGrid`. The form's line items are the
`GridField` widget, which this PR does not touch, and no in-repo host
passes `cellSelection={false}` or its own `onBatchSave`. So no
saved-together list loses its staging here.
- **A React host's `onBatchSave`**: a host that passes `onBatchSave`
alone on an editable `ObjectGrid` now has it bypassed (each cell writes
through `onRowSave` or the grid's own `dataSource.update`). No in-repo
host passes it. The changeset carries a FROM → TO row for it and
`ObjectGridComponentProps.onBatchSave` is marked `@deprecated`.

## Tests

- New: `packages/spec/src/ui/object-grid-single-click-edit.pin.test.ts`
(tombstone at both channels for `true` / `false`, `editable` control,
the narrowed describe, the conversion's delete and its controls, the
step-18 wiring), `object-grid-single-click-edit-retirement.test.ts`
(tree-scoped absence, `repo` project),
`ui/packages/plugin-grid/src/__tests__/authoredGridPerCellSave-36270.test.tsx`
(an authored editable node saves one cell with no Save All; read-only
and host-`false` controls), and the earlier
`ObjectView.perCellSave-36270.test.tsx`.
- Migrated to the enforced contract:
`ObjectGrid.keyboardNavigation-11068.test.tsx` (editable grids read the
select-first pattern and `false` no longer turns it off; a host
`cellSelection={false}` control keeps the old roving-focus reading),
`ObjectGrid.cellSelection-35684.test.tsx`,
`rowContextMenu-28434.test.tsx`, the types slot/round-6 tests, the
ObjectView relay test.
- 25 plugin-grid inline-edit files that pin the staged path now pass
`cellSelection={false}` and no longer author `singleClickEdit`; two that
passed `cellSelection={x || undefined}` pass `cellSelection={x}` (under
the new default `undefined` means select-first).
- `retired-key-removal-version.pin.test.ts` joins the new conversion.

## Acceptance notes

- Select-first only where a grid renders editable, per the ruling;
read-only grids keep click-to-open (pinned by the controls above).
- `Clause-②: no (narrowing)`: the house spelling for a retirement; the
seat re-amended the claim to it (7077058264).
- Census of authored `singleClickEdit` in this repository's examples,
hotcrm and gallery: zero, so the conversion is for stored rows and
outside authors.
- `check-governed-merges --pr 36357`: NOT governed (0 of 60 paths),
1,355 changed lines, under the 3,000 human-merge threshold.
- With objectstack-ai#36332 (seat delta review 7077725274): once both land, a touch
never edits in place on any editable grid. The one exception is a host
that passes `cellSelection={false}`, which keeps the staged
click-to-edit, so there a touch edits in place. Whichever of the two
lands second re-runs overlap-check against the other's head.
- objectstack-ai#35827 (retire `onBatchSave`) is unblocked by this: no authored or
ObjectView grid reaches the batch save any more; only a host's explicit
`cellSelection={false}` does.

## Verification

Two-minute check: author `{ "type": "object-grid", "properties": {
"objectName": "<any>", "editable": true } }` on a page; click a cell (it
is selected, nothing opens), press Enter, type, press Enter: the value
saves at once and no "Save All" bar appears. Add `"singleClickEdit":
true`: the page refuses it with the prescription.

Files to read first, by risk:
`ui/packages/plugin-grid/src/ObjectGrid.tsx` (two hunks),
`packages/spec/src/ui/component.zod.ts`,
`packages/spec/src/conversions/entries/18/object-grid-single-click-edit-removed.ts`,
`ui/packages/types/src/zod/objectql.zod.ts`.

<details><summary>Local runs (final head 493b6a0)</summary>

Final head `493b6a01` = `2bd02429` plus a merge of main `0b2118f4` after
objectstack-ai#36478 landed (`719e8674`: main's side of
`scripts/sdui-manifest.record.json`, and `component.mdx` regenerated
with main's new `mobileMaxVisible` describe), then the regenerated
manifest record (`493b6a01`, one `sha256` line). No rebase.

- Dogfood battery on head 493b6a0: os-verify-lock `VERDICT command-exit
0` · `Test Files 485 passed | 3 skipped (488) · Tests 4108 passed | 68
skipped (4176)`, no failures.
- Derived gate families on 493b6a0: 132 run, 0 NOT-MEASURED, every exit
0. `check-sdui-manifest` intact; `check-regen-pending` clear.
- `overlap-check` on 493b6a0: clean against main `43916f3a` and every
open PR sharing files.
- CI at 493b6a0: 61 success, 9 skipped, 0 failed.

Runs at 2bd0242:

Final head `2bd02429` = a merge of `67fe4551` and main `dda5e74f`, made
after the merge queue dropped the PR on a conflict in the generated
`content/docs/references/ui/component.mdx`. The merge's only own change
is that file, regenerated (main's new `showStar` describe). The code
auto-merged, and `check-regen-pending` reports every deferred artifact
current.

- Dogfood battery on 2bd0242 (superseded by the run on 493b6a0 above):
os-verify-lock `VERDICT command-exit 0` · `Test Files 485 passed | 3
skipped (488) · Tests 4108 passed | 68 skipped (4176)`, no failures.
- Derived gate families on 2bd0242: 132 run, 0 NOT-MEASURED, every exit
0.
- `overlap-check` on 2bd0242: clean against main `70194ffc`; the known
conflict with draft objectstack-ai#36478 on `scripts/sdui-manifest.record.json`
stands.

Runs at 67fe455:

Final head `67fe4551` = `4e94a273` plus the S4 changeset fix (the touch
sentence, and one comment's wording). That commit changes only the
changeset and that comment.

- Dogfood battery on head 67fe455 (`pnpm --filter @objectstack/dogfood
test`, closure built under the lock): os-verify-lock `VERDICT
command-exit 0` · `Test Files 485 passed | 3 skipped (488) · Tests 4108
passed | 68 skipped (4176)`, no failures.
- Derived gate families on 67fe455: 132 derived; `--ran` reconciles 132
run, 0 NOT-MEASURED, every exit 0.
- `overlap-check` on 67fe455: clean against main; one conflict with
draft objectstack-ai#36478 in `scripts/sdui-manifest.record.json` (the regenerated
manifest record both PRs carry): whichever lands second merges main and
regenerates it.

`4e94a273` = the review rework (`3894ea44`: TSDoc and comments,
`onBatchSave` `@deprecated`, changeset rows, docs) plus a merge of main
after objectstack-ai#36332 landed (no rebase, no conflicts).

- Dogfood battery on 4e94a27 (superseded by the run on 67fe455 above)
(`pnpm --filter @objectstack/dogfood test`, closure built under the
lock): os-verify-lock `VERDICT command-exit 0` · `Test Files 485 passed
| 3 skipped (488) · Tests 4108 passed | 68 skipped (4176)`, no failures.
- Derived gate families on 4e94a27: 132 derived; `--ran` reconciles 132
run, 0 NOT-MEASURED, every exit 0 (also 132/132 exit 0 on `3894ea44`
before the merge).
- After the merge: `@object-ui/plugin-grid` `Test Files 305 passed ·
Tests 2705 passed`; `@object-ui/plugin-view` `Test Files 67 passed ·
Tests 732 passed`. `type-check` for `@object-ui/types` and
`@object-ui/plugin-grid` exit 0 on `3894ea44`.
- `overlap-check --exclude-pr=36357` on 4e94a27: clean against main and
the eight open PRs sharing files (objectstack-ai#36439, objectstack-ai#36438, objectstack-ai#36435, objectstack-ai#36411,
objectstack-ai#36392, objectstack-ai#36351, objectstack-ai#36343, objectstack-ai#36316). objectstack-ai#36332 is merged and is in this head.

Earlier runs (head 579f99a; suites on 1c2a16b):

- `@object-ui/plugin-grid` whole package: `Test Files 298 passed | 3
failed (301) · Tests 2676 passed | 6 failed`; the 6 (keyboardNavigation
×4, cellSelection ×1, rowContextMenu ×1) were fixed and those three
files re-run green (8 + 28 + 18).
- `@object-ui/plugin-view` whole package: `Test Files 67 passed (67) ·
Tests 732 passed (732)`. `@object-ui/types`: `Test Files 389 passed ·
Tests 10498 passed`.
- `type-check` for `@object-ui/types`, `@object-ui/plugin-grid`,
`@object-ui/plugin-view`: exit 0.
- `@objectstack/spec` test under the verify lock: 1 failed of 27,924
(`retired-key-removal-version.pin`, the JOIN row this PR then added;
that file re-run 63 passed). `test:repo`: `Test Files 93 passed · Tests
1564 passed`.
- Derived gate families (`dispatch-gates --commands`): 132 derived;
`--ran` reconciles 132 run, 0 NOT-MEASURED. Six first read exit 3 on a
stale spec dist and `check:generated` exit 1 on the same stamp; after
`pnpm --filter @objectstack/spec build` all seven re-ran exit 0.
`check-plugin-teardown-shape --self-test` needed its pinned fixture
commit fetched into the shallow clone, then exit 0.
- `node scripts/gen-sdui-manifest-node.mjs` under the lock, then
`gen-sdui-reference.mjs`; `check-doc-component-types.mjs` green.
- `overlap-check --exclude-pr=36357`: clean against main and the six
open PRs sharing files (objectstack-ai#36392, objectstack-ai#36380, objectstack-ai#36351, objectstack-ai#36343, objectstack-ai#36332, objectstack-ai#36316).
- Earlier dogfood battery on 1c2a16b (superseded by the run on 4e94a27
above): `Test Files 484 passed | 3 skipped (487) · Tests 4107 passed |
68 skipped (4175)`. The one commit after it (579f99a) touches two docs
snippets only.
- `pnpm --dir ui check:doc-snippets` after a scoped build: 544 of 544
blocks judged, 0 failed (the Lint UI red on 1c2a16b was the new
staged-model snippet missing its import, fixed in 579f99a).

</details>

<details><summary>Ablation (`scripts/ablation-replace.mjs`, restored to
the HEAD blob, `git diff HEAD` empty)</summary>

- `cellSelectionProp ?? inlineEditable` → `cellSelectionProp` (the
base's behaviour): 3 failed of 6 — the object-view `table.editable` and
named-view `inlineEdit` per-cell saves and the authored-node per-cell
save; the three controls (read-only object-view, read-only node, host
`false`) stay green.

</details>

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

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

https://claude.ai/code/session_01QsR2jSHfkSrXZxbdWoQxnW

<!-- signed: repo:objectstack#7 · zhuangjianguo ·
session_01QsR2jSHfkSrXZxbdWoQxnW -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 23, 2026
…ck-ai#36363) (objectstack-ai#36437)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbCxiFE11rsKwyNffJZKYqJs)_

repo:objectstack#7 · zhuangjianguo · session_01QsR2jSr8sNCnJrK6Q9kEF5

Fixes objectstack-ai#36363

Clause-②: yes (widening)
Metadata-protocol: none

## 维护者速读

-
用户能看到什么变化:管理员进入设计模式后,左侧菜单变成可编辑:每个分组底部有「添加菜单项」,点了先在那个位置占一行虚线框,再弹出选择面板(搜索框,按对象、视图、仪表盘、报表、页面、链接分类,只列已经存在、还不在菜单里的);每一项鼠标移上去右边有「⋮」:上移、下移、移到分组、在前面或后面加一项、改名和图标、从菜单移除;也可以直接拖动。改动都等设计模式的「保存」一起写入并发布,所有成员都能看到;「取消」全部丢掉。安装来的应用(只读包)现在也能进入设计模式,改动存为本环境的定制。保存写的是应用存储的菜单,不是当前用户看到的那份:中文界面下保存不会把中文名写进菜单,管理员看不到的条目也原样保留,只改动管理员动过的那几项。改名只在部署的默认语言下开放(且该项显示名就是存储名),其他语言下名称框禁用并提示「菜单名称需在应用的源语言下修改」;新增、移动、图标在任何语言下都能改。其他包追加进菜单的条目(例如
HotCRM
收入模块的报价、产品)在这里不能移动、改名或移除,「⋮」里会说明要到那个包里改。有未保存的菜单改动时,切到别的应用、关闭或刷新页面会先弹出外壳原有的未保存提示(留在这里
/ 放弃并离开),选「留在这里」改动还在;没有改动时照常直接切换。
- 为什么做:维护者要求菜单在运行界面里直接改,不再去 Studio;这是设计模式这条线的第二张卡。
- 出错会怎样:最坏情况是保存后菜单顺序或条目不是管理员想要的,再进设计模式改回即可;「移除」只是不在菜单显示,东西本身不删;若同一应用在
Studio 里有未发布的草稿,保存会拒绝并说明原因,不会覆盖别人的草稿。
- 要你做什么:无。翻译名称的写入(在非默认语言下改名)和服务端声明应用源语言是后续卡 objectstack-ai#36504,本 PR 不做。一处与 ADR-0146
D5 不同的地方已由席位记入修订卡:安装来的应用,管理员页头的入口从「在 Studio 中查看」变成「编辑应用」(进入设计模式),这是本卡第 7
条的要求。这只是过渡:按你新定的 objectstack-ai#36485,设计模式入口会移到左上角应用名菜单,页头这两个按钮会去掉,由那张卡来做;本 PR
只改了现有按钮的一个判断,没有新做按钮。

## What changes

While the design mode (objectstack-ai#36362) is on, the sidebar draws the app's menu
with its editor (`layout/DesignModeMenu.tsx`), instead of the plain
menu.

- **Add menu item.** Each group, and the menu's top level, ends with
「Add menu item」. Pressing it holds a dashed row 「Choose a menu item…」 at
that place and opens a picker: a search box over every kind, then the
kinds Objects, Views, Dashboards, Reports, Pages and Link. A kind lists
what exists and is not in the menu yet (`designModeMenu.ts`
`targetKeyFor` / `entryForTarget`, one key per thing the menu opens); a
record page is never offered. Picking one puts it in the held row.
- **The entry's 「⋮」 menu**: move up, move down, move to group (a submenu
of the other groups and the top level), add an item before or after,
rename and icon, remove from the menu. Removing takes the entry off the
menu only; the picker offers it again.
- **Rename only in the source language** (seat ruling (4) on review
7081226692). The name field of 「Rename and icon」 is open when the
session language is the deployment's default (`GET
/api/v1/i18n/locales`, the descriptor marked `isDefault`; compared
case-insensitively, `en` matching `en-US`) and the entry's shown label
equals its stored label. Otherwise it is disabled with the hint 「Menu
names are changed in the app's source language」, and only the icon is
written. Adding, moving and the icon stay open in every language. The
stored labels are taken to be in the default language because the server
states no source language of its own: `/i18n/locales` exposes
`isDefault` only, not `i18n.sourceLocale`. That gap, and the console's
write path for a translation, are follow-up objectstack-ai#36504.
- **Another package's entry** (its manifest's `navigationContributions`,
appended to the app when it is served, found live on HotCRM) is not in
the app's stored menu. Its 「⋮」 says 「Another package adds this item. It
is moved, renamed or removed there.」, its move, rename and remove items
are disabled, and it is not dragged; adding an item before or after it
stays open. No entry is moved past it either: 「Move up」 or 「Move down」
into its place is off, and a drop onto it does nothing (its place is
that package's). Such entries close their group when the app is served,
so an own entry added or moved at or past them is stored and served
before them; the editor draws it there too: the group's 「Add menu item」,
「Add an item after」 on such an entry, 「Move to group」 and a drop on the
group's end land before them (L1-e review 7083961269 item 1). This holds
once the editor's stored-menu read has landed, in a group the app's own
menu holds; a group another package adds (N9) and the moment before that
read (N10) are on follow-up objectstack-ai#36538. The click a drag ends with opens
nothing (item 2, and review 7084606001): once a pointer drag is active,
dnd-kit stops that click in the document's capture phase without
cancelling it, so after a drop the editor refuses (onto another
package's entry, which leaves the dragged link under the pointer) the
link's default ran as a full page load and the mode was lost. The editor
cancels that click on the window in the capture phase, which runs before
dnd-kit's listener. An entry's link is also not natively draggable. The
drag's end is also stamped from the pointer's own release on the window,
and a new press clears it, because dnd-kit reports an end only after the
start has rendered and a fast flick could otherwise leave every link
shut (review 7085270448 S3). The save holds the same rule on its own, so
it stands when the editor's stored read failed. Without this, a moved
contributed entry would have been written into the app's menu and then
served twice (the contribution is appended again, with no
de-duplication), and a removed one would silently stay.
- **Drag** moves an entry within its group or to another group (dnd-kit,
pointer and keyboard). In the mode, Enter or Space on a focused entry
picks it up for a keyboard move (dnd-kit's keyboard sensor) rather than
opening its page; a click opens it.
- **Staged with the mode.** Every edit is staged under one key
(`app-menu:<app>`); 「Save」 writes it, 「Cancel」 drops it. The picker
tells what is already in the menu by one key per thing it opens, spelled
`kind/name` (`object/crm_lead`, `view/…`); they are compared only with
each other and are no cache key.
- **The save writes the stored menu, never the served one** (review
7081226692). The served app is translated for the reader
(`translateApp`) and pruned of entries the reader may not open
(`filterNav`), so writing it back would store the reader's language on
every label and drop what the reader was not shown. The save reads the
app as stored (the layered read, `/layers?package=…`, which serves a
caller who may write the app its stored version, unpruned and
untranslated: `effective ?? code`) and replays the edits on its
navigation by entry id (`designModeMenu.ts` `rebaseMenuEdits`): an entry
removed is removed; an entry added is put after the entry before it in
the edited menu; an entry moved (to another group, or out of the order
its group's other entries kept, found as the longest common run per
group, so a removal beside an entry does not move it) is taken out and
put back after the entry before it; an entry whose own keys changed has
only those keys written. Every other stored entry, an entry the reader
was never shown included, is the same object. A stored entry is matched
to its served copy by id only when both name the same thing (type and
target); otherwise, and for a stored entry without an id, by its group,
type and target, in order (the editor gives served entries without an id
the first free `nav_item_<n>` of what the reader was shown, which a
stored entry pruned from the reader can already hold). Nothing the
stored menu does not hold is ever written from its served copy: an entry
another package contributes, or one that has left the stored menu since
it was read, is not moved, patched or written, and takes no part in the
order comparison; only an entry the served menu does not hold is an
addition, and one whose id a stored entry holds is written under a fresh
`nav_item_<n>` (the picker also mints ids against the stored menu). An
entry naming no target is left out (`navPayloadOf`, as Studio's nav
save).
- **Where the save** (`designModeMenuSave.ts`) writes the app with its
new `navigation` is where Studio's menu editing writes it
(objectstack#30059, ADR-0146 D2/D3): the app's own package when the
server lists it writable, else its paired customization package (asked
of the ensure door, which creates it on first use), the body declaring
the override at the base's listed version. The base's version is checked
before the ensure door is asked, and a pair the server answers not
writable is refused before anything is written to it. It is written by
the runtime's confirmed-save rule: a draft with the first-write pin (a
draft already pending, from Studio say, is refused and said, never
overwritten nor published), then publish; a refused publish discards the
draft this save wrote. A landed publish refreshes the console's
metadata, so the menu re-reads.
- **Installed apps enter the mode** (`ShellPageActions.tsx`): in the
read-only (`view`) posture, 「Edit app」 now enters the mode where the
customization door takes the caller; where it is walled off (a walled
deployment, caller not the platform operator) the eye 「Open APP in
Studio」 stays. This is kept, and kept minimal: one condition on the
existing header button (about 10 lines), with no new button. The
maintainer has since moved the mode's entry to the app-name menu and
retired the header's 「Edit app」 and 「Open in Studio」 under objectstack-ai#36485 (card
comment 7080271489). That later PR owns the installed-app path through
the new entry; this PR lands first, so an installed app can enter the
mode until then.
- **Leaving with unsaved menu changes asks first** (the card's added
requirement, comment 7079728193). Switching app from the app menu, a
link out of the app, a reload or a tab close asks first while a menu
change is staged; with nothing staged, nothing asks. This is the shell's
one unsaved-changes prompt (`chrome/unsavedEdits.ts`:
`confirmUnsavedLeave` and the `beforeunload` hold), which the design
mode registers for every staged change since objectstack-ai#36362. The menu editor
stages through the mode, so no code change was needed; the new tests pin
it for the menu. That prompt offers two choices: stay, or leave and drop
the changes. It has no 「Save」. The comment asks for the shell's prompt
where one exists, so no three-button dialog was added.
- **Outside the mode** the menu is as before: no 「Add menu item」, no
editor 「⋮」.
- An app whose menu is split in areas keeps its menu unedited in the
mode (the picker and the moves work on one menu tree).
- New i18n keys under `designMode.menu` in every hand-written locale,
zh-Hant generated.

Read first, by risk:
1. `ui/packages/app-shell/src/layout/designModeMenu.ts`
`rebaseMenuEdits` / `staysInOrder` / `storedKeyer`: the edits replayed
on the stored menu.
2. `ui/packages/app-shell/src/layout/designModeMenuSave.ts`: the stored
read, the check order, where the write goes, and the pending-draft
refusal.
3. `ui/packages/app-shell/src/layout/DesignModeMenu.tsx` `nameOpen` /
`contributed`: the rename rule and another package's entries.
4. `ui/packages/app-shell/src/layout/ShellPageActions.tsx`: the
read-only posture entering the mode, and the wall.

## Tests

- New `layout/__tests__/designModeMenu-36363.test.ts`: move up/down stop
at the group's ends; move to a group appends, never into itself; a drop
lands before/after by direction; insert clamps; rename and icon patch;
one key per thing; ids are unique. Added for the review: a view named
without its object is keyed as that object's view (S1); no edit returns
the stored menu itself; a removal beside an entry does not move it; a
move to another group takes the stored entry there; a group the stored
menu lacks puts the entry at the top level's end; an id-less stored
entry is matched by its target. Added for review 7082970423: a move
beside another package's entry (down past it, it up past one, it to the
top) returns the stored menu itself (M1); an entry moved after it left
the stored menu is not written back (M1); an added entry whose id a
hidden stored entry holds is written under a fresh id, the hidden one
kept (S2); a served entry given the id a hidden stored entry holds is
matched by its target, so removing it removes it and not the hidden one
(S2). All five were red against the previous `designModeMenu.ts`.
- New `layout/__tests__/designModeMenuSave-36363.test.ts`: writable
package saved and published; read-only package saved into its
customization package declaring the override at the base's version; a
base with no version refused before writing; an unlisted package
refused; a pending draft not overwritten nor published; a refused
publish discards the draft. Added for the review: a base with no version
is refused before the ensure door is called (the calls are the layered
read alone) (N1); a pair answered not writable is refused before
anything is written to it; a move under a zh-CN-translated menu writes
the stored English labels and the untouched entries as the same objects;
an entry pruned from the reader stays where it was stored; a rename
writes the one key it changed; id-less stored entries are matched and
written without an id; an entry naming no target is left out (N3); the
session language against the default one. Added for review 7082970423: a
move beside another package's entry writes none of that package's
entries (M1).
- New `layout/__tests__/DesignModeMenu-36363.test.tsx`: 「Add menu item」
per group and the top level, 「⋮」 per entry; 「Move up」 staged and saved;
「Move to group」; the held row and a picker offering only what exists and
is not in the menu; search over every kind, no record page; remove and
offer again; rename; 「Cancel」 after three edits leaves the menu and
writes nothing. Added for comment 7079728193: a moved entry not yet
saved makes the app switch ask, staying keeps the move, and leaving goes
on and writes nothing; a reload or a tab close is held while the move is
unsaved, and released once it is saved; with nothing changed, switching
asks nothing. Without the mode's registration, the first two go red.
Added for the review: under zh-CN with English the default, the rename's
name field is disabled with the hint, and the icon alone is saved, the
stored English label kept; in the default language, an entry shown under
a label other than its stored one is not renamed; adding and moving stay
open under zh-CN; another package's entry says where it is changed and
its move, rename and remove are disabled; dropping an entry on another
group's end moves it there, dropped on an entry elsewhere it takes that
place, and the save writes the result (N4, through `DndContext`'s
`onDragEnd`). Added for review 7082970423: 「Move down」 above another
package's entry is off and a drop on it does nothing; when the editor's
stored read failed on entry (so another package's entry looked movable),
moving it still writes none of it (M1). Added for review 7083961269:
「Add menu item」 at the end of a group that ends with another package's
entry holds the row, and puts the pick, before it, and the save stores
it there; 「Add an item after」 on that entry and 「Move to group」 into its
group land before it; a drop on that group's end lands before it; an
entry's link has `draggable="false"`, the browser's own drag of it is
refused (`dragstart` default prevented), and after a drag refused on
another package's entry the click it ends with leaves the address as it
was, while a plain click still opens the entry's page. All four were red
against the previous `DesignModeMenu.tsx`. Added for review 7084606001,
on the real event order through dnd-kit's own pointer sensor:
pointerdown on the link, moves past the 5 px activation distance,
pointerup, then a click on the link; the click is stopped in the
document (as in the browser) and its default is cancelled. It was red
against d1522bf's `DesignModeMenu.tsx`, whose React click handler that
click never reached. Its closing plain click now asserts that the
entry's page opens (N11). Added for review 7085270448 S3: a drag whose
end dnd-kit never reports, then the pointer's release, leaves the links
open; red against effe780.
- `ShellPageActions-36111.test.tsx`: a read-only package enters the
mode; under the wall it keeps the eye; a writable package under the wall
still enters.
- `UnifiedSidebar.favoritesMenu-12427.test.tsx`: outside the mode no
「Add menu item」 and no editor 「⋮」.

<details><summary>Readings at 71c8835</summary>

- The touched test files and the objectstack-ai#36362 pins beside them: 78/78 passed.
- Related-test sweep (every test file naming `UnifiedSidebar`,
`ShellPageActions`, `DesignModeMenu`, `designModeMenu` or
`useAppStudioEntry`, 84 files): 715 passed, 1 red:
`sidebarGroupLabel.callSites-12795` wants every `SidebarGroupLabel` call
site to declare the icon-mode hiding constant. Fixed in this PR (the
editor's group label declares and passes it); the file re-run: 7/7.
- `type-check` for `@object-ui/app-shell` and `@object-ui/i18n`: exit 0
(one `new Error(message, { cause })` under the package's ES2020 lib
fixed first).
- `dispatch-gates.mjs --commands` derived 41 gates (the same 41 at this
head). 40 exit 0 at 4bc9854d3, this tree less three fixes in `ui/`.
`pnpm --dir ui exec vitest run scripts/` was killed for memory on its
first run; run alone it found 7 reds in three gates, all fixed here: a
menu-kind i18n key built from a template (`check-i18n-call-site-keys`,
`check-i18n-dead-keys`; now each key written whole) and a test mock
binding the gate could not read as inheriting (`check-vi-mock-inherit`).
The three files re-run: 381/381. The whole gate re-run at this head with
two workers: 5,127 passed, 2 skipped, exit 0. `--ran` reconciliation: 41
derived, 41 run, 0 not measured, every line with its exit code.
- `overlap-check.mjs`: origin/main and 10 open PRs sharing files (objectstack-ai#36391
shares `UnifiedSidebar.tsx`; the rest share locale files) all merge
cleanly.

At 6516005 (the follow-up fix): the i18n pack pins counted the new
keys. The German icon hint quotes its example with „“
(`de-quote-pairing-3876`), the Korean picker's 로딩 중… is the pack's one
rendering, and the Loading group counts `designMode.menu.loading`
(`ellipsis-glyph-3878`).

At 02d1fe6 (origin/main merged in, the PR was `dirty`): one conflict,
the de quote-pair counts. Main's objectstack-ai#36286 took 124, so the menu editor's
icon hint is the 125th pair. In the i18n package at the merge, 1,625
tests ran and all passed, the count pins included. 18 files could not
load in the side worktree, because workspace packages were not linked
there; CI runs them. `overlap-check.mjs` at the merge: origin/main and 7
open PRs sharing files all merge cleanly.

At 1c271b1 (comment 7079728193, the leave prompt):
`DesignModeMenu-36363.test.tsx` gains three cases: a moved entry asks
when the app is left (stay keeps the move, leave goes on), the browser's
reload or close is held while unsaved, and an untouched menu asks
nothing. Each was checked red against its mutation (the registration
taken out) before it went green.

At def2f64 (CI red, `viewCacheInvalidation.guard`): the guard forbids
a `view:`-prefixed template anywhere in app-shell. The menu editor's
target keys, which are only an identity for "this entry is already in
the menu" and no cache key, are now spelled `kind/name`. The four
touched test files, the guard included: 33/33 passed.
`dispatch-gates.mjs --commands` at this head derives the same 41 gates.
`--ran`: 41 derived, 41 run, 0 not measured. 40 exit 0. One exits 1:
`pnpm --dir ui exec vitest run scripts/` (two workers; the default run
is killed for memory in this container), with 2 failures, both in
`date-only-zone-pins-10183`. The child's case "control: an instant
formats in the viewer's zone, 2026-09-01 03:00 here" in
`FormulaFunctions.dateOnlyZone-10866` read 11:00, the Asia/Shanghai
hour. That file run alone in the forked child passes 39/39. The child's
node project runs with `isolate: false`, the pins set `process.env.TZ`
and never put it back, and the suite-zone case passes no zone, so it
reads whichever zone an earlier pin file in the same worker left. This
PR touches no date, formula or zone code; it is an order dependence
among the pins, filed as objectstack-ai#36492, not this change. `overlap-check.mjs`:
origin/main and 5 of 6 open PRs sharing files merge cleanly; objectstack-ai#36411
conflicts only on the de quote-pair count line (both add a pair), which
whichever lands second recounts.

At aed9f08 (the rework for reviews 7081226692 and 7081253549, and
ruling (4)): `type-check` for `@object-ui/app-shell`: exit 0 (after the
workspace's dependency dists were rebuilt, `turbo run build
--filter=@object-ui/app-shell^...`, 68 tasks). The three menu test
files: 49 passed. `packages/i18n/` and `packages/app-shell/src/layout/`
together: 261 files, 3,191 passed, 13 skipped. `dispatch-gates.mjs
--commands` derives the same 41 gates. `--ran`: 41 derived, 41 run, 0
not measured. 40 exit 0. `pnpm --dir ui exec vitest run scripts/` (run
as derived, default workers, completed this time) exits 1 with the same
2 failures in `date-only-zone-pins-10183` (objectstack-ai#36492, the TZ order
dependence), and nothing else: 5,125 passed. The two changeset gates and
`check:closed-ceremony-text` were run again after the changeset text
changed: exit 0. `overlap-check.mjs`: origin/main merges cleanly; objectstack-ai#36351
merges cleanly; objectstack-ai#36411 conflicts only on the de quote-pair count line,
as before.

At 11b0e58 (CI's Type Check UI red at aed9f08):
`designModeMenu-36363.test.ts(161,49) TS7053`. A new pin indexed
`STORED[3].children`, which the test project types as `{}`. Only the
package's main tsconfig had been run locally. The pin now casts it to
`Menu`, as its siblings do. The package's whole `pnpm run type-check`
(main and test tsconfigs) exits 0, and the file passes 29/29. The 41
derived gates were re-run at this head: `--ran` shows 41 of 41 accounted
for, 40 exit 0, and `vitest run scripts/` exits 1 on objectstack-ai#36492 only. All 16
Test UI shards were green at aed9f08. `overlap-check.mjs` is
unchanged.

At 5279122 (review 7082970423, M1 and S2): the three menu test files
pass 56/56. The five new pure and save cases were run against the
previous `designModeMenu.ts` first, and all five were red.
`packages/app-shell/src/layout/` passes: 155 files, 1,219 tests. The
package's whole `pnpm run type-check` (main and test tsconfigs) exits 0.
`dispatch-gates.mjs --commands` derives the same 41 gates. `--ran`: 41
of 41 accounted for, 40 exit 0, and `vitest run scripts/` exits 1 on
objectstack-ai#36492 only. `overlap-check.mjs`: origin/main, objectstack-ai#36529, objectstack-ai#36525 and objectstack-ai#36351
all merge cleanly; objectstack-ai#36411 conflicts on the de quote-pair count line
only, as before.

At d1522bf (L1-e review 7083961269, items 1 and 2):
`DesignModeMenu-36363.test.tsx` passes 22/22; the four new cases were
run against the previous `DesignModeMenu.tsx` first, and all four were
red. `packages/app-shell/src/layout/` passes: 155 files, 1,224 tests.
The package's whole `pnpm run type-check` exits 0. `dispatch-gates.mjs
--commands` derives the same 41 gates. `--ran`: 41 of 41 accounted for,
40 exit 0, and `vitest run scripts/` exits 1 on objectstack-ai#36492 only (2 failures
in `date-only-zone-pins-10183`, 5,125 passed). `overlap-check.mjs`:
origin/main, objectstack-ai#36525 and objectstack-ai#36351 merge cleanly; objectstack-ai#36411 conflicts on the de
quote-pair count line only, as before.

At effe780 (L1-e review 7084606001 item 2, and the changeset sentence
from review 7084744396): `DesignModeMenu-36363.test.tsx` passes 23/23;
the new real-event-order case was red against d1522bf's
`DesignModeMenu.tsx`. `packages/app-shell/src/layout/` passes: 155
files, 1,225 tests. The package's whole `pnpm run type-check` exits 0.
`dispatch-gates.mjs --commands` derives the same 41 gates. `--ran`: 41
of 41 accounted for, 40 exit 0, and `vitest run scripts/` exits 1 on
objectstack-ai#36492 only (2 failures in `date-only-zone-pins-10183`, 5,125 passed).
`overlap-check.mjs`: origin/main, objectstack-ai#36525 and objectstack-ai#36351 merge cleanly;
objectstack-ai#36411 conflicts on the de quote-pair count line only, as before.

At f68c14b (review 7085270448 S3 and N11):
`DesignModeMenu-36363.test.tsx` passes 24/24; the new flick case was red
against effe780's `DesignModeMenu.tsx`.
`packages/app-shell/src/layout/` passes: 155 files, 1,226 tests. The
package's whole `pnpm run type-check` exits 0. `dispatch-gates.mjs
--commands` derives the same 41 gates. `--ran`: 41 of 41 accounted for,
40 exit 0, and `vitest run scripts/` exits 1 on objectstack-ai#36492 only (2 failures
in `date-only-zone-pins-10183`, 5,125 passed). `overlap-check.mjs`:
origin/main, objectstack-ai#36525 and objectstack-ai#36351 merge cleanly; objectstack-ai#36411 conflicts on the de
quote-pair count line only, as before.

At c0eb5d6 (CI's Lint UI red at f68c14b,
`object-ui/no-synthetic-event-trigger`, ADR-0054 C1): the three new
`dispatchEvent(new MouseEvent(...))` lines of
`DesignModeMenu-36363.test.tsx` are `fireEvent.click` and
`fireEvent.pointerUp(window)`, asserting the same. Only that test file
changed. `eslint` over the PR's ui files: 0 errors (warnings as on
main). The menu tests pass 24/24, and the flick case is still red
against effe780's `DesignModeMenu.tsx`. The package's whole `pnpm run
type-check` exits 0. The derived gate sweep was not re-run: no source
file changed since f68c14b's sweep; it does not include ESLint, which
is why it missed this red.

</details>

## Acceptance notes

- **ADR-0146 D5.** D5 draws the app → Studio bridge for a read-only
package as a browse entry (the eye). For a caller the customization door
takes, an installed app's 「Edit app」 now enters the design mode instead,
as the card's item 7 asks (an installed app's menu is edited as this
environment's customization). The seat records the D5 row on the ADR
revision card objectstack-ai#36086. A member, and a caller behind the wall, see what
they saw before.
- **Card item 7 (installed apps enter the mode): this PR delivers it.**
On main, HotCRM still shows 「Open in Studio」 because this PR is not
merged yet. Once it merges, an installed app such as HotCRM shows 「Edit
app」 to a caller the customization door takes, and pressing it enters
the mode. Verified live on HotCRM in zh-CN (see Verification).
- **Renames in another language are not offered** (seat ruling (4)). The
rule takes the deployment's default language as the app's source
language, because the server does not expose `i18n.sourceLocale`. A
deployment whose default language differs from the language its apps are
authored in would see the name field closed in every language until
objectstack-ai#36504 adds `sourceLocale` to `/i18n/locales` and a console write path
for a translation.
- **Another package's menu entries are read-only here.** Moving or
removing them belongs to the contributing package (or a later card for
an override of a contribution).
- **Left as they are, from reviews 7082970423 and 7083821939; follow-up
objectstack-ai#36538.** The seat collected N6 through N10 on follow-up card objectstack-ai#36538
(N10, from review 7084744396: before the editor's stored-menu read
lands, an entry added at a group's end is drawn after another package's
entries). N7 (two id-less stored entries naming the same target), N8 (a
layered read answering neither `effective` nor `code`) and N9 (another
package's group listed in 「Move to group」) are the nits of review
7083821939 and are not changed here. N6: nothing pins the stored version
between the save's layered read and its draft write, so a publish by
someone else that lands in that window (the length of one request) is
overwritten; the first-write pin refuses only a pending draft. N2's
other half: while the tenancy posture is still being read, a walled
deployment can briefly show 「Edit app」 to a tenant administrator; the
posture hook answers `undefined` both while reading and on a deployment
that reports none, so closing it there would also close the mode where
no wall exists, and the server refuses the save behind a wall either
way. N5 (a link's typed label stored as its base label in any language)
is on objectstack-ai#36504.
- **Where it is saved** is the same document Studio's menu editing
saves, so a menu edited here shows in Studio, and the reverse.
- An app whose menu is split in areas is not edited in the mode (its
menu is drawn unedited); no such app is in the showcase or HotCRM.
- Not in this PR, as the card says: new dashboard or report (objectstack-ai#36364),
adding, removing or renaming groups, visibility conditions, personal
favorites.
- **The chain stops at this card, with one exception.** The maintainer
ruled at 2026-11-22 13:52Z that only the current stage is finished, so
objectstack-ai#36364 is not started from this chain. At 14:08Z the maintainer approved
resuming objectstack-ai#36366, as its own PR after this one lands; no branch or PR is
open for it yet.
- No docs page describes the runtime menu editing, so no docs change.

## Verification

**HotCRM, zh-CN, at this head** (review 7081226692 item (3)). HotCRM
6.5.0 (`pnpm dev`, a fresh database, `pnpm demo:staff`) on port 4001,
this branch's console (Vite) proxied to it, a Chromium context in
`zh-CN`, signed in as the seeded admin. `GET /api/v1/i18n/locales` marks
`en` default. HotCRM's package `app.objectstack.hotcrm` is listed
read-only.

- The design mode drew the zh-CN menu (首页, 销售主页, 销售 › 线索, 客户, …, 35
entries). 「⋮ → 改名和图标」 on 线索: the name field disabled, the hint
「菜单名称需在应用的源语言下修改」. 「⋮」 on 报价 (the revenue module's contribution):
「此菜单项由另一个包添加,请在那个包中移动、改名或移除。」
- Edits: 「⋮ → 上移」 on 客户 (above 线索); 「添加菜单项」 under 数据洞察, 对象, picked 活动参与者
(`crm_event_attendee`). Saved; the bar went.
- Network, in order: `GET /api/v1/i18n/locales` 200; `GET
/api/v1/meta/app/crm_enterprise/layers?package=app.objectstack.hotcrm`
200 (on mount, and again in the save); `POST
/api/v1/packages/app.objectstack.hotcrm/ensure-customization` 201; `PUT
/api/v1/meta/app/crm_enterprise?mode=draft&package=app.objectstack.hotcrm.custom`
200; `POST
/api/v1/meta/app/crm_enterprise/publish?package=app.objectstack.hotcrm.custom`
200. Every request carried `Accept-Language: zh-CN`.
- The PUT body: `overrides: {package: app.objectstack.hotcrm, basedOn:
6.5.0}`; its `navigation` holds no CJK character; 34 stored entries plus
the one added; none of the 8 contributed entries (报价, 产品, 价格表, 产品目录,
知识库, 回款节点, 收入手册, 订单与回款手册) written; no entry's own keys differ from the
stored one; 销售 reads `nav_account, nav_lead, …` and 数据洞察 ends with `{id:
nav_item_1, type: object, objectName: crm_event_attendee}`.
- The stored menu after the save (layered read) equals the PUT body,
and, with the two edits undone, equals the stored menu before, byte for
byte.
- An English reader (admin, `Accept-Language: en`): the served menu
after the save, with the two edits undone, equals the served menu
before, byte for byte. Labels read Accounts, Leads, Contacts, …
- A member (`na.rep@objectos.ai`, demo staff): served in English and in
zh-CN, 销售 starts with 客户 / Accounts then 线索 / Leads, and 数据洞察 ends with
the added entry. Screenshot `hotcrm-06-member-zh-CN.png` shows the moved
order in the member's sidebar.

Files in the project files at `repo-objectstack-7/shots/36363/`:
`hotcrm-01-design-mode-zh.png`, `hotcrm-02-rename-closed-zh.png`,
`hotcrm-03-contributed-zh.png`, `hotcrm-04-edited-zh.png`,
`hotcrm-05-saved-zh.png`, `hotcrm-06-member-en-US.png`,
`hotcrm-06-member-zh-CN.png`, and the recorded requests
`hotcrm-network.json`.

**Earlier, on the showcase** (before the review):

Live run against a fresh local backend and the console (Vite), signed in
as the seeded admin, on the showcase app (an installed, read-only
package), at 1440 px:

- 「Edit app」 was shown (no eye) and entered the mode; the menu drew each
entry with 「⋮」 and 9 「Add menu item」 rows.
- 「⋮」 on an entry opened the menu with 「Move to group」's submenu; 「Add
menu item」 held the dashed row and opened the picker; 「Objects」 offered
11 objects not in the menu (Announcement, Client Brief, Expense Line,
…); picking Announcement put it in the row.
- 「⋮ → Move up」 on Page Authoring moved it above Capability Map; 「Save」
was on, saved, and the bar went.
- After a reload the menu read Page Authoring, Capability Map, My Work,
Approvals, New Project (Wizard), Settings, Announcement, Projects: both
edits kept, written into the showcase's customization package.

- Added for comment 7079728193, on the same setup: entering the mode and
「⋮ → Move down」 on Capability Map, without saving, moved it below Page
Authoring. Picking Setup from the app menu raised the browser's prompt
「Leave design mode? Your unsaved changes will be lost.」. Choosing to
stay kept the address, the bar and the moved menu (Page Authoring,
Capability Map, My Work, …). 「Cancel」 then left the mode. The run was on
this branch's head with objectstack-ai#36366's commits stacked on it in the same tree;
the leave prompt has not changed since objectstack-ai#36362. Screenshot
`leave-app-menu.png` shows the app menu with the change staged. The
browser's own prompt does not appear in a page screenshot.

Screenshots are in the project files at
`repo-objectstack-7/shots/36363/`: `m-design.png` (the editor),
`m-actions.png` (the entry menu), `m-picker-kinds.png` and
`m-picker-objects.png` (the picker), `m-staged.png`,
`m-after-reload.png`. The card's 「PR 正文附截图」 is met by those files: a
cloud container cannot upload images to the PR.

Two minutes: as a workspace admin, open HotCRM, press 「Edit app」; under
a group press 「Add menu item」, pick an object, press 「Save」; reload: the
entry is there. Enter again, 「⋮ → Move up」 on an entry, then pick
another app from the app menu: the prompt asks; stay, and the move is
still there. 「Cancel」: the menu is as it was.

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

---------

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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue protocol:ui 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

3 participants