Skip to content

Commit

Permalink
Update fixtures, add special instructions to be hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
stefl committed Oct 30, 2024
1 parent d023dc3 commit eddb22e
Show file tree
Hide file tree
Showing 25 changed files with 2,404 additions and 2,314 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const ChatLhsHeader = ({
<button
onClick={() => setShowLessonMobile(!showLessonMobile)}
className="flex items-center gap-5"
data-testid="view-lesson-button"
>
<AiIcon />{" "}
<span className={"text-base font-bold "}>View lesson &gt;</span>
Expand Down
4 changes: 2 additions & 2 deletions apps/nextjs/src/components/ContextProviders/ChatProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,13 @@ export function ChatProvider({ id, children }: Readonly<ChatProviderProps>) {
const generateContinueAction = useCallback(() => {
const sectionsToGenerate = nextSectionsToGenerate(lessonPlan);
if (sectionsToGenerate.length === 0) {
return "Continue - check the lesson plan for consistency and correctness";
return "Continue (with special instructions: check the lesson plan for consistency and correctness)";
} else {
const sentenceCaseSections = sectionsToGenerate
.map((section) => camelCaseToTitleCase(section))
.join(", ")
.replace(/, ([^,]*)$/, " and $1");
return `Continue. Generate the ${sentenceCaseSections} section${sectionsToGenerate.length > 1 ? "s" : ""}.`;
return `Continue (with special instructions: Generate the ${sentenceCaseSections} section${sectionsToGenerate.length > 1 ? "s" : ""})`;
}
}, [lessonPlan]);

Expand Down
Loading

0 comments on commit eddb22e

Please sign in to comment.