203 bug tras realizar un exercise al retornar al menú de ejercicios este no se marca como completado #214
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 theExerciseCardcomponent 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 usestreamTextinstead ofgenerateTextand to handle messages in a data stream format.Localization updates:
app/locales/en/components.tsandapp/locales/es/components.ts: Added new localization strings for the chatbox interface in both English and Spanish. [1] [2]app/locales/en/views.tsandapp/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.logstatements 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.