About
A review queue for pending expense, access, deploy, purchase and time-off requests, with row and bulk selection, swipe-out approve/reject actions with an undo toast, a reject-reason dialog, status tabs with rolling counts, and j/k/x/a/r keyboard shortcuts.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Approval Queue to your project and fits it to your theme.
Code
How Approval Queue is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import {
ApprovalQueue,
type ApprovalRequest,
} from "@/components/ui/approval-queue";
const now = Date.now();
const requests: ApprovalRequest[] = [
{
id: "1",
kind: "expense",
title: "Client dinner — Q3 kickoff",
requester: { name: "Mia Chen" },
amount: 184,
details: "Expensify #4821",
createdAt: now - 12 * 60_000,
priority: "normal",
status: "pending",
},
{
id: "2",
kind: "access",
title: "Prod database read access",
requester: { name: "Theo Alvarez" },
details: "Admin on billing-db",
createdAt: now - 48 * 60_000,
priority: "high",
status: "pending",
},
{
id: "3",
kind: "deploy",
title: "Deploy checkout-service",
requester: { name: "Priya Nair" },
details: "prod · v2.14.0",
createdAt: now - 6 * 60_000,
priority: "urgent",
status: "pending",
},
{
id: "4",
kind: "purchase",
title: "Figma seats (x3)",
requester: { name: "Noah Kim" },
amount: 540,
createdAt: now - 3 * 60 * 60_000,
priority: "low",
status: "pending",
},
{
id: "5",
kind: "time-off",
title: "PTO — Dec 23 to Dec 30",
requester: { name: "Ava Johansson" },
createdAt: now - 20 * 60 * 60_000,
priority: "normal",
status: "pending",
},
{
id: "6",
kind: "expense",
title: "Conference travel",
requester: { name: "Leo Fischer" },
amount: 912,
createdAt: now - 2 * 24 * 60 * 60_000,
priority: "normal",
status: "approved",
},
{
id: "7",
kind: "access",
title: "Staging SSH key",
requester: { name: "Sofia Rossi" },
createdAt: now - 5 * 24 * 60 * 60_000,
priority: "low",
status: "rejected",
reason: "Duplicate request",
},
];
export default function ApprovalQueueDemo() {
return (
<div className="w-full max-w-xl">
<ApprovalQueue defaultRequests={requests} />
</div>
);
}
















