From 44f2abbc65e8a8fefca25efa18d676f4884ea6b2 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Tue, 14 Oct 2025 04:21:59 +0000 Subject: [PATCH] Update overview stats for applications cgen-1a327a466bc24be5821d73774376a7af --- client/pages/Admin.tsx | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/client/pages/Admin.tsx b/client/pages/Admin.tsx index 7c3ae290..689b4923 100644 --- a/client/pages/Admin.tsx +++ b/client/pages/Admin.tsx @@ -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 + ? "���" + : 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,