-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Feature] Comments & mentions in chats #702
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
base: dev
Are you sure you want to change the base?
Conversation
|
@CREDO23 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. |
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.
Review by RecurseML
🔍 Review performed on 0d2a2f8..4792fb7
| Severity | Location | Issue | Delete |
|---|---|---|---|
| surfsense_backend/app/services/chat_comments_service.py:593 | Lazy loading error with async session |
✅ Files analyzed, no issues (7)
• docs/comments-implementation-guide.md
• surfsense_backend/alembic/versions/66_add_chat_comments_table.py
• surfsense_backend/alembic/versions/67_add_chat_comment_mentions_table.py
• surfsense_backend/app/db.py
• surfsense_backend/app/routes/__init__.py
• surfsense_backend/app/routes/chat_comments_routes.py
• surfsense_backend/app/utils/chat_comments.py
c0ce7ab to
9d11446
Compare
Description
Change Type
Testing Performed
Checklist
High-level PR Summary
This PR implements a Google Docs-style commenting system for shared AI chat responses, allowing users to add comments and replies to AI-generated messages with @mention support. The implementation includes database migrations for
chat_commentsandchat_comment_mentionstables, new permissions (COMMENTS_CREATE,COMMENTS_READ,COMMENTS_DELETE), and a complete backend API supporting comment CRUD operations, mention parsing and rendering, and read/unread tracking. Comments are limited to AI responses only and support one level of nesting (comments can have replies, but replies cannot have further replies). The feature includes proper permission checks based on search space membership and role-based access control.⏱️ Estimated Review Time: 30-90 minutes
💡 Review Order Suggestion
docs/comments-implementation-guide.mdsurfsense_backend/alembic/versions/66_add_chat_comments_table.pysurfsense_backend/alembic/versions/67_add_chat_comment_mentions_table.pysurfsense_backend/app/db.pysurfsense_backend/app/schemas/chat_comments.pysurfsense_backend/app/utils/chat_comments.pysurfsense_backend/app/services/chat_comments_service.pysurfsense_backend/app/routes/chat_comments_routes.pysurfsense_backend/app/routes/__init__.py