A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
feat: bring Grid Layout out of experimental (#819)
Myles Scolnick870b6e92f851
diff --git a/frontend/src/components/editor/renderers/layout-select.tsx b/frontend/src/components/editor/renderers/layout-select.tsxindex 8c918d2f84..2f46ca692b 100644--- a/frontend/src/components/editor/renderers/layout-select.tsx+++ b/frontend/src/components/editor/renderers/layout-select.tsx@@ -13,16 +13,11 @@ import {} from "@/components/ui/select";import { LayoutType } from "./types";import { SquareIcon, Grid3x3Icon, ListIcon } from "lucide-react";-import { getFeatureFlag } from "@/core/config/feature-flag";export const LayoutSelect: React.FC = () => {const [layoutType, setLayoutType] = useAtom(layoutViewAtom);const layouts: LayoutType[] = ["vertical", "grid"];- if (!getFeatureFlag("layouts")) {- return null;- }-return (<Selectvalue={layoutType}diff --git a/frontend/src/core/config/config-schema.ts b/frontend/src/core/config/config-schema.tsindex 22e6c10cec..0feb36bbf0 100644--- a/frontend/src/core/config/config-schema.ts+++ b/frontend/src/core/config/config-schema.ts@@ -63,9 +63,7 @@ export const UserConfigSchema = zcell_output: "above",}),experimental: z- .object({- layouts: z.boolean().optional(),- })+ .object({})// Pass through so that we don't remove any extra keys that the user has added..passthrough().default({}),diff --git a/frontend/src/core/config/feature-flag.ts b/frontend/src/core/config/feature-flag.tsindex 40cbe2491e..9dd99122e2 100644--- a/frontend/src/core/config/feature-flag.ts+++ b/frontend/src/core/config/feature-flag.ts@@ -2,16 +2,12 @@import { getUserConfig } from "./config";+// eslint-disable-next-line @typescript-eslint/no-empty-interfaceexport interface ExperimentalFeatures {- /**- * Allows the user to switch between different layouts.- */- layouts: boolean;+ // None yet}-const defaultValues: ExperimentalFeatures = {- layouts: false,-};+const defaultValues: ExperimentalFeatures = {};export function getFeatureFlag<T extends keyof ExperimentalFeatures>(feature: T,