fix: reduce thread fetch limit#1579
Conversation
… to 6 for improved performance - Updated thread fetching logic across multiple components to limit the number of threads fetched to 6 instead of 40. - Adjusted related placeholder data and chat display logic in the sidebar to reflect the new limit.
… components - Removed the isShared prop from ChatListItemProps interface and its usage in the Sidebar component to simplify the code and improve clarity.
|
@AnishSarkar22 is attempting to deploy a commit to the Rohan Verma's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThread fetch limits were reduced from 40 to 6 across sidebar components (LayoutDataProvider, AllChatsSidebar, onboarding-tour) and Sidebar's rendered chat list. Separately, ChatListItemProps was updated to remove ChangesThread Limit Reduction and Prop Cleanup
Estimated code review effort: 1 (Trivial) | ~5 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Motivation and Context
FIX #
Screenshots
API Changes
Change Type
Testing Performed
Checklist
High-level PR Summary
This PR reduces the thread fetch limit from 40 to 6 across multiple components to optimize sidebar performance. The changes update query parameters in the data provider, sidebar components, and onboarding tour to fetch only 6 recent threads instead of 40, and also removes an unused
isSharedprop from theChatListItemcomponent.⏱️ Estimated Review Time: 5-15 minutes
💡 Review Order Suggestion
surfsense_web/components/layout/providers/LayoutDataProvider.tsxsurfsense_web/components/layout/ui/sidebar/Sidebar.tsxsurfsense_web/components/layout/ui/sidebar/AllChatsSidebar.tsxsurfsense_web/components/onboarding-tour.tsxsurfsense_web/components/layout/ui/sidebar/ChatListItem.tsxSummary by CodeRabbit