feat(analytics): Add Amplitude tracking to project page filter#109431
Open
feat(analytics): Add Amplitude tracking to project page filter#109431
Conversation
Track open, apply, and cancel interactions on the project page filter dropdown, and fix the `multi` field in the update event to accurately reflect whether more than one project was selected. New events: - projectselector.open: fires when the dropdown is opened - projectselector.apply: fires on Apply button click (with count/multi) - projectselector.cancel: fires on Cancel button click Also fixes projectselector.update where `multi` was hardcoded to `true` regardless of the actual selection count. Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
…toggle action projectselector.multi_button_clicked was defined in the event type and map but never fired. Wire it up via onSectionToggle so it fires when the "Select All"/"Unselect All" toggle button on the "My Projects" section is clicked. Also fix the action field in projectselector.toggle: it was comparing the new staged value against the committed (URL) value, which produces incorrect 'added'/'removed' results when the user has already staged other changes. Now compares against the previous staged value. Co-Authored-By: Claude <noreply@anthropic.com>
…eFilter Move stagedValue useState declaration before handleChange/onToggle to resolve TS2448/TS2454 errors from the native TypeScript checker. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add some extra analytics to the projectPageFilter so we can get a better idea of how many projects folks are selecting