Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
198 commits
Select commit Hold shift + click to select a range
aa49195
Initial commit from Create Next App
nikitaagni Jun 27, 2025
11bf549
Initial commit
nikitaagni Jun 27, 2025
1bce97e
ui
nikitaagni Jun 27, 2025
f864a15
added some folders & testing
aamoghS Sep 13, 2025
9b3be5a
base files, no code yet just setting up for the fullstack, will work …
aamoghS Sep 13, 2025
e060a97
supa!base
aamoghS Sep 15, 2025
dabd576
push new qr code was on legacy system
aamoghS Sep 17, 2025
26bd470
forgot middleware
aamoghS Sep 18, 2025
05d4666
push alot and check as i go
aamoghS Sep 22, 2025
7f12c1b
color oops
aamoghS Sep 22, 2025
28f1472
meow
aamoghS Sep 22, 2025
0146d5e
large push, all pages almost done
aamoghS Sep 24, 2025
a8855d2
lmaooo i hate frontend
aamoghS Sep 24, 2025
f905aa8
Update Speaker.tsx
aamoghS Sep 24, 2025
6c13da6
Update Prizes.tsx
aamoghS Sep 24, 2025
c892a2d
lol
aamoghS Sep 24, 2025
7cff096
LMAO
aamoghS Sep 24, 2025
95c4032
uhhhh almost done
aamoghS Sep 25, 2025
c2be10d
fix some linking
aamoghS Sep 25, 2025
1c6e28e
almost almost done, just have to fix the candy part
aamoghS Sep 27, 2025
2fa24b0
done
aamoghS Sep 27, 2025
9e51639
lol push
aamoghS Sep 27, 2025
061120d
lololol
aamoghS Sep 29, 2025
032251b
Merge pull request #1 from DataScience-GT/aamoghWork
aamoghS Sep 29, 2025
3f56280
firebaserun1
aamoghS Sep 29, 2025
2e55fab
firehost?
aamoghS Sep 29, 2025
6a4358e
oops lolfirebase2
aamoghS Sep 29, 2025
40adfbd
Merge pull request #4 from DataScience-GT/aamoghWork
aamoghS Sep 29, 2025
8a73c91
redo
aamoghS Sep 29, 2025
dff98e0
meow
aamoghS Sep 29, 2025
9a5fe5a
meooww
aamoghS Sep 29, 2025
4a387c2
fire3base
aamoghS Sep 29, 2025
5d2d28e
UHHH i forgot about comments and neovim
aamoghS Sep 29, 2025
b63ae2b
redo4
aamoghS Sep 29, 2025
36f2ffe
new4?
aamoghS Sep 29, 2025
5636913
fix prod
aamoghS Sep 29, 2025
fb19c16
trolling
aamoghS Sep 29, 2025
165abcc
Merge pull request #6 from DataScience-GT/aamoghWork
aamoghS Sep 29, 2025
97a4c72
uh
aamoghS Sep 29, 2025
a42524e
final
aamoghS Sep 29, 2025
0986a4c
clean-up
aamoghS Oct 11, 2025
004d51d
cleaning up
aamoghS Oct 11, 2025
e8fa2c9
cleaning up
aamoghS Oct 11, 2025
d476a40
cleaning up
aamoghS Oct 11, 2025
a843b2e
cleaning up
aamoghS Oct 11, 2025
664ec22
cleaning up
aamoghS Oct 11, 2025
66e1599
cleaning up
aamoghS Oct 11, 2025
cb8bad4
cleaning up
aamoghS Oct 11, 2025
a9fecd3
cleaning up
aamoghS Oct 11, 2025
5c5ce21
Update CloudButtonBlue.tsx
aamoghS Oct 11, 2025
ea36527
Update CloudButtonYellow.tsx
aamoghS Oct 11, 2025
91fe430
Update DayButtons.tsx
aamoghS Oct 11, 2025
c2bcdb3
cleaning up
aamoghS Oct 11, 2025
b9c51fb
cleaning up
aamoghS Oct 11, 2025
a3ddf9e
cleaning up
aamoghS Oct 11, 2025
87e2712
won't work ofc because no firebase functions set up yet but locally w…
aamoghS Oct 12, 2025
01ba578
hi updated
aamoghS Oct 14, 2025
b00fa45
clean-up
aamoghS Oct 14, 2025
9132992
clean up
aamoghS Oct 14, 2025
8da14ca
makes it faster
aamoghS Oct 14, 2025
86c8cbc
extra
aamoghS Oct 15, 2025
fd0682b
edit
aamoghS Oct 17, 2025
4db86e1
reorder
aamoghS Oct 17, 2025
1f34a5c
fix nav
aamoghS Oct 17, 2025
4bfebb9
Delete public/wonka/wonka.png
aamoghS Oct 17, 2025
0ee349f
Create hi.txt
aamoghS Oct 17, 2025
2ff5fd7
Add files via upload
aamoghS Oct 17, 2025
1fb3e1b
cat3fix
aamoghS Oct 18, 2025
f0583ed
cat33fix
aamoghS Oct 18, 2025
36664db
small
aamoghS Oct 19, 2025
9f2dcfd
bucktooth emoji
aamoghS Oct 21, 2025
ef739c3
i hate frontend
aamoghS Oct 21, 2025
8aa6200
hi
aamoghS Oct 21, 2025
51e8105
lololol
aamoghS Oct 21, 2025
fafa086
fixed
aamoghS Oct 22, 2025
6371875
meowmeowmeow
aamoghS Oct 23, 2025
d43e4f5
fixxxxxxxxxxxxxxx
aamoghS Oct 24, 2025
748c569
add
aamoghS Oct 24, 2025
58efcaf
add again?
aamoghS Oct 24, 2025
6321021
docker
aamoghS Oct 25, 2025
b244f23
dockerm
aamoghS Oct 25, 2025
51487e0
Merge branch 'aamoghWork2' into develop
ajyey Oct 25, 2025
2cbd787
updates gitignore
ajyey Oct 25, 2025
f375fdd
only creates the supabase client if the user clisks on apply now
ajyey Oct 25, 2025
4b108ae
makes resume checking local to the resume upload component
ajyey Oct 25, 2025
181554c
Adds a small loading spinner to the submit button
ajyey Oct 25, 2025
ba2a407
updates various package versions including next to v16
ajyey Oct 25, 2025
788de54
removes uuid types package since uuid provides types itself
ajyey Oct 25, 2025
a2c19a0
fixes issue where components were being undeclared props
ajyey Oct 25, 2025
3efa5aa
removes typescript flag that next didnt like
ajyey Oct 25, 2025
3144303
re-generates supabase types
ajyey Oct 26, 2025
6246c48
Merge pull request #12 from DataScience-GT/feature/performance
aamoghS Oct 26, 2025
0d439df
keeps callback clean by performing profile check on portal page and t…
ajyey Oct 28, 2025
837f5dd
adds cursor pointer to Apply Now button so it appears clickable
ajyey Oct 28, 2025
0829f5c
Adds loading state for when the Apply Now button is clicked
ajyey Oct 28, 2025
23776b5
adds cursor pointer to submit button on onboarding form
ajyey Oct 28, 2025
a27a9bd
updates supabase types to include checked_in and checked_in_at
ajyey Oct 28, 2025
14d4453
adds explicit type for table update
ajyey Oct 28, 2025
28a0e76
Merge pull request #15 from DataScience-GT/feature/performance
aamoghS Oct 28, 2025
fcb2fd0
update own
aamoghS Oct 28, 2025
f7faf40
Revert main branch to state of 58efcaf (skipping merge commits)
aamoghS Oct 28, 2025
a2ea8ee
Merge pull request #18 from DataScience-GT/revert-main
aamoghS Oct 28, 2025
0c76e1f
mailtotype
aamoghS Oct 29, 2025
5d2f0e4
uhhhh
aamoghS Oct 29, 2025
bbb45a1
hello
aamoghS Nov 6, 2025
b173927
new
aamoghS Nov 6, 2025
e368b17
uh
aamoghS Nov 6, 2025
6708ca8
bro idk
aamoghS Nov 6, 2025
6ebcbe3
bro
aamoghS Nov 6, 2025
1421e9f
lol
aamoghS Nov 6, 2025
8c6e054
add
aamoghS Nov 6, 2025
afb5f7d
Merge pull request #20 from DataScience-GT/ui-dev
aamoghS Nov 10, 2025
5e720d4
Add files via upload
aamoghS Nov 11, 2025
28ee784
Merge pull request #21 from DataScience-GT/main
aamoghS Nov 13, 2025
4ca951b
gonna add docket later
aamoghS Nov 13, 2025
d3efdbb
Merge pull request #22 from DataScience-GT/ui-dev
aamoghS Nov 18, 2025
8794924
update background clouds
twixupmysleeve Nov 20, 2025
71fea7a
make the hero playful
twixupmysleeve Nov 20, 2025
751ba7f
updates
twixupmysleeve Nov 20, 2025
cdb088c
Merge pull request #23 from DataScience-GT/update-background-clouds
aamoghS Nov 20, 2025
d3af88d
Merge branch 'main' into home-page-design
aamoghS Nov 20, 2025
ccdb2bb
Merge pull request #25 from DataScience-GT/home-page-design
aamoghS Nov 20, 2025
99bb133
quick
aamoghS Nov 20, 2025
3c7e66e
fix cloud movement
twixupmysleeve Nov 22, 2025
2447c95
Merge pull request #26 from DataScience-GT/clouds-horizontal
aamoghS Nov 22, 2025
b6a4530
navbar improvements
twixupmysleeve Dec 2, 2025
5f8829f
improve about page
twixupmysleeve Dec 2, 2025
fa87268
improve schedule
twixupmysleeve Dec 3, 2025
5fedb1f
improve tracks section
twixupmysleeve Dec 3, 2025
f7333dc
Merge pull request #27 from DataScience-GT/navbar_changes
aamoghS Dec 3, 2025
3776977
Merge pull request #28 from DataScience-GT/about-improvements
aamoghS Dec 3, 2025
bc94fbb
Merge pull request #29 from DataScience-GT/update_schedule
aamoghS Dec 3, 2025
6baf479
Merge pull request #30 from DataScience-GT/improve_tracks
aamoghS Dec 3, 2025
86003b0
final cosmetic changes
twixupmysleeve Dec 7, 2025
da3ef0c
Merge pull request #32 from DataScience-GT/final-touches
aamoghS Dec 7, 2025
98f3b1b
minor change
aamoghS Dec 10, 2025
5f9d3b1
Merge pull request #33 from DataScience-GT/patch/security
aamoghS Dec 10, 2025
9b33984
Update FAQSection.tsx
aamoghS Dec 17, 2025
cda4f8f
Bump next from 16.0.7 to 16.0.10
dependabot[bot] Dec 17, 2025
b09097a
Update TracksSection.tsx
aamoghS Dec 17, 2025
2950e9f
Merge pull request #34 from DataScience-GT/dependabot/npm_and_yarn/ne…
aamoghS Jan 1, 2026
e80635b
Bump js-yaml from 4.1.0 to 4.1.1
dependabot[bot] Jan 1, 2026
f8b7e16
Merge pull request #35 from DataScience-GT/dependabot/npm_and_yarn/js…
aamoghS Jan 2, 2026
c787490
companies
aamoghS Jan 8, 2026
1dd047d
main for now
aamoghS Jan 9, 2026
dbeba94
Update FAQSection.tsx
aamoghS Jan 10, 2026
37f3a68
Update FAQSection.tsx
aamoghS Jan 13, 2026
a68c750
merge
aamoghS Jan 22, 2026
3d8504b
Merge pull request #39 from DataScience-GT/sponsors
aamoghS Jan 22, 2026
97eb26f
for rn
aamoghS Feb 1, 2026
51edf63
Merge pull request #40 from DataScience-GT/sponsors
aamoghS Feb 1, 2026
0b5e80e
prizes etc yap yap yap
aamoghS Feb 1, 2026
0f85c2e
ug
aamoghS Feb 1, 2026
1ff46aa
new rq
aamoghS Feb 1, 2026
1c1abbe
new chnages
aamoghS Feb 1, 2026
38752eb
Merge pull request #41 from DataScience-GT/sponsors
aamoghS Feb 1, 2026
b438946
Update page.tsx
aamoghS Feb 3, 2026
e65c8c9
Refactor Cloud and Candy components, add button
aamoghS Feb 3, 2026
6ecf4e1
Merge pull request #42 from DataScience-GT/sponsors
aamoghS Feb 3, 2026
6e6e17f
type
aamoghS Feb 3, 2026
ce149b4
Merge branch 'sponsors' of github.com:DataScience-GT/Hacklytics2026 i…
aamoghS Feb 3, 2026
80c69f6
close form
aamoghS Feb 4, 2026
d88ce01
Merge pull request #43 from DataScience-GT/sponsors
aamoghS Feb 4, 2026
501f587
dooo uh dooo uhhhh
aamoghS Feb 5, 2026
af0b689
Merge pull request #44 from DataScience-GT/sponsors
aamoghS Feb 5, 2026
594f8da
24hrs
aamoghS Feb 5, 2026
83ae955
Merge pull request #45 from DataScience-GT/sponsors
aamoghS Feb 5, 2026
650191f
sponsors
aamoghS Feb 5, 2026
68b948e
Merge pull request #46 from DataScience-GT/sponsors
aamoghS Feb 5, 2026
ea2ab59
uh
aamoghS Feb 5, 2026
d9200df
Merge pull request #47 from DataScience-GT/sponsors
aamoghS Feb 5, 2026
bdfcf15
uhhh
aamoghS Feb 11, 2026
df51b7d
final
aamoghS Feb 11, 2026
13e3eaf
Merge pull request #48 from DataScience-GT/sponsors
aamoghS Feb 11, 2026
fb82f35
adding
aamoghS Feb 18, 2026
34cd837
Merge pull request #49 from DataScience-GT/sponsors
aamoghS Feb 18, 2026
1c1c7cc
update schedule
twixupmysleeve Feb 21, 2026
ff3df91
Merge pull request #50 from DataScience-GT/update-schedule
twixupmysleeve Feb 21, 2026
b97ab9e
Remove Assurant from silver sponsors list
aamoghS Mar 2, 2026
087d041
refactor: use shared timezone and social link constants
aamoghS Nov 13, 2026
fd72d66
ci: start the test database early and skip mailpit
aamoghS Nov 13, 2026
0a6d159
Add 'sites/hacklytics2026/' from commit 'b97ab9e7c7f3dd9544dced5f5aba…
aamoghS Nov 14, 2026
64ff56c
feat(hacklytics2026): build the 2026 site inside the monorepo
aamoghS Nov 13, 2026
eba9c08
feat(hacklytics2027): add judge info and contact
aamoghS Nov 13, 2026
f25dc69
feat(judging): add a no-sign-in judge interest form
aamoghS Nov 14, 2026
a137979
refactor(hacklytics2026): build the 2026 site with Astro
aamoghS Nov 14, 2026
723d9e9
chore: upgrade pnpm to 12.x
aamoghS Nov 13, 2026
ca2358e
chore(apphosting): scale mainweb to zero when idle
aamoghS Nov 14, 2026
0255e72
fix(judging): keep local judge-interest posts off the real list
aamoghS Nov 14, 2026
a638a02
fix(hacklytics2026): restore card accents and plain nav link clicks
aamoghS Nov 14, 2026
bfdd603
Merge pull request #606 from DataScience-GT/refactor/constants-sweep
aamoghS Nov 14, 2026
b0464fc
Merge pull request #600 from DataScience-GT/ci/faster-test-db
aamoghS Nov 14, 2026
2ac3bf8
Merge pull request #604 from DataScience-GT/feat/import-hacklytics2026
aamoghS Nov 14, 2026
b7d70db
Merge pull request #605 from DataScience-GT/feat/hacklytics-judges
aamoghS Nov 14, 2026
c5aa166
Merge pull request #603 from DataScience-GT/feat/judge-interest-form
aamoghS Nov 14, 2026
f8e63d0
Merge pull request #601 from DataScience-GT/refactor/hacklytics2026-a…
aamoghS Nov 14, 2026
0ae58b5
Merge pull request #602 from DataScience-GT/chore/pnpm-12
aamoghS Nov 14, 2026
e921412
Merge pull request #607 from DataScience-GT/chore/min-instances-0
aamoghS Nov 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"hosting": {
"hacklytics": [
"hacklytics2027"
],
"hacklytics2026": [
"hacklyticss2026"
]
}
}
Expand Down
93 changes: 91 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,20 @@ jobs:
steps:
- uses: actions/checkout@v6

