Skip to content

Examn Generation with LLM for students to practices #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

guillermoscript
Copy link
Owner

This pull request includes several refactorings and enhancements for the student chat feature. The changes improve code organization, remove unused components, and introduce new components and functionality. Some of the key changes include:

  • Updated types.ts file to use consistent formatting for interfaces and types.

  • Added image plugin to the InitializedMDXEditor component for inserting and uploading images.

  • Added 'use client' import statement to the form.tsx file for proper client-side functionality.

  • Improved chat item rendering in the StudentChatSidebar component, including support for different chat types and dynamic chat URL generation.

  • Updated flexbox styling in the SuggestionsContainer component for better layout of suggestions.

  • Removed console.log statement in the CommandDialogComponent.

  • Updated NavLink component to support rendering of children components.

  • Added sheet component to the DashboardHeader for dropdown menu functionality.

  • Updated title and description in the layout.tsx file to reflect the changes in the application.

  • Updated chat page title styling in the ChatPage component.

  • Updated chat component to use generateId instead of nanoid for generating unique IDs.

  • Added ExamPreparationActions file for handling exam preparation chat functionality.

  • Added ExamPrepChat component and ExamPrepChatLayout component for exam preparation chat functionality and layout.

  • Added ExamPrepChatIdLayout component for exam preparation chat layout for a specific chat ID.

  • Updated button component to include disabled cursor style.

  • Added success and warning variants to the alert component.

  • Updated ExamPrepChatPage component to improve code organization and remove unused code.

  • Added ExamFeedbackCard component for displaying exam feedback.

  • Updated student chat actions and components for improved functionality and user experience.

  • Added Loading component for exam preparation chat.

  • Improved modularity and organization of exam preparation chat functionality.

  • Updated ExamnChatIdPage component to handle chat message IDs as strings.

  • Added ChatLoadingSkeleton component for student chat.

  • Added studentUpdateChatTitle function for updating chat title.

  • Updated ExamFeedbackCard component to use TypeScript interface for props.

  • Added ChatLoadingSkeleton component and updated student chat actions for improved user experience.

  • Updated ExamPrepAiComponent to handle hiding submit button.

  • Updated ExamnChatIdPageLayout to handle chat message IDs as strings.

  • Removed ExamPrepChatLayout component.

  • Added Message component for chat feature.

  • Removed Suspense from ChatWindow component.

  • Updated ExamnChatIdPage component in exam preparation chat.

  • Added ExamLink component for exam preparation chat.

  • Updated student chat actions and components.

  • Added Loading component for exam preparation chat.

  • Improved modularity and organization of exam preparation chat functionality.

  • Updated ExamPrepAiComponent to handle hiding submit button.

  • Updated ExamnChatIdPage component in exam preparation chat.

  • Added ChatLoadingSkeleton component for student chat.

  • Added studentUpdateChatTitle function for updating chat title.

  • Updated ExamFeedbackCard component to use TypeScript interface for props.

  • Added ChatLoadingSkeleton component and updated student chat actions for improved user experience.

  • Updated ExamPrepAiComponent to handle hiding submit button.

  • Updated ExamnChatIdPageLayout to handle chat message IDs as strings.

These changes enhance the functionality, usability, and maintainability of the student chat feature.

The types.ts file in the utils directory has been updated to use consistent formatting for the interfaces and types. This refactor improves code readability and maintainability.
This commit adds the image plugin to the InitializedMDXEditor component in the components/ui/markdown/InitializedMDXEditor.tsx file. The image plugin enables the user to insert and upload images in the MDX editor. This refactor enhances the functionality of the editor and improves the user experience.
This commit adds the 'use client' import statement to the form.tsx file in the components/ui directory. The 'use client' import is necessary for using the client-side functionality in the form component. This refactor enhances the functionality of the form and ensures proper client-side behavior.
This commit improves the rendering of chat items in the StudentChatSidebar component. It adds support for different chat types and dynamically generates the chat URL based on the chat type. This refactor enhances the functionality and usability of the chat sidebar.
refactor: Update flexbox styling in SuggestionsContainer

This commit updates the flexbox styling in the SuggestionsContainer component to remove the 'snap-none' class and add 'flex-wrap' class. This change improves the layout of the suggestions and ensures that they wrap properly when there are multiple suggestions.
This commit updates the NavLink component in the Sidebar.tsx file to support the rendering of children components. By adding the 'children' prop to the NavLink component, it becomes more flexible and allows for nested components within the link. This refactor enhances the reusability and customization options of the NavLink component.
This commit adds the sheet component to the DashboardHeader in the components/dashboards/DashboardHeader.tsx file. The sheet component provides a dropdown menu for accessing different menus and navigation items. This refactor enhances the user interface and improves the navigation experience in the dashboard header.
This commit updates the title and description in the layout.tsx file to reflect the changes made in the application. The title is changed to 'Next.js and Supabase AI powered LMS' and the description is changed to 'The fastest way to learn about programming'. This refactor improves the clarity and relevance of the application's metadata.
This commit updates the styling of the chat page title in the ChatPage component. The 'text-gray-800' class has been removed from the 'h1' element to improve consistency with other page titles. This refactor enhances the visual appearance of the chat page.
This commit updates the chat component in the components/dashboards/Common/chat/chat.tsx file to use the generateId function from the 'ai' module instead of the nanoid function. This refactor ensures consistency in generating unique IDs for messages and improves code maintainability.
…functionality

This commit adds the ExamPreparationActions file to handle the exam preparation chat functionality in the dashboard. The file includes functions for continuing the conversation, generating an exam form, and processing the student's answers. This refactor enhances the modularity and organization of the code related to exam preparation.
…layout

