-
Notifications
You must be signed in to change notification settings - Fork 2.4k
cherry pick : projects + performance enhancement #6701
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
* decouple successfully * only show movable projects for project items * handle delete covnersations when projects is removed * fix leftpanel assignemtn * fix lint
* fix: thread item overfetching * chore: cleanup left over import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements projects/folders functionality enhancement and addresses a performance issue by preventing overfetching of thread messages during initial load.
- Added comprehensive projects service architecture with localStorage-based storage
- Removed automatic message fetching for all threads during app initialization to improve performance
- Enhanced project deletion flow with thread count awareness and starred thread warnings
Reviewed Changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| web-app/src/services/projects/types.ts | Defines interfaces for projects service operations |
| web-app/src/services/projects/default.ts | Implements localStorage-based projects service |
| web-app/src/services/projects/web.ts | Web-specific projects service extending default |
| web-app/src/services/index.ts | Integrates projects service into service hub |
| web-app/src/hooks/useThreadManagement.ts | Refactored to use projects service instead of zustand persistence |
| web-app/src/containers/dialogs/DeleteProjectDialog.tsx | Enhanced with thread statistics and improved messaging |
| web-app/src/providers/DataProvider.tsx | Removed automatic message fetching to fix performance issue |
| web-app/src/providers/AuthProvider.tsx | Removed automatic message fetching to fix performance issue |
| web-app/src/services/threads/default.ts | Added metadata spreading for thread operations |
| web-app/src/locales/en/common.json | Added improved delete dialog messages |
| web-app/src/routes/project/index.tsx | Updated to use async project operations |
| web-app/src/routes/project/$projectId.tsx | Added currentProjectId prop to ThreadList |
| web-app/src/containers/ThreadList.tsx | Enhanced project filtering logic |
| web-app/src/containers/LeftPanel.tsx | Updated to use async project operations |
| web-app/src/containers/ChatInput.tsx | Simplified project assignment logic |
| web-app/src/hooks/useChat.ts | Added project metadata handling for new threads |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.




Describe Your Changes
Fixes Issues
Self Checklist