# Start only the database now, in the background, so the image pull and
# boot overlap install and lint/typecheck. Mailpit is not used by tests.
# The marker file tells the next database step when this has finished.
- name: Start test database in the background
run: |
nohup setsid bash -c '
docker compose -f docker-compose.local.yml -f docker-compose.ci.yml up -d db
echo $? > "$RUNNER_TEMP/db-up.exit"
' > "$RUNNER_TEMP/db-up.log" 2>&1 &

# No version pin: the one in packageManager is the one that reads
# overrides and allowBuilds from pnpm-workspace.yaml. Pinning here
# silently installed an older pnpm that ignores both.
- uses: pnpm/action-setup@v5
- uses: pnpm/action-setup@v6

- uses: actions/setup-node@v6
with:
Expand All @@ -51,8 +61,20 @@ jobs:

# The compose database with its schema and fake data. DATABASE_URL stays
# on these steps: the build must not look for a database that is gone.
# Waits for the background start, then local:up db is a no-op for the
# container (already healthy) and pushes the schema and seeds.
- name: Start test database
run: pnpm local:up
run: |
for _ in $(seq 120); do
[ -f "$RUNNER_TEMP/db-up.exit" ] && break
sleep 1
done
if [ "$(cat "$RUNNER_TEMP/db-up.exit" 2>/dev/null)" != "0" ]; then
echo "Background database start did not succeed:"
cat "$RUNNER_TEMP/db-up.log"
exit 1
fi
pnpm local:up db
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5434/neondb

