This pull request includes several changes to enhance the user experience for the student dashboard and chatbox functionalities. The most important changes include adding a new status for exercises, improving the chatbox interface, and updating localization files.
components/chatbox/ChatBox.tsx: Enhanced the chatbox interface by adding new icons, animations, and quick access buttons for common actions like product questions and feedback. [1][2]
app/api/chatbox-ai/route.ts: Updated the chatbox API to use streamText instead of generateText and to handle messages in a data stream format.
Localization updates:
app/locales/en/components.ts and app/locales/es/components.ts: Added new localization strings for the chatbox interface in both English and Spanish. [1][2]
app/locales/en/views.ts and app/locales/es/views.ts: Added new strings for exercise status and actions. [1][2]
This pull request includes several changes to enhance the user experience for the student dashboard and chatbox functionalities. The most important changes include adding a new status for exercises, improving the chatbox interface, and updating localization files.
Enhancements to exercise status and display:
app/[locale]/dashboard/student/courses/[courseId]/page.tsx
: Added a new status "In Progress" for exercises and updated theExerciseCard
component to display different icons and text based on the exercise status. (app/[locale]/dashboard/student/courses/[courseId]/page.tsxL20-R22, app/[locale]/dashboard/student/courses/[courseId]/page.tsxL32-R40, app/[locale]/dashboard/student/courses/[courseId]/page.tsxL297-R319)Chatbox improvements:
components/chatbox/ChatBox.tsx
: Enhanced the chatbox interface by adding new icons, animations, and quick access buttons for common actions like product questions and feedback. [1] [2]app/api/chatbox-ai/route.ts
: Updated the chatbox API to usestreamText
instead ofgenerateText
and to handle messages in a data stream format.Localization updates:
app/locales/en/components.ts
andapp/locales/es/components.ts
: Added new localization strings for the chatbox interface in both English and Spanish. [1] [2]app/locales/en/views.ts
andapp/locales/es/views.ts
: Added new strings for exercise status and actions. [1] [2]Code cleanup:
app/api/chat/exercises/student/route.ts
: Removed unnecessaryconsole.log
statements to clean up the code. [1] [2]Minor UI adjustments:
components/ScrollToTopButton.tsx
: Adjusted the position of the "Scroll to Top" button for better visibility.