Skip to content

fix(plugin-detail, plugin-grid): a refusal-named fill-in row reads the record the change would leave - #37394

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-37270-refusal-row-record
Nov 26, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-37270-refusal-row-record

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #37270
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:在阶段菜单、记录页保存、列表单元格弹出的补填弹窗里,服务端拒绝保存时临时补上的字段,下拉选项现在按这次改动后的记录判断显示;阶段菜单的纯确认框里不再出现没有可选项的补填行。
  • 为什么做:补填弹窗选项判断的同族收尾,替上一张「失败原因下拉暂无可选项」的卡补上服务端临时点名字段这一条少见路径。
  • 出错会怎样:只影响服务端点名前端没预料到的字段时那一行的可选项;改动只是给这一行带上同一份合并后的记录,可直接撤回。
  • 要你做什么:无。

What changes

Each host's refusalField builder now hands the row it adds the record the change would leave, the same merge the collector judges its own rows on (collectRequiredWhenPromptFields: stored record + change). RequiredFieldsDialog resolves every control against the first shown row's record plus the typed values; with no collected row shown, the refusal row was the only candidate and carried none, so its options were judged on the typed values alone.

  • ui/packages/plugin-detail/src/renderers/recordPathStageChange.tsx: moved = { ...record, [statusField]: stage.value }, set on the refusal row. This is the host where the defect is user-visible: a stage that needs nothing opens the dialog with no collected row.
  • ui/packages/plugin-detail/src/InlineEditSaveBar.tsx: drafted = { ...data, ...ask.draft }, set on the refusal row.
  • ui/packages/plugin-grid/src/objectGridRequiredPrompt.tsx: { ...record, [columnKey]: value }, set on the refusal row.

No new authoring surface, no spec change, no change in ui/packages/fields. Kanban passes no refusalField; the timesheet add-row dialog is out of scope (card).

Files to read first (by risk): recordPathStageChange.tsx (the merge must match the collector's: statusField over the stored record), objectGridRequiredPrompt.tsx (record is the row with lacking keys read in, not the bare row), InlineEditSaveBar.tsx.

Two-minute check: pnpm --dir ui exec vitest run packages/plugin-detail/src/__tests__/RecordStageMenu.refusalRowRecord-37270.test.tsx — 1 passed; the added channel row shows "Negotiation option" and not "Lost option".

Tests

One pin per host, each red without its host's line (ablation below):

  • RecordStageMenu.refusalRowRecord-37270.test.tsx (behaviour): a move to a stage that needs nothing, refused naming a radio whose options gate on record.stage; the added row offers the option visible on the moved record, not the empty state, and keeps the other stage's option hidden.
  • InlineEditSaveBar.refusalRowRecord-37270.test.tsx and objectGridRequiredPrompt.refusalRowRecord-37270.test.tsx (row shape): the row refusalField returns carries { ...stored, ...change }. In these two hosts the dialog only opens with at least one collected row, which already carries the merged record, so the dialog's rendered options do not differ without the fix; the pin is on the row the host hands over.

Acceptance notes

  • Done-when 1 ("visibleWhen reads the record the write would leave, also when no collected field is shown"): measured in the stage-menu host, the only host whose dialog can show no collected row. In the inline Save and list cell hosts it already held through the collected row's record; this PR makes their refusal rows carry it themselves, so it no longer depends on row order.
  • Done-when 2 ("one pin per host, red without the fix"): three pins, three ablations red.

Verification

Local readings land in the os-dev-report comment on #37270 and are folded in here once the package run finishes.


Generated by Claude Code

…the record the change would leave

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6Ca6EBDpTBZk8v46Jjv
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 26, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

席位核对

Head-sha: 32112a59d9d5e97f279c69ef4712860e43e1b9a5
ACCEPT — L1, seat repo:objectstack#5

  1. Shape: open draft against main, 7 files, +280/−3. The source change is +12/−3; the rest is pins and the changeset. The PR body says Fixes #37270, and merging delivers the card: all three hosts are done, with one pin per host. l1-face CLEAN.
  2. Premise and change: each host's refusalField row now carries the record the change would leave, matching the card's three named sites.
    • Stage menu: { ...record, [statusField]: stage.value }.
    • Inline Save: { ...data, ...ask.draft }.
    • List cell: { ...record, [columnKey]: value }.
      This is the collector's merge, rebuilt locally because the collector lives in the fenced ui/packages/fields. Kanban passes no refusalField. Three ablations, each red.
  3. Gates: check-runs at 32112a59d9: 42 success, 13 expected skip, 0 failed, 0 pending; mergeable clean. The changeset (plugin-detail and plugin-grid patch, Clause-②: no, Metadata-protocol: none) is true against the diff.
  4. Accepted deviations:
    • In inline Save and the list cell the dialog cannot open without a collected row that already carries the record, so those two pins check row shape, not rendered options.
    • The stage-menu pin reproduces the user-visible bug.
  5. Out of scope: the timesheet add-row dialog stays out, as the card says.
  6. Landing terms: ungoverned, default tier, Clause-②: no. L1 only. The area lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Probe Reading
check-governed-merges --pr 37394 NOT governed, ≤ 3000 lines
landing-k --pr 37394 CAN'T ANSWER: no Test Core shard ran on this UI-only diff. Measured by hand instead: K = 1 first-parent commits on main since this head's merge base, after the platform's base sync (pr_update_branch, 32112a59d9 → 34579c93eb)
pr-state --pr 37394 at 34579c93eb 42 success · 13 expected skip · 0 failed · 0 pending, mergeable clean
Diff identity git diff merge-base..head matches the ACCEPTed head 32112a59d9 byte for byte (ignoring index lines), so the base sync moved no line of this PR
os-regen paths in diff none

Landing on seat ACCEPT 7180717969. The maintainer named this PR on the seat thread's decision card (「合并这三个」 on 「合并 #37394、#37421、#37464 这三个已 ACCEPT 的非受管 PR 吗?」, 2026-11-26T07:11Z). Action: ready + auto-merge. Closes #37270 on merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 26, 2026 07:43
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 82a8510 Nov 26, 2026
56 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-37270-refusal-row-record branch November 26, 2026 08:11
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/m 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.

Fill-in dialog: a host's refusal-named row carries no record, so its options read only the typed values

2 participants