Skip to content

[codex] Add WCIF v2 round support - #77

Merged
coder13 merged 12 commits into
betafrom
wcif-v2-endpoint-support
Aug 10, 2026
Merged

[codex] Add WCIF v2 round support#77
coder13 merged 12 commits into
betafrom
wcif-v2-endpoint-support

Conversation

@coder13

@coder13 coder13 commented May 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • switch WCIF fetch and patch calls to /api/v0/competitions/{id}/wcif/version/2
  • add a local WCIF v2 compatibility layer for participationRuleset and linkedRounds until @wca/helpers is updated
  • derive legacy round participation and advancement semantics so dual-round setups such as Clock continue to work in the existing UI and validation flows

Why

The app was still typed and wired for the older WCIF shape. WCIF v2 moves round progression and participation details into new fields, which broke assumptions around registration-based second rounds and linked-round advancement.

Impact

This lets the dashboard consume WCIF v2 data now, including dual-round Clock configurations like MNHeartlandWarmUpII2026, without waiting for the helper package release.

Validation

  • yarn test src/lib/api/wcaAPI.test.ts src/lib/wcif/rounds.test.ts src/lib/domain/persons.test.ts src/lib/wcif/validation/eventRoundValidation.test.ts
  • yarn check:type
  • repo commit hook: vitest run
  • repo pre-push checks: tsc --noEmit, eslint ./

@coder13
coder13 force-pushed the wcif-v2-endpoint-support branch from 2f56644 to 79077ae Compare August 10, 2026 15:37
@coder13
coder13 changed the base branch from main to beta August 10, 2026 15:38
@coder13
coder13 marked this pull request as ready for review August 10, 2026 15:38
@coder13
coder13 merged commit 8f30e02 into beta Aug 10, 2026
@coder13
coder13 deleted the wcif-v2-endpoint-support branch August 10, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant