Every tournament in ruTournament has a lifecycle that governs what organizers can and cannot do at any given moment. The three-state model exists to prevent accidental data modifications once competition is underway or concluded: you can freely set everything up while the tournament is upcoming, record results live during the active phase, and then lock the record permanently once the event is over. Understanding which state your tournament is in is the key to knowing why a button might be disabled or a form read-only.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.
Status states at a glance
| State | Identifier | Can Edit | Can Upload Results | Description |
|---|---|---|---|---|
| Upcoming | proximamente | ✅ | ❌ | Pre-competition preparation phase. All general fields are editable but the results entry interface is disabled. |
| Active | activo | ✅ | ✅ | Competition is in progress. All features are fully enabled including result entry, competitor management, and category configuration. |
| Finalized | finalizado | ❌ | ❌ | Read-only archive. All writes are blocked — no edits, no result uploads, no deletions. |
The useTournamentStatus hook
The permission system is centralised in a single React hook that every page uses to derive its current capabilities. The hook loads the tournament’s status from IndexedDB once on mount and exposes computed boolean flags:
canEditistruefor bothactivoandproximamente. It guards updates to tournament metadata, competitor lists, categories, and round configuration.canUploadResultsistrueexclusively foractivo. Result entry buttons are disabled and show a lock icon in any other state.isFinalizedbeingtruecauses every section in the tournament to render a read-only banner informing the organiser that the tournament has been closed.
Changing tournament state
Activate Edit Mode
Click the blue Editar button in the top-right corner of the panel. The UI switches to edit mode, revealing all configurable fields.
Change the Status dropdown
Locate the Estado (Status) field and select the desired state:
Próximamente, Activo, or Finalizado.Activo. There is no grace-period or confirmation required for un-finalization.
The
finalizado state is designed for archiving completed competitions. Once finalized, every section of the tournament displays a read-only banner and all edit controls are hidden or disabled. This makes it safe to leave a finalized tournament accessible for viewing without risk of accidental modification.