Expand All @@ -75,6 +97,13 @@ jobs:
path: sites/hacklytics2027/out
retention-days: 3

- name: Upload Hacklytics 2026 build
uses: actions/upload-artifact@v7
with:
name: hacklytics2026-out
path: sites/hacklytics2026/out
retention-days: 3

preview-hacklytics:
name: Preview Hacklytics
needs: verify
Expand Down Expand Up @@ -134,3 +163,63 @@ jobs:
entryPoint: "."
# 15.34.1 checks the Service Usage API, which is disabled on dsgt-website.
firebaseToolsVersion: "15.34.0"

preview-hacklytics2026:
name: Preview Hacklytics 2026
needs: verify
# Forks and Dependabot get no repo secrets, so the deploy would fail on a
# missing service account. The verify job above still checks their build.
if: >-
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.login != 'dependabot[bot]'
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v6

- uses: actions/download-artifact@v8
with:
name: hacklytics2026-out
path: sites/hacklytics2026/out

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_DSGT_WEBSITE }}
target: hacklytics2026
projectId: dsgt-website
channelId: pr-${{ github.event.pull_request.number }}
entryPoint: "."
# 15.34.1 checks the Service Usage API, which is disabled on dsgt-website.
firebaseToolsVersion: "15.34.0"

deploy-hacklytics2026:
name: Deploy Hacklytics 2026
needs: verify
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
steps:
- uses: actions/checkout@v6

