Skip to content

Customizable top-N automatic awards with apply warnings - #80

Merged
twells46 merged 3 commits into
masterfrom
cursor/custom-automatic-awards-8cb2
Jul 31, 2026
Merged

Customizable top-N automatic awards with apply warnings#80
twells46 merged 3 commits into
masterfrom
cursor/custom-automatic-awards-8cb2

Conversation

@twells46

Copy link
Copy Markdown
Collaborator

Summary

  • Automatic awards are now configurable per event: top N DE placements, top N per-bracket overall placements, and top N seeding places (0 disables a category).
  • Settings persist in event_automatic_award_settings and drive both admin-applied Auto: awards and the spectator automatic awards section.
  • Applying automatic awards opens a preview/confirmation modal that warns about zero/missing active score components and duplicate bracket weights, with an explicit “Apply anyway” path.

Changes

  • Added shared contracts in src/shared/automaticAwards.ts.
  • Generalized computeAutomaticAwards beyond fixed top-3 / event-overall; seeding awards use standalone seed_rank.
  • New diagnostics service + admin preview endpoint; apply endpoint validates bounds and requires warning acknowledgement when needed.
  • Admin Awards tab modal for configuration/preview; spectator UI renders Seeding and places beyond 3rd.

Test plan

  • npm run pretty
  • npm run lint
  • npm run test:run
  • npm run build
  • Manually open Awards → “Add automatic awards”, change top-N values, confirm warnings appear for incomplete scores / equal bracket weights, then apply
  • Confirm spectator awards reflect saved top-N settings after release
Open in Web Open in Cursor 

cursoragent and others added 3 commits July 31, 2026 17:03
Replace fixed top-3 automatic awards with per-event settings for DE,
per-bracket overall, and seeding places. Admins configure top-N values
in a preview modal that surfaces zero/missing score components and
duplicate bracket weights before apply.

Co-authored-by: Thomas Wells <twells46@users.noreply.github.com>
Avoid matching the always-visible Seeding tab label when checking the
automatic awards Seeding section.

Co-authored-by: Thomas Wells <twells46@users.noreply.github.com>
Resolve AwardsTab conflict by keeping master's manual/automatic
subsection layout and templates placement, while preserving the
top-N automatic awards modal flow.

Co-authored-by: Thomas Wells <twells46@users.noreply.github.com>
@twells46
twells46 marked this pull request as ready for review July 31, 2026 17:37
@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 babc511 into master Jul 31, 2026
1 check passed
@twells46
twells46 deleted the cursor/custom-automatic-awards-8cb2 branch July 31, 2026 17:43
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