Skip to content

Commit

Permalink
sentence case
Browse files Browse the repository at this point in the history
  • Loading branch information
mantagen committed Aug 29, 2024
1 parent d09522b commit d6a05e9
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
14 changes: 7 additions & 7 deletions apps/nextjs/src/ai-apps/lesson-planner/lessonSection.ts
Original file line number Diff line number Diff line change
@@ -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",
];
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -51,7 +51,7 @@ const ChatStartAccordion = () => {
{lessonSections.map((section) => {
if (
section == "Title" ||
section == "Key Stage" ||
section == "Key stage" ||
section == "Subject"
) {
return null;
Expand Down Expand Up @@ -79,7 +79,7 @@ const ChatStartAccordion = () => {
{slidesLessonSections.map((section) => {
if (
section == "Title" ||
section == "Key Stage" ||
section == "Key stage" ||
section == "Subject"
) {
return null;
Expand Down Expand Up @@ -107,7 +107,7 @@ const ChatStartAccordion = () => {
{quizLessonSections.map((section) => {
if (
section == "Title" ||
section == "Key Stage" ||
section == "Key stage" ||
section == "Subject"
) {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -41,7 +41,7 @@ const EmptyScreenAccordion = () => {
{lessonSections.map((section) => {
if (
section === "Title" ||
section === "Key Stage" ||
section === "Key stage" ||
section === "Subject"
) {
return null;
Expand Down Expand Up @@ -69,7 +69,7 @@ const EmptyScreenAccordion = () => {
{slidesLessonSections.map((section) => {
if (
section == "Title" ||
section == "Key Stage" ||
section == "Key stage" ||
section == "Subject"
) {
return null;
Expand Down Expand Up @@ -97,7 +97,7 @@ const EmptyScreenAccordion = () => {
{quizLessonSections.map((section) => {
if (
section == "Title" ||
section == "Key Stage" ||
section == "Key stage" ||
section == "Subject"
) {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d6a05e9

Please sign in to comment.