Skip to content

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.

chore: Remove old feature flags (#3147)

Oleg Isonenc1b00787f8db
diff --git a/apps/builder/app/builder/features/project-settings/project-settings.tsx b/apps/builder/app/builder/features/project-settings/project-settings.tsx
index 698d90a289..7bee219d42 100644
--- a/apps/builder/app/builder/features/project-settings/project-settings.tsx
+++ b/apps/builder/app/builder/features/project-settings/project-settings.tsx
@@ -16,17 +16,12 @@ import { $isProjectSettingsOpen } from "~/shared/nano-states/seo";
import { SectionGeneral } from "./section-general";
import { SectionRedirects } from "./section-redirects";
import { useState } from "react";
-import { isFeatureEnabled } from "@webstudio-is/feature-flags";
import { SectionMarketplace } from "./section-marketplace";
import { leftPanelWidth, rightPanelWidth } from "./utils";
const focusOutline = focusRingStyle();
-const sectionNames = ["General", "Redirects"];
-
-if (isFeatureEnabled("marketplace")) {
- sectionNames.push("Marketplace");
-}
+const sectionNames = ["General", "Redirects", "Marketplace"];
type SectionName = (typeof sectionNames)[number];
@@ -103,8 +98,7 @@ export const ProjectSettingsView = ({
<Grid gap={2} css={{ my: theme.spacing[5] }}>
{currentSection === "General" && <SectionGeneral />}
{currentSection === "Redirects" && <SectionRedirects />}
- {currentSection === "Marketplace" &&
- isFeatureEnabled("marketplace") && <SectionMarketplace />}
+ {currentSection === "Marketplace" && <SectionMarketplace />}
<div />
</Grid>
</ScrollArea>
diff --git a/apps/builder/app/builder/features/sidebar-left/panels/index.ts b/apps/builder/app/builder/features/sidebar-left/panels/index.ts
index 2ae7e0706e..298beb2642 100644
--- a/apps/builder/app/builder/features/sidebar-left/panels/index.ts
+++ b/apps/builder/app/builder/features/sidebar-left/panels/index.ts
@@ -5,7 +5,6 @@ import * as pages from "./pages";
import * as marketplace from "./marketplace";
import type { TabContentProps, TabName } from "../types";
import type { ReactNode } from "react";
-import { isFeatureEnabled } from "@webstudio-is/feature-flags";
import type { IconComponent } from "@webstudio-is/icons";
type PanelExports = {
@@ -19,8 +18,5 @@ export const panels = new Map<TabName, PanelExports>([
["pages", pages],
["navigator", navigator],
["assets", assets],
+ ["marketplace", marketplace],
]);
-
-if (isFeatureEnabled("marketplace")) {
- panels.set("marketplace", marketplace);
-}
diff --git a/apps/builder/app/builder/features/sidebar-left/panels/marketplace/overview.tsx b/apps/builder/app/builder/features/sidebar-left/panels/marketplace/overview.tsx
index 579240114b..d8263bffb6 100644
--- a/apps/builder/app/builder/features/sidebar-left/panels/marketplace/overview.tsx
+++ b/apps/builder/app/builder/features/sidebar-left/panels/marketplace/overview.tsx
@@ -17,7 +17,7 @@ import type { Project } from "@webstudio-is/project";
import { usePress } from "@react-aria/interactions";
import { marketplaceCategories } from "@webstudio-is/project-build";
import { Card } from "./card";
-import { isFeatureEnabled } from "@webstudio-is/feature-flags";
+import {} from "@webstudio-is/feature-flags";
const getItemsByCategory = (items: Array<MarketplaceOverviewItem> = []) => {
const itemsByCategory = new Map<
@@ -110,12 +110,6 @@ export const Overview = ({
<Flex direction="column">
<PanelTabsList>
{Array.from(marketplaceCategories.keys()).map((category) => {
- if (
- category === "pageTemplates" &&
- isFeatureEnabled("pageTemplates") === false
- ) {
- return;
- }
return (
<Tooltip
key={category}
diff --git a/packages/feature-flags/src/flags.ts b/packages/feature-flags/src/flags.ts
index 9643b94802..c2f433d8fb 100644
--- a/packages/feature-flags/src/flags.ts
+++ b/packages/feature-flags/src/flags.ts
@@ -3,7 +3,5 @@ export const displayContents = false;
export const unsupportedBrowsers = false;
export const aiRadixComponents = false;
export const cms = false;
-export const marketplace = false;
-export const pageTemplates = false;
export const cssVars = false;
export const filters = false;