Skip to content

Comments

Add judge notes view popup per project for admin view#321

Open
balebbae wants to merge 1 commit intohackutd:masterfrom
balebbae:pr-judge-notes
Open

Add judge notes view popup per project for admin view#321
balebbae wants to merge 1 commit intohackutd:masterfrom
balebbae:pr-judge-notes

Conversation

@balebbae
Copy link
Contributor

@balebbae balebbae commented Feb 23, 2026

Description

There's currently no way to see notes the judges write on the projects on the admin side. The "/judge/list" already pulls that data, I am just rendering it as a popup for admins.

UI Changes:
Screenshot 2026-02-20 at 3 27 14 PM
Screenshot 2026-02-20 at 3 27 20 PM

Fixes #316

Type of Change

Delete options that do not apply:

  • New feature (non-breaking change which adds functionality)

Is this a breaking change?

  • Yes
  • No

@vercel
Copy link

vercel bot commented Feb 23, 2026

@balebbae is attempting to deploy a commit to the Michael Zhao's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Feb 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
jury Ready Ready Preview, Comment Feb 24, 2026 4:45am

Copy link
Contributor

@MichaelZhao21 MichaelZhao21 left a comment

Choose a reason for hiding this comment

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

Just some small code syntax things but looks good overall

const seenProject = judge.seen_projects.find(
(sp) => sp.project_id === props.project.id
);
if (seenProject && seenProject.notes && seenProject.notes.trim() !== '') {
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't need !== '' as a non-empty string is truthy.

}
return null;
})
.filter((entry): entry is { judgeName: string; notes: string } => entry !== null);
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks horrific as a type, just create an interface for this type pls

Copy link
Contributor

Choose a reason for hiding this comment

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

Also do we need the !== null? null is also falsey

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.

Allow Admin to Read Judge Notes

2 participants