Skip to content

Commit 768bfff

Browse files
committed
Fixed build
1 parent dafb5ba commit 768bfff

4 files changed

Lines changed: 18 additions & 28 deletions

File tree

src/containers/Round/hooks/useRoundData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
findAllActivities,
66
roomByActivity,
77
} from '../../../lib/wcif/activities';
8-
import { getRoundConfig } from '../../../lib/wcif/extensions';
8+
import { getRoundConfig } from '../../../lib/wcif/extensions/competitionScheduler';
99
import { useAppSelector } from '../../../store';
1010
import { type AppState } from '../../../store/initialState';
1111
import {

src/lib/assignmentGenerators/generateJudgeAssignmentsFromCompetingAssignments.test.ts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,20 @@ const createGroupActivities = (count: number): Activity[] =>
3434
extensions: [],
3535
}));
3636

37-
const competitor = (registrantId: number, competingActivityId: number): Person => ({
38-
registrantId,
39-
name: `Competitor ${registrantId}`,
40-
assignments: [{ assignmentCode: 'competitor', activityId: competingActivityId }],
41-
registration: { status: 'accepted', eventIds: ['333'] },
42-
});
37+
const competitor = (registrantId: number, competingActivityId: number): Person =>
38+
({
39+
registrantId,
40+
name: `Competitor ${registrantId}`,
41+
assignments: [
42+
{ assignmentCode: 'competitor', activityId: competingActivityId, stationNumber: null },
43+
],
44+
registration: {
45+
status: 'accepted',
46+
eventIds: ['333'],
47+
wcaRegistrationId: registrantId,
48+
isCompeting: true,
49+
},
50+
} as unknown as Person);
4351

4452
const buildCompetition = (groupCount: number, persons: Person[]): Competition => {
4553
const groups = createGroupActivities(groupCount);

src/lib/wcif/extensions/index.ts

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,5 @@
1-
/**
2-
* Central exports for all WCIF extensions used by Delegate Dashboard
3-
*
4-
* This module provides a type-safe, modular interface for working with
5-
* WCIF extensions from multiple sources:
6-
* - delegateDashboard: Extensions created by this app
7-
* - groupifier: Extensions from Groupifier (backward compatibility)
8-
* - competitionScheduler: Extensions from Competition Scheduler
9-
* - natshelper: Extensions from Nats Helper (CubingUSA)
10-
*/
11-
12-
// Delegate Dashboard extensions
131
export * from './delegateDashboard';
14-
15-
// Groupifier extensions (backward compatibility)
162
export * from './groupifier';
17-
18-
// Competition Scheduler extensions
19-
export * from './competitionScheduler';
20-
21-
// Nats Helper extensions
223
export * from './natshelper';
23-
24-
// Utility functions
254
export * from './utils';
5+
export * from './types';

src/lib/wcif/extensions/wcif-extensions.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
declare module '@wca/helpers/lib/models/extension' {
44
export interface Extension<T = object> {
55
data: T;
6+
id: string;
7+
specUrl: string;
68
}
79
}

0 commit comments

Comments
 (0)