-
Notifications
You must be signed in to change notification settings - Fork 233
Add generate common issues feature from conversations #904
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: main
Are you sure you want to change the base?
Add generate common issues feature from conversations #904
Conversation
- Add AI-powered analysis of existing conversations to suggest common issue categories - Create new tRPC mutation for generating issues from conversation patterns - Update common issues settings UI with generate button in empty state - Include loading states and proper error handling Co-Authored-By: Sahil Lavingia <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Updates to Preview Branch (devin/1754867311-generate-common-issues) ↗︎
Tasks are run on every commit but only new migration files are pushed.
View logs for this Workflow Run ↗︎. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
- Update generate button variant to match component type definitions - Resolves TypeScript compilation error in CI Co-Authored-By: Sahil Lavingia <[email protected]>
Add an approval step where someone can see the issues generated and edit/delete them And e2e tests |
- Add missing GenerateIssuesDialog import and usage in commonIssuesSetting.tsx - Improve TypeScript types for generated suggestions - Add comprehensive e2e tests covering approval dialog functionality - Complete integration of approval dialog with existing UI - Addresses user feedback on PR #904 for approval step and e2e tests Co-Authored-By: Sahil Lavingia <[email protected]>
- Keep generateSuggestions mutation for approval step implementation - Maintain separation between suggestion generation and issue creation - Preserve createFromSuggestions mutation for approval workflow Co-Authored-By: Sahil Lavingia <[email protected]>
- Remove unused X import from lucide-react - Resolves autofix CI failure Co-Authored-By: Sahil Lavingia <[email protected]>
Will this bounty go to Devin xD? |
@slavingia "Review & Testing Checklist for Human" Is this open for external contributors? |
It's OSS - anything is open! |
Add generate common issues feature from conversations
Summary
This PR adds a "Generate common issues" feature to the common issues settings page that appears in the empty state. The feature uses AI to analyze existing conversations in the mailbox and automatically suggests common issue categories that can be created.
Key Changes:
lib/ai/generateCommonIssues.ts
) that analyzes conversation subjects and recent messages to identify recurring patternstrpc/router/mailbox/issueGroups.generateFromConversations
) that handles the generation flow and creates database recordscommonIssuesSetting.tsx
) with a "Generate common issues" button in the empty state, including loading states and error handlingThe feature analyzes up to 50 recent conversations (both open and closed) and uses AI to identify 3-7 common issue categories based on recurring themes, technical problems, billing issues, and other patterns.
Review & Testing Checklist for Human
Diagram
Notes
runAIObjectQuery
pattern as existing AI features in the codebaseLink to Devin run: https://app.devin.ai/sessions/426a880d18a542b18983877207d521d9
Requested by: @slavingia