From a42e43b37a07b9a2570cb237af738a3f462e31c2 Mon Sep 17 00:00:00 2001 From: Bartosz Prusinowski Date: Tue, 6 Feb 2024 09:23:10 +0100 Subject: [PATCH 1/2] chore: Remove layoutStep flag --- app/config-types.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/config-types.ts b/app/config-types.ts index 2bca6dd6d..60177e198 100644 --- a/app/config-types.ts +++ b/app/config-types.ts @@ -5,7 +5,6 @@ import * as t from "io-ts"; import React from "react"; import { Dimension, Measure, ObservationValue } from "@/domain/data"; -import { flag } from "@/flags"; const DimensionType = t.union([ t.literal("NominalDimension"), @@ -1192,7 +1191,7 @@ export const enableLayouting = ( | ConfiguratorStatePublishing | ConfiguratorStatePublished ) => { - return state.chartConfigs.length > 1 && flag("layoutStep"); + return state.chartConfigs.length > 1; }; const ConfiguratorStatePublishing = t.intersection([ From 9b694ed47eaee27d5513eff56aeec4a84c2a88da Mon Sep 17 00:00:00 2001 From: Bartosz Prusinowski Date: Tue, 6 Feb 2024 09:24:54 +0100 Subject: [PATCH 2/2] feat: Make Tall dashboard layout the default layout --- app/configurator/components/configurator.tsx | 2 +- app/configurator/components/layout-configurator.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/configurator/components/configurator.tsx b/app/configurator/components/configurator.tsx index 1273a9afe..c851bdb79 100644 --- a/app/configurator/components/configurator.tsx +++ b/app/configurator/components/configurator.tsx @@ -284,7 +284,7 @@ const LayoutingStep = () => { value: { type: "dashboard", meta: state.layout.meta, - layout: "vertical", + layout: "tall", activeField: undefined, }, }); diff --git a/app/configurator/components/layout-configurator.tsx b/app/configurator/components/layout-configurator.tsx index 0279bafef..0dead83d5 100644 --- a/app/configurator/components/layout-configurator.tsx +++ b/app/configurator/components/layout-configurator.tsx @@ -51,8 +51,8 @@ const LayoutLayoutConfigurator = () => { m: 2, }} > - +