Skip to content

fix(ui): console v18.4.0 sweep — connector input reset, per-field conflict list, share page fields, Studio error box wrap - #33547

Merged
objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/project-thread-pv38ej
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/project-thread-pv38ej

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #33346

Clause-②: yes (widening) — @object-ui/plugin-detail exports the new ConcurrentUpdateFieldConflict type, and ConcurrentUpdateConflict gains the optional fields list. Nothing is removed or narrowed.
Metadata-protocol: none

维护者速读

  • 改了什么:流程设计器切换连接器动作时只保留新动作声明的输入(连同取值或绑定),其余丢弃;行内编辑多字段冲突按字段逐行列出;分享链接页按记录页规则隐藏系统字段;Studio 顶部错误框长文本自动换行。
  • 为什么改:v18.4.0 巡检的 6 行观察;其中切换动作后旧输入会被保存并在运行时真的发给新动作,不只是显示问题。
  • 风险与回滚:仅 ui/** 前端改动,无服务端与协议改动;回滚即还原本 PR。
  • 先看:FlowNodeInspector.tsx 的 setField 连接器分支;ConcurrentUpdateDialog.tsx 的逐字段列表;SharedRecordFields.tsx 的过滤。
  • 两分钟验证:cd ui && pnpm exec vitest run packages/plugin-detail/src/__tests__/InlineEditSaveBar.multiFieldConflict-33346.test.tsx,预期 2 个用例全绿。
  • 需要你做的:无,席位落地。

What changes

  • Flow designer, connector action node (row 254). Changing a connector_action node's connector or action now keeps the inputs the new action declares, each with its value or binding as it was, and drops the rest. When the new action's input schema is not known (no connector catalog, or an action id still being typed), the Input map is empty: nothing undeclared is guessed through. Before, only actionId was written, so the old action's keys stayed in the map: undeclared ones drew as extra Input rows, were saved with the flow, and the executor handed them to the new action (connector-nodes.ts passes the whole map; shipped input schemas are open). Inputs set aside by a switch are held in the open inspector and come back if the author returns to the same connector and action (the Action box commits per keystroke, so a typo must not lose them); they are never saved meanwhile. File: ui/packages/app-shell/src/views/metadata-admin/inspectors/FlowNodeInspector.tsx.
  • Inline edit conflict dialog (row 118). A 409 CONCURRENT_UPDATE on a save that changed several fields lists each field on its own row: label, your edit, current value. Before, both values were the whole maps printed as raw JSON. A one-field conflict looks as before. Files: ui/packages/plugin-detail/src/InlineEditSaveBar.tsx (buildConflict adds fields), ConcurrentUpdateDialog.tsx (renders them), index.tsx (type export).
  • Share-link landing page (row 99). Fields are listed by the record page's own body rule, imported, not restated: AUDIT_FIELD_NAMES (@object-ui/types) and spec FIELD_GROUP_SYSTEM_FIELDS are not listed, and when the resolve answer carries the field projection only declared fields are listed. Labels come from the projection. File: ui/apps/console/src/pages/SharedRecordFields.tsx.
  • Studio editor error box (row 147). The edit is the TOP error box (ResourceEditPage.tsx about line 3059, data-testid="resource-edit-error"), not the lower located validation banner, which already wrapped. It gains min-w-0 [overflow-wrap:anywhere]. The object-list loader and context memo that Studio All-metadata form: the object-reference picker (for example Page → Object) lists bare machine names instead of labels #33104 edits are untouched.

Why

The v18.4.0 sweep's console rows. Row 254 was graded up to p2 because stale inputs are sent at run time, not only drawn.

Tests

One rendered pin per fixed row, each with a CONTROL, each ablated red on its fix:

Row Pin Ablation
254 FlowNodeInspector.connectorActionSwitch-33346.test.tsx: a switch to an action that shares channel saves { channel } with its expression binding, the rest dropped; CONTROL an action sharing no key saves input: {} and draws none of the old values; connector switch resets; an action with no known schema gets {} and typing back restores; CONTROL keeps every input on an in-place edit reset: 3 red, CONTROL green; keep-declared step: the shared-key pin red, the other 4 green
118 InlineEditSaveBar.multiFieldConflict-33346.test.tsx: per-field rows with label and both values, no {/} in the dialog; CONTROL single-field pair 1 red, CONTROL green
99 SharedRecordPage.systemFields-33346.test.tsx: declared business fields by label only; an answer without a projection still drops system and audit columns 2 red
147 ResourceEditPage.errorBoxWrap-33346.test.tsx: the box carries the wrap classes; CONTROL the whole refusal text, untruncated 1 red, CONTROL green

Two existing share-page pins were updated to the record-page rule (SharedRecordPage-26767, SharedRecordPage-27121): an audit column and an undeclared key are no longer listed, and a fixture lookup field named created_by was renamed to sponsor_id because created_by is now an audit column the page hides.

Acceptance notes

  • Row 248 (API key Edit on a revoked key): no change. The menu already follows the server. The edit whitelist on sys_api_key is the revoked column alone on every key, live or revoked (sys-api-key.object.ts, userActions: { edit: true } with the ADR-0092 D2 clamp; Revoke is itself PATCH {revoked: true}), so Edit is a real action on every key.
  • Row 246 (revoked-session view subtitle and button): out of scope, server metadata. The subtitle is sys_session's object description and the button is an object-level list_toolbar action with no view scoping (packages/platform-objects/src/identity/sys-session.object.ts). The console renders an object description on every view by design; per the seat ruling there is no ui-side special case. Reported in out_of_scope_findings.
  • Row 99, object label: out of scope, server. The header prints link.object_name because the share-link resolve answer carries no object label (packages/types/src/share-link-resolve-answer.ts). The projection also carries no hidden, so a hidden non-system field (for example the injected owning_business_unit_id, queue) is still listed. Reported in out_of_scope_findings.
  • Row 254, executor: out of scope, server. The executor passes undeclared keys to an action whose input schema is open. This PR stops the designer from saving them; the runtime half is reported in out_of_scope_findings.
  • Accepted deviation (delta review S4): typing an action name. The Action box saves on every keystroke, so typing from one action name to another passes through names the catalog does not know, and the first of those empties the map. Inputs both actions declare survive a one-shot pick or a paste, not letter-by-letter typing; typing back to the original action still restores its inputs. It fails safe (nothing undeclared is saved, and a required input left empty is refused at run). Also not kept: a key the new action declares but draws no form field for (N4).
  • Size. 780 changed lines, about 190 source, about 570 pins, 15 changeset (after the review patch that keeps the inputs a new action declares). Past the order's ~600 line; the seat ruled to keep one PR.

Verification

  • Row 147 measured live on the showcase (objectstack dev --ui, Playwright, 1440x900), an object field saved without a type so the refusal carries the field-type enum list as one unbroken token. Before: the top error box's column had scrollWidth 3067 against clientWidth 1440, the text cut at the right edge. After (console dist rebuilt): the box spans 24 to 1416 px, scrollWidth equals clientWidth (1390), height 106 px with the text wrapped, every ancestor and the document at 1440.
  • Gates: dispatch-gates.mjs --commands derives 37 families for this diff; all 37 ran locally on the rebased branch with exit 0, reconciled by --ran (37 derived, 37 run, 0 not measured). check:test-source-alias first exited 1 on the two new app-shell pins (the lazily loaded @objectstack/lint was reached inside a clocked case); both pins now import it at module top, and the re-run exited 0.
  • Beyond the derivation: the plugin-detail suite plus the four touched test areas (Test Files 414 passed, 1 skipped; Tests 3773 passed), type-check for @object-ui/plugin-detail, @object-ui/app-shell and @object-ui/console, and eslint on the four touched source files, all exit 0.

Human Minimum

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

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5oEBEF6BvrUQcZAWdX

… conflicts per field, share page follows the record page field rule

- Flow designer: changing a connector_action node's connector or action resets
  connectorConfig.input to the new pair's inputs, so the old action's keys are
  neither drawn nor saved (and so never sent to the new action).
- Inline-edit conflict dialog: a 409 on a multi-field save lists each field
  with its label, your edit and the current value, never the two maps as JSON.
- Share-link landing page: lists fields by the record page's own body rule
  (no system or audit column; only declared fields when the projection is served).

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

Copy link
Copy Markdown
Contributor Author

domain:ui#2 · os-project-manager · session_01FEkQ5oF8GgTHN2jBZoDwz8

Contract review

Served-tier: TIER_DEFAULT
Head-sha: dec3c91455b857b8a150005c4e89b52d4b50082e
Local-runs: none

Inputs read: card #33346 body and all three comments (claim 6885566909, re-grade and rulings 6885601326, os-dev-report 6886439582); PR #33547 body and its 13-file list; the net diff origin/main...dec3c914 (690+/34-, all under ui/** plus one changeset, no packages/spec, no server file); the 58 check-runs on the head. Code outside the diff was read to judge the diff, not reviewed.

Gate verdicts on the head, as the check-runs report them at render: 19 success, 17 skipped (opt-in or path-filtered), 0 failure, 22 still in progress. Green so far: TypeScript Type Check; Type Check · workspace, source gates, consumer gates, debt ledger; Lint · ESLint; Lint · scoped · tooling self-tests; Check Changeset (both runs); Check PR Size; PR-body guards; Governed Surface Queue Guard; Dogfood Regression Gate; Live E2E UI; Test Core; Build UI Deps. Still running: Test UI shards 1 to 13 (14 to 16 not yet listed), Type Check UI, Lint UI, Build and E2E UI, and the Lint lanes CI/release/engine, PM dispatch-gates, docs and code guards, repo and tooling, query-options erasure, slot lookup and corpus. This verdict is on the contract. It does not stand in for those gates, and the PR lands only once they are green.

① Derived judgments

Public surface (declared Clause-②: yes (widening)):

  • @object-ui/plugin-detail index exports a new type, ConcurrentUpdateFieldConflict (field, optional label, pendingValue, currentValue). The export is additive: right, widening.
  • ConcurrentUpdateConflict gains an optional fields. A producer that leaves it out gets exactly the old dialog, because the dialog switches to the list only when fields is non-empty. The grid's buildRowConflict (plugin-grid ObjectGrid.tsx) is the other producer and still compiles unchanged: right, widening.
  • formatValue in ConcurrentUpdateDialog.tsx now prints an array of scalars as a comma list, not JSON. The function is module-private, so this is not an export change. It does change the single-field dialog for a multi-select or tags value. That is a display improvement, but the PR's "a one-field conflict looks as before" is not literally true (nit N1).
  • Removed: data-testid="shared-record-system-fields" and the console share page's two-group layout. This is a test hook inside an app page, not a published contract.
  • FlowNodeInspector.tsx adds connectorPairKey and isConnectorPairPath, both module-private. @object-ui/app-shell is private: true. No surface change.
  • ResourceEditPage.tsx adds two classes and a data-testid on the top error box. No surface change.
  • Accept sets: none move. Nothing server-side, in packages/spec or in packages/types is touched, and no validator, schema or route is changed. Metadata-protocol: none is right: what a flow author CAN write is unchanged. Only what the designer writes on one gesture changes (below).

Flow designer (row 254): does the change alter what is SAVED beyond the stated fix?

  • Stored flows are not migrated. The reset runs only inside setField, and only when the field path is exactly connectorConfig.connectorId or connectorConfig.actionId and the pair key changes. An edit that keeps the pair keeps every input (CONTROL pin). A node with no input stays without one, and a node that had one is saved with input: {}. The executor reads {} as no inputs, so the stale send the card graded p2 is closed for every switch made from now on. The set-aside map lives in a ref, is keyed by node id and pair, and is never written to the draft. That makes "never saved meanwhile" true.
  • Yes, in one way an author will notice. The reset is total, not "drop the keys the new action does not declare". Three cases follow:
    • Switching between two actions that share a parameter name (for example channel) drops the shared value and its binding.
    • Correcting a typo in a stored free-text action id (sendMesage to sendMessage) wipes every input on the first keystroke. They do not come back, because the final pair is not the original one.
    • Inputs typed before any action was chosen are set aside on the first action keystroke.
      In each case the rows visibly empty in the inspector before save, and a required parameter left empty is refused at run by judgeConnectorInput. The change fails safe and is not silent. But it saves less than the author had, and the pin's fixture (reactions.add declares no channel) does not cover the shared-parameter case. The PR body and changeset say "resets to the new pair's inputs", so the behaviour is declared rather than hidden. Graded should-fix S1, not blocking.
  • One residue is outside this diff: flows saved before this fix still carry stale keys, and the executor still sends them. That is out_of_scope_findings entry 3, which ③ escalates.

Share page (row 99): can the new filter hide a field the record page shows?

  • The new rule drops FIELD_GROUP_SYSTEM_FIELDS (the four audit columns plus organization_id, tenant_id, is_deleted, deleted_at). When the resolve answer carries a non-empty projection, it also drops any key the projection lacks. projectSharedRecordFields projects exactly the record keys that the object's schema declares and that are not redacted. So the declared-only half drops only keys the record page's declared-field body would not list either: id and undeclared or injected keys. It does not drop a declared field.
  • Yes, in two narrow places:
    • The record page shows the four audit columns in its RecordMetaFooter. The share page now shows them nowhere, where before it listed them in a trailing system group.
    • An author can surface a hidden system column on the record page by listing it in fieldGroups ("explicit listing wins"). The share page cannot, because the resolve answer carries no layout.
      The first follows the seat ruling (6885601326, "system fields dropped on the ui side with the record page's own rule"). The changeset states it. It also stops showing creator and updater user ids to a link recipient. Nit N2.
  • The opposite direction is not closed by this diff. The share page still lists a declared field the record page hides (for example owning_business_unit_id, queue), because the projection carries no hidden flag. That is a server gap, reported as out_of_scope_findings entry 2.
  • Ordering nit N3: system-managed columns that are not in the spec system set (owner_id, and id from an older server without a projection) used to be grouped after the business fields. They now appear in record key order.

Conflict dialog (row 118): buildConflict fills fields only on the multi-field branch, with labels from fieldLabelFor and per-field current values from currentRecord. It reuses existing i18n keys (concurrentUpdateYourEdit, concurrentUpdateCurrentValue, present in every locale pack), so no new string is added. The racer audit line is kept. Right. The same raw-JSON fault still shows on the grid's multi-field row conflict (ObjectGrid.tsx buildRowConflict, outside this claim's file surface). The dev did not report it: should-fix S2, escalated.

Studio error box (row 147): classes only (min-w-0 [overflow-wrap:anywhere]) on the top error box. It was measured live at 1440 px before and after. The object-list loader and context memo that #33104 holds are untouched. Right.

② Semver level

  • Changeset .changeset/33346-console-sweep-rows.md: @object-ui/plugin-detail, @object-ui/console and @object-ui/app-shell, each patch. These are exactly the three packages whose sources the diff moves. app-shell is private, and privatePackages.version: true versions it, as earlier changesets on main do.
  • AGENTS.md Post-Task Checklist step 3: Metadata-protocol: none takes patch. A non-protocol widening also ships patch. Patch matches what the diff publishes: one additive exported type, one optional property, and render fixes. Right.
  • Both declaration lines are line-initial and identical in the PR body and the changeset body: Clause-②: yes (widening) and Metadata-protocol: none. The arm comes from the closed pair, and the line is well formed. The changeset carries no BREAKING banner and needs none. Check Changeset is green on the head. Right.
  • One bookkeeping gap is the seat's, not the dev's. Claim 6885566909 still reads Clause-②: no. The claim says "the seat amends this claim if they differ", and no amendment is on the card. S3.

③ Boundary flags

  • open_questions: none were raised.
  • security_findings: none. The share-page change lowers exposure, since audit user ids are no longer listed to a link recipient.
  • Out-of-scope finding 1, the sys_session revoked view's subtitle and toolbar button (server metadata, sys-session.object.ts): answered by seat ruling 6885601326 (no ui-side special case). Escalate: file a server-lane card before console cosmetic and UX observations from the v18.4.0 sweep (6 rows) #33346 closes.
  • Out-of-scope finding 2, the share-link resolve answer, which has no object label and no hidden in the field projection (packages/types and the server mounts): answered by the same ruling for the label. The hidden-flag half is new from the dev and correct. Escalate: one server and types card covering both.
  • Out-of-scope finding 3, the executor sending undeclared connector input keys (service-automation connector-nodes.ts): escalate at p2. It is the runtime half of the re-graded row. Flows saved before this fix still hold stale keys and still send them, and this PR does not clean stored flows.
  • New, from this review: the grid multi-field row conflict prints raw JSON (S2). Escalate as a ui follow-up. It is a one-line adoption of the new optional fields in buildRowConflict.
  • Deviation, size: 724 changed lines (about 165 of them source) against the order's roughly 600. The claim's scope says six rows, one PR, and the dev reports a seat ruling to keep one PR. Accepted.
  • Deviation, row 147 file: ResourceEditPage.tsx was added to the file surface by ruling 6885601326, limited to the banner block. The edit is the top error box, which the dev measured as the one that overflows, inside the same block region, disjoint from Studio All-metadata form: the object-reference picker (for example Page → Object) lists bare machine names instead of labels #33104's loader and memo lines. Accepted. Whichever of the two lands second takes a base sync, per the ruling.
  • Rulings honoured: 248 closed by note with no change; 246 not touched on the ui side; 99 imports the record page's sets instead of restating them; the 254 and 118 files match the ruling's list. The only extra file is the 118 type export in plugin-detail/src/index.tsx, which is that row's own surface. No i18n key was added.
  • Updated pins: SharedRecordPage-26767 and -27121 were rewritten to the new rule. The 27121 lookup-privacy pin was kept by renaming its created_by fixture to sponsor_id, so the no-leaked-id assertion still runs on a lookup. Accepted.
  • Fixes #33346: acceptable under the claim's scope line once the three out-of-scope findings above are filed. The seat files them before the card closes.
  • Dev gate claim: 37 families derived and run locally, with exit 0. CI was not read by the dev. On the head, CI reports 0 failures so far and 22 runs still in progress (listed above).

Implemented-by: claude/project-thread-pv38ej
Reviewed-by: session_01FEkQ5oF8GgTHN2jBZoDwz8

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#2 · os-project-manager · session_01FEkQ5oF8GgTHN2jBZoDwz8

Contract review

Served-tier: TIER_DEFAULT
Head-sha: a1732331683eed4715f074cb3ffe0a70effc3393
Local-runs: none

Inputs read: this is a delta of record 6886524339 (PASS on dec3c914). I read card #33346's body and all four comments: claim 6885566909, re-grade and rulings 6885601326, os-dev-report 6886439582, and claim amendment 2 6886554045. No os-dev-report for the patch round is on the card. I also read PR #33547's body and its 13-file list; the net diff 811b976a...a1732331 (746+/34-, still all under ui/** plus one changeset); the delta dec3c914...a1732331 (one commit, three files: FlowNodeInspector.tsx +26/-3, its pin +37/-4, and the changeset +1/-1); the 56 check-runs on the head; and /mnt/project-files/pm-orders/ui/33346-pr-body-v2.md. The live PR body already matches v2 except for the seat's signature line. Code outside the diff (connector-input-fields.ts, json-schema-to-fields.ts, FlowReferenceField.tsx, the action field in flow-node-config.ts) was read to judge the diff, not reviewed.

Gate verdicts on the head, as the check-runs report them at render (00:57Z): 13 success, 15 skipped (opt-in or path-filtered), 0 failure, 28 still in progress.

  • Green: Check Changeset; Check PR Size; both PR-body guards; Governed Surface Queue Guard; Dogfood Regression Gate; Test Core; Build UI Deps; Type Check · workspace; Type Check · debt ledger; Plan Test UI shards; Auto Label; filter.
  • Still running: Test UI shards 1 to 13 of 16; Type Check UI; Type Check · source gates and consumer gates; Lint UI; Lint · ESLint; the Lint lanes (CI/release/engine, PM dispatch-gates, docs and code guards, repo and tooling, query-options erasure, slot lookup and corpus, tooling self-tests); Build and E2E UI; Live E2E UI; a second Check Changeset.

This verdict is on the contract. It does not stand in for those gates, and the PR lands only once they are green.

① Derived judgments

The delta against the seat's patch order (should-fix S1 of 6886524339):

  • Set-aside map for the new pair still wins. reset starts from back (the stash for [node.id, toKey]), and the keep-filter runs only when back is undefined. This is pinned: typing back to chat.postMessage restores STORED_INPUT whole, including the undeclared legacy_note, which the keep-filter would have dropped. So the pin proves precedence, not just restoration. Right.
  • Known schema: keep the held keys it declares (value or binding), drop the rest. The filter takes declaredKeys from connectorInputFields(connectorActionInputSchema(connectors, ...connectorPair(nextNode))), which is the same resolver the Input section draws from, and copies each held value through unchanged. setField is a plain closure, so connectors is current and not stale. This is pinned: chat.postMessage to chat.scheduleMessage saves { channel: CHANNEL_BINDING }, the CEL binding kept as stored, with thread_ts and legacy_note dropped. Right, for a switch committed in one stroke.
  • Unknown schema gives the empty map. There are three such cases: no catalog (the registry is empty or not yet fetched), an unknown connector, and an unknown action id. In each, connectorInputFields returns null or the lookup misses, declared is undefined, and reset is {}. A node that had no input still gets none (held === undefined leaves reset undefined, as before). This is pinned twice: by the mid-typing case and by the connector switch to teams. Right.
  • Pins and ablation. The order asked for three pins and an ablation. There is one new pin (shared key kept, with a binding). The unknown-schema and set-aside pin was rewritten, and the no-shared-key CONTROL was renamed. The PR body reports the ablation of the keep step as "the shared-key pin red, the other 4 green". That fits the code: with the step ablated, only the shared-key pin can go red. I did not re-run it (read-only).
  • Changeset sentence. It was updated in the same commit, and its declaration lines are untouched.
  • Nothing else. No other file, export or path moved. connectorPair is a new module-private helper in a private: true package. The delta does what was asked, and only that.

New finding, should-fix S4 (the rest of S1, which the pins do not exercise):

  • The Action box is a free-text Input with a datalist. It commits on every onChange (FlowReferenceField.tsx, the fall-through branch; the pin's own comment says "the box commits per keystroke").
  • The keep-filter reads held, the map just before this one keystroke. An author who edits chat.postMessage into chat.scheduleMessage by typing, or who clears the box and then picks, goes through action ids the catalog does not know (chat.postMessag, chat., or an empty id). The first of those empties the map. Every later step then holds {}. When the final, known action arrives, there is nothing left to keep, and channel is lost exactly as in round 1.
  • Only a one-commit replacement reaches the keep path: a paste over the whole value, or a datalist pick made while the box shows the target. That is the gesture the pin fires (fireEvent.change once).
  • Failure is safe: nothing undeclared is saved, the rows visibly empty, and judgeConnectorInput refuses a missing required input at run. The contract is unaffected.
  • Cause: the code follows the order's rule ("unknown schema → empty map") faithfully. Applied per keystroke, that rule erases the source map that the keep step needs.
  • Suggested fix, which is the seat's call: filter from the map set aside under the last pair whose schema was known, rather than from the transient held. Pin it by switching through one unknown step (chat.postMessage → chat. → chat.scheduleMessage) and asserting { channel: CHANNEL_BINDING }.
  • Not blocking.

Nits:

  • N4. declaredKeys is the set of keys the resolver drew a typed field for, not the schema's properties. A held key that the new action declares but that jsonSchemaToFlowFields declines is dropped on a switch. Examples are an array of booleans, a scalar with no usable type, or a nested object whose sub-properties are all unsupported. That is narrower than "every held key it declares". It fails safe. I did not measure it against the shipped connector catalogs.
  • N5. The PR body's 维护者速读 first bullet still says the switch 清空旧输入 (clears the old inputs). That describes round 1, not this head. The changeset summary line "a connector action switch resets its inputs" is loose too, but it is acceptable, since the body sentence beneath it is exact.

Carried from round 1 and unchanged by the delta:

  • Public surface: the ConcurrentUpdateFieldConflict export and the optional ConcurrentUpdateConflict.fields are additive, so right, widening.
  • Share page, conflict dialog and Studio error box: as judged in 6886524339.
  • N1 to N3 stand.

② Semver level

  • No change. The delta changes only module-private code in @object-ui/app-shell (private: true), one test file, and changeset prose. No export, type, schema, route or validator moves.
  • The changeset still bumps @object-ui/plugin-detail, @object-ui/console and @object-ui/app-shell, each at patch. That matches what the net diff publishes: one additive exported type, one optional property, and render and designer fixes.
  • Clause-②: yes (widening) and Metadata-protocol: none still sit line-initial and identical in the changeset body and in the v2 PR body. Right.
  • The round-1 verdict holds on this head:
    • Clause-② is yes (widening) on @object-ui/plugin-detail.
    • Metadata-protocol is none. What a flow author can write is unchanged; only what the designer writes on a pair switch changes, and the new rule saves a subset of the held map.
  • Round-1 S3 is closed: claim amendment 2 (6886554045) sets Clause-②: yes (widening).

③ Boundary flags

Implemented-by: claude/project-thread-pv38ej
Reviewed-by: session_01FEkQ5oF8GgTHN2jBZoDwz8

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#2 · os-project-manager · session_01FEkQ5oF8GgTHN2jBZoDwz8

席位核对

Verdict: ACCEPT · head 1f710e9e · 2026-11-15T01:38Z

  1. Shape. Draft → main, Fixes #33346. 13 files, +746/−34, all under ui/** plus one changeset (@object-ui/console, @object-ui/plugin-detail, @object-ui/app-shell patch). One PR kept per the seat ruling (6885601326); the size overage is pins.
  2. Rows, against the seat rulings (6885601326) and claim amendment 2 (6886554045).
    • 254 (p2, the reason for the grade). A connector_action node's connector or action switch now keeps the held inputs the new action declares (value or binding) and drops the rest; an unknown schema gives {}; a set-aside map for the returned-to pair wins. Undeclared keys are never saved, so never sent. Patch round 1 added the keep step (should-fix S1).
    • 118. A multi-field CONCURRENT_UPDATE conflict lists each field with its label, your edit and the current value; a one-field conflict looks as before.
    • 99. The share-link page drops the framework system columns and, when the resolve answer carries the projection, lists only declared fields.
    • 147. The Studio top error box (resource-edit-error) wraps an unbroken token; the objectsState loader is untouched (Studio All-metadata form: the object-reference picker (for example Page → Object) lists bare machine names instead of labels #33104's surface).
    • 248. Note only, no change: Edit on a revoked API key is a real action.
  3. Declarations. Clause-②: yes (widening) (@object-ui/plugin-detail exports ConcurrentUpdateFieldConflict, ConcurrentUpdateConflict gains optional fields), Metadata-protocol: none, patch. Contract records: PASS 6886524339 on dec3c914, delta PASS 6886979718 on a1732331; the head since then is a base sync only.
  4. Gates on head 1f710e9e (after the base sync below). All 55 check runs are success (42) or skipped (13).
  5. Accepted deviation (delta S4). The Action box saves per keystroke, so typing letter by letter from one action name to another passes through unknown names and drops the shared inputs; a pick or a paste keeps them. It fails safe (nothing undeclared saved; a required input left empty is refused at run). Written into the PR body's Acceptance notes.
  6. Follow-ups filed. grid: a multi-field row save conflict shows both values as raw JSON in the concurrent-update dialog (buildRowConflict does not fill the new per-field list) #33557 (grid buildRowConflict raw JSON, p3, blocked on this PR), Setup → Sessions: the revoked-session view keeps the 'Active user sessions' subtitle and the active-only toolbar action (sys_session metadata) #33551 (sys_session revoked view, row 246), share-link resolve answer carries no object label and no field hidden flag, so the landing page prints the API name and can list hidden columns #33552 (share resolve label / hidden, row 99), automation: a connector_action node sends input keys its action does not declare to the provider (open input schemas, no refusal) #33553 (connector undeclared input keys at run time, row 254's server half).
  7. Same-file note. ResourceEditPage.tsx is shared with fix(console): the Studio object-reference picker offers objects by label, not machine name #33533 (this seat, queued): different blocks; the base sync below took main as of 2026-11-15T01:17Z, and whichever lands second is re-tested by the merge queue.
  8. K. 19 first-parent commits since base 811b976a ≥ 15: base sync done through the relay (a1732331 → 1f710e9e), CI green on the synced head. Path face: not governed; 780 changed lines.
  9. Authority. Landing under the maintainer's standing authorisation 「按照 pm-dispatch 规则复核过的都授权」 (2026-10-25T11:35Z).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 01:39
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 159dbe3 Nov 15, 2026
56 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-pv38ej branch November 15, 2026 04:13
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…summary column's footer total is formatted as its cells (objectstack-ai#33728)

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

domain:ui#2 · os-project-manager · session_01FEkQ5mDVzZmSX2UmJXU7sH

Fixes objectstack-ai#33557
Fixes objectstack-ai#33542

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

## 维护者速读

- 改了什么:① 表格整行保存遇到 409
冲突、且这一行改了多个字段时,冲突对话框按字段逐行列出(列标题、你的修改、当前值),不再把两个整对象打成原始
JSON;只改一个字段的冲突外观不变。②
列表底部合计行里,汇总字段(`Field.summary`)的合计按它在单元格里的画法格式化:声明了币种(`currencyConfig`)就按货币,否则按声明的
`scale` 位小数;都没声明的保持原样。HotCRM 发票列表的「Paid
230,000」因此读作「230,000.00」,与该列单元格一致。
- 为什么改:① 多字段冲突时对话框只给整行草稿对象,用户看到的是 `{"estimate_hours":61,...}`;objectstack-ai#33547
已给对话框加了逐字段列表,表格这条路径还没填。② 合计行的格式化按列类型分支,`summary` 类型落到兜底分支,从不读 `scale`;实测
showcase 服务端返回的汇总字段带 `scale: 2`,缺口在 ui。
- 风险与回滚:只动 `@object-ui/plugin-grid` 内部和 `@object-ui/fields` 新增一个导出
`summaryDeclaresCurrency`(单元格本就用它判断汇总字段是否为货币,现在合计行复用同一个判断,不另写格式化器)。货币与否按汇总字段自己的
`currencyConfig`,不看被汇总的源字段类型,这是 spec 的规定,席位已认可。回滚即 revert 本 PR。
- 先看:`ui/packages/plugin-grid/src/useColumnSummary.ts` 的
`summaryValueType` 及 `formatSummaryLabel`
里改为调用它的那一行;`ui/packages/plugin-grid/src/ObjectGrid.tsx` 的
`buildRowConflict` 新增的 `fields`。
- 两分钟验证:`pnpm --dir ui exec vitest run
packages/plugin-grid/src/__tests__/footerSummaryFieldScale-33542.test.tsx
packages/plugin-grid/src/__tests__/inlineEditConflictFields-33557.test.tsx`,预期
7 个用例全绿。
- 需要你做的:无,席位落地。

## What changes

**objectstack-ai#33557, a multi-field grid row conflict lists each field.**
`buildRowConflict` in `ObjectGrid.tsx` now fills the conflict's `fields`
list (objectstack-ai#33547's `ConcurrentUpdateFieldConflict`: field, label, your edit,
current value) when a row save changed more than one field, labelled by
the column header (`columnHeaderOf`, the label the one-field conflict
already uses). The dialog then draws one row per field instead of the
two whole-map previews. A one-field conflict is built exactly as before.

**objectstack-ai#33542, a summary column's footer total is formatted as its cell.**
The footer formatter (`formatSummaryLabel` in `useColumnSummary.ts`)
chooses its arm by the column type, and a `summary` column fell to the
plain default, which never reads `scale`. A new `summaryValueType`
routes a summary into the arm the list cell draws the same field with
(`FormulaCellRenderer`): `currency` when the summary declares its
currency (`summaryDeclaresCurrency`, the cell's own predicate, now
exported from `@object-ui/fields`), else `number` when
`resolveFieldScale` answers a width, else the plain default as today. No
second formatter: the existing currency arm (`formatCurrency`) and
number arm (`resolveFieldScale`) do the formatting.

**Measured first, as the triage asked.** On a live showcase
(`origin/main` d95ddeb, `objectstack dev`), `GET
/api/v1/meta/object/showcase_expense_report` serves the summary fields
with their scale, e.g. `total_amount`:
`{"type":"summary","scale":2,"summaryOperations":{"object":"showcase_expense_line","field":"amount","function":"sum"}}`,
no `currencyConfig`. The source `showcase_expense_line.amount` is served
as `type: currency` on its own object. So the scale reaches the console
and the gap was the footer.

## Tests

-
`ui/packages/plugin-grid/src/__tests__/inlineEditConflictFields-33557.test.tsx`,
new. The real `ObjectGrid`, `data-table` and `ConcurrentUpdateDialog`;
writes go through the real `@object-ui/data-objectstack` adapter and
`@objectstack/client`, with only `fetch` stubbed by a server answering a
stale `If-Match` with the 409 `CONCURRENT_UPDATE` envelope. Cells are
edited by click, typing and Enter, then the row's Save is clicked.
- Two changed fields + a 409: the dialog lists two rows,
`estimate_hours` under "Estimate" (61 / 77) and `owner_note` under
"Owner note" (shipped / blocked), and its text holds no `{` or `}`.
- CONTROL: one changed field shows no list, names "Estimate" and both
values.
-
`ui/packages/plugin-grid/src/__tests__/footerSummaryFieldScale-33542.test.tsx`,
new. The real `ObjectGrid` footer, its field catalogue read from the
data source's object schema, under a real `I18nProvider`.
- en: a summary with `scale: 2` totals to `Sum: 230,000.00`; zh-CN:
`合计:230,000.00`.
- en and zh-CN: a summary declaring a `fixed` CNY currency totals
exactly as a plain currency column with the same config does (money, not
a bare number).
- CONTROL: a summary with no scale and no currency keeps the plain total
(`Sum: 7`).

Ablations at head `eed5643b` (`scripts/ablation-replace.mjs`; the tests
import plugin-grid and `@object-ui/fields` from `src/` through the ui
vitest alias, so no dist is in the path):

<details><summary>objectstack-ai#33557: buildRowConflict without the fields list → the
multi-field case red, the control green; restored</summary>

```text
anchor "      fields: keys.map((k) => ({" → "      _ablated: keys.map((k) => ({"
ablation-replace: ok mutation landed: anchor 1 -> 0, blob 7c4d76f -> 3be11d0556d5
× two changed fields + a 409: two rows, each under its column header with both values, no raw JSON
Tests  1 failed | 1 passed (2)
ablation-replace: ok restored: blob == HEAD (7c4d76f) and `git diff HEAD` is empty
```

</details>

<details><summary>objectstack-ai#33542: the summary routing switched off → the four
scale and currency cases red, the control green; restored</summary>

```text
anchor "column?.type === 'summary' ? summaryValueType(column) : column?.type"
     → "column?.type === 'summary' && String('ABL').length < 0 ? summaryValueType(column) : column?.type"
ablation-replace: ok mutation landed: anchor 1 -> 0, blob 7803efa -> 9ba5b6deda4a
× en: a summary with scale 2 totals to two decimals
× zh-CN: a summary with scale 2 totals to two decimals, under the zh prefix
× en: a summary declaring a fixed currency totals as a plain currency column does
× zh-CN: a summary declaring a fixed currency totals as a plain currency column does
Tests  4 failed | 1 passed (5)
ablation-replace: ok restored: blob == HEAD (7803efa) and `git diff HEAD` is empty
```

</details>

## Acceptance notes

- **Money follows the summary's own `currencyConfig`, not its source
field's type** (seat accepted this reading). The card asks for the
currency format "when its source field is currency". The spec's
`currencyConfig` describe says "Absent: dynamic mode, and no currency on
a summary", and the list cell (`FormulaCellRenderer`) draws a summary as
money only when `summaryDeclaresCurrency` holds. The footer follows the
same rule, so footer and cell agree. HotCRM's All Invoices `paid_amount`
(`Field.summary`, `scale: 2`, no `currencyConfig`, summing currency
`crm_payment.amount`) therefore totals as `230,000.00`, matching its
cells; a HotCRM author who wants it drawn as money declares
`currencyConfig: { currencyMode: 'fixed', ... }` on the summary. The
HotCRM result is read from a fixture of the same shape in the pin above,
not from a live HotCRM run.
- A `formula` column's footer total also falls to the plain default arm
(the cell draws it by `returnType`). Not measured on a real producer
here; noted only.

## Verification

Local, at head `eed5643b` (rebased on `origin/main` 5604aeb), each exit
code captured before any pipe:

- `pnpm --dir ui exec vitest run packages/plugin-grid/ --maxWorkers=2`
under the verify lock: Test Files 283 passed (283), Tests 2443 passed
(2443), the two new files included.
- `pnpm --filter @object-ui/fields run type-check` and `pnpm --filter
@object-ui/plugin-grid run type-check` (each `tsc --noEmit && tsc -p
tsconfig.test.json`, so the new tests are type-checked): exit 0, after
building the `@object-ui/plugin-grid^...` closure.
- `pnpm check:new-line-citations` (ui, run by hand per `ui/AGENTS.md`
objectstack-ai#11): 0 new citations.
- Derived gate families (`node scripts/pm/dispatch-gates.mjs --commands
--repo objectstack-ai/objectstack`): 39 derived, 39 run, all exit 0;
`--ran` reconciles: "39 derived famil(ies) accounted for — 39 run, 0
NOT-MEASURED".

<details><summary>the 39 derived families, each COMMAND :: exit
N</summary>

```text
node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --self-test :: exit 0
node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-empty-changeset.mjs --base origin/main :: exit 0
node scripts/check-empty-changeset.mjs --self-test :: exit 0
node scripts/check-sdui-manifest.mjs :: exit 0
node scripts/check-sdui-manifest.mjs --self-test :: exit 0
node scripts/ci/snapshot-next.mjs --self-test :: exit 0
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0
node scripts/release-pending-publish.mjs --self-test :: exit 0
pnpm --dir ui exec vitest run scripts/ :: exit 0
pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0
pnpm --filter @objectstack/spec run check:error-code-provenance :: exit 0
pnpm check:changeset-gate-self-tests :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:dispatcher-error-vocabulary :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:engine-double-contract :: exit 0
pnpm check:error-status-conformance :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:published-files :: exit 0
pnpm check:query-options-erasure :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:registry-log-declared :: exit 0
pnpm check:rest-log-spy-declared :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:test-source-alias :: exit 0
pnpm check:tier-file-adoption :: exit 0
pnpm check:type-check-coverage :: exit 0
pnpm check:type-check-debt :: exit 0
pnpm check:undeclared-dep-imports :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm check:where-matcher :: exit 0
```

</details>

The repo-wide scans, the `test:repo` project and every family CI runs
beyond the derived list are CI's (Test UI, Type Check UI and the lint
farm).

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

console cosmetic and UX observations from the v18.4.0 sweep (6 rows)

1 participant