-
-
Notifications
You must be signed in to change notification settings - Fork 1
WCIF v1.1: support Best-of-5 (format '5') rounds (3BLD change) #71
Copy link
Copy link
Open
Description
WCIF spec recently moved to v1.1 (notably: 3x3 Blindfolded is now Best of 5).
DelegateDashboard has its own round format mapping in src/lib/domain/events.ts:
roundFormatsincludes a/ m /3/2/1 but does not include format id5.- Downstream,
roundFormatById()is used insrc/lib/wcif/persons.tsand elsewhere to decide whether to readresult.averagevsresult.best. - With WCIF v1.1 competitions, any round with
format: "5"(Best of 5) will causeroundFormatById()to return undefined, which breaks seed/result lookups and likely some UI/exports.
Reference: thewca/wca-helpers PR “Wcif 1.1 updates” explicitly calls out “3bld is now best of 5” and updates their RoundFormat handling:
thewca/wca-helpers#47
Acceptance criteria
- Add round format
id: "5"with appropriate labels (e.g., shortbo5, longBest of 5, rankingResultsingle). - Add/update unit tests in
src/lib/domain/events.test.ts(and any others) to coverroundFormatById("5")androundFormatShortById("5"). - Verify any logic that depends on format IDs still works (seed results, result rendering, import/export, validation).
Nice to have
- Audit other WCIF-v1.1-related changes (if any) and update mocks in wcif tests to use
formatVersion: "1.1"where relevant.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels