caelum0x 514086bdda feat: Phase 3 enterprise hardening — gateway chain, XDR threat detection, compliance ops, plan tiers
- lib/security/gatewayChain.ts: composable ordered front-door (ip-allowlist -> authN -> authZ ->
  provenance -> rate/quota) as an additive primitive + docs/gateway-rollout.md (BUILD not fork Envoy)
- XDR: 0064 security_events + lib/security/threatDetection.ts (4 deterministic detectors) +
  securityScan + /console/admin/security dashboard
- Compliance ops: retention purge (with SQL-identifier guard), nightly chain-integrity verifyChain,
  access-review snapshot; folded into the daily /api/cron/tick (one Vercel-Hobby cron)
- Plan tiers: 0065 Researcher/Team/Pharma-Enterprise + plan_features entitlements + requireFeature +
  /console/billing/tier (Part-11 e-sign, audit export, SSO/SCIM gated to Enterprise)
- docs/compliance-controls.md (SOC2/HIPAA/21 CFR Part 11 controls matrix)
- Fixed: honest new-active-key threat description; removed duplicate /security page

migrations 0064/0065/0066 applied to Neon; tsc + build green.
2026-07-11 00:18:36 +03:00

39 lines
1.4 KiB
TypeScript

"use client";
import { BillingHeader } from "../_components/BillingHeader";
import { CurrentTierCard } from "./_components/CurrentTierCard";
import { EntitlementsCard } from "./_components/EntitlementsCard";
import { CatalogCard } from "./_components/CatalogCard";
import { useTier } from "./_components/useTier";
// /console/billing/tier — the packaging & entitlement page. Shows the org's
// current tier, its gated-feature entitlements, and a side-by-side catalog with
// an upgrade CTA. Read-only; upgrades route to the existing plan-management flow.
export default function TierPage() {
const { data, loading, error } = useTier();
return (
<div className="max-w-3xl">
<BillingHeader
title="Plan & tiers"
subtitle="Your packaging tier, feature entitlements, and how to upgrade."
action={{ href: "/console/billing", label: "Back to billing" }}
/>
{loading ? (
<p className="mt-6 text-sm text-ink/40">Loading tier…</p>
) : error ? (
<p className="mt-6 text-sm text-red-600">{error}</p>
) : data ? (
<>
<CurrentTierCard tier={data.currentTier} />
<EntitlementsCard entitlements={data.entitlements} />
<CatalogCard catalog={data.catalog} currentKey={data.currentTier.key} />
</>
) : (
<p className="mt-6 text-sm text-ink/40">No tier information available.</p>
)}
</div>
);
}