Skip to content

fix(plugin-approvals): give the decision actions a visual hierarchy (objectui#2762 P1-5) - #3437

Merged
os-zhuang merged 1 commit into
mainfrom
claude/approval-center-optimization-77msf2
Jul 24, 2026
Merged

fix(plugin-approvals): give the decision actions a visual hierarchy (objectui#2762 P1-5)#3437
os-zhuang merged 1 commit into
mainfrom
claude/approval-center-optimization-77msf2

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

Summary

Framework half of objectstack-ai/objectui#2762P1-5 (flat action hierarchy): the sys_approval_request decision actions all rendered as equal-weight outlined buttons in the drawer's action bar, so the primary Approve didn't stand out and Reject didn't read as destructive.

  • approval_approve now declares variant: 'primary'
  • approval_reject now declares variant: 'danger'

Both values are from the existing ActionSchema.variant enum (primary | secondary | danger | ghost | link). A metadata-driven renderer maps them onto its button styles — the objectui companion PR (objectstack-ai/objectui#2803) teaches DeclaredActionsBar to map primary → filled default and danger → destructive — so Approve is highlighted and Reject reads as the irreversible action it is, matching the hierarchy the mobile card already has. Pure metadata; the secondary levers (reassign / send-back / request-info / remind / recall / resubmit) stay unstyled as tertiary.

Verification

  • pnpm turbo build test --filter=@objectstack/plugin-approvals green (8/8)
  • Changeset: patch × 1

Refs objectstack-ai/objectui#2762, objectstack-ai/objectui#2803

🤖 Generated with Claude Code

https://claude.ai/code/session_01Cu48mLFUdRBmMh8Z8R3CVz


Generated by Claude Code

…ctui#2762 P1-5)
approval_approve declares variant:'primary' and approval_reject declares
variant:'danger' so a metadata-driven renderer highlights Approve and
styles Reject as destructive — the drawer action bar gains the hierarchy
the mobile card already had. Pure metadata; secondary levers stay tertiary.
Refs objectui#2762
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cu48mLFUdRBmMh8Z8R3CVz
@vercel

vercelBot commented Jul 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
specReadyReadyPreview, CommentJul 24, 2026 2:16pm

Request Review

@github-actionsgithub-actionsBot added documentation Improvements or additions to documentation tooling size/s labels Jul 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/plugin-approvals.

4 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:

  • content/docs/automation/approvals.mdx(via @objectstack/plugin-approvals)
  • content/docs/plugins/packages.mdx(via @objectstack/plugin-approvals)
  • content/docs/releases/implementation-status.mdx(via @objectstack/plugin-approvals)
  • content/docs/releases/v9.mdx(via @objectstack/plugin-approvals)

Advisory only. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs origin/main → pass the list as args.docs.

@os-zhuang
os-zhuang marked this pull request as ready for review July 24, 2026 14:19
@os-zhuang
os-zhuang merged commit 2ba560a into mainJul 24, 2026
16 checks passed
@os-zhuang
os-zhuang deleted the claude/approval-center-optimization-77msf2 branch July 24, 2026 14:19
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationImprovements or additions to documentationsize/stooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@os-zhuang@claude