Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
empty pages panel behing feature flag
Roman Pominov8ccad888f94f
diff --git a/apps/designer/app/designer/features/sidebar-left/panels/index.ts b/apps/designer/app/designer/features/sidebar-left/panels/index.tsindex db4a8af5dd..72410a298c 100644--- a/apps/designer/app/designer/features/sidebar-left/panels/index.ts+++ b/apps/designer/app/designer/features/sidebar-left/panels/index.ts@@ -1,5 +1,6 @@import * as components from "./components";import * as navigator from "./navigator";import * as assets from "./assets";+import * as pages from "./pages";-export const panels = { components, navigator, assets } as const;+export const panels = { components, navigator, assets, pages } as const;diff --git a/apps/designer/app/designer/features/sidebar-left/panels/pages/index.tsx b/apps/designer/app/designer/features/sidebar-left/panels/pages/index.tsxnew file mode 100644index 0000000000..241e277922--- /dev/null+++ b/apps/designer/app/designer/features/sidebar-left/panels/pages/index.tsx@@ -0,0 +1,22 @@+// @todo: consider moving code from index.tsx to separate files similar to other panels++import { type Publish } from "~/shared/pubsub";+import { StackIcon } from "@webstudio-is/icons";+import type { TabName } from "../../types";+import { Header } from "../../lib/header";++type TabContentProps = {+ onSetActiveTab: (tabName: TabName) => void;+ publish: Publish;+};++export const TabContent = ({ onSetActiveTab }: TabContentProps) => {+ return (+ <>+ <Header title="Pages" onClose={() => onSetActiveTab("none")} />+ </>+ );+};++// @todo: proper icon+export const icon = <StackIcon />;diff --git a/apps/designer/app/designer/features/sidebar-left/sidebar-left.tsx b/apps/designer/app/designer/features/sidebar-left/sidebar-left.tsxindex 03f82bd628..201355ad6b 100644--- a/apps/designer/app/designer/features/sidebar-left/sidebar-left.tsx+++ b/apps/designer/app/designer/features/sidebar-left/sidebar-left.tsx@@ -38,6 +38,8 @@ export const SidebarLeft = ({ publish }: SidebarLeftProps) => {switch (panel) {case "assets":return isFeatureEnabled("assets");+ case "pages":+ return isFeatureEnabled("pages");case "navigator":return clientSettings.navigatorLayout === "docked";}diff --git a/apps/designer/app/shared/feature-flags/flags.ts b/apps/designer/app/shared/feature-flags/flags.tsindex 56e8f1d294..32814f8cb7 100644--- a/apps/designer/app/shared/feature-flags/flags.ts+++ b/apps/designer/app/shared/feature-flags/flags.ts@@ -1,2 +1,3 @@export const assets = false;export const example = false;+export const pages = false;