diff --git a/frontend/src/components/teach/course-preview-shell.tsx b/frontend/src/components/teach/course-preview-shell.tsx index c36e1ca9..1f0696ce 100644 --- a/frontend/src/components/teach/course-preview-shell.tsx +++ b/frontend/src/components/teach/course-preview-shell.tsx @@ -860,10 +860,10 @@ export function CoursePreviewShell({ ) : null} {course.projectGoal ? ( -

- The project: - {course.projectGoal.trim().replace(/\.+$/, "")}. -

+
+ Project overview +

{course.projectGoal.trim().replace(/\.+$/, "")}.

+
) : null} {activeChapter.isMilestone ? ( diff --git a/packages/learning-ui/src/components/learn/learning-log.tsx b/packages/learning-ui/src/components/learn/learning-log.tsx index 6424249b..466e273a 100644 --- a/packages/learning-ui/src/components/learn/learning-log.tsx +++ b/packages/learning-ui/src/components/learn/learning-log.tsx @@ -109,12 +109,15 @@ function LearningLogQuestion({ ); } +/** One shared object, so the default never looks like new data on every render. */ +const NO_INITIAL_ANSWERS: LearningLogAnswers = {}; + export function LearningLog({ title = "Share what you learned", instruction, questions, variant = "default", - initialAnswers = {}, + initialAnswers = NO_INITIAL_ANSWERS, onSave, }: { title?: string;