- uses: actions/download-artifact@v8
with:
name: hacklytics2026-out
path: sites/hacklytics2026/out

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_DSGT_WEBSITE }}
target: hacklytics2026
projectId: dsgt-website
channelId: live
entryPoint: "."
# 15.34.1 checks the Service Usage API, which is disabled on dsgt-website.
firebaseToolsVersion: "15.34.0"
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
# No version pin: the one in packageManager is the one that reads
# overrides and allowBuilds from pnpm-workspace.yaml. Pinning here
# silently installed an older pnpm that ignores both.
uses: pnpm/action-setup@v5
uses: pnpm/action-setup@v6

- name: Setup Node
uses: actions/setup-node@v6
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Member-facing overview — what it is, what members use, current status, and how
| --- | --- | --- |
| `sites/mainweb` | `web` | Public club site + authenticated portal (App Hosting) |
| `sites/hacklytics2027` | `hacklytics2027` | Hacklytics 2027 marketing site, Astro static build (Firebase Hosting) |
| `sites/hacklytics2026` | `hacklytics2026` | Archived Hacklytics 2026 site, Astro static output (Firebase Hosting target `hacklytics2026`) |
| `packages/api` | `@query/api` | tRPC routers, middleware, pricing |
| `packages/auth` | `@query/auth` | NextAuth (Google, GitHub, email codes) |
| `packages/db` | `@query/db` | Drizzle schema, client, membership rules |
Expand Down Expand Up @@ -182,6 +183,7 @@ Details: [docs/architecture.md](./docs/architecture.md). Schema and the club/hac
| --- | --- | --- |
| `web` | Firebase App Hosting / Cloud Run | `apphosting.yaml` |
| `hacklytics2027` | Firebase Hosting target `hacklytics` | `firebase.json` |
| `hacklytics2026` | Firebase Hosting target `hacklytics2026` (site `hacklyticss2026`) | `firebase.json` |

