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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user