Skip to content

Commit fc79cb1

Browse files
committed
fix: task_status string for In Progress
1 parent 73948ab commit fc79cb1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/library-authoring/data/api.mocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ mockGetCourseImports.inProgressImport = {
11261126
displayName: 'DemoX 2025 T4',
11271127
},
11281128
targetCollection: null,
1129-
state: 'InProgress',
1129+
state: 'In Progress',
11301130
progress: 0.5012,
11311131
} satisfies api.CourseImport;
11321132
mockGetCourseImports.applyMock = () => jest.spyOn(

src/library-authoring/data/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ export interface CourseImport {
798798
key: string;
799799
title: string;
800800
} | null;
801-
state: 'Succeeded' | 'Failed' | 'InProgress';
801+
state: 'Succeeded' | 'Failed' | 'In Progress';
802802
progress: number;
803803
}
804804

src/library-authoring/import-course/ImportedCourseCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ const BORDER_CLASS = {
2727
Succeeded: 'status-border-imported',
2828
Failed: 'status-border-failed',
2929
Partial: 'status-border-partial',
30-
InProgress: 'status-border-in-progress',
30+
'In Progress': 'status-border-in-progress',
3131
};
3232

3333
const STATE_ICON = {
3434
Succeeded: Check,
3535
Failed: Error,
3636
Partial: Warning,
37-
InProgress: IncompleteCircle,
37+
'In Progress': IncompleteCircle,
3838
};
3939

4040
const STATE_ICON_COLOR_CLASS = {
4141
Succeeded: undefined,
4242
Failed: 'text-danger-500',
4343
Partial: 'text-warning-500',
44-
InProgress: undefined,
44+
'In Progress': undefined,
4545
};
4646

4747
const StateIcon = ({ state }: { state: CourseImport['state'] }) => (

0 commit comments

Comments
 (0)