export const metadata = { title: "System Status — Property Management Network", description: "Real-time status of all Property Management Network services.", } const SERVICES = [ { name: "Web Application", status: "operational", uptime: "99.98%" }, { name: "API Gateway", status: "operational", uptime: "99.97%" }, { name: "Database (Supabase)", status: "operational", uptime: "99.99%" }, { name: "Payment Processing (Stripe)", status: "operational", uptime: "99.95%" }, { name: "Email Delivery (Resend)", status: "operational", uptime: "99.96%" }, { name: "File Storage", status: "operational", uptime: "99.99%" }, { name: "Tenant Portal", status: "operational", uptime: "99.97%" }, { name: "Webhook Delivery", status: "operational", uptime: "99.90%" }, ] const INCIDENTS = [ { date: "2026-03-28", title: "Resolved: Delayed email notifications", detail: "Email notifications were delayed by up to 12 minutes due to a Resend upstream issue. Fully resolved at 14:32 UTC.", severity: "minor", }, { date: "2026-02-14", title: "Resolved: Slow dashboard load times", detail: "Database query optimisations were deployed to fix a slow index scan affecting dashboards with 50+ units. Resolved in 45 minutes.", severity: "minor", }, ] export default function StatusPage() { const allOperational = SERVICES.every((s) => s.status === "operational") return (
{/* Header */}

System Status

Real-time health of all Property Management Network services.

{/* Overall status */}

{allOperational ? "All systems operational" : "Partial outage detected"}

Last checked: just now

{/* Services */}

Services

{SERVICES.map((svc, i) => (
{svc.name}
{svc.uptime} uptime {svc.status}
))}
{/* Uptime graph placeholder */}

90-day uptime

{Array.from({ length: 90 }).map((_, i) => (
0.03 ? 100 : Math.floor(Math.random() * 60 + 20)}%` }} /> ))}
90 days ago Today
{/* Incidents */}

Past Incidents

{INCIDENTS.map((inc) => (
{inc.severity} {inc.date}

{inc.title}

{inc.detail}

))}
) }