feat(ui): show subscription status in dashboard

This commit is contained in:
2026-03-05 12:42:56 +00:00
parent fec7c682f0
commit 84a1396265

View File

@@ -57,6 +57,10 @@ function getDomainStatusBadge(status: string | null) {
return "bg-rose-100 text-rose-700"; return "bg-rose-100 text-rose-700";
} }
if (normalized.includes("expired")) {
return "bg-amber-100 text-amber-700";
}
if (normalized.includes("active") || normalized.includes("enabled")) { if (normalized.includes("active") || normalized.includes("enabled")) {
return "bg-emerald-100 text-emerald-700"; return "bg-emerald-100 text-emerald-700";
} }
@@ -576,7 +580,7 @@ export function DashboardControls({
<thead> <thead>
<tr className="border-b border-slate-200 text-xs uppercase text-slate-500"> <tr className="border-b border-slate-200 text-xs uppercase text-slate-500">
<th className="px-2 py-2">Domain</th> <th className="px-2 py-2">Domain</th>
<th className="px-2 py-2">Status</th> <th className="px-2 py-2">Subscription Status</th>
<th className="px-2 py-2">Hosting</th> <th className="px-2 py-2">Hosting</th>
<th className="px-2 py-2">Created</th> <th className="px-2 py-2">Created</th>
<th className="px-2 py-2">Aliases</th> <th className="px-2 py-2">Aliases</th>