Aggregation: Add aggregation FE pings
Created by: vovakulikov
Closes https://github.com/sourcegraph/sourcegraph/issues/39922
Background
Aggregation Pings RFC Figma design with pings spec
In this PR we add pings event for the aggregation project. To be more specific this PR adds
-
GroupResultsCollapseSection
andGroupResultsOpenSection
whenever we open/close aggregation panel in the sidebar -
GroupResults[$filter-name]
whenever users click on aggregation controls buttons (from the sidepanel and from the full UI aggregation mode)GroupResultsREPO
GroupResultsPATH
GroupResultsAUTHOR
-
GroupResultsCAPTURE_GROUP
-GroupResults[$filter-name]DisabledHover
simular to above events about aggregation modes. Whenever user hovers any disable aggregation button.
-
GroupResultsChartBarClick
whenever user clicks one of the chart bars -
GroupResultsChartBarHover
whenever user hovers one of the chart bars -
GroupResultsExpandViewOpen
whenever users clicks expand button (button that leads to the full aggregation UI) -
GroupResultsInfoIconHover
whenever user hovers info icon in the sidebar panel section heading -
GroupResultsExpandedViewCollapse
whenever user clicks on the collapse button in the full UI mode.
Event that are not in this PR because of we cut of scope or they are no longer needed
-
GroupResultsExpandedViewInfoIconHover
we changed our layout and there is no longer tooltip icon (just plain text below the heading see design) -
GroupResultsExpandedView[$filter-name]
instead we useGroupResults[$filter-name]
withuiMode
body variableresultsScreen
-
GroupResultsExpandedViewChartBarClick
instead we useGroupResultsChartBarClick
with uiModebody variable
resultsScreen` -
GroupResultsExpandedViewChartBarHover
also don't use and useGroupResultsChartBarHover
instead -
GroupResultsExpandedViewListRowClick
andGroupResultsExpandedViewListRowHover
out of scope. List items are not clickable in the v1 of aggregation UI. -
GroupResultsSaveInsightDisabledHover
andGroupResultsExpandedViewSaveInsight
out of scope -
GroupResultsMemoryHitHover
out of scope we don't have any info to show such information in the UI.
TODO
-
Add pings events on the frontend -
Update BigQuery schema -
Add newly added pings in the ping documentation
Test plan
- Make sure that all pings that are listed above in the background section is sent by the frontend with proper event body
App preview:
Check out the client app preview documentation to learn more.