This pull request includes several changes to the student dashboard, focusing on enhancing the user interface and improving the logic for displaying course and lesson statuses. The most important changes include updates to the LessonCard component, modifications to the CourseStudentPage and CoursesStudentPage functions, and enhancements to the CourseProgressCard and RecentActivityCard components.
app/locales/en/components.ts and app/locales/es/components.ts: Added a new translation key for "Enroll on Course" in both English and Spanish localization files. [1][2]
This pull request includes several changes to the student dashboard, focusing on enhancing the user interface and improving the logic for displaying course and lesson statuses. The most important changes include updates to the
LessonCard
component, modifications to theCourseStudentPage
andCoursesStudentPage
functions, and enhancements to theCourseProgressCard
andRecentActivityCard
components.Enhancements to UI Components:
app/[locale]/dashboard/student/courses/[courseId]/page.tsx
: Updated theLessonCard
component to display different statuses (Completed
,In Progress
,Not Started
) with corresponding icons and text. (app/[locale]/dashboard/student/courses/[courseId]/page.tsxL127-R145)components/dashboards/student/course/enhanced-student-dashboard.tsx
: Enhanced theCourseProgressCard
andRecentActivityCard
components to improve their visual presentation and responsiveness. [1] [2]Logic Improvements:
app/[locale]/dashboard/student/courses/[courseId]/page.tsx
: Added logic to determine the status of lessons based onlesson_completions
andlessons_ai_task_messages
. (app/[locale]/dashboard/student/courses/[courseId]/page.tsxL283-R302)app/[locale]/dashboard/student/page.tsx
: Modified theCoursesStudentPage
function to include enrollments and determine if a user is enrolled in a course. (app/[locale]/dashboard/student/page.tsxR41-R54, app/[locale]/dashboard/student/page.tsxR73-R78)Localization Updates:
app/locales/en/components.ts
andapp/locales/es/components.ts
: Added a new translation key for "Enroll on Course" in both English and Spanish localization files. [1] [2]Minor Adjustments:
actions/dashboard/AI/TaskAiActions.tsx
: Adjusted the temperature parameter in thecontinueTaskAiConversation
function.components/dashboards/student/course/enhanced-student-dashboard.tsx
: Included theClock
icon fromlucide-react
for use in theRecentActivityCard
component.