diff --git a/web-common/src/features/dashboards/dimension-table/DimensionDisplay.svelte b/web-common/src/features/dashboards/dimension-table/DimensionDisplay.svelte
index 300cd95afa9..f158c205844 100644
--- a/web-common/src/features/dashboards/dimension-table/DimensionDisplay.svelte
+++ b/web-common/src/features/dashboards/dimension-table/DimensionDisplay.svelte
@@ -6,6 +6,7 @@
* to be displayed in explore
*/
import { getStateManagers } from "@rilldata/web-common/features/dashboards/state-managers/state-managers";
+ import { eventBus } from "@rilldata/web-common/lib/event-bus/event-bus";
import {
createQueryServiceMetricsViewAggregation,
type MetricsViewSpecDimensionV2,
@@ -14,19 +15,18 @@
type V1MetricsViewSpec,
type V1TimeRange,
} from "@rilldata/web-common/runtime-client";
- import { getDimensionFilterWithSearch } from "./dimension-table-utils";
- import DimensionHeader from "./DimensionHeader.svelte";
- import DimensionTable from "./DimensionTable.svelte";
- import { eventBus } from "@rilldata/web-common/lib/event-bus/event-bus";
- import { sanitiseExpression } from "../stores/filter-utils";
- import { mergeDimensionAndMeasureFilter } from "../filters/measure-filters/measure-filter-utils";
- import { getFiltersForOtherDimensions } from "../selectors";
- import type { DimensionThresholdFilter } from "../stores/metrics-explorer-entity";
import { runtime } from "@rilldata/web-common/runtime-client/runtime-store";
+ import { getComparisonRequestMeasures } from "../dashboard-utils";
+ import { mergeDimensionAndMeasureFilter } from "../filters/measure-filters/measure-filter-utils";
import { getSort } from "../leaderboard/leaderboard-utils";
+ import { getFiltersForOtherDimensions } from "../selectors";
import { getMeasuresForDimensionTable } from "../state-managers/selectors/dashboard-queries";
- import { getComparisonRequestMeasures } from "../dashboard-utils";
import { dimensionSearchText } from "../stores/dashboard-stores";
+ import { sanitiseExpression } from "../stores/filter-utils";
+ import type { DimensionThresholdFilter } from "../stores/metrics-explorer-entity";
+ import DimensionHeader from "./DimensionHeader.svelte";
+ import DimensionTable from "./DimensionTable.svelte";
+ import { getDimensionFilterWithSearch } from "./dimension-table-utils";
const queryLimit = 250;
@@ -40,6 +40,7 @@
export let visibleMeasureNames: string[];
export let timeControlsReady: boolean;
export let dimension: MetricsViewSpecDimensionV2;
+ export let hideStartPivotButton = false;
const {
selectors: {
@@ -207,6 +208,7 @@
isFetching={$sortedQuery?.isFetching}
bind:searchText={$dimensionSearchText}
onToggleSearchItems={toggleAllSearchItems}
+ {hideStartPivotButton}
/>
diff --git a/web-common/src/features/dashboards/dimension-table/DimensionHeader.svelte b/web-common/src/features/dashboards/dimension-table/DimensionHeader.svelte
index 261e6242b68..dd6ae82ed0b 100644
--- a/web-common/src/features/dashboards/dimension-table/DimensionHeader.svelte
+++ b/web-common/src/features/dashboards/dimension-table/DimensionHeader.svelte
@@ -34,6 +34,7 @@
export let isRowsEmpty = true;
export let searchText: string;
export let onToggleSearchItems: () => void;
+ export let hideStartPivotButton = false;
const exportDash = createQueryServiceExport();
@@ -219,14 +220,16 @@
exploreName={$exploreName}
/>
{/if}
-
+ {#if !hideStartPivotButton}
+
+ {/if}
diff --git a/web-common/src/features/dashboards/time-dimension-details/TDDHeader.svelte b/web-common/src/features/dashboards/time-dimension-details/TDDHeader.svelte
index 1af19220913..ba72753cfd6 100644
--- a/web-common/src/features/dashboards/time-dimension-details/TDDHeader.svelte
+++ b/web-common/src/features/dashboards/time-dimension-details/TDDHeader.svelte
@@ -15,25 +15,27 @@
import SelectAllButton from "@rilldata/web-common/features/dashboards/dimension-table/SelectAllButton.svelte";
import ReplacePivotDialog from "@rilldata/web-common/features/dashboards/pivot/ReplacePivotDialog.svelte";
import { getStateManagers } from "@rilldata/web-common/features/dashboards/state-managers/state-managers";
- import { metricsExplorerStore } from "@rilldata/web-common/features/dashboards/stores/dashboard-stores";
+ import {
+ dimensionSearchText,
+ metricsExplorerStore,
+ } from "@rilldata/web-common/features/dashboards/stores/dashboard-stores";
import ComparisonSelector from "@rilldata/web-common/features/dashboards/time-controls/ComparisonSelector.svelte";
import DelayedSpinner from "@rilldata/web-common/features/entity-management/DelayedSpinner.svelte";
import { TIME_GRAIN } from "@rilldata/web-common/lib/time/config";
import type { TimeGrain } from "@rilldata/web-common/lib/time/types";
import { slideRight } from "@rilldata/web-common/lib/transitions";
+ import {
+ V1ExportFormat,
+ createQueryServiceExport,
+ } from "@rilldata/web-common/runtime-client";
import { fly } from "svelte/transition";
+ import ExportMenu from "../../exports/ExportMenu.svelte";
import { featureFlags } from "../../feature-flags";
import { PivotChipType } from "../pivot/types";
- import type { TDDComparison } from "./types";
import TimeGrainSelector from "../time-controls/TimeGrainSelector.svelte";
import exportTDD from "./export-tdd";
- import ExportMenu from "../../exports/ExportMenu.svelte";
- import {
- createQueryServiceExport,
- V1ExportFormat,
- } from "@rilldata/web-common/runtime-client";
import { getTDDExportArgs } from "./getTDDExportArgs";
- import { dimensionSearchText } from "@rilldata/web-common/features/dashboards/stores/dashboard-stores";
+ import type { TDDComparison } from "./types";
export let exploreName: string;
export let dimensionName: string;
@@ -43,6 +45,7 @@
export let isRowsEmpty = false;
export let expandedMeasureName: string;
export let onToggleSearchItems: () => void;
+ export let hideStartPivotButton = false;
const { adminServer, exports } = featureFlags;
const exportDash = createQueryServiceExport();
@@ -262,15 +265,17 @@
{exploreName}
/>
{/if}
-
+ {#if !hideStartPivotButton}
+
+ {/if}
{/if}
diff --git a/web-common/src/features/dashboards/time-dimension-details/TimeDimensionDisplay.svelte b/web-common/src/features/dashboards/time-dimension-details/TimeDimensionDisplay.svelte
index 9a75e0557b0..45ba1faf383 100644
--- a/web-common/src/features/dashboards/time-dimension-details/TimeDimensionDisplay.svelte
+++ b/web-common/src/features/dashboards/time-dimension-details/TimeDimensionDisplay.svelte
@@ -1,6 +1,5 @@