Skip to content

394 during judging hero#423

Merged
michelleyeoh merged 23 commits intomainfrom
394-during-judging-hero
Mar 11, 2026
Merged

394 during judging hero#423
michelleyeoh merged 23 commits intomainfrom
394-during-judging-hero

Conversation

@haylietan
Copy link
Copy Markdown
Contributor

No description provided.

@haylietan haylietan linked an issue Mar 5, 2026 that may be closed by this pull request
2 tasks
@michelleyeoh
Copy link
Copy Markdown
Contributor

michelleyeoh commented Mar 8, 2026

Also fixed hero loading in this PR oops
edit: jk it is moved to another pr

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR builds out the new Hackers “Judging” hero experience (table-centric judging view + completion modal) and removes legacy 2025 judging hero components/styles.

Changes:

  • Implement the new HeroJudging UI (table header, judge banner list, “previous judges” toggle, and link to judging info).
  • Update JudgeBanners to notify the parent when all judges are scored, and refine JudgeBannerIndividual messaging for completed judges.
  • Add a new “Done Judging” modal and a new celebration SVG asset; remove deprecated 2025 hero/judging components.

Reviewed changes

Copilot reviewed 12 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
public/hackers/hero/hero-judging/mascots_celebrate.svg Adds new celebration mascot artwork used in the “done judging” modal.
app/(pages)/(hackers)/_components/HomeJudging/HeroJudging.tsx Implements the new judging hero layout and modal wiring.
app/(pages)/(hackers)/_components/HomeJudging/_components/JudgeBanners.tsx Adds onAllScored callback + adjusts rendering logic for judges/teams.
app/(pages)/(hackers)/_components/HomeJudging/_components/JudgeBannerIndividual.tsx Updates banner messaging when a judge is completed.
app/(pages)/(hackers)/_components/HomeJudging/_components/JudgeBannerIndividual.module.scss Introduces new styling for the judge banner UI.
app/(pages)/(hackers)/_components/HomeJudging/_components/DoneJudging.tsx Adds a modal shown when judging is complete.
app/(pages)/(hackers)/_components/2025IndexHero/IndexHeroContentDone.tsx Removes deprecated 2025 “done” hero content.
app/(pages)/(hackers)/_components/2025IndexHero/IndexHeroContentDone.module.scss Removes associated deprecated styles.
app/(pages)/(hackers)/_components/2025IndexHero/DoneJudging.tsx Removes deprecated 2025 done-judging component.
app/(pages)/(hackers)/_components/2025IndexHero/DoneJudging.module.scss Removes associated deprecated styles.
app/(pages)/(hackers)/_components/2025IndexHero/AssigningJudges.tsx Removes deprecated “assigning judges” component.
app/(pages)/(hackers)/_components/2025IndexHero/AssigningJudges.module.scss Removes associated deprecated styles.
app/(pages)/(hackers)/_components/2025DOE/Judging/IndexHeroContentJudging.tsx Removes deprecated DOE judging hero content.
app/(pages)/(hackers)/_components/2025DOE/Judging/IndexHeroContentJudging.module.scss Removes associated deprecated styles.
Comments suppressed due to low confidence (2)

app/(pages)/(hackers)/_components/HomeJudging/_components/JudgeBanners.tsx:39

  • const allScored = judges?.every(...) will evaluate to true when judges is an empty array, which will trigger onAllScored() and show the “done judging” modal even when no judges are assigned yet. Add a guard like judges?.length > 0 && judges.every(...) (or check inside the effect) so the modal only opens after at least one judge exists and all are scored.
    app/(pages)/(hackers)/_components/HomeJudging/_components/JudgeBanners.tsx:67
  • teamNonHDCategories uses (team as any)?.tracks even though team is already typed (and tracks exists on Team). Prefer a proper null-safe access (team?.tracks ?? []) and avoid any so TypeScript can catch mismatches earlier.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/(pages)/(hackers)/_components/HomeJudging/HeroJudging.tsx Outdated
Comment thread app/(pages)/(hackers)/_components/HomeJudging/HeroJudging.tsx Outdated
Comment thread app/(pages)/(hackers)/_components/HomeJudging/_components/DoneJudging.tsx Outdated
Comment thread app/(pages)/(hackers)/_components/HomeJudging/_components/DoneJudgingModal.tsx Outdated
@michelleyeoh
Copy link
Copy Markdown
Contributor

Add on: Deleted previous judging hero files

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 14 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/(pages)/(hackers)/_components/HomeJudging/_components/DoneJudgingModal.tsx Outdated
Comment thread app/(pages)/(hackers)/_components/HomeJudging/HeroJudging.tsx
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 22 out of 35 changed files in this pull request and generated 3 comments.

Comments suppressed due to low confidence (1)

app/(pages)/(hackers)/_components/HomeJudging/_components/JudgeBanners.tsx:72

  • Avoid the any cast when reading tracks ((team as any)?.tracks). team is Team | null, so team?.tracks ?? [] should work and preserves type-safety. The current cast hides potential shape mismatches and makes this logic harder to maintain.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/(pages)/(hackers)/(hub)/page.tsx
@michelleyeoh michelleyeoh merged commit c587052 into main Mar 11, 2026
6 checks passed
@michelleyeoh michelleyeoh deleted the 394-during-judging-hero branch March 11, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

During judging hero

3 participants