Repository navigation
feat(app-shell): the action result dialog draws table answer fields, and Import Users shows its result per row - #34647
Conversation
Claude-Session: https://claude.ai/code/session_01ADHkmSYVw1sqCsaHSJS9JC Co-authored-by: Claude <noreply@anthropic.com>
…mns is live Claude-Session: https://claude.ai/code/session_01ADHkmSYVw1sqCsaHSJS9JC Co-authored-by: Claude <noreply@anthropic.com>
…rt table; changeset Claude-Session: https://claude.ai/code/session_01ADHkmSYVw1sqCsaHSJS9JC Co-authored-by: Claude <noreply@anthropic.com>
…tion-answer-table
📓 Docs Drift CheckThis PR changes 2 package(s): 9 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 1 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 173 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin da6fc296175d4567f42fe50cdad566dcee34399c && git checkout da6fc296175d4567f42fe50cdad566dcee34399c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 60552cd9398ad516ed367cd41530188fe97542be d854d108bdf7ce0bcbcc456fd8ed980eea437147 && git checkout -B drift-repro 60552cd9398ad516ed367cd41530188fe97542be && git merge --no-ff d854d108bdf7ce0bcbcc456fd8ed980eea437147
node scripts/docs-audit/affected-docs.mjs --json 60552cd9398ad516ed367cd41530188fe97542be
|
|
repo:objectstack#2 · os-steve · session_01ADHkmSYVw1sqCsaHSJS9JC Final head for L1 and contract review · 2026-11-17T05:35Z |
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head 82f384a · 2026-11-17T05:37Z |
|
repo:objectstack#2 · os-steve · session_01ADHkmQtnGcx7hYEL11ptVs 席位核对L1 first review: ACCEPT · PR #34647 · card #33187 (ruling A 6915677641) · area o2-B · L1-a2 · 2026-11-17T05:41Z Head-sha: Final-head comment 6939681115; dev report 6938771548. Checklist
Accepted deviations
L2 and landing
|
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract reviewServed-tier: Inputs read: card #33187 (body and all 13 comments, ruling A 6915677641 and the renderer notes 6934494528 included), PR #34647 (body, its 3 comments, the 8-file list, the net diff against merge-base Check-runs on the head: 71 runs, none failed, none pending. Completed green, among them: Test Core 1/8 to 8/8 and its aggregate, Test UI 1/16 to 16/16 and its aggregate, Build Core, Build and E2E UI, Live E2E UI, Type Check UI, Lint UI, TypeScript Type Check, Type Check · workspace, source gates, consumer gates and debt ledger, Lint and Repo Gates and every Lint shard, Spec property liveness, Check Changeset, Governed Surface Queue Guard, PR-body guards, Dogfood Regression Gate. Skipped: the opt-in and queue-only jobs, Build Docs, UI Published Artifacts. These are the gate verdicts; the PR body's local runs are not relied on. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Question 1, whether the contract should promise the Question 2, cell chrome. Not a faithful reading as the contract stands: S1 (should-fix) — the cell rule says a present value "draws in the column's
No must-fix. S1 is open on this head and earns a delta review of its fix; N1 and N2 are follow-up cards. Implemented-by: VERDICT: PASS |
…tion-answer-table
…e in the actions page Claude-Session: https://claude.ai/code/session_01ADHkmSYVw1sqCsaHSJS9JC Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmSYVw1sqCsaHSJS9JC Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmSYVw1sqCsaHSJS9JC Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-steve · session_01ADHkmSYVw1sqCsaHSJS9JC Final head for L1 and contract review, patch round 2 · 2026-11-17T07:29Z |
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head d854d10 · 2026-11-17T07:31Z |
|
repo:objectstack#2 · os-steve · session_01ADHkmQtnGcx7hYEL11ptVs 席位核对L1 delta: ACCEPT · PR #34647 · card #33187 · area o2-B · L1-a2 · 2026-11-17T07:32Z Head-sha: This reads only What moved (read in git)
Delta checklist
L2 and landing
|
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract reviewServed-tier: Delta review. The last at-tier record is 6939815806 (PASS on Inputs read: card #33187 (body and all 13 comments, ruling A 6915677641 included), PR #34647 (body, its 7 comments, record 6939815806 in full), the diff between the two heads restricted to the PR's own 11 files (7 of them moved: the changeset, Check-runs on the new head: 72 runs, 61 completed success, 11 completed skipped, none failed, none pending. Green, among them: Test Core 1/8 to 8/8 and its aggregate, Test UI 1/16 to 16/16 and its aggregate, Build Core, Build and E2E UI, Live E2E UI, Type Check UI, Lint UI, TypeScript Type Check, Type Check · workspace, source gates, consumer gates and debt ledger, Lint and Repo Gates and every Lint shard, Spec property liveness, Build Docs, Check Documentation Links, Check Changeset (both runs), PR-body guards (both runs), Governed Surface Queue Guard, Dogfood Regression Gate. Skipped: the opt-in and queue-only jobs, UI Published Artifacts, and the second Auto Label and Check PR Size runs. These are the gate verdicts; the PR body's local runs and its two type ablations are an account and are not relied on. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
So every clause is true for every cell format, and the five formats are covered between this sentence and the one before it. Is the contradiction gone? Yes. The finding was that the cell rule ("a present value draws in the column's Prose only: confirmed in ①. S1: closed
N2: closed N1 (nit) — carried, unchanged in the tree: N3 (nit) — the third assertion of the new type pin, named
No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA Seat record · 2026-11-17T07:36Z · Head-sha: d854d10 维护者速读
席位意见:同意合并。你已裁 A,契约已在 #34500 落地,本 PR 只是让控制台兑现它;改动只加不减。 席位核对
|
Requested by Steve · project thread
Part of #33187. This PR draws the per-row import result. One part stays open: the Add User result still does not say that an email-only re-add was already pending. The renderer contract cannot hide a
falserow on a fresh add, so that half moves to #34651 (see Acceptance notes).Clause-②: yes (widening)
Metadata-protocol: none
Skills-docs: follow-up #34648
Ruling-ref: 6915677641
维护者速读
table格式,按列逐行显示;托管环境「设置 → 用户 → 导入用户」的结果从一大块 JSON 变成逐行表格(邮箱、是否成功、是否已待激活、是否已通知托管方及原因、未添加原因、未生效的列、上级未关联)。code-list只在值为字符串数组时按代码列表画,否则画 JSON(契约本来就这么写)。回滚即撤本 PR。ui/packages/app-shell/src/views/ActionResultDialog.tsx(TableBlock/TableCellValue,null画空格;ui/packages/core/src/actions/ActionRunner.ts的columns类型从契约派生)、packages/platform-objects/src/identity/sys-user.object.ts(导入结果的列)、packages/spec/liveness/action.json(columns转 live)。cd ui && pnpm exec vitest run packages/app-shell/src/views/__tests__/ActionResultDialog.test.tsx,预期 25 例全绿。packages/spec/src的描述文字,席位会请您批一次。「加用户」重加一个待激活的人时仍不显示「已待激活」,已另立 Add User on a managed environment: an email-only re-add of a pending person does not say it was already pending #34651(排在 PR feat(plugin-auth): import-users assigns positions from apositionscolumn #34531 之后)。What changes
ui/packages/app-shell/src/views/ActionResultDialog.tsx).ResultFieldgains atablebranch, following thetablebullet of theresultDialogrenderer contract inpackages/spec/src/ui/action.zod.ts:columns, in order; the header is the column'slabel(an inline locale map is resolved), falling back to itspath;pathin the element; a missing key and anullboth draw an empty cell, never the textnull(renderer note 1 of 6934494528);format(omitted:text) when it fits it (qrcode/secret/texta string,code-listan array of strings); any other value, and everyjsoncell, draws as one line of JSON;null, a scalar) draws as compact JSON in its row's first cell, the other cells empty;[]draws the header over the existingtable.noRowsline ("No rows to display"); no new UI string, so no@object-ui/i18npack is touched;json; a missing value is skipped, as for any field.The dialog widens from
max-w-lgtomax-w-3xlwhen it draws a table. The preflight panel draws itsfieldsthrough the same exportedResultField(ActionParamDialog.tsx#PreflightPanel), sopreflight.fieldsgets the table with no further change.@object-ui/core(r2, review nit N2).ResultDialogFieldSpecinui/packages/core/src/actions/ActionRunner.tsgainscolumns?: SpecResultDialogField['columns'], derived from the contract row as itslabelandformatalready are; no hand-written copy. The renderer now readscolumnsoff the runner's own type, so its local intersection type is gone and the test casts (as never) are dropped.code-listfit test (renderer note 2). The field-level fit test is now the contract's: an array of strings. Before, any array drew as a code list. One sharedvalueFitsFormatserves the field and the cell.sys_user.import_sso_users(packages/platform-objects/src/identity/sys-user.object.ts). Therowsfield changes fromjsontotable. Its columns are read off the door's row answer (ImportSsoUserRowResultinpackages/plugins/plugin-auth/src/pending-sso-users.ts, unchanged): Row, Email, Succeeded (ok), Already pending, told again (alreadyPending), Hosting organization told (host.notified), Why not told (host.reason), Not added because (error.message), Not applied (notApplied, a code list) and Manager (managerError). The three summary counts are unchanged.columns' describe loses[PLANNED — not yet rendered]and the "draws its label alone" sentence; the fieldformatdescribe loses the marker too;tablebullet now says "not a plain object (an array,nullor a scalar)";formatdescribe now say that anullcell value draws an empty cell. This writes renderer note 1 into the contract, so the renderer and the text agree. It goes one sentence past the delta's list, and the contract review should read it;tablebullet and the columnformatdescribe now say that inside a celltextandcode-listdraw the value alone with no copy control, whilesecretkeeps its mask, reveal and copy andqrcodekeeps its code and copy. Prose only: no key, value or behaviour moves;packages/spec/liveness/action.json:preflight.fields.columnsand its three children goplanned→live, with evidence anchored onResultField,TableBlock,TableCellValueandPreflightPanel. TheresultDialogrow's note is updated, andliveness/state-counts/action.mdis regenerated (live 79 → 82, planned 5 → 2).content/docs/protocol/objectui/actions.mdxliststableamong the answer-field formats, with itscolumnsand the refusals, in the contract's wording (the item both feat(spec): an action's answer fields gain a table format, drawn from its columns #34500 contract records left to the renderer half)..changeset/33187-action-answer-table-renderer.md, patch for@object-ui/app-shell,@object-ui/core,@objectstack/platform-objectsand@objectstack/spec.Tests
ui/packages/app-shell/src/views/__tests__/ActionResultDialog.test.tsxhas two new top-leveldescribes in the shared harness, 13 cases. They cover: the header (label, else path) and column order; one row per element, read at each path; the empty cell for a missing key and fornull; a misfit value drawn as compact JSON (a boolean undertext, an object, a non-string array undercode-list, a number undersecret); asecretcell staying masked; a non-plain-object element (array,null, string, number) in the first cell;[]drawn as header plus empty line; a non-array value drawn asjson; a missingtablefield skipped; an inline locale-map column label; the preflight path throughResultField; and thecode-liststring-array fit with its CONTROL. The 12 existing cases are the CONTROL for the five formats. They pass unchanged.packages/platform-objects/src/identity/cloud-managed-visibility.test.tshas a new top-leveldescribe(2 cases):rowsis atablewhose column paths are the door's row members, in order, and the summary fields stay as they were (CONTROL).ui/packages/core/src/actions/__tests__/ActionRunner.resultDialog.test.tshas a new top-leveldescribewith compile-time pins, compiled by the package'stsconfig.test.json(chained offtype-check):ResultDialogFieldSpec['columns']is structurallyEqualto the contract row'scolumns, is notany, and is optional.Acceptance notes
alreadyPending(the owed should-fix) is not delivered here, so this PR saysPart of. The door answersalreadyPending: falseon every fresh add (runAddSsoUser). The dialog skips only a path that resolves toundefined, and a boolean fits no format, so it would draw asfalse. A field readingalreadyPendingwould therefore draw the misleading "false" row on every fresh add that ruling A turned down (option C). The contract offers no condition on a field. The seat chose the door route (a key present only on a re-add, widening only): it is Add User on a managed environment: an email-only re-add of a pending person does not say it was already pending #34651, sequenced after PR feat(plugin-auth): import-users assigns positions from apositionscolumn #34531, together with the real-answer alignment pin..changeset/33186-managed-add-people-actions.mdhas been released. It shipped in@objectstack/platform-objects18.5.0 (entry2e1e3b9,packages/platform-objects/CHANGELOG.md), and docs(changelog): add the eleven changes 18.5.0 shipped with no CHANGELOG line, and an 18-5 page erratum #34042 removed it from.changeset/. Under AGENTS.md (Documentation Guardrails,CHANGELOG.mdrow), a released entry is amended in a dedicated docs-only PR, never by an erratum in a later changeset. The sentence becomes true when Add User on a managed environment: an email-only re-add of a pending person does not say it was already pending #34651 lands; that card's Done when carries the docs-only fallback.packages/lint/src/i18n-walk.ts) keysresultDialog.fields.PATHto a field's label alone, and the console overlay keys the same way, so a columnlabelgets no bundle key. The import table's headers are therefore English in every locale. The field label "Result per row" above the table is still translated. Filed as An action answer's table column labels have no translation bundle key, so their headers stay English in every locale #34652 (a bundle-key convention for column labels).textandcode-listdraw the value alone, with no per-cell copy button, because a 500-row import with a copy button in every cell is unusable.secretkeeps its mask, reveal and copy, andqrcodekeeps its code and copy. Since r2 the contract says so in thetablebullet and the columnformatdescribe (S1).readPathreads inherited members (review nit N1). The dot-path reader is plain property lookup, shared by fields and cells, so a path naming a member the value does not own (constructor,toString,email.length) resolves to it rather than to nothing. It predates this PR, the field-level read onmainbehaves the same, and no declared path reaches it. Not changed here.true/false. No format draws a boolean any other way, so Succeeded, Already pending and Hosting organization told showtrue/false. This is the table-wide status that ruling A accepted, not a strayfalserow.plugin-auth'spending-sso-users.test.tscan produce one while also reading thesys_userdeclaration, and this run may not editpackages/plugins/plugin-auth/**. So the platform-objects pin holds the column paths, the renderer pins use a sample in the door's documented row shape, and the real-answer pin rides with Add User on a managed environment: an email-only re-add of a pending person does not say it was already pending #34651.skills/objectstack-ui/rules/actions.mdsentence forresultDialog/tableis governed (Tier H) and goes in skills: teach the action resultDialog, including the table format and its columns #34648, after this lands.ui/packages/i18nchange, so thegit merge-treecheck against PR feat(plugin-auth): import-users assigns positions from apositionscolumn #34531 does not apply.Verification
Readings at head
82f384a572.Ablations (each mutation landed on disk via scripts/ablation-replace.mjs, then restored to the HEAD blob)
On
ui/packages/app-shell/src/views/ActionResultDialog.tsx, againstActionResultDialog.test.tsx(the test imports the source file, notdist/):tablebranch removed (format === 'table'returnsjson): 9 failed, 16 passed.nullhandling removed (onlyundefineddraws empty): 1 failed, thenullempty-cell case.code-listfit reverted toArray.isArray: 2 failed, the misfit-cell case and the field-level non-string array case.Each leg restored: the blob after restore equals HEAD (
eea0d1ad0638), andgit diff HEADis empty.Local runs
vitest run packages/app-shell/src/views/__tests__/ActionResultDialog.test.tsx: 25 passed.@object-ui/app-shellsuite (2284 test files). Stopped unfinished after about 49 minutes at--maxWorkers=2on the shared box, with no failure line printed by then. This is a declared narrowing, and theTest UIcheck carries it.pnpm --filter @object-ui/app-shell type-check(src andtsconfig.test.json): exit 0.pnpm --filter @objectstack/platform-objects test: 123 files, 2046 passed.typecheck: exit 0.pnpm --filter @objectstack/spec test: 847 files, 27134 passed, 1 todo.typecheck: exit 0.action-answer-table-format,action-preflight,component,actiontests): 616 passed.pnpm --filter @objectstack/spec check:generated: all 14 artifacts current after a rebuild on the merged tree.check:liveness: exit 0 (action: live 82, dead 1, planned 2).node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 98 commands on head 82f384a; each was run with stdin closed and its exit captured before any pipe. All 98 exit 0. Three needed a second run:check-plugin-teardown-shape --self-testfirst exited 3 (shallow clone; its fixture commit was fetched),check:dual-build-cjs-loadsfirst exited 3 (no full build; it was rerun afterturbo run build), andpnpm --dir ui exec vitest run scripts/was killed by the OOM killer while sharing the box, then passed alone (171 files passed, 2 skipped).--ranreconciliation: 98 derived, 98 run, 0 NOT-MEASURED, 0 UNRUN.Round r2 (head d854d10)
Old head
82f384a572→ new headd854d108bd. Commits:02ecb823(S1 prose and the actions page),d4a79d7f(corecolumnsderived; renderer and tests use it),d854d108(changeset names core and the cell sentence), plus merge6dbbf712oforigin/main(PR #34531 included).scripts/ablation-replace.mjsonActionRunner.ts, each read bytsc -p tsconfig.test.jsoninui/packages/core: B1, the derivedcolumnsmember deleted → exit 2, TS2339/TS2353 at the new pins; B2,columnsrestated by hand as an array of{ path: string; label?: string }→ exit 2, TS2344 (_IsTheSpecColumnsfalse) and TS2353. Both legs restored: blob equals HEAD (f47c1e3b9716),git diff HEADempty. A first B1 attempt passed an empty--replacement; the tool refused it (count rose 0, not 1) and nothing ran, so it was rerun with--delete. The S1 and docs edits are prose only, so they get no ablation.@object-ui/coretype-check and@object-ui/app-shelltype-check: exit 0.ActionResultDialog.test.tsxandActionRunner.resultDialog.test.ts: 2 files, 40 passed.action-answer-table-format,action-preflight,component,actionandcheck-livenesstests: 5 files, 699 passed.check:generated: all 14 current. A first run reportedcheck:test-typecheckstale becausetscexited without diagnostics on the shared box; rerun alone under the lock: all current, nothing regenerated.dispatch-gates --commandsderived 119 commands ond854d108bd(the merge brought docs families). Each was run with stdin closed and its exit captured before any pipe: all 119 exit 0.--ran: 119 derived, 119 run, 0 NOT-MEASURED, 0 UNRUN.🤖 Generated with Claude Code
https://claude.ai/code/session_01ADHkmSYVw1sqCsaHSJS9JC