chore: address comments

This commit is contained in:
amlannandy 2025-05-31 14:00:48 +07:00
parent d838d83b12
commit 74e7a83172
2 changed files with 4 additions and 3 deletions

View File

@ -46,7 +46,7 @@ function Summary(): JSX.Element {
const { pageSize, setPageSize } = usePageSize('metricsExplorer');
const [currentPage, setCurrentPage] = useState(1);
const [orderBy, setOrderBy] = useState<OrderByPayload>(DEFAULT_ORDER_BY);
const [heatmapView, sexHeatmapView] = useState<TreemapViewType>(
const [heatmapView, setHeatmapView] = useState<TreemapViewType>(
TreemapViewType.TIMESERIES,
);
@ -295,8 +295,9 @@ function Summary(): JSX.Element {
};
const handleSetHeatmapView = (view: TreemapViewType): void => {
sexHeatmapView(view);
setHeatmapView(view);
logEvent(MetricsExplorerEvents.TreemapViewChanged, {
[MetricsExplorerEventKeys.Tab]: 'summary',
[MetricsExplorerEventKeys.ViewType]: view,
});
};

View File

@ -12,7 +12,7 @@ export enum MetricsExplorerEvents {
PageSizeChanged = 'Metrics Explorer: Page size changed',
OrderByApplied = 'Metrics Explorer: Order by applied',
MetricMetadataUpdated = 'Metrics Explorer: Metric metadata updated',
OpenInExplorerClicked = 'Metric Explorer: Open in explorer clicked',
OpenInExplorerClicked = 'Metrics Explorer: Open in explorer clicked',
InspectViewChanged = 'Metrics Explorer: Inspect view changed',
InspectQueryChanged = 'Metrics Explorer: Inspect query changed',
InspectPointClicked = 'Metrics Explorer: Inspect point clicked',