The Categories page (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SdazaP/ruTournament/llms.txt
Use this file to discover all available pages before exploring further.
/dashboard/tournament/:id/categories) lets you manage the events in an existing tournament. Unlike the creation wizard, which configures everything up front, this page is designed for ongoing mid-tournament adjustments: adding new events after registration opens, tweaking round counts or advancement quotas as the competitor list grows, or correcting schedule times without recreating the tournament. Each category is rendered as a card showing its name, format, schedule, round list, and enrolled competitor count. All edits require Edit Mode to be active and are only available when the tournament is not Finalized.
WCA category configuration
WCA categories use a multi-round elimination structure where competitors are ranked by their average (AO5 or AO3) and the top N advance to the next round. Rounds list Each category card shows its rounds in order. Every round displays:- Its label — “Ronda N” for preliminary rounds, “Final” for the last round.
- Its format — AO5 or AO3 (selectable via dropdown when Edit Mode is active).
- Its advancement quota — how many competitors move forward (not shown on the Final round).
- Every existing round has
isFinalset tofalse. - The new round is appended with
isFinal: true, making it the new Final. - The new round defaults to AO5 format.
isFinal: true. At least one round must remain in every WCA category.
Deleting a round also deletes any results, groups, and scrambles associated with it. A confirmation modal warns you of this before the deletion is applied.
| Value | Description |
|---|---|
| 0 (Ninguno) | No competitors advance (effectively blocks the round) |
| 4 | Top 4 competitors advance |
| 8 | Top 8 competitors advance |
| 10 | Top 10 competitors advance |
| 12 | Top 12 competitors advance |
| 16 | Top 16 competitors advance |
| All | All competitors advance (useful for a single group with no cutoff) |
- AO5 — 5 solves; the best and worst are discarded and the middle 3 are averaged. Two or more DNFs result in a DNF average.
- AO3 — 3 solves, mean of all three. One DNF results in a DNF average.
Red Bull category configuration
Red Bull categories use a head-to-head elimination bracket instead of rounds. Configuration options control how the bracket is seeded and whether a preliminary round precedes it. Bracket mode Select how competitors are placed into the bracket:- Aleatorio (Random) — The system auto-assigns competitors to bracket positions. Seeds are randomised at the moment the bracket is generated in the Results section.
- Manual — The organiser drags each competitor to their bracket slot in the Results section before the matches begin.
- A seeding round is added (
isSeeding: true) with its own time-entry form in the Results section. - After seeding results are entered, competitors are sorted by average and the best performers receive the highest bracket seeds (or automatic byes if the bracket size is a power of 2 that exceeds the field).
- A seeding format selector (AO5 or AO3) lets you choose how many solves the seeding round uses.
Schedule fields
Each category card — for both WCA and Red Bull formats — has Start Time and End Time inputs (HH:MM, 24-hour format). These values are stored inCategoryLocal.startTime and CategoryLocal.endTime and feed directly into the Schedule editor timeline (/dashboard/tournament/:id/schedule), where they appear as horizontal bars on a Gantt-style view. When Edit Mode is not active, time changes are written to IndexedDB immediately. When Edit Mode is active, changes are staged in local state and committed when you save via the Guardar Cambios modal.
An optional Room field lets you assign a venue room or hall to the category. If two categories share the same room and their time windows overlap, the Schedule editor highlights the conflict in yellow.
Predefined WCA events
The following 12 events are available as predefined categories. Each is identified in the codebase by itsWCA_EVENT_CONFIG key and rendered with its abbreviation in the UI.
| Event | Abbreviation |
|---|---|
| 3x3 | 3×3 |
| 2x2 | 2×2 |
| 4x4 | 4×4 |
| 5x5 | 5×5 |
| 6x6 | 6×6 |
| 7x7 | 7×7 |
| 3x3 OH | OH |
| Clock | CLK |
| Megaminx | MGA |
| Pyraminx | PYR |
| Skewb | SKB |
| Square-1 | SQ1 |
Edit Mode and saving
All category mutations — schedule changes, format switches, round additions/removals, advancement quota updates, Red Bull bracket mode and seeding toggles — are staged in local React state while Edit Mode is active. To commit them:- Click “Activar Edición” again (the button turns red and reads “Desactivar Edición” while active).
- If any categories were changed or added, the Save Changes modal appears, reporting how many categories were modified.
- Click “Guardar Cambios” to call
handleSaveAll, which rebuilds the categories array (preserving existingresultsandmatchesarrays) and writes the fullTournamentLocalrecord to IndexedDB viadb.tournaments.put(). - Click “Descartar Cambios” to revert all staged edits to the snapshot taken when Edit Mode was activated.
Category edits are only available when the tournament status is Active (
activo) or Upcoming (Próximamente). When the tournament is Finalized, the Edit Mode button shows a lock icon and is disabled. Change the tournament status back to activo from the tournament dashboard to re-enable editing.