feat: new course outline header [FC-0114] (#2735)

Adds new header and subheader to course outline. Converts existing js code to ts.
This commit is contained in:
Navin Karkera
2025-12-17 23:43:19 +05:30
committed by GitHub
parent 6f37118960
commit ae67be83a0
34 changed files with 990 additions and 403 deletions

View File

@@ -67,6 +67,7 @@ export async function getCourseDetails(courseId: string, username: string): Prom
*/
export const waffleFlagDefaults = {
enableCourseOptimizer: false,
enableNotifications: false,
enableCourseOptimizerCheckPrevRunLinks: false,
useNewHomePage: true,
useNewCustomPages: true,

View File

@@ -123,3 +123,15 @@ export interface XBlock {
discussionEnabled?: boolean;
upstreamInfo?: UpstreamInfo;
}
interface OutlineError {
data?: string;
type: string;
}
export interface OutlinePageErrors {
outlineIndexApi?: OutlineError | null,
reindexApi?: OutlineError | null,
sectionLoadingApi?: OutlineError | null,
courseLaunchApi?: OutlineError | null,
}