From 64fded13117a82e48a0efd9fe6324345307ba43a Mon Sep 17 00:00:00 2001 From: aamoghS Date: Mon, 27 Apr 2026 22:54:35 -0400 Subject: [PATCH] freeze --- apphosting.yaml | 5 +- packages/api/src/routers/judge.ts | 11 +-- .../(portal)/admin/hackathons/[id]/page.tsx | 37 ++++++---- sites/mainweb/app/(portal)/club/page.tsx | 69 ++++++++++++------- .../mainweb/app/(portal)/hackathons/page.tsx | 14 ++-- 5 files changed, 79 insertions(+), 57 deletions(-) diff --git a/apphosting.yaml b/apphosting.yaml index 54d21557..991807b5 100644 --- a/apphosting.yaml +++ b/apphosting.yaml @@ -7,7 +7,7 @@ scripts: runConfig: runtime: nodejs20 concurrency: 80 - cpu: 1 + cpu: 2 memoryMiB: 1024 minInstances: 0 maxInstances: 10 @@ -31,9 +31,7 @@ env: value: https://datasciencegt.org - variable: NEXTAUTH_URL value: https://datasciencegt.org - # Stripe Configuration - variable: STRIPE_SECRET_KEY - # Project Number identifier (safe to commit) used for robust resolution secret: projects/672446353769/secrets/STRIPE_SECRET_KEY - variable: NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY secret: projects/672446353769/secrets/NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY @@ -41,7 +39,6 @@ env: secret: projects/672446353769/secrets/STRIPE_WEBHOOK_SECRET - variable: NODE_ENV value: production - # Email Provider (Magic Link Login via Gmail) - variable: EMAIL_SERVER_HOST value: smtp.gmail.com - variable: EMAIL_SERVER_PORT diff --git a/packages/api/src/routers/judge.ts b/packages/api/src/routers/judge.ts index 14778665..3290c942 100644 --- a/packages/api/src/routers/judge.ts +++ b/packages/api/src/routers/judge.ts @@ -795,20 +795,13 @@ export const judgeRouter = createTRPCRouter({ }) .returning(); - // Fetch all projects for this hackathon const allProjects = await ctx.db!.query.judgingProjects.findMany({ where: eq(judgingProjects.hackathonId, input.hackathonId), orderBy: [asc(judgingProjects.tableNumber)], }); - // Filter based on track if assigned - const assignedProjects = input.track - ? allProjects.filter((p) => { - const inTracks = p.tracks?.includes(input.track!) ?? false; - const inChallenges = p.challenges?.includes(input.track!) ?? false; - return inTracks || inChallenges; - }) - : allProjects; + // Auto-assign all projects - judges choose what to judge + const assignedProjects = allProjects; if (assignedProjects.length > 0) { await ctx.db!.insert(judgeQueue).values( diff --git a/sites/mainweb/app/(portal)/admin/hackathons/[id]/page.tsx b/sites/mainweb/app/(portal)/admin/hackathons/[id]/page.tsx index c10fb800..c05980be 100644 --- a/sites/mainweb/app/(portal)/admin/hackathons/[id]/page.tsx +++ b/sites/mainweb/app/(portal)/admin/hackathons/[id]/page.tsx @@ -50,21 +50,30 @@ export default function AdminHackathonUnifiedDashboard() { {/* HEADER */}
-
-
- - - Back to Hub - -

- - Operations Dashboard -

-

- {hackathon.name} -

-
+
+
+ + + Back to Hub + +

+ + Operations Dashboard + Stats +

+

+ {hackathon.name} +

+
+ + Quick Scan + +
+
{/* DESKTOP TABS */} diff --git a/sites/mainweb/app/(portal)/club/page.tsx b/sites/mainweb/app/(portal)/club/page.tsx index 434d9a0f..f211ece9 100644 --- a/sites/mainweb/app/(portal)/club/page.tsx +++ b/sites/mainweb/app/(portal)/club/page.tsx @@ -207,68 +207,73 @@ export default function ClubPage() { {/* Navigation */} -