Skip to content

refactor(frontend): one approval frame, adopted by the autoresearch card and workflow plan (#13421) - #20553

Closed
mrveiss wants to merge 4 commits into
mainfrom
issue-13421-one-approval-surface
Closed

mrveiss wants to merge 4 commits into
mainfrom
issue-13421-one-approval-surface

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 1, 2026

Copy link
Copy Markdown
Owner

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

  • New components/approvals/ApprovalEnvelope.vue on BaseCard, RiskBadge and BaseButton, with a default slot for each surface's detail, approve and reject events, and no <style> block or new class names.
  • autoresearch/ApprovalCard.vue adopts it, losing hard-coded colours and literal English.
  • The plan approval in WorkflowBuilderView.vue adopts it, keeping its summary, per-step risk and approvePlan/rejectPlan calls. The decorative icons in its two buttons are gone.
  • en.json keys, untranslated baselines raised naming them, and the view's size ceiling lowered.

Verification

  • ApprovalEnvelope.spec.ts (6), ApprovalCard.spec.ts (4) and WorkflowBuilderView.approval.spec.ts (3) pass with reka-ui stubbed locally. The last also makes real HTTP calls that log 404s, so it is not isolated. i18n and fragmentation ratchets: 66 passed.
  • Not done: a browser, 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.vue and ApprovalsInbox.vue (#20388, #20442), CommandPermissionDialog.vue (#20480), and the SLM ApprovalsTab.vue. The shared backend record is a schema and data decision, only proposed on the issue.

@mrveiss mrveiss added this to the M3 - Refined GUI complete milestone Nov 1, 2026
@mrveiss mrveiss added the phase:M3.7 Company OS, Automation and BI screens label Nov 1, 2026
@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Notice: 29 open PRs — past the runaway threshold (25)

This is not a request to defer this PR. There is no cap on open PRs (#19397) -- nothing blocks opening or pushing a PR.

This notice only means the count is high enough to be worth a glance for a runaway — something opening PRs in a loop, or a merge pipeline that has stalled so nothing is draining.

Currently open:

If the queue is draining normally, ignore this. Otherwise:

  1. Check whether CI is dispatching at all — see the ci-dispatch-watchdog status on these PRs
  2. Approved PRs land through the merge train the coordinator sequences (merge commits, never squash) -- check the open chore(merge-train) PR is moving, not each PR on its own
  3. Look for a loop opening near-identical PRs

Warn-only runaway detector — .github/workflows/pr-queue-gate.yml. It never blocks a merge.

@mrveiss

mrveiss commented Nov 1, 2026

Copy link
Copy Markdown
Owner Author

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; WorkflowBuilderView doesn't pass deciding, so double-submit stays possible as before; the spec selects buttons by index.

This was referenced Nov 1, 2026
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Auto-sync: merging main into issue-13421-one-approval-surface conflicts

The sync aborted the merge and pushed nothing. Conflicts are information, so it never resolves one itself. Below, for each conflicted file, are the commits that touched it on each side since the merge base 09e1c808fa. Merge main in yourself and push; the label clears on the first run that finds this branch 0 behind.

repo_tests/undefined_css_var_ratchet_17552_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

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

@github-actions github-actions Bot added the sync-conflict Set by the branch sync (#19548) label Nov 2, 2026
@mrveiss mrveiss removed the sync-conflict Set by the branch sync (#19548) label Nov 5, 2026
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

✅ SSOT Configuration Compliance: Passing

🎉 No new hardcoded values of either class — ssot and other both block.

Known backlog in pipeline-scripts/hardcoded_values_baseline.txt is suppressed and tracked in #14371.

mrveiss added a commit that referenced this pull request Nov 5, 2026
timothybrush pushed a commit to timothybrush/AutoBot-AI that referenced this pull request Nov 5, 2026
@mrveiss

mrveiss commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

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.

@mrveiss

mrveiss commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

phase:M3.7 Company OS, Automation and BI screens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant