Conversation
- Added tracking for automation creation, updates, deletions, and trigger modifications, including success and failure events. - Implemented event tracking in the automation creation process, including chat approval and rejection scenarios. - Updated the instrumentation client to ensure correct typing for PostHog integration. - Refactored existing mutation atoms to include tracking calls for automation-related actions, improving analytics capabilities.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Description
Motivation and Context
FIX #
Screenshots
API Changes
Change Type
Testing Performed
Checklist
High-level PR Summary
This PR introduces comprehensive analytics tracking for automation lifecycle events throughout the application. It adds tracking for automation creation, updates, deletions, and trigger modifications (both success and failure cases), implements event tracking in the chat-based automation creation flow (approval, rejection, and draft editing), and fixes a TypeScript typing issue in the PostHog instrumentation client. All tracking calls use a new set of event functions defined in
lib/posthog/events.tsand are integrated into existing mutation handlers and UI components without changing core business logic.⏱️ Estimated Review Time: 30-90 minutes
💡 Review Order Suggestion
surfsense_web/lib/posthog/events.tssurfsense_web/instrumentation-client.tssurfsense_web/atoms/automations/automations-mutation.atoms.tssurfsense_web/components/tool-ui/automation/create-automation.tsx