From 8d12bdb6d727bf3b32b5cef78894fbdc19c31245 Mon Sep 17 00:00:00 2001 From: Kyrylo Shmidt Date: Thu, 3 Oct 2024 14:29:28 +0200 Subject: [PATCH] Add openMainPanel to CHANGE_SCOPE message --- src/components/Dashboard/MetricsReport/index.tsx | 2 ++ src/utils/actions/changeScope.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/components/Dashboard/MetricsReport/index.tsx b/src/components/Dashboard/MetricsReport/index.tsx index 7b9393f75..d1b37b5d0 100644 --- a/src/components/Dashboard/MetricsReport/index.tsx +++ b/src/components/Dashboard/MetricsReport/index.tsx @@ -157,6 +157,7 @@ export const MetricsReport = () => { spanCodeObjectId }, environmentId, + openMainPanel: true, context: { event: SCOPE_CHANGE_EVENTS.METRICS_ENDPOINT_SELECTED, payload: { @@ -185,6 +186,7 @@ export const MetricsReport = () => { if (viewLevel === "services") { changeScope({ span: null, + openMainPanel: true, environmentId: selectedEnvironmentId ?? undefined, context: { event: SCOPE_CHANGE_EVENTS.METRICS_SERVICE_SELECTED, diff --git a/src/utils/actions/changeScope.ts b/src/utils/actions/changeScope.ts index 81e2bfa09..102979ddc 100644 --- a/src/utils/actions/changeScope.ts +++ b/src/utils/actions/changeScope.ts @@ -5,6 +5,7 @@ interface ChangeScopePayload { spanCodeObjectId: string; } | null; environmentId?: string; + openMainPanel?: boolean; context?: { event: string; payload?: Record;