Blocks / Shell

Admin Console

The platform operator's console under /admin, for platform admins only (404 for anyone else): an overview with the product's own panels first, then the last 24 hours and integration health; a searchable, paged user directory with a record panel; a workspace's support page (plan, credit, members, payments, executions, and reason-required grant-plan, add-credit and impersonate actions); revenue and costs with the billing settings, the payment ledger and the usage ledger; and operations with failed jobs, unsettled executions and the audit trail by name.

$pnpm exec shadcn add @intelligo/admin-console

Run it inside an app made by intelligo create. Anywhere else, name the registry and install the base first.

Loading preview…
about this block

The platform operator's console under /admin, for platform admins only (404 for anyone else): an overview with the product's own panels first, then the last 24 hours and integration health; a searchable, paged user directory with a record panel; a workspace's support page (plan, credit, members, payments, executions, and reason-required grant-plan, add-credit and impersonate actions); revenue and costs with the billing settings, the payment ledger and the usage ledger; and operations with failed jobs, unsettled executions and the audit trail by name. Reads come from @intelligo-dev/admin; the sidebar is lib/admin-nav.ts and the product's slots are lib/admin-config.tsx. Its page title, panels, URL-state data list and property list are for a product's own console pages too. Requires app-shell, pricing and route-error.

yours to edit
  • lib/admin-nav.ts
  • lib/admin-config.tsx

messages/en/admin-console.json

Everything else is used verbatim; a deployment varies through these files and translations.How seams work →

requires
built from

alert, card, field, table, ai-sidebar, button, data-table, input, page-header, property-list, record-panel, spinner, stat-card, status-badge, tabs

npm packages it adds

@intelligo-dev/admin · @intelligo-dev/auth · @intelligo-dev/billing · @intelligo-dev/core · lucide-react · next-intl · server-only · sonner · zod

what shadcn add writes · 29 files
Routes
  • app/[locale]/admin/layout.tsx
  • app/[locale]/admin/page.tsx
  • app/[locale]/admin/error.tsx
  • app/[locale]/admin/users/page.tsx
  • app/[locale]/admin/users/[workspaceId]/page.tsx
  • app/[locale]/admin/revenue/page.tsx
  • app/[locale]/admin/operations/page.tsx
Components
  • components/admin/page-title.tsx
  • components/admin/panel.tsx
  • components/admin/settled.tsx
  • components/admin/action-form.tsx
  • components/admin/admin-sidebar.tsx
  • components/admin/data-list.tsx
  • components/admin/properties.tsx
  • components/admin/platform-overview.tsx
  • components/admin/integration-health.tsx
  • components/admin/support-actions.tsx
  • components/admin/workspace-tables.tsx
  • components/admin/revenue.tsx
  • components/admin/revenue-lists.tsx
  • components/admin/operations.tsx
  • components/admin/audit-list.tsx
Actions, config and messages
  • actions/admin-console.ts
  • lib/admin-nav.ts
  • lib/admin-config.tsx
  • lib/admin-page.ts
  • lib/admin-format.ts
  • lib/admin-list.ts
  • messages/en/admin-console.json

Ready to try it? Three commands and the app runs against a stub model.