feat: container info sidebar and add sidebar updates (#2830)

* Adds section, subsection and unit sidebar info tab in course outline as described in https://github.com/openedx/frontend-app-authoring/issues/2638
* Updates the sidebar design and behaviour as per https://github.com/openedx/frontend-app-authoring/issues/2826
* Updates course outline to use react query and removes redux store usage as much as possible. Updated parts that require absolutely cannot work without redux without heavy refactoring (will require quiet some time) to work in tandem with react-query.
This commit is contained in:
Navin Karkera
2026-02-09 21:33:27 +05:30
committed by GitHub
parent eae178a9ec
commit bb6b2ab33c
74 changed files with 3033 additions and 1373 deletions

View File

@@ -65,7 +65,7 @@ export interface UpstreamInfo {
versionDeclined: number | null,
errorMessage: string | null,
downstreamCustomized: string[],
hasTopLevelParent?: boolean,
topLevelParentKey?: string,
readyToSyncChildren?: UpstreamChildrenInfo[],
isReadyToSyncIndividually?: boolean,
}
@@ -78,6 +78,7 @@ export interface XBlock {
category: string;
hasChildren: boolean;
editedOn: string;
editedOnRaw: string;
published: boolean;
publishedOn: string;
studioUrl: string;
@@ -126,6 +127,8 @@ export interface XBlock {
upstreamInfo?: UpstreamInfo;
}
export type UnitXBlock = Omit<XBlock, 'childInfo'>;
interface OutlineError {
data?: string;
type: string;
@@ -153,3 +156,9 @@ export interface UserTaskStatusWithUuid {
modified: string;
uuid: string;
}
export type SelectionState = {
currentId: string;
sectionId?: string;
subsectionId?: string;
};