Skip to content

Add certificate/trophy award types and recipient selection table - #83

Merged
twells46 merged 3 commits into
masterfrom
cursor/award-types-recipient-table-8d3f
Jul 31, 2026
Merged

Add certificate/trophy award types and recipient selection table#83
twells46 merged 3 commits into
masterfrom
cursor/award-types-recipient-table-8d3f

Conversation

@twells46

@twells46 twells46 commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add award_type (certificate | trophy) to award templates and event awards, plus per-category award types on automatic award settings (default trophy).
  • New admin endpoint GET /awards/event/:eventId/team-award-counts and bulk team_ids support when adding recipients.
  • Replace the inline team recipient dropdown with a sortable multi-select modal (like bracket creation) showing certificates, trophies, and a weighted load (trophy = 2× certificate), sorted least-awarded first.
  • Award type is admin-only logistics; spectator public awards are unchanged.

Verification

  • npm run pretty / lint / test:run (1066 tests) / build all pass.

Notes

Existing databases need a one-off ALTER TABLE (or recreate) since this project has no migration runner — schema is declarative CREATE TABLE IF NOT EXISTS.

Open in Web Open in Cursor 

cursoragent and others added 3 commits July 31, 2026 19:28
Distinguish paper certificates from trophies on award templates, event
awards, and automatic award settings. Replace the inline team recipient
dropdown with a sortable multi-select table showing per-team certificate
and trophy counts (weighted sort: trophy = 2x certificate).

Co-authored-by: Thomas Wells <twells46@users.noreply.github.com>
Co-authored-by: Thomas Wells <twells46@users.noreply.github.com>
@twells46
twells46 marked this pull request as ready for review July 31, 2026 20:50
@cursor

cursor Bot commented Jul 31, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@twells46
twells46 merged commit 26ed81e into master Jul 31, 2026
1 check passed
@twells46
twells46 deleted the cursor/award-types-recipient-table-8d3f branch July 31, 2026 20:51
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.

2 participants