This pull request includes several updates to improve the functionality and user experience of the student exercise pages. The most important changes include adding a courseId parameter, updating the layout of the Sandpack editor, and enhancing the loading animation.
This pull request includes several updates to improve the functionality and user experience of the student exercise pages. The most important changes include adding a
courseId
parameter, updating the layout of the Sandpack editor, and enhancing the loading animation.Enhancements to Student Exercise Pages:
app/[locale]/dashboard/student/courses/[courseId]/exercises/[exerciseId]/page.tsx
: AddedcourseId
parameter to theExerciseStudentPage
component to facilitate navigation. (app/[locale]/dashboard/student/courses/[courseId]/exercises/[exerciseId]/page.tsxL182-R182)components/dashboards/exercises/StudentExerciseCodePage.tsx
: AddedcourseId
toExercisePageProps
and updated navigation links to use this parameter. Also, removed theStar
icon and points badge for a cleaner interface. [1] [2] [3] [4]Improvements to Sandpack Editor:
components/dashboards/Common/Editor/MySandpackEditor.tsx
: ReplacedSandpackLayout
withSandpackStack
and removed the nestedSandpackStack
to simplify the layout. [1] [2]UI Enhancements:
components/dashboards/exercises/SaveCode.tsx
: Added a spin animation to the loader for better visual feedback during saving.Code Cleanup:
components/dashboards/exercises/StudentExerciseCodePage.tsx
: Removed the unusedStar
icon import.