feat: bulk update legacy library references (#2764)

Shows an alert in course outline and review tab of course libraries page when the course contains legacy library content blocks that depend on libraries that are already migrated to library v2, i.e. the blocks are ready to be converted into item banks that can make use of these new v2 libraries.
Authors can click on a single button to convert all references in a single go. The button launches a background task which is then polled by the frontend and the status is presented to the Author.
This commit is contained in:
Navin Karkera
2025-12-22 23:24:54 +05:30
committed by GitHub
parent 68a4b04475
commit f4d20eba45
13 changed files with 476 additions and 10 deletions

View File

@@ -61,3 +61,12 @@ export const VisibilityTypes = {
export const TOTAL_LENGTH_KEY = 'total-length';
export const MAX_TOTAL_LENGTH = 65;
export enum UserTaskStatus {
Pending = 'Pending',
Succeeded = 'Succeeded',
Failed = 'Failed',
InProgress = 'In Progress',
Cancelled = 'Cancelled',
Retrying = 'Retrying',
}

View File

@@ -1,3 +1,5 @@
import { UserTaskStatus } from './constants';
export interface GroupTypes {
id: number;
name: string;
@@ -135,3 +137,19 @@ export interface OutlinePageErrors {
sectionLoadingApi?: OutlineError | null,
courseLaunchApi?: OutlineError | null,
}
export interface UsageKeyBlock {
usageKey: string;
}
export interface UserTaskStatusWithUuid {
name: string;
state: UserTaskStatus;
stateText: string;
completedSteps: number;
totalSteps: number;
attempts: number;
created: string;
modified: string;
uuid: string;
}