Analytics: track tag filter toggle with grid_filter_toggled PostHog event#1769
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughChangesTag selection analytics
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant useTags
participant toggleTagSelection
participant updateSelected
participant trackEvent
useTags->>toggleTagSelection: toggle tag selection
toggleTagSelection->>updateSelected: persist updated Set
toggleTagSelection->>trackEvent: emit grid_filter_toggled
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
❌ Fast Track: checks did not pass
To run the guardrails locally, from Reflects |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ea7e986dab
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
/review |
What has changed and why?
Extracts tag toggle logic into a pure
toggleTagSelectionfunction and fires agrid_filter_toggledPostHog event whenever the user selects or deselects a tag in the grid filter panel.How has it been tested?
Unit tests
Did you update CHANGELOG.md?
Summary by CodeRabbit
usePostHoghook entry point for sharing PostHog tracking in tags behavior.