From d6a05e9aeb7701df8d7b2b088834b7830d0a2c5c Mon Sep 17 00:00:00 2001 From: mantagen Date: Thu, 29 Aug 2024 15:10:38 +0200 Subject: [PATCH] sentence case --- .../ai-apps/lesson-planner/lessonSection.ts | 14 +++++------ .../Chat/chat-start-accordion.tsx | 24 +++++++++---------- .../Chat/empty-screen-accordian.tsx | 18 +++++++------- .../Chat/export-buttons/index.tsx | 4 ++-- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/apps/nextjs/src/ai-apps/lesson-planner/lessonSection.ts b/apps/nextjs/src/ai-apps/lesson-planner/lessonSection.ts index 42f59dafc..23b4b8a81 100644 --- a/apps/nextjs/src/ai-apps/lesson-planner/lessonSection.ts +++ b/apps/nextjs/src/ai-apps/lesson-planner/lessonSection.ts @@ -1,14 +1,14 @@ export const lessonSections = [ "Title", "Subject", - "Key Stage", - "Learning Outcome", - "Learning Cycles", - "Prior Knowledge", - "Key Learning Points", + "Key stage", + "Learning outcome", + "Learning cycles", + "Prior knowledge", + "Key learning points", "Misconceptions", "Keywords", - "Starter Quiz", + "Starter quiz", "Cycle 1", - "Exit Quiz", + "Exit quiz", ]; diff --git a/apps/nextjs/src/components/AppComponents/Chat/chat-start-accordion.tsx b/apps/nextjs/src/components/AppComponents/Chat/chat-start-accordion.tsx index 74a535932..b74bb6aca 100644 --- a/apps/nextjs/src/components/AppComponents/Chat/chat-start-accordion.tsx +++ b/apps/nextjs/src/components/AppComponents/Chat/chat-start-accordion.tsx @@ -17,27 +17,27 @@ const ChatStartAccordion = () => { const slidesLessonSections = lessonSections.filter( (section) => section !== "Title" && - section !== "Key Stage" && + section !== "Key stage" && section !== "Subject" && - section !== "Prior Knowledge" && - section !== "Key Learning Points" && + section !== "Prior knowledge" && + section !== "Key learning points" && section !== "Misconceptions" && - section !== "Starter Quiz" && + section !== "Starter quiz" && section !== "Exit Quiz", ); const quizLessonSections = lessonSections.filter( (section) => section !== "Title" && - section !== "Key Stage" && + section !== "Key stage" && section !== "Subject" && - section !== "Prior Knowledge" && - section !== "Key Learning Points" && + section !== "Prior lnowledge" && + section !== "Key learning points" && section !== "Misconceptions" && section !== "Cycle 1" && section !== "Keywords" && - section !== "Learning Cycles" && - section !== "Learning Outcome", + section !== "Learning cycles" && + section !== "Learning outcome", ); return ( @@ -51,7 +51,7 @@ const ChatStartAccordion = () => { {lessonSections.map((section) => { if ( section == "Title" || - section == "Key Stage" || + section == "Key stage" || section == "Subject" ) { return null; @@ -79,7 +79,7 @@ const ChatStartAccordion = () => { {slidesLessonSections.map((section) => { if ( section == "Title" || - section == "Key Stage" || + section == "Key stage" || section == "Subject" ) { return null; @@ -107,7 +107,7 @@ const ChatStartAccordion = () => { {quizLessonSections.map((section) => { if ( section == "Title" || - section == "Key Stage" || + section == "Key stage" || section == "Subject" ) { return null; diff --git a/apps/nextjs/src/components/AppComponents/Chat/empty-screen-accordian.tsx b/apps/nextjs/src/components/AppComponents/Chat/empty-screen-accordian.tsx index b5f767af9..073de838a 100644 --- a/apps/nextjs/src/components/AppComponents/Chat/empty-screen-accordian.tsx +++ b/apps/nextjs/src/components/AppComponents/Chat/empty-screen-accordian.tsx @@ -16,18 +16,18 @@ const EmptyScreenAccordion = () => { (section) => ![ "Title", - "Key Stage", + "Key stage", "Subject", - "Prior Knowledge", - "Key Learning Points", + "Prior knowledge", + "Key learning points", "Misconceptions", - "Starter Quiz", - "Exit Quiz", + "Starter quiz", + "Exit quiz", ].includes(section), ); const quizLessonSections = lessonSections.filter( - (section) => !["Title", "Key Stage", "Subject"].includes(section), + (section) => !["Title", "Key stage", "Subject"].includes(section), ); return ( @@ -41,7 +41,7 @@ const EmptyScreenAccordion = () => { {lessonSections.map((section) => { if ( section === "Title" || - section === "Key Stage" || + section === "Key stage" || section === "Subject" ) { return null; @@ -69,7 +69,7 @@ const EmptyScreenAccordion = () => { {slidesLessonSections.map((section) => { if ( section == "Title" || - section == "Key Stage" || + section == "Key stage" || section == "Subject" ) { return null; @@ -97,7 +97,7 @@ const EmptyScreenAccordion = () => { {quizLessonSections.map((section) => { if ( section == "Title" || - section == "Key Stage" || + section == "Key stage" || section == "Subject" ) { return null; diff --git a/apps/nextjs/src/components/AppComponents/Chat/export-buttons/index.tsx b/apps/nextjs/src/components/AppComponents/Chat/export-buttons/index.tsx index d10d3c466..a6e624e14 100644 --- a/apps/nextjs/src/components/AppComponents/Chat/export-buttons/index.tsx +++ b/apps/nextjs/src/components/AppComponents/Chat/export-buttons/index.tsx @@ -81,9 +81,9 @@ export default ExportButtons; export function handleRewordingSections(section: string) { if (section.includes("Cycle 1")) { - return "Learning Cycles"; + return "Learning cycles"; } - if (section === "Learning Cycles") { + if (section === "Learning cycles") { return "Learning Cycle Outcomes"; } return section;