From 9f9efc2bc07810d2e06b37bad94e5922681eadef Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 18 Feb 2026 22:38:15 +0900 Subject: feat: refactor tournament to generic DB-backed N-person bracket Replace hardcoded 6-person tournament with a generic single-elimination bracket system backed by new DB tables (tournaments, tournament_entries, tournament_matches). Includes admin CRUD, standard seeding algorithm, bye handling, and a CSS Grid bracket renderer on the frontend. Add comprehensive tests for backend API/admin handlers, seeding logic, and frontend bracket component. Co-Authored-By: Claude Opus 4.6 --- backend/admin/templates/tournament_new.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 backend/admin/templates/tournament_new.html (limited to 'backend/admin/templates/tournament_new.html') diff --git a/backend/admin/templates/tournament_new.html b/backend/admin/templates/tournament_new.html new file mode 100644 index 0000000..14b0c4c --- /dev/null +++ b/backend/admin/templates/tournament_new.html @@ -0,0 +1,22 @@ +{{ template "base.html" . }} + +{{ define "breadcrumb" }} +Dashboard | Tournaments +{{ end }} + +{{ define "content" }} +
+
+ + +
+
+ + + Bracket size will be rounded up to next power of 2. +
+
+ +
+
+{{ end }} -- cgit v1.3.1