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.

Remove assets flag (#525)

Ivan Starkov1ec17c41ec0c
diff --git a/apps/designer/app/designer/features/props-panel/control.tsx b/apps/designer/app/designer/features/props-panel/control.tsx
index 7662311082..3afc5c281b 100644
--- a/apps/designer/app/designer/features/props-panel/control.tsx
+++ b/apps/designer/app/designer/features/props-panel/control.tsx
@@ -13,7 +13,6 @@ import {
Switch,
TextField,
} from "@webstudio-is/design-system";
-import { isFeatureEnabled } from "~/shared/feature-flags";
import { ValuePickerPopover } from "../style-panel/shared/value-picker-popover";
import { ImageManager } from "~/designer/shared/image-manager";
@@ -208,17 +207,15 @@ export function Control({
return <NotImplemented />;
}
- if (isFeatureEnabled("assets")) {
- if (component === "Image" && userProp.prop === "src") {
- const asset = userProp.asset ?? null;
+ if (component === "Image" && userProp.prop === "src") {
+ const asset = userProp.asset ?? null;
- return (
- <ImageControl
- asset={asset}
- onChange={(asset) => onChangePropValue(asset.path, asset)}
- />
- );
- }
+ return (
+ <ImageControl
+ asset={asset}
+ onChange={(asset) => onChangePropValue(asset.path, asset)}
+ />
+ );
}
if (includes(textControlTypes, type)) {
diff --git a/apps/designer/app/designer/features/sidebar-left/sidebar-left.tsx b/apps/designer/app/designer/features/sidebar-left/sidebar-left.tsx
index 7a86f14ec5..c5673df631 100644
--- a/apps/designer/app/designer/features/sidebar-left/sidebar-left.tsx
+++ b/apps/designer/app/designer/features/sidebar-left/sidebar-left.tsx
@@ -37,8 +37,6 @@ export const SidebarLeft = ({ publish }: SidebarLeftProps) => {
switch (panel) {
case "designTokens":
return isFeatureEnabled("designTokens");
- case "assets":
- return isFeatureEnabled("assets");
case "navigator":
return clientSettings.navigatorLayout === "docked";
}
diff --git a/apps/designer/app/designer/features/style-panel/shared/configs.ts b/apps/designer/app/designer/features/style-panel/shared/configs.ts
index 8ff27de91a..1698740f5b 100644
--- a/apps/designer/app/designer/features/style-panel/shared/configs.ts
+++ b/apps/designer/app/designer/features/style-panel/shared/configs.ts
@@ -32,7 +32,6 @@ import {
RowGapIcon,
ColumnGapIcon,
} from "@webstudio-is/icons";
-import { isFeatureEnabled } from "~/shared/feature-flags";
import { keywordValues, properties } from "@webstudio-is/css-data";
type BaseStyleConfig = {
@@ -68,7 +67,7 @@ const getControl = (property: StyleProperty): Control => {
return "FontFamilyControl";
}
case "backgroundImage": {
- return isFeatureEnabled("assets") ? "ImageControl" : "TextControl";
+ return "ImageControl";
}
case "fontWeight": {
return "FontWeightControl";
diff --git a/apps/designer/app/shared/feature-flags/flags.ts b/apps/designer/app/shared/feature-flags/flags.ts
index 9a1c3089a9..972e842029 100644
--- a/apps/designer/app/shared/feature-flags/flags.ts
+++ b/apps/designer/app/shared/feature-flags/flags.ts
@@ -1,3 +1,2 @@
-export const assets = false;
export const designTokens = false;
export const example = false;