Completes the arcadia-admin operator surface for the integration registry and the capability/route-guard framework it depends on. - Integration registry: route + Data-group nav entry + `platform.integrations` capability; the in-app client now delegates to the shared `@crema/integration-registry-client` lib (vite alias + tsconfig); the operator Integrations page (committed earlier) is now reachable. - Capability gating: capabilities map + route-guard + jwt helpers + the apps/plan/entitlements routes and supporting tenants/session changes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
// Tenant entitlements — placeholder. Lists the metered allowances
|
|
// (AI tokens, storage GB, etc.) granted to the active tenant and how
|
|
// much of each has been consumed. Data source not wired yet.
|
|
|
|
import { Gauge } from "lucide-react"
|
|
import { AppShell } from "~/components/layout/app-shell"
|
|
import {
|
|
Card,
|
|
CardContent,
|
|
CardDescription,
|
|
CardHeader,
|
|
CardTitle,
|
|
} from "~/components/ui/card"
|
|
|
|
export default function EntitlementsRoute() {
|
|
return (
|
|
<AppShell>
|
|
<div className="flex items-center gap-3">
|
|
<div className="flex size-10 items-center justify-center rounded-lg bg-primary/10 text-primary">
|
|
<Gauge className="size-5" />
|
|
</div>
|
|
<div>
|
|
<h1 className="text-2xl font-semibold">Entitlements</h1>
|
|
<p className="text-sm text-muted-foreground">
|
|
Metered allowances for this tenant — included units and usage to
|
|
date per meter.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<Card>
|
|
<CardHeader>
|
|
<CardTitle>Coming soon</CardTitle>
|
|
<CardDescription>
|
|
Personal-cloud entitlements are tracked per account today. A
|
|
tenant-rollup endpoint is pending.
|
|
</CardDescription>
|
|
</CardHeader>
|
|
<CardContent />
|
|
</Card>
|
|
</AppShell>
|
|
)
|
|
}
|