Update overview stats for applications

cgen-1a327a466bc24be5821d73774376a7af
This commit is contained in:
Builder.io 2025-10-14 04:21:59 +00:00
parent e7505fe330
commit 44f2abbc65

View file

@ -295,15 +295,29 @@ export default function Admin() {
tone: "green" as const,
},
{
title: "Pending applications",
value: applicationsLoading ? "…" : pendingApplications.toString(),
title: "Pending project applications",
value: projectApplicationsLoading
? "<22><><EFBFBD>"
: pendingProjectApplications.toString(),
description: "Project collaboration requests awaiting review.",
trend: applicationsLoading
trend: projectApplicationsLoading
? "Fetching submissions…"
: `${applications.length} total submissions`,
: `${projectApplications.length} total submissions`,
icon: ClipboardList,
tone: "orange" as const,
},
{
title: "Opportunity pipeline",
value: opportunityApplicationsLoading
? "…"
: opportunityApplications.length.toString(),
description: "Contributor & career submissions captured via Opportunities.",
trend: opportunityApplicationsLoading
? "Syncing applicant data…"
: `${opportunityApplications.filter((app) => (app.status ?? "new").toLowerCase() === "new").length} new this week`,
icon: Rocket,
tone: "teal" as const,
},
],
[
applications.length,