feat: added judge frontend and backend #2
No reviewers
Labels
No labels
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/whistle!2
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/judge_backend_and_frontend"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds the first working version of the Nova judge tool from RFC 0001 (
0001-nova-summarization-tool.md) with Google sign-in, so judges can sign in, browse hackathon submissions by subteam, and take notes on each project.Judges sign in with Google. The backend verifies the Google token, checks the email against a judge list loaded from a CSV (RFC section 6), and starts a session. Private notes are now limited to the signed-in judge's subteam on the server. The RFC lists Better Auth, but it is a JavaScript library for a Node server, so this verifies Google tokens directly in the FastAPI backend instead.
AI summaries,
/askand the rest of the RFC are not included and will come in follow-up PRs.Changes
nova-backend, a FastAPI app that reads the submissions Google Sheet (published as CSV) and returns one project per team, with a blank subteam shown as "Unassigned".POST /auth/google,GET /auth/meandPOST /auth/logout, with a signed session in an httpOnly cookie./projectsand the notes endpoints. Note author and subteam now come from the signed-in user, not the request, and admins see all notes.load_users.pyto load judge and admin accounts from a CSV (judges.example.csvshows the format).nova-backend/.env(seeenv.example):SHEET_CSV_URL,GOOGLE_CLIENT_IDandSESSION_SECRET.nova-judge, a React + TypeScript (Vite) frontend with a Google sign-in screen, a sidebar of teams grouped by subteam, search, and a project page with the GitHub and slides links.START-HERE.mdwith local setup steps (will be deleted once README.md is created).Not included yet
/askHow to test
http://localhost:5173as an authorized origin.nova-backend, copyenv.exampleto.env, fill in the three values, then runpython load_users.py judges.csvwith your own email in the CSV.uvicorn main:app --reload --port 8000and the frontend withnpm run dev(withVITE_GOOGLE_CLIENT_IDinnova-judge/.env.local).AI use
Checklist
/projectsloads from a published sheetnpm run linthas no errors (3set-state-in-effectwarnings) andnpm run buildpasses innova-judge.envvalues in the diffmainThanks for all the work on this so far! Just a few notes:
Please include a description for each PR summarizing the changes made and for some examples, you can look at some of the merged Bark Agent or Surface PRs.
Also, we should remove node_modules from Git's tracking index. I believe it's already in .gitignore, but it was likely committed before the ignore rule was added, which is why the PR is showing around 1 million lines of changes.
Finally, since the two PRs are related, I think it would make more sense to consolidate them into a single PR. There's no need to have two separate ones for now.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.