Repository navigation
fix(app-shell): a read-only flow edge inspector says why its controls are disabled - #29206
Merged
Merged
Conversation
… are disabled The connection inspector now honours the host's readOnlyReason the way the node inspector does. The node inspector's inline reason group moves into one shared InspectorReadOnlyReason that both panels draw, with the node panel's DOM unchanged. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jU7NRnC2NpRec6yEYE
…node-name rule pins it Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jU7NRnC2NpRec6yEYE
Contributor
Author
|
domain:ui#1 · zhuangjianguo · session_01QsR2jUJ19MstFvFhjgiYTu 席位核对 · ACCEPT · 2026-11-02T09:37ZHead-sha:
|
This was referenced Nov 2, 2026
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.
Requested by Steedos · project thread
Fixes #29077
Clause-②: no
Metadata-protocol: none
Claim: issue comment 6572861977 (branch
claude/project-thread-1r2gue, sessionsession_01QsR2jU7NRnC2NpRec6yEYE).维护者速读
ux-conventions.disabled-control-reason在这个面上仍判失败。_shared.tsx新增的InspectorReadOnlyReason;FlowEdgeInspector.tsx末尾的包裹;FlowNodeInspector.tsx换成共享组件的那一段。ui/下运行pnpm exec vitest run packages/app-shell/src/views/metadata-admin/inspectors/FlowEdgeInspector.readOnlyReason-29077.test.tsx packages/app-shell/src/views/studio-design/StudioDesignSurface.automationsReadOnly-11124.test.tsx,预期 2 个文件、17 个测试全绿。What changes
InspectorReadOnlyReason(new,inspectors/_shared.tsx; not reachable from the@object-ui/app-shellentry). The reason groupFlowNodeInspectordrew inline since Studio flow node inspector: on a read-only package every control is disabled with no reason on hover, keyboard focus or to assistive tech #28985, lifted so both flow inspectors draw one: arole="group"named by the element the panel edits,tabIndex={0},aria-describedbyansr-onlycopy of the reason,data-disabled-reason, and the trigger of a tooltip that shows it. It renders its children bare unlessreadOnlyand the reason is non-blank.FlowEdgeInspectornow readsreadOnlyReasonand wraps its panel in that group, named by the connection the way its title is (each end by its node's name, never an id). The missing-edge empty state has no controls and stays bare.FlowNodeInspectoruses the shared group with the same DOM, test id and name it had; its ownuseIdand tooltip imports go.ResourceEditPagestill passes none (Studio metadata editor page: the flow node inspector on /studio/PKG/metadata/flow/NAME is read-only with no reason, because ResourceEditPage folds three causes into formReadOnly and passes no readOnlyReason #29079).Tests
FlowEdgeInspector.readOnlyReason-29077.test.tsx, 6 cases on an approval's out-edge (so the Approval branch picker draws too): read-only with a reason makes the panel a tab stop named by the connection and described by the reason, holding every disabled control (at least six); hovering the disabled "Remove connection" opens the tooltip; Tab lands on the panel and opens it. Controls: no reason gives no group and no tab stop; a blank reason counts as none; a writable panel ignores a reason and its controls are live.StudioDesignSurface.automationsReadOnly-11124.test.tsx, one new case: through the real pillar,FlowPreviewandFlowInspector, clicking the start → end connection on a read-only package opens the edge inspector inside the described group with the package's reason.0d6d4061, the two edge files plus the Studio flow node inspector: on a read-only package every control is disabled with no reason on hover, keyboard focus or to assistive tech #28985 node file ran 4 failed, 19 passed: the three edge reason cases and the host edge case fail (noflow-edge-readonly-reasongroup), every control and every node case passes.Acceptance notes
InspectorReadOnlyReasonwhen next touched.Verification
All readings on head
f844add6unless named (fix07c2c014, title follow-upf844add6), base0d6d4061.Tests
pnpm exec vitest run(fromui/) on the two edge files plusFlowNodeInspector.readOnlyReason-28985.test.tsx: 3 files, 23 tests passed._shared.tsx,FlowNodeInspector.tsxandFlowEdgeInspector.tsxrestored from0d6d4061: 4 failed, 19 passed (the three edge reason cases and the host edge case, each on the missing group; the Studio flow node inspector: on a read-only package every control is disabled with no reason on hover, keyboard focus or to assistive tech #28985 node cases pass, so the node DOM is unchanged). Restored withgit checkout HEAD,git diff HEADempty.git grepfinds namingFlowEdgeInspector,FlowNodeInspector,FlowInspector,AutomationsPillar,InspectorShell,_sharedorflowNodeLabels, in three locked batches at--maxWorkers=2: 38/38 files (425 tests), 42/42 with the new file (580), 41/41 (339). The first run on07c2c014caughtflowNodeLabels.sites-13200.test.ts, which pins the edge title'sflowEdgeDisplayNameexpression in place;f844add6keeps it there, and all three batches re-ran green onf844add6. Narrowed on purpose: CI's Test UI runs the rest of app-shell.pnpm exec turbo run type-check --filter=@object-ui/app-shell: 65 of 65 tasks successful.eslinton the five changed ui files: 0 errors (13 existing warnings, all on untouched lines).Gates
node scripts/pm/dispatch-gates.mjs --commandsderived 34 families; all 34 ran with exit 0, the unlocked ones with this body as the PR event (check-adr-0087-registration,check-changeset-no-major,check-closing-keyword-parity,check-sdui-manifestamong them), andpnpm --dir ui exec vitest run scripts/locked: 169 files passed, 2 skipped (4,900 tests).dispatch-gates --ran: 34 derived, 34 run, 0 NOT-MEASURED, 0 UNRUN.check:new-line-citations: 0 new citations.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (Not touched.)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01QsR2jU7NRnC2NpRec6yEYE
Generated by Claude Code