Skip to content

Approval Dialogs & Requests

Design system for AI agent approval flows. Dark theme, ANUKA wordmark, responsive.

The /approve/:token page. Structure:

  1. Wordmark — 28px height, centered
  2. Title — “Confirm destructive action” / “Approve this action?”
  3. Request card (dashed cyan border, subtle cyan bg):
    • Action type + risk badge (right-aligned)
    • Requestor block: avatar + name + provider (left), project + team (right)
    • Description (full-width under caption)
    • Permissions list (scrollable, danger-highlighted)
  4. Meta row — expires, one-time link (centered, muted)
  5. Code input — clean, mono 30px, cyan focus
  6. Action button — single outlined “Review & Approve”, sticky bottom

No reject button. Mobile: full-width dialog, safe-area padding.

Shared approval links show category-based previews (1200×630):

CategoryTrigger actionsPreview
Destructivedelete_*, destroy🔴
Security*_mcp_key, *_access, permissions🟡
Standarddelegate, assign, approve🔵
Publishpublish, changelog, deploy🟢

Each preview: ANUKA wordmark → “Request:” → TITLE (92px) → agent › project → “Review and Accept” button.

Dynamic selection via Netlify Edge Function (netlify/edge-functions/og-approve.ts):

  • Intercepts /approve/:token
  • Fetches action type from mcp.anuka.pro/approvals/:token
  • Injects matching og:image + og:title
  1. Always real ANUKA wordmark (never text)
  2. Responsive (mobile-first)
  3. Single primary action
  4. No sensitive details in OG (type only)