Repository navigation
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 intoNov 26, 2026
Conversation
…the record the change would leave Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca6EBDpTBZk8v46Jjv
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X
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
Bot
deleted the
claude/issue-37270-refusal-row-record
branch
November 26, 2026 08:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #37270
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Each host's
refusalFieldbuilder 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).RequiredFieldsDialogresolves every control against the first shown row'srecordplus 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 norefusalField; 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:statusFieldover the stored record),objectGridRequiredPrompt.tsx(recordis 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 addedchannelrow 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 onrecord.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.tsxandobjectGridRequiredPrompt.refusalRowRecord-37270.test.tsx(row shape): the rowrefusalFieldreturns 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
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