diff --git a/TODO.md b/TODO.md index 7bfec72b..94a769c1 100644 --- a/TODO.md +++ b/TODO.md @@ -32,14 +32,7 @@ Open items as of 2026-09-06. Delete a line when it is done. ## Housekeeping -- [ ] **5 pre-existing lint errors**, all `import/consistent-type-specifier-style`: - `app/HomePageClient.tsx`, `app/projects/ProjectsPageClient.tsx`, - `components/admin/hackathons/RegistrationControls.tsx`, - `lib/club-projects.test.ts`. `eslint --fix` clears them; kept out of the - p99 commits to keep those diffs readable. - [ ] **Confirm the `/events` staleness call.** The page was `force-dynamic` and is now `revalidate = 300`, matching `/projects`. `proxy.ts` already serves that path `max-age=3600`, so nobody could observe the old freshness — but it was an explicit choice, so it is worth a second opinion. -- [ ] **`nul`** — a 0-byte file at the repo root from a stray `> nul` redirect. - Gitignored, inert, deletable. diff --git a/sites/mainweb/app/(portal)/judge/register/page.tsx b/sites/mainweb/app/(portal)/judge/register/page.tsx index 767d5aff..81c8ec4d 100644 --- a/sites/mainweb/app/(portal)/judge/register/page.tsx +++ b/sites/mainweb/app/(portal)/judge/register/page.tsx @@ -1,7 +1,7 @@ "use client"; import React, { useEffect, useState } from "react"; -import { useRouter } from "next/navigation"; +import { useRouter, useSearchParams } from "next/navigation"; import { useSession } from "next-auth/react"; import { trpc } from "@/lib/trpc"; import { LiquidGlass } from "@/components/portal/LiquidGlass"; @@ -41,7 +41,12 @@ export default function JudgeRegisterPage() { }); // Form State - const [hackathonId, setHackathonId] = useState(""); + // /judge links here with the edition already chosen; starting step 0 empty + // made the judge pick it again. + const searchParams = useSearchParams(); + const [hackathonId, setHackathonId] = useState( + () => searchParams.get("hackathonId") ?? "", + ); const [preferredTrack, setPreferredTrack] = useState(""); const [name, setName] = useState(""); const [email, setEmail] = useState(""); diff --git a/sites/mainweb/app/(portal)/submit/page.tsx b/sites/mainweb/app/(portal)/submit/page.tsx index 55d7631b..65822a5a 100644 --- a/sites/mainweb/app/(portal)/submit/page.tsx +++ b/sites/mainweb/app/(portal)/submit/page.tsx @@ -424,6 +424,7 @@ function SubmitPortalContent() {