-
Notifications
You must be signed in to change notification settings - Fork 204
feat(analytics): Add Ask chat usage metrics to analytics dashboard #736
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
feat(analytics): Add Ask chat usage metrics to analytics dashboard #736
Conversation
WalkthroughAdds Ask chat usage metrics to the analytics dashboard by integrating chat creation audit logging, extending analytics queries to aggregate chat events, and refactoring the analytics UI to display metrics with period-based filtering (daily/weekly/monthly). Updates documentation and audit action types accordingly. Changes
Sequence DiagramsequenceDiagram
participant User
participant ChatAction as Chat Action<br/>(createChat)
participant AuditService as Audit Service
participant Database as Database
participant AnalyticsQuery as Analytics Query
participant Dashboard as Analytics Dashboard
User->>ChatAction: Create Ask chat
ChatAction->>AuditService: Log chat creation
AuditService->>Database: Store user.created_ask_chat audit entry
Dashboard->>AnalyticsQuery: Fetch metrics for period
AnalyticsQuery->>Database: Query aggregated metrics<br/>(active_users, code_searches,<br/>navigations, ask_chats)
Database-->>AnalyticsQuery: Return aggregated data
AnalyticsQuery-->>Dashboard: Return analytics response
Dashboard->>Dashboard: Filter data by selected period<br/>(daily/weekly/monthly)
Dashboard-->>User: Display metrics with Ask Chats
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧹 Recent nitpick comments
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (4)
📒 Files selected for processing (8)
🧰 Additional context used📓 Path-based instructions (1)CHANGELOG.md📄 CodeRabbit inference engine (.cursor/rules/cloud_agent.mdc)
Files:
🧬 Code graph analysis (1)packages/web/src/features/chat/actions.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (12)
✏️ Tip: You can disable this entire section by setting 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 |
This comment has been minimized.
This comment has been minimized.
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Summary by CodeRabbit
New Features
Documentation
Changes
✏️ Tip: You can customize this high-level summary in your review settings.