From 9e00775a87c1811c14d6d1aa161333ed674a498a Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Tue, 14 Oct 2025 04:24:59 +0000 Subject: [PATCH] Insert opportunity applications card before system status cgen-5c27bc2f6efd468db4cb7153f0f3b4e1 --- client/pages/Admin.tsx | 119 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) diff --git a/client/pages/Admin.tsx b/client/pages/Admin.tsx index c6068965..2454fc5c 100644 --- a/client/pages/Admin.tsx +++ b/client/pages/Admin.tsx @@ -1033,6 +1033,125 @@ export default function Admin() { + + +
+ + Opportunity applications +
+ + View contributor and career submissions captured on the Opportunities page. + +
+ +
+

+ {opportunityApplicationsLoading + ? "Loading opportunity applicants…" + : `${opportunityApplications.length} submissions`} +

+ +
+ {opportunityApplicationsLoading ? ( +
+ + Syncing with Supabase… +
+ ) : opportunityApplications.length ? ( +
+ {opportunityApplications.slice(0, 6).map((app) => ( +
+
+
+

+ {app.full_name || app.email || "Anonymous"} +

+

+ {app.email || "No email provided"} +

+
+
+ + {(app.type ?? "contributor").toLowerCase()} + + + {(app.status ?? "new").toLowerCase()} + +
+
+
+ {app.role_interest ? ( +

+ + Role: + {" "} + {app.role_interest} +

+ ) : null} + {app.primary_skill ? ( +

+ + Skill: + {" "} + {app.primary_skill} +

+ ) : null} + {app.availability ? ( +

+ + Availability: + {" "} + {app.availability} +

+ ) : null} + {app.experience_level ? ( +

+ + Experience: + {" "} + {app.experience_level} +

+ ) : null} + {app.submitted_at ? ( +

+ + Submitted: + {" "} + {new Date(app.submitted_at).toLocaleString()} +

+ ) : null} +
+ {app.message ? ( +

+ {app.message} +

+ ) : null} +
+ ))} +
+ ) : ( +

+ No opportunity applications yet. Share the Opportunities page to grow the pipeline. +

+ )} +
+
+