From 885d321c965fb45c437e250aacfd274e5cb0eb69 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Thu, 6 May 2021 23:19:47 +0200 Subject: [PATCH] Add constants and update schema --- client/src/router/core.constants.js | 1 + server/schema.graphql | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 client/src/router/core.constants.js diff --git a/client/src/router/core.constants.js b/client/src/router/core.constants.js new file mode 100644 index 00000000..5c5264c3 --- /dev/null +++ b/client/src/router/core.constants.js @@ -0,0 +1 @@ +export const LAYOUT_SIMPLE = 'simple'; diff --git a/server/schema.graphql b/server/schema.graphql index f5652759..44c1600a 100644 --- a/server/schema.graphql +++ b/server/schema.graphql @@ -159,6 +159,7 @@ input ApplySnapshotInput { type ApplySnapshotPayload { success: Boolean + module: ModuleNode clientMutationId: String } @@ -649,11 +650,11 @@ type ModuleNode implements ModuleInterface { teaser: String! intro: String! assignments(offset: Int, before: String, after: String, first: Int, last: Int): AssignmentNodeConnection! - objectiveGroups(offset: Int, before: String, after: String, first: Int, last: Int, title: String, module_Slug: String): ObjectiveGroupNodeConnection! + objectiveGroups: [ObjectiveGroupNode] id: ID! pk: Int topic: TopicNode - chapters(offset: Int, before: String, after: String, first: Int, last: Int, slug: String, title: String): ChapterNodeConnection + chapters: [ChapterNode] solutionsEnabled: Boolean bookmark: ModuleBookmarkNode mySubmissions(offset: Int, before: String, after: String, first: Int, last: Int): StudentSubmissionNodeConnection @@ -703,7 +704,7 @@ type ObjectiveGroupNode implements Node { title: ObjectiveGroupTitle module: ModuleNode! hiddenFor: [SchoolClassNode] - objectives(offset: Int, before: String, after: String, first: Int, last: Int, text: String): ObjectiveNodeConnection! + objectives: [ObjectiveNode] pk: Int displayTitle: String } @@ -881,6 +882,13 @@ type SchoolClassNodeEdge { cursor: String! } +type SnapshotChangesNode { + hiddenObjectives: Int! + newObjectives: Int! + hiddenContentBlocks: Int! + newContentBlocks: Int! +} + type SnapshotChapterNode implements Node & ChapterInterface { id: ID! description: String @@ -908,6 +916,7 @@ type SnapshotNode implements Node { title: String metaTitle: String heroImage: String + changes: SnapshotChangesNode } input SpellCheckInput {