GCP project: `dsgt-website`. Local secret sync: [GCP_SETUP.md](./GCP_SETUP.md). Operations: [docs/operations/deployment.md](./docs/operations/deployment.md).

Expand Down
7 changes: 4 additions & 3 deletions apphosting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ runConfig:
concurrency: 80
cpu: 2
memoryMiB: 1024
# One warm instance so the first visitor after a quiet spell does not wait
# for a Cloud Run cold start. It is billed while idle.
minInstances: 1
# Scales to zero between visits to keep the idle bill at nothing. The first
# visitor after a quiet spell waits for a cold start. Set 1 to keep one warm
# instance (billed while idle) during an event.
minInstances: 0
maxInstances: 10

env:
Expand Down
21 changes: 21 additions & 0 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# CI-only override, layered on docker-compose.local.yml by tooling/scripts/src/local.ts
# and .github/workflows/ci.yml. The database is throwaway there, so skip
# durability: no fsync, and keep the data in memory. Local dev does not use this
# file and keeps its persistent volume.
#
# postgres:18 keeps PGDATA under /var/lib/postgresql/18/docker, so the tmpfs
# replaces the pgdata volume at the same mount point, /var/lib/postgresql.

services:
db:
command:
- postgres
- -c
- fsync=off
- -c
- synchronous_commit=off
- -c
- full_page_writes=off
volumes:
- type: tmpfs
target: /var/lib/postgresql
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Room-based judging, from setup to results.
| --- | --- | --- |
| [Main website](./sites/mainweb.md) | `web` | Public club site plus the authenticated portal |
| [Hacklytics 2027](./sites/hacklytics2027.md) | `hacklytics2027` | Static event marketing site |
| [Hacklytics 2026](./sites/hacklytics2026.md) | `hacklytics2026` | Archived 2026 event site, Astro static output |

