Skip to content

feat(analytics): Add Amplitude tracking to project page filter#109431

Open
JonasBa wants to merge 4 commits intomasterfrom
feat/project-page-filter-amplitude-analytics
Open

feat(analytics): Add Amplitude tracking to project page filter#109431
JonasBa wants to merge 4 commits intomasterfrom
feat/project-page-filter-amplitude-analytics

Conversation

@JonasBa
Copy link
Member

@JonasBa JonasBa commented Feb 26, 2026

Add some extra analytics to the projectPageFilter so we can get a better idea of how many projects folks are selecting

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>
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 26, 2026
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>
@JonasBa JonasBa marked this pull request as ready for review February 26, 2026 05:03
@JonasBa JonasBa requested a review from a team as a code owner February 26, 2026 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant