This pull request includes several changes to improve the functionality and user experience of the student exercise pages, as well as some localization updates and code cleanup. The most important changes include adding new components and sections to the exercise pages, updating localization files, and cleaning up unused imports and code.
This pull request includes several changes to improve the functionality and user experience of the student exercise pages, as well as some localization updates and code cleanup. The most important changes include adding new components and sections to the exercise pages, updating localization files, and cleaning up unused imports and code.
Enhancements to Exercise Pages:
app/[locale]/(front)/student/[studentId]/exercises/[exerciseId]/page.tsx
: Added newExerciseStudentPage
component to display exercise details, profile information, and completion status. (app/[locale]/(front)/student/[studentId]/exercises/[exerciseId]/page.tsxR1-R48)app/[locale]/dashboard/student/courses/[courseId]/exercises/[exerciseId]/page.tsx
: Enhanced theExerciseStudentPage
component with additional sections for exercise suggestions and toggleable instructions. (app/[locale]/dashboard/student/courses/[courseId]/exercises/[exerciseId]/page.tsxL16-R55, app/[locale]/dashboard/student/courses/[courseId]/exercises/[exerciseId]/page.tsxR91-R128)Localization Updates:
app/locales/en/components.ts
: Added new localization strings for exercise suggestions and embed code sections. [1] [2]app/locales/es/components.ts
: Added Spanish translations for the new localization strings. [1] [2]Code Cleanup:
components/AuthButton.tsx
: Removed unusedcookies
import and related code. [1] [2]components/Header.tsx
: Re-enabled and updatedProfileDropdown
component. [1] [2] [3]components/dashboards/exercises/StudentExercisePage.tsx
: Removed unused imports and refactored the component to include new sections and props. [1] [2] [3] [4] [5]