## Tooling

Expand Down
1 change: 1 addition & 0 deletions docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ The webhook is `sites/mainweb/app/(portal)/api/webhooks/stripe/route.ts`. Linkin
| --- | --- | --- |
| `sites/mainweb` | Firebase App Hosting / Cloud Run (`apphosting.yaml`) | Next `standalone` |
| `sites/hacklytics2027` | Firebase Hosting target `hacklytics` | Astro static build (`astro build` writes `out/`) |
| `sites/hacklytics2026` | Firebase Hosting target `hacklytics2026` | Astro static output (`astro build` writes `out/`) |

The event site does not talk to the database. Interest and registration live on the portal; the marketing site links to `/login?callbackUrl=/hacklytics`.

Expand Down
11 changes: 11 additions & 0 deletions docs/features/judge-portal.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ The roster is what judging reads: `judge.is_active` gates the judging procedures

Guest judges (invite links) are a judging feature, not part of `routers/judge`. `/judge/guest/[hackathonId]` renders JudgeDesk (`trpc.judging.desk.*`); the route handler `/judge/activate/[linkId]` activates the room link and sets the guest cookie. Another page, `/hackathons/[id]/claim`, also uses `trpc.judging.hacker`.

## Judge interest leads

A short public form on the Hacklytics site collects people who might judge before they make an account. It is a lead list, separate from the roster above: nothing here gates judging.

- **Endpoint.** `POST /api/judge-interest` (`sites/mainweb/app/(portal)/api/judge-interest/route.ts`), JSON body `name`, `email`, `company` (required), `title`, `expertise`, `linkedinUrl`, `message` (optional), `website` (honeypot). Validation, the upsert and the origin list are in `packages/api/src/services/judge-interest.ts`. Responses: `200 {ok:true}`, `400 {error, fields}`, `403` wrong origin, `413` body over 8 KB, `429` with `Retry-After`, `500`.
- **Protection.** CORS allows `hacklytics.io`, `www.hacklytics.io`, `hacklytics2027.web.app`, `hacklytics2027.firebaseapp.com` and the local dev ports; any other origin gets `403`. Rate limit is `BURST_LIMITS.tenPerHour` per client IP (the in-process limiter in `middleware/security.ts`, so per instance). A filled honeypot gets `200` and stores nothing. Nothing from the body is logged.
- **Table.** `judge_interest`, unique on `(edition, email)` with the email lowercased, so resubmitting updates the row. `edition` is a slug (`hacklytics-2027`), not a foreign key, because the edition row may not exist yet.
- **Admin.** `judge.interestList` (admin) powers `/admin/judging/interest`: newest first, total count, Export CSV (cells that start with `=`, `+`, `-` or `@` are prefixed with `'`). It is linked from the Judging page. To bring someone in, send them the portal judge application.
- **Tests.** `sites/mainweb/lib/judge-interest-route.test.ts`, `packages/api/src/.internal-tests/judge-interest.test.ts`.

## Data