This commit adds the ExamPrepChatLayout component to handle the layout of the exam preparation chat functionality in the dashboard. The component wraps the children components with an AI component, providing the necessary structure for the chat layout. This refactor enhances the modularity and organization of the code related to exam preparation chat layout.
…yout

This commit adds the ExamPrepChatIdLayout component to handle the layout of the exam preparation chat functionality for a specific chat ID in the dashboard. The component fetches chat data from the 'chats' table using the provided chat ID and renders the children components wrapped with an AI component. This addition enhances the modularity and organization of the code related to exam preparation chat layout and improves the user experience for specific chat interactions.
This commit updates the button component in the components/ui/button.tsx file to include the 'disabled:cursor-not-allowed' style class. This change ensures that the cursor is set to 'not-allowed' when the button is disabled, providing visual feedback to users that the button is not clickable. This refactor improves the accessibility and user experience of the button component.
This commit adds the 'success' and 'warning' variants to the alert component in the components/ui/alert.tsx file. The 'success' variant applies a green border and text color, while the 'warning' variant applies a yellow border and text color. This refactor enhances the flexibility and visual appeal of the alert component, allowing for different types of alerts to be displayed.
…ion and remove unused code

This commit refactors the ExamPrepChatPage component in the app/dashboard/student/chat/exam-prep/page.tsx file. The changes include improving code organization, removing unused code, and updating the function signature to remove unnecessary parameters. This refactor enhances the maintainability and readability of the code for the exam preparation chat page.
…chat

This commit adds a stop state to the ChatInput component in the ExamPrepChat.tsx file. The stop state is used to prevent further input submission when set to true. This enhancement improves the user experience by disabling the input field and preventing additional messages from being sent after a certain condition is met.
…xam preparation chat

This commit refactors the code in the exam preparation chat feature to improve code organization and remove unused components. The changes enhance the maintainability and readability of the code, resulting in a more efficient and streamlined chat functionality.
This commit adds the ExamFeedbackCard component to the student chat feature. The component is responsible for displaying the feedback for an exam, including the overall score, overall feedback, and individual question and answer feedback. This addition enhances the user experience by providing a clear and organized view of the exam feedback.
This commit adds the StudentCreateNewChat component to the project. The component is responsible for creating a new chat for students. It includes functionality to handle the creation of a chat, display a loading skeleton, and navigate to the newly created chat. This addition enhances the user experience and provides a seamless way for students to start new chats.
This commit adds the MDXEditorMethods import and ref to the ChatInput component in the Common/chat/chat.tsx file. The MDXEditorMethods interface is used for handling markdown in the ChatInput component. This addition enhances the functionality of the ChatInput component and improves the user experience.
This commit adds a new component, Sonner, for displaying toast notifications. The Sonner component uses the next-themes package to dynamically set the theme based on the user's preference. It also includes custom styling options for the toast elements. This addition enhances the user experience by providing a visually appealing and customizable way to display notifications.
This commit updates the size and styling of the resizable handle in the Resizable component. The height and width of the handle are increased to improve the usability and visibility. Additionally, the border color and background color are adjusted for a more cohesive design. This change enhances the user experience and provides a more intuitive resizing feature.
This commit adds the AllCoursesCard component, which is responsible for displaying all available courses to the user. The component fetches the courses from the database and renders a CourseCard for each course. It also includes an EnrollButton for users to enroll in a course if they haven't already. This addition enhances the user experience by providing a comprehensive view of all courses and simplifying the enrollment process.
This commit adds loading components for the chat and courses sections of the dashboard. The loading components display skeleton screens while the actual content is being fetched from the server. This addition improves the user experience by providing visual feedback and reducing perceived loading times.
This commit adds metadata objects to the course and dashboard layout components. The metadata objects include title and description properties to provide better SEO and accessibility for the pages. This addition improves the overall quality of the application and enhances the user experience.
This commit adds metadata objects to the lesson and course page components. The metadata objects include title and description properties to provide better SEO and accessibility for the pages. This addition improves the overall quality of the application and enhances the user experience.
This commit refactors the loading components in the dashboard and student pages to improve their layout and functionality. The changes include removing unnecessary code and adjusting the grid layout to ensure proper alignment. This refactor enhances the user experience by providing a more streamlined and visually appealing loading experience.
This commit refactors the student page component by removing unused code and improving the layout. The unnecessary code related to user authentication has been removed, as it was causing errors. Additionally, the layout of the page has been adjusted to ensure proper alignment and spacing. This refactor enhances the code quality and improves the user experience on the student page.
refactor: Add DarkThemeToggle component to DashboardHeader

This commit adds the DarkThemeToggle component to the DashboardHeader, allowing users to toggle between light and dark themes. The DarkThemeToggle component is placed within the existing div container, ensuring proper alignment and spacing. This refactor enhances the user experience by providing a customizable theme option for the dashboard.
This commit refactors the loading components in the exam prep page, dashboard, and student pages to improve their layout and remove unused code. The changes include adjusting the grid layout, removing unnecessary code, and ensuring proper alignment and spacing. This refactor enhances the user experience by providing a more streamlined and visually appealing loading experience across multiple pages.
@guillermoscript guillermoscript merged commit 858b418 into master Jul 7, 2024
1 of 3 checks passed
@guillermoscript guillermoscript deleted the 65-exam-prep-integrate-practice-quizzes-flashcards-and-study-guides branch July 7, 2024 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Sub-task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Exam Prep] Integrate Practice Quizzes, Flashcards, and Study Guides
1 participant