The Results 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/results) is where competition data is recorded during or after the competition. It is split into two tabs — WCA Format for standard average-based categories and Red Bull for head-to-head elimination brackets. Both tabs share the same edit-mode workflow: activate editing, enter times, save, and the data is immediately persisted to IndexedDB.
- WCA Format
- Red Bull Format
Selecting a category and round
Use the Categoría and Ronda dropdowns at the top of the page to navigate between events. Only WCA-format categories (those withoutformat: 'redbull') appear in this tab. Switching categories resets the selected round to round 1 and closes any open inline editor.The results table
The results table lists every competitor registered for the selected round. Columns are:| Column | Description |
|---|---|
| Competitor | Name, left-aligned |
| T1 – T3 or T1 – T5 | Individual solve times (3 for ao3, 5 for ao5) |
| Best | Fastest valid solve, highlighted in blue |
| Avg | Calculated average, highlighted in green |
Entering times
Activate Edit Mode
Click Activar Edición. A yellow floating badge confirms the mode is active. The button is disabled (with a lock icon) when the tournament status is not
activo.Click a time cell
Click any time cell for the competitor you want to edit. All five (or three) cells for that competitor become editable simultaneously.
Type the time
Times can be entered in several formats. The app auto-formats on blur:
- Short integers — typing
974is formatted to9.74. - 5+ digits — typing
10678is formatted to1:06.78. - Explicit decimal — typing
9.74or1:06.78is accepted as-is.
Apply penalties (optional)
Each time cell has +2 and DNF toggle buttons. Clicking an already-active penalty clears it (toggling back to clean
'').TimeRecord structure
Every solve is stored as aTimeRecord:base + (penalty === '+2' ? 2 : 0). A penalty of 'DNF' means the solve does not count as a valid finish.Average calculation
Averages are computed bycalculateRulesStats(times, format) from ResultsWCA.tsx:- ao5 — drop the single best and single worst valid time, average the remaining 3. If two or more solves are DNF, the average is DNF (
-1). - ao3 — average all three solves. Any single DNF makes the average DNF.
base > 0 or penalty === 'DNF'); partial rows display – for best and average until complete.Ranking rules
ThesortWCA function ranks competitors in this priority order:- Valid averages (ascending).
- DNF averages (after all valid averages).
- Incomplete results (no average yet).
Round advancement
Each round stores acompetitorsToAdvance value (a number or 'all'). The results page reads the previous round’s sorted results and filters the current round’s participant list to only include those who advanced. You do not need to manually promote competitors — switching to a later round automatically shows only the qualifying subset.