Schema: `packages/db/src/schemas/judge.ts`.
Expand All @@ -61,6 +71,7 @@ Schema: `packages/db/src/schemas/judge.ts`.
| --- | --- |
| `judge` | One row per person per edition: contact and background fields, `is_active`. |
| `judge_assignment` | The application: edition, `track`, `status` (`pending`, `approved`, `rejected`), `is_lead`. |
| `judge_interest` | Public interest leads from the Hacklytics site (above). |

The same file also declares `judging_project`, `judge_vote`, `hackathon_result` and `judge_queue` from the retired pool-dispatch judging. Nothing writes them now, but past editions' data stays, and `hackathon.getResults` still reads `hackathon_result`.

Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ This guide gets a local copy of **query** running: Postgres, schema, env, and bo
## Prerequisites

- **Node.js** `>=24.11.0 <25` (`.nvmrc` pins `24`; CI uses it too)
- **pnpm** `10.33.2` (see `packageManager` in the root `package.json`)
- **pnpm** `12.18.0` (see `packageManager` in the root `package.json`)
- **Docker** (for local Postgres)
- Optional: **gcloud** and **Firebase CLI** if you need production secrets or deploys

Enable Corepack so the repo’s pnpm version is used:

```bash
corepack enable
corepack prepare pnpm@10.33.2 --activate
corepack prepare pnpm@12.18.0 --activate
```

## Install
Expand Down
5 changes: 4 additions & 1 deletion docs/operations/ci-cd.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ All workflows live in `.github/workflows/`.

`ci.yml` is the one CI/CD pipeline, on every PR and every push to `main`/`dev`:

1. `verify` — `pnpm install --frozen-lockfile`, then `turbo run lint typecheck`, `pnpm test`, `turbo run build` (Node from `.nvmrc`; pnpm from `packageManager`, unpinned in the workflow so it cannot drift). Uploads `sites/hacklytics2027/out`.
1. `verify` — `pnpm install --frozen-lockfile`, then `turbo run lint typecheck`, `pnpm test`, `turbo run build` (Node from `.nvmrc`; pnpm from `packageManager`, unpinned in the workflow so it cannot drift). Uploads `sites/hacklytics2027/out` (artifact `hacklytics-out`) and `sites/hacklytics2026/out` (artifact `hacklytics2026-out`).
2. `preview-hacklytics` — PRs from this repo (not forks, not Dependabot): deploys that build to Firebase Hosting channel `pr-N`.
3. `deploy-hacklytics` — push to `main` only: deploys the same build to the live `hacklytics` target.
4. `preview-hacklytics2026` and `deploy-hacklytics2026` — the same two jobs for the 2026 site, target `hacklytics2026` (Hosting site `hacklyticss2026`).

`verify` restores `.turbo/cache` with `actions/cache`, keyed by commit sha and restored from the newest run, so unchanged tasks replay from cache. Env vars hash only into `mainweb`'s `build` (`sites/mainweb/turbo.json`) and `test`, never into lint or typecheck; the rest of the list in the root `turbo.json` is `globalPassThroughEnv`.

`verify` starts the test database right after checkout, in the background, with only the `db` service (Mailpit is not used by tests). The image pull and boot then overlap install and lint/typecheck instead of adding about 30 seconds in front of the tests. The "Start test database" step waits for that start, then runs `pnpm local:up db` to push the schema and seed. In CI, `tooling/scripts/src/local.ts` also layers `docker-compose.ci.yml` on the compose file (fsync off, data on tmpfs); every compose call must use the same files or compose recreates the container.

Both deploy jobs `need` `verify`, so nothing ships that failed lint, typecheck, tests, or build.

