Repository navigation
refactor(frontend): one approval frame, adopted by the autoresearch card and workflow plan (#13421) - #20553
refactor(frontend): one approval frame, adopted by the autoresearch card and workflow plan (#13421)#20553mrveiss wants to merge 4 commits into
Conversation
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 on PR #20553 (head 4d2f9d1): approve. Read only; not rendered. Behaviour is kept on both surfaces, the frame uses the kit, strings moved to keys, and the old panel CSS is gone. Low: the plan buttons lost their icons, unmentioned in the body; |
Auto-sync: merging
|
| side | commit | subject | issue refs |
|---|---|---|---|
| main | d80ec1c8b |
fix(train): reach floors return to mid-window on the merged tree (#20251) | #20251 |
| this branch | d91213599 |
fix(frontend): re-pin the reach floors this branch moved (#13421) | #13421 |
repo_tests/vnc_password_not_in_frontend_source_16299_test.py
| side | commit | subject | issue refs |
|---|---|---|---|
| main | d80ec1c8b |
fix(train): reach floors return to mid-window on the merged tree (#20251) | #20251 |
| this branch | d91213599 |
fix(frontend): re-pin the reach floors this branch moved (#13421) | #13421 |
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
|
Landed on main via train merge 923759a (train PR #20841); the PR head tree equals origin/main (git diff origin/main...ca45ee1 and git diff origin/main ca45ee1 are both empty). The four commits are 'Merge main into' auto-sync merges with no content, and git cherry lists nothing because it skips merges. Closing. |
|
Branch deleted after verification: every commit is in main and the branch shows 0 changed files against main. Restore it from this PR if needed. |
Thinking Path
Approvals render in several separate surfaces with no shared component, and M3.7 needs one. Most surfaces sit in files open PRs hold, so this PR builds the shared frame and adopts the two that are free. The others adopt it as those PRs land, each keeping its own detail and API call.
What Changed
components/approvals/ApprovalEnvelope.vueonBaseCard,RiskBadgeandBaseButton, with a default slot for each surface's detail,approveandrejectevents, and no<style>block or new class names.autoresearch/ApprovalCard.vueadopts it, losing hard-coded colours and literal English.WorkflowBuilderView.vueadopts it, keeping its summary, per-step risk andapprovePlan/rejectPlancalls. The decorative icons in its two buttons are gone.Verification
ApprovalEnvelope.spec.ts(6),ApprovalCard.spec.ts(4) andWorkflowBuilderView.approval.spec.ts(3) pass withreka-uistubbed locally. The last also makes real HTTP calls that log 404s, so it is not isolated. i18n and fragmentation ratchets: 66 passed.vue-tsc, a Storybook story.Model Used
Claude Sonnet for the implementation, Claude Opus for coordination.
Single-issue rationale
Refs #13421 and does not close it. Left for after the holding PRs land: the chat card (#20401),
CapabilityApprovalDialog.vueandApprovalsInbox.vue(#20388, #20442),CommandPermissionDialog.vue(#20480), and the SLMApprovalsTab.vue. The shared backend record is a schema and data decision, only proposed on the issue.