This pull request includes multiple changes to enhance the functionality and user experience of the exercise-related components in the dashboard. The key changes involve the addition of exercise suggestions, refactoring of the exercise card component, and updates to localization files.
This pull request includes multiple changes to enhance the functionality and user experience of the exercise-related components in the dashboard. The key changes involve the addition of exercise suggestions, refactoring of the exercise card component, and updates to localization files.
Enhancements and New Features:
actions/dashboard/AI/TaskAiActions.tsx
: AddedExerciseSuggestions
component to display exercise suggestions after marking an assignment as completed. [1] [2]app/api/chat/exercises/student/route.ts
: Updated the AI model to use the latest version for generating exercise suggestions.Refactoring:
components/dashboards/exercises/CourseExercisesPage.tsx
: Refactored to use the newExerciseCard
component for displaying exercises, simplifying the code and improving reusability. [1] [2] [3]components/dashboards/exercises/ExerciseCard.tsx
: Created a newExerciseCard
component to encapsulate the exercise card logic, improving code maintainability.Localization Updates:
app/locales/en/components.ts
: Added new localization strings for exercise suggestions and updated existing ones for better clarity. [1] [2]app/locales/es/components.ts
: Added Spanish translations for the new exercise suggestions feature and updated existing strings. [1] [2]UI Improvements:
components/dashboards/exercises/StudentExercisePage.tsx
: Enhanced the layout and added a collapsible section for exercise instructions, improving the user interface and experience. [1] [2] [3] [4] [5] [6]