## Security
Expand Down
3 changes: 3 additions & 0 deletions docs/operations/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ Config: [`firebase.json`](../../firebase.json), [`.firebaserc`](../../.firebaser
| --- | --- |
| `dsgt-website` | `sites/mainweb/out` (legacy static path; **production mainweb is App Hosting**, not this) |
| target `hacklytics` | `sites/hacklytics2027/out` |
| target `hacklytics2026` (site `hacklyticss2026`, double s) | `sites/hacklytics2026/out` |

Live deploys of Hacklytics: push to `main` runs `pnpm turbo run build --filter=hacklytics2027` then `FirebaseExtended/action-hosting-deploy` with `channelId: live` and `target: hacklytics`. Pull requests get preview channels `pr-<number>`.

Hacklytics 2026 deploys the same way from the `hacklytics2026-out` artifact (jobs `preview-hacklytics2026` and `deploy-hacklytics2026`, target `hacklytics2026`, project `dsgt-website`). Manual deploy from the repo root: `pnpm turbo run build --filter=hacklytics2026`, then `firebase deploy --only hosting:hacklytics2026`.

Service account secret: `FIREBASE_SERVICE_ACCOUNT_DSGT_WEBSITE`.

## Local GCP access
Expand Down
41 changes: 41 additions & 0 deletions docs/sites/hacklytics2026.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Hacklytics 2026 (`hacklytics2026`)

Path: `sites/hacklytics2026`
Workspace name: `hacklytics2026`
Framework: Astro (static output), React 19 islands, Tailwind 4 (`@tailwindcss/vite`)

Archived event site for Hacklytics 2026 (the Willy Wonka theme). It was imported from the standalone `DataScience-GT/Hacklytics2026` repo with its git history (via `git subtree add`). It has **no database** and **no tRPC**, and it is not under active development.

## Run

```bash
pnpm --filter hacklytics2026 dev # astro dev, http://localhost:3000
pnpm --filter hacklytics2026 build # astro build, static files to out/
pnpm --filter hacklytics2026 preview # serve out/
pnpm --filter hacklytics2026 lint # oxlint
pnpm --filter hacklytics2026 typecheck # tsc --noEmit
```

## Deploy

Firebase Hosting target `hacklytics2026` (site `hacklyticss2026`, double s, URL hacklyticss2026.web.app) in project `dsgt-website`, public dir `sites/hacklytics2026/out` (root `firebase.json`; target mapping in root `.firebaserc`).

Workflow: `.github/workflows/ci.yml`. The `verify` job builds every site and uploads `out/` as artifact `hacklytics2026-out`; `deploy-hacklytics2026` ships it live on `main` and `preview-hacklytics2026` to channel `pr-N` on PRs, with the same service account secret as 2027. Neither runs unless `verify` passes.

Manual fallback, from the repo root after building:

```bash
pnpm turbo run build --filter=hacklytics2026
firebase deploy --only hosting:hacklytics2026
```

Caching: `/_astro/**` is `max-age=31536000, immutable`; fonts and images `max-age=86400, stale-while-revalidate=604800`; HTML `max-age=0, must-revalidate`; everything gets `nosniff`. `cleanUrls` and `trailingSlash` are off: the build has one page plus `404.html`.

The old repo's own workflow deploys to a different project and site (`hacklytics2025` / `hacklytics2026`), so it does not collide with this one. The old repo should still be archived so there is a single source of truth.

## Notes

- `out/` is build output and is gitignored.
- The site was ported from a Next.js static export to Astro. The rendered page matches the Next build (full-page screenshots differ only by 1-level rounding noise); fonts (Truculenta, Willy Wonka) are self-hosted from `public/fonts/`.
- Pages are `src/pages/` (`index.astro`, `404.astro`). The sections are React components rendered at build time with no JavaScript; four islands hydrate: `Navbar` (`client:load`), `Countdown` (`client:only`), and the schedule and FAQ sections (`client:visible`).
- `src/components/Img.tsx` renders the same `<img>` markup `next/image` produced with `unoptimized` on.
6 changes: 6 additions & 0 deletions docs/sites/hacklytics2027.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ Once registration opens on the portal, swap `INTEREST_URL` back to `PORTAL_INTER

The footer also links to the portal for the two audiences that are not waiting on the list: **Hacker portal** (`PORTAL_HACKATHON_URL`, `{PORTAL_ORIGIN}/hacklytics`) and **Judge Hacklytics** (`JUDGE_URL`, sign-in with `callbackUrl=/judge`).

## Judge interest form

Below the Judges section, `components/sections/JudgeInterestForm.tsx` (a React island, `client:visible`) collects name, email, company, title, expertise, LinkedIn and a note, with no account. It posts JSON to `{PORTAL_ORIGIN}/api/judge-interest` (`judgeInterestUrl()` in `lib/links.ts`; on `localhost` it posts to `http://localhost:3001` so dev never touches the real list). The "Apply to judge" button above stays the full application.

The endpoint is a portal route handler, so the portal must be deployed for the form to work. It allows only this site's origins, rate limits per IP and has a hidden honeypot field; see [Judge portal](../features/judge-portal.md#judge-interest-leads). Organizers read the list at `/admin/judging/interest`.

## Deploy

Firebase Hosting target `hacklytics`, public dir `sites/hacklytics2027/out` (`firebase.json`).
Expand Down
Loading
Loading