Skip to content

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.

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.tsx
index 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 (
<Select
value={layoutType}
diff --git a/frontend/src/core/config/config-schema.ts b/frontend/src/core/config/config-schema.ts
index 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 = z
cell_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.ts
index 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-interface
export 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,