From 5d8b1966fc882b54d410917e927fba919baab3b0 Mon Sep 17 00:00:00 2001 From: Eric P Green Date: Fri, 23 Feb 2024 17:36:26 -0800 Subject: [PATCH] Add feature flag to enable the Data Viewer in Rill Cloud --- web-common/src/features/dashboards/workspace/Dashboard.svelte | 4 +++- web-common/src/features/feature-flags.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web-common/src/features/dashboards/workspace/Dashboard.svelte b/web-common/src/features/dashboards/workspace/Dashboard.svelte index 4b641c6c945..5787cd86193 100644 --- a/web-common/src/features/dashboards/workspace/Dashboard.svelte +++ b/web-common/src/features/dashboards/workspace/Dashboard.svelte @@ -28,6 +28,8 @@ export let metricViewName: string; export let leftMargin = undefined; + const { cloudDataViewer } = featureFlags; + let exploreContainerWidth; $: metricsExplorer = useDashboardStore(metricViewName); @@ -154,7 +156,7 @@ {/if} - {#if isRillDeveloper && !expandedMeasureName && !showPivot} + {#if (isRillDeveloper || $cloudDataViewer) && !expandedMeasureName && !showPivot} {/if} {/if} diff --git a/web-common/src/features/feature-flags.ts b/web-common/src/features/feature-flags.ts index ca72679ca21..062acafc37f 100644 --- a/web-common/src/features/feature-flags.ts +++ b/web-common/src/features/feature-flags.ts @@ -16,6 +16,7 @@ const flags = { pivot: features?.includes("pivot") || false, alerts: features?.includes("alerts") || false, ai: true, + cloudDataViewer: features?.includes("data-viewer") || false, }; export type FeatureFlags = typeof flags;