Repository navigation
fix(workflow): bind deciding on plan approval and bound step approval cards (#20853) - #21104
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 16 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Code review (code-reviewer pass) follow-up at 1236178
Not touched: |
Code review (code-reviewer pass) follow-up at 1236178Verdict: APPROVE-equivalent. No blocking findings; the items below are non-blocking. Checked against the code (three-dot diff): both #20853 ACs and the four M3 items of #21033 are delivered;
No hardcoded strings were found in the changed code. The only styling is Tailwind utilities, with no new ad-hoc CSS. |
…ist scroll region (#20853)
Code review (code-reviewer pass) follow-up at e7eeebaAll findings addressed in commit e7eeeba.
Verification (scratch copy): vitest on the two new specs, |
|
Code review (code-reviewer pass) at e7eeeba Verdict: APPROVE. 10 files changed, 0 commits behind main.
|
Code review (code-reviewer pass) follow-up at e7eeebaAll findings addressed in commit e7eeeba.
Verification (scratch copy): vitest on the two new specs, |
Thinking Path
The plan-approval envelope never received
deciding, and neither handler tracked an in-flight request, so both buttons stayed live and a second click sent a second decision. The guard lives in a small composable (usePlanDecision) rather than in the view, becauseWorkflowBuilderView.vueis at its file-size ceiling; the ceiling is lowered, not raised. The M3 items of #21033 ride along: clearer failure copy, a bounded scroll region for the step approval cards, and two missing spec assertions.useWorkflowBuilder.tsand its tests are left to the M4 items of #21033.What Changed
autobot-frontend/src/composables/usePlanDecision.ts(new):decidingis true from the first click until the request settles; a decision made while one is in flight is not sent. Approve/reject handlers moved here from the view.autobot-frontend/src/views/WorkflowBuilderView.vue: binds:decidingon the planApprovalEnvelope; renders the step cards throughStepApprovalList. 2166 -> 2157 lines; ceiling inscripts/frontend_file_size_known_large.pylowered to 2157.autobot-frontend/src/components/workflow/StepApprovalList.vue(new): the cards in amax-h-96 overflow-y-autoregion (the repo's shared scroll utilities, no new CSS), rendered outside the loading/error/content switch so it applies in every state.autobot-frontend/src/i18n/locales/en.json:stepApproveFailed/stepSkipFailednow say the outcome is unconfirmed and to check the workflow status before retrying. Onlyen.jsoncarries these keys (checked all 11 locales).WorkflowBuilderView.approval.spec.ts(deciding binding, no second decision, copy),StepApprovalCard.spec.ts(skipspy not called in the double-click test),WorkflowRunner.stepApproval.spec.ts(waiting_approvalwithrequires_confirmation: false).Verification
vue-tsc -p tsconfig.app.json: no errors in the touched files.repo_tests/frontend_fragmentation_ratchet_test.py: 53 passed (a first push was blocked by this ratchet because of new scoped CSS; fixed by using the shared utilities).Closes #20853
Refs #21033 (M3 items only; the
useWorkflowBuilderitems stay open for M4)Model Used
Claude Sonnet 5.5