Skip to content

Promote v0.8.0 to production - #223

Merged
VVoruganti merged 3 commits into
stablefrom
main
Jun 11, 2025
Merged

Promote v0.8.0 to production#223
VVoruganti merged 3 commits into
stablefrom
main

Conversation

@VVoruganti

Copy link
Copy Markdown
Collaborator

No description provided.

hyusap and others added 3 commits June 3, 2025 15:19
* test the streaming

* stuff i guess

* Refactor Chat Component and Enhance Message Handling

- Updated the Chat component to utilize a new ThinkingData structure for managing thought content and responses.
- Removed legacy thought data handling and integrated new state management for streaming messages.
- Enhanced message processing in the getMessages function to include thinking data for AI messages.
- Updated the AIMessage component to conditionally render a ThinkBox based on the presence of thinking data.
- Refactored the ThinkBox component to support both streaming and historical message content.
- Removed unused Typing component and cleaned up related code.

This refactor improves the clarity and efficiency of message handling in the chat interface.

* Enhance Chat Component with New UI Elements and Improved Functionality

- Added Radix UI components for alert dialogs, context menus, and dropdowns to enhance user interactions.
- Integrated the Sonner library for toast notifications, replacing SweetAlert2 for better user feedback.
- Refactored the Chat component to include responsive design features and improved state management for mobile views.
- Updated the Sidebar component to support conversation editing and deletion with confirmation dialogs.
- Enhanced file upload handling and added new UI elements for better user experience in message composition.
- Improved overall code structure and readability by removing unused imports and optimizing component logic.

These changes significantly improve the usability and responsiveness of the chat interface.

* Refactor Sidebar Component to Use Dropdown Menu for Settings

- Replaced the previous settings button implementation with a DropdownMenu for improved user experience.
- Integrated new dropdown components from the UI library to streamline the settings and sign-out options.
- Removed unused state management related to the settings menu, enhancing code clarity and performance.

These changes enhance the Sidebar's functionality and maintainability.

* Refactor Chat and Message Handling for Improved File Uploads and Parsing

- Updated the Chat component to enhance mobile responsiveness and improve state management for sidebar visibility.
- Modified message processing to include file uploads, appending file names to messages when applicable.
- Refactored UserMessage component to display uploaded files using a new FileUpload component.
- Replaced legacy XML parsing with a new delimiter-based approach for processing thought data, improving clarity and efficiency.
- Removed the StreamingXmlParser as part of the transition to the new parsing method.

These changes enhance the user experience by streamlining message handling and improving file upload functionality.

* fix build errors

* clear out debugging

* Update CLAUDE.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Refactor Layout Components to Manage Header Visibility

- Removed the Header component from the RootLayout to streamline the layout structure.
- Added the Header component to the SettingsLayout for consistent navigation across settings pages.

These changes improve the layout organization and enhance user navigation experience in the settings section.

* Remove Testing Page Component

- Deleted the Testing page component along with its associated logic and styles. This cleanup helps streamline the codebase by removing unused components and improving maintainability.

* Refactor File Selection Handling in Chat Component

- Updated the Chat component to clear selected files immediately after appending them to the message, preventing re-attachment.
- Ensured selected files are cleared in both successful and error cases to maintain consistent state management.

These changes enhance the user experience by improving file handling during message composition.

* Refactor Supabase Client Initialization in Chat Component

- Moved the Supabase client and fetchUser function outside the Chat component to prevent recreation on every render, improving performance and efficiency.
- This change enhances the overall responsiveness of the Chat component by optimizing user data fetching.

* Add Hydration State Management to Chat Component

- Introduced a new state variable, isHydrated, to track the hydration status of the Chat component.
- Updated the rendering logic to conditionally display the user's full name based on the hydration state, enhancing the user experience during initial loading.

These changes improve the responsiveness and clarity of user information in the chat interface.

* Improve PDF Query Handling in AI Response Function

- Updated the condition for checking the PDF query to use `trim()` and `toLowerCase()` methods, ensuring more robust handling of user input.
- This change prevents potential issues with empty or improperly formatted PDF queries, enhancing the reliability of the response generation process.

* Refactor Thought Processing in AI Response Function

- Enhanced the handling of thought segments by splitting the input on the delimiter and processing each segment individually.
- Improved the logic to update the current section after each delimiter, ensuring more accurate state management during response generation.
- This refactor increases the clarity and efficiency of the thought processing mechanism, leading to better response handling.

* Enhance Tooltip Component to Support Children Prop

- Updated the Tooltip and TooltipTrigger components to accept and render children, allowing for more flexible content within tooltips.
- Adjusted the TooltipContent className to use a more appropriate syntax for the transform-origin property, improving styling consistency.

These changes enhance the usability and customization of the tooltip components.

* Refactor Thinking Data Update Logic in Chat Component

- Introduced a new helper function, updateThinkingData, to streamline the process of updating thinking data based on user input.
- Replaced inline logic for updating thinking data in message handling with calls to the new helper function, improving code readability and maintainability.

These changes enhance the clarity of the Chat component's logic and promote code reuse.

* Enhance AIMessage Component with Clipboard Functionality

- Added state management for clipboard copy status, allowing users to see a confirmation when content is copied.
- Updated the copy button's appearance and tooltip text based on the copy status, improving user feedback.
- Refactored the copy to clipboard function to be asynchronous, ensuring a smoother user experience.

These changes enhance the interactivity and usability of the AIMessage component.

* Refactor Chat Component for Improved Readability and Functionality

- Reformatted the updateThinkingData function for better readability by aligning conditional logic.
- Added an onNewChat handler to the ResizablePanel component to manage mobile sidebar state more effectively.
- Cleaned up unnecessary whitespace in the main rendering logic, enhancing code clarity.

These changes improve the maintainability and user experience of the Chat component.

* Enhance File Upload Functionality in Chat Component

- Integrated a new FileUploadComponent to streamline file display and management within the Chat component.
- Added a helper function to parse file details, improving the handling of uploaded files.
- Updated the rendering logic to utilize the new component, enhancing code clarity and user experience.

These changes improve the file handling capabilities and overall maintainability of the Chat component.

* colors and stuff

* fix weird colors

* Update package.json and pnpm-lock.yaml to include import-in-the-middle version 1.14.0

- Added import-in-the-middle as a dependency in package.json.
- Updated pnpm-lock.yaml to reflect the new version and its integrity hash.

These changes ensure the project uses the latest version of the import-in-the-middle package, improving compatibility and functionality.

* type the file

* move to turbopack for localdev

* fix: remove turbopack

* Update Sentry configuration to disable source maps

- Changed the Sentry configuration to use an object for sourcemaps, setting disable to true. This enhances security by preventing source maps from being included in client bundles.

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* ✨ Feat: arcjet bot protection

feat: arcject bot protection

* rate limit 8:1min

* 🔒️ WAF Protection and test scripts

WAF protection and test scripts

* coderabbit changes

* search list sourced from arcjet, toast for rate limit
@vercel

vercel Bot commented Jun 11, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tutor-gpt 🔄 Building (Inspect) Jun 11, 2025 8:53pm
tutor-gpt (staging) ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 11, 2025 8:53pm

@coderabbitai

coderabbitai Bot commented Jun 11, 2025

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants