mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-17 23:45:52 +08:00
chore: address comments
This commit is contained in:
parent
d838d83b12
commit
74e7a83172
@ -46,7 +46,7 @@ function Summary(): JSX.Element {
|
|||||||
const { pageSize, setPageSize } = usePageSize('metricsExplorer');
|
const { pageSize, setPageSize } = usePageSize('metricsExplorer');
|
||||||
const [currentPage, setCurrentPage] = useState(1);
|
const [currentPage, setCurrentPage] = useState(1);
|
||||||
const [orderBy, setOrderBy] = useState<OrderByPayload>(DEFAULT_ORDER_BY);
|
const [orderBy, setOrderBy] = useState<OrderByPayload>(DEFAULT_ORDER_BY);
|
||||||
const [heatmapView, sexHeatmapView] = useState<TreemapViewType>(
|
const [heatmapView, setHeatmapView] = useState<TreemapViewType>(
|
||||||
TreemapViewType.TIMESERIES,
|
TreemapViewType.TIMESERIES,
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -295,8 +295,9 @@ function Summary(): JSX.Element {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleSetHeatmapView = (view: TreemapViewType): void => {
|
const handleSetHeatmapView = (view: TreemapViewType): void => {
|
||||||
sexHeatmapView(view);
|
setHeatmapView(view);
|
||||||
logEvent(MetricsExplorerEvents.TreemapViewChanged, {
|
logEvent(MetricsExplorerEvents.TreemapViewChanged, {
|
||||||
|
[MetricsExplorerEventKeys.Tab]: 'summary',
|
||||||
[MetricsExplorerEventKeys.ViewType]: view,
|
[MetricsExplorerEventKeys.ViewType]: view,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -12,7 +12,7 @@ export enum MetricsExplorerEvents {
|
|||||||
PageSizeChanged = 'Metrics Explorer: Page size changed',
|
PageSizeChanged = 'Metrics Explorer: Page size changed',
|
||||||
OrderByApplied = 'Metrics Explorer: Order by applied',
|
OrderByApplied = 'Metrics Explorer: Order by applied',
|
||||||
MetricMetadataUpdated = 'Metrics Explorer: Metric metadata updated',
|
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',
|
InspectViewChanged = 'Metrics Explorer: Inspect view changed',
|
||||||
InspectQueryChanged = 'Metrics Explorer: Inspect query changed',
|
InspectQueryChanged = 'Metrics Explorer: Inspect query changed',
|
||||||
InspectPointClicked = 'Metrics Explorer: Inspect point clicked',
|
InspectPointClicked = 'Metrics Explorer: Inspect point clicked',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user