Skip to content

Commit dbd4650

Browse files
authored
refactor: drop old flags (#5028)
We are long released all these features and no longer need flags for them.
1 parent 1e597a9 commit dbd4650

File tree

10 files changed

+283
-369
lines changed

10 files changed

+283
-369
lines changed

apps/builder/app/builder/features/command-panel/command-panel.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { atom, computed } from "nanostores";
22
import { useStore } from "@nanostores/react";
33
import { useState } from "react";
44
import { matchSorter } from "match-sorter";
5-
import { isFeatureEnabled } from "@webstudio-is/feature-flags";
65
import {
76
Command,
87
CommandDialog,
@@ -55,9 +54,6 @@ const $commandPanel = atom<
5554
>();
5655

5756
export const openCommandPanel = () => {
58-
if (isFeatureEnabled("command") === false) {
59-
return;
60-
}
6157
const activeElement =
6258
document.activeElement instanceof HTMLElement
6359
? document.activeElement

apps/builder/app/builder/features/components/components.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,6 @@ const $metas = computed(
7070

7171
// only set available components from component meta
7272
availableComponents.add(name);
73-
if (
74-
isFeatureEnabled("headSlotComponent") === false &&
75-
name === "HeadSlot"
76-
) {
77-
continue;
78-
}
79-
8073
metas.push({
8174
name,
8275
category: componentMeta.category ?? "hidden",

apps/builder/app/builder/features/pages/custom-metadata.tsx

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
theme,
1212
} from "@webstudio-is/design-system";
1313
import { TrashIcon, PlusIcon } from "@webstudio-is/icons";
14-
import { isFeatureEnabled } from "@webstudio-is/feature-flags";
1514
import { isLiteralExpression } from "@webstudio-is/sdk";
1615
import { computeExpression } from "~/shared/data-variables";
1716
import {
@@ -72,20 +71,18 @@ const MetadataItem = (props: {
7271
Content
7372
</Label>
7473
<BindingControl>
75-
{isFeatureEnabled("cms") && (
76-
<BindingPopover
77-
scope={scope}
78-
aliases={aliases}
79-
variant={isLiteralExpression(props.content) ? "default" : "bound"}
80-
value={props.content}
81-
onChange={(value) => {
82-
props.onChange(props.property, value);
83-
}}
84-
onRemove={(evaluatedValue) => {
85-
props.onChange(props.property, JSON.stringify(evaluatedValue));
86-
}}
87-
/>
88-
)}
74+
<BindingPopover
75+
scope={scope}
76+
aliases={aliases}
77+
variant={isLiteralExpression(props.content) ? "default" : "bound"}
78+
value={props.content}
79+
onChange={(value) => {
80+
props.onChange(props.property, value);
81+
}}
82+
onRemove={(evaluatedValue) => {
83+
props.onChange(props.property, JSON.stringify(evaluatedValue));
84+
}}
85+
/>
8986
<InputErrorsTooltip errors={undefined}>
9087
<InputField
9188
css={{

0 commit comments

Comments
 (0)