Update overview stats for applications
cgen-1a327a466bc24be5821d73774376a7af
This commit is contained in:
parent
e7505fe330
commit
44f2abbc65
1 changed files with 18 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue