Skip to content

Release: judging batch overview + decimal scores + delete submission#188

Merged
sacha-l merged 3 commits into
mainfrom
develop
Jun 17, 2026
Merged

Release: judging batch overview + decimal scores + delete submission#188
sacha-l merged 3 commits into
mainfrom
develop

Conversation

@sacha-l

@sacha-l sacha-l commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Promotes developmain (prod deploy). Ships the judging upgrade (#187).

Included

  • Batch overview: expand any batch to preview its submissions (name, video, GitHub), see who's working on it (incl. you) + the live average score and per-judge breakdown. Multi-select + "Claim selected".
  • Decimal scores (4.3/5): score columns widened to NUMERIC(3,1); inputs step 0.1. Includes the Number() coercion fix (PostgREST returns NUMERIC as strings).
  • Admin delete submission (IDOR-guarded, scores cascade) for test entries.

Migration

20260617000000_submission_scores_decimal.sql — backward-compatible (widening; existing integer scores preserved). Apply alongside this deploy.

Safety

Additive server fields; claim/score/ballot write-path unchanged. 438 server tests pass; client build + lint clean. Scoring hasn't started, so low-risk.

sacha-l added 3 commits June 17, 2026 17:56
…ores, delete submission

- Batch overview replaces the flat chips: expand each batch to preview its
  submissions, see which judges are working on it (claimedBy), multi-select
  several unclaimed batches and 'Claim selected'. Per-submission shows which
  judges have saved a score (scoredBy).
- Decimal scores (e.g. 4.3/5): widen score columns INTEGER -> NUMERIC(3,1)
  (backward-compatible), validator accepts 1dp, inputs step 0.1.
- Admin-only delete submission (DELETE /:slug/submissions/:id, IDOR-guarded,
  scores cascade) with a trash button in the batch overview + scoring card.

Server changes are additive (claimedBy/scoredBy fields); scoring write path +
ballot gate unchanged. 438 server tests pass; client build + lint clean.
…udges; fix NUMERIC string coercion

- Any judge can expand any batch to see its submissions with name, VIDEO and
  GITHUB links, the current average score /12 (per-judge breakdown on hover),
  and who has scored. Batch header shows who's working on it (incl. you).
- Surface per-submission 'scores' in listForJudge (additive).
- Coerce NUMERIC score columns Number() in the repo transform — PostgREST
  returns NUMERIC as strings post-migration, which would corrupt score sums.
…s-delete

feat(judging): batch overview + decimal scores + delete submission
@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
stadium Ready Ready Preview, Comment Jun 17, 2026 4:11pm

@sacha-l sacha-l merged commit 61c1480 into main Jun 17, 2026
2 checks passed
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.

1 participant