listen button + settings tab analytics #1491
Conversation
📝 WalkthroughWalkthroughAdds userId-scoped analytics to desktop UI interactions: recording controls and microphone selection in the Listen Button, plus settings tab switches. Retrieves userId from useHypr and emits analytics events with distinct_id on specific actions without altering public interfaces. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor U as User
participant LB as ListenButton UI
participant AC as Analytics
rect rgb(238,246,255)
note over U,LB: Recording controls
U->>LB: Click Mic Mute
alt Muting
LB->>AC: track("mic_muted", { distinct_id: userId })
else Unmuting
LB--xAC: no event
end
U->>LB: Open Mic Options
LB->>AC: track("mic_options_opened", { distinct_id: userId })
U->>LB: Select Mic Device
LB->>AC: track("mic_device_selected", { distinct_id: userId, deviceId })
end
sequenceDiagram
autonumber
actor U as User
participant ST as Settings Page
participant AC as Analytics
rect rgb(243,255,243)
note over U,ST: Tab navigation
U->>ST: Switch Tab (general | ai-llm | ai-stt)
ST->>AC: track("<tab_event>", { distinct_id: userId })
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (1)**/*.{js,ts,tsx,rs}⚙️ CodeRabbit configuration file
Files:
🧬 Code graph analysis (2)apps/desktop/src/routes/app.settings.tsx (1)
apps/desktop/src/components/editor-area/note-header/listen-button.tsx (2)
⏰ 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). (2)
🔇 Additional comments (9)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. 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 |
No description provided.