diff options
| author | cashmere <cashmere@autistici.org> | 2026-07-27 01:21:02 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-07-27 01:21:02 +0200 |
| commit | f8fdff7f0c1b8efdef9093c932e28e427799d6ef (patch) | |
| tree | 742d003a1464c921e8feb9f2fd5758982a4cc0b6 /apps/web/src/components/editor/panels/properties | |
| parent | 8474b96e7d5632d7bd71aef077ab9efe2e4523cc (diff) | |
| download | opencut-f8fdff7f0c1b8efdef9093c932e28e427799d6ef.tar.gz | |
feat: gate sounds/stickers/effects UI behind feature flags
FEATURES in src/features.ts (all false) hides the assets-panel tabs and
views, the clip effects properties tab, and the timeline effects badge.
Existing project data still renders and stays editable (standalone effect
tab, sticker config, renderer nodes untouched).
Diffstat (limited to 'apps/web/src/components/editor/panels/properties')
| -rw-r--r-- | apps/web/src/components/editor/panels/properties/registry.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/web/src/components/editor/panels/properties/registry.tsx b/apps/web/src/components/editor/panels/properties/registry.tsx index 1eda6575..15f010f7 100644 --- a/apps/web/src/components/editor/panels/properties/registry.tsx +++ b/apps/web/src/components/editor/panels/properties/registry.tsx @@ -28,6 +28,7 @@ import { MasksTab } from "@/masks/components/masks-tab"; import { SpeedTab } from "@/speed/components/speed-tab"; import { GraphicTab } from "@/graphics/components/graphic-tab"; import { OcShapesIcon } from "@/components/icons"; +import { FEATURES } from "@/features"; const TRANSFORM_PARAM_KEYS = [ "transform.positionX", @@ -251,7 +252,7 @@ function getVideoConfig({ buildSpeedTab({ element }), buildBlendingTab({ element }), buildMasksTab({ element }), - buildClipEffectsTab({ element }), + ...(FEATURES.effects ? [buildClipEffectsTab({ element })] : []), ], }; } @@ -267,7 +268,7 @@ function getImageConfig({ buildTransformTab({ element }), buildBlendingTab({ element }), buildMasksTab({ element }), - buildClipEffectsTab({ element }), + ...(FEATURES.effects ? [buildClipEffectsTab({ element })] : []), ], }; } @@ -282,7 +283,7 @@ function getStickerConfig({ tabs: [ buildTransformTab({ element }), buildBlendingTab({ element }), - buildClipEffectsTab({ element }), + ...(FEATURES.effects ? [buildClipEffectsTab({ element })] : []), ], }; } @@ -299,7 +300,7 @@ function getGraphicConfig({ buildTransformTab({ element }), buildBlendingTab({ element }), buildMasksTab({ element }), - buildClipEffectsTab({ element }), + ...(FEATURES.effects ? [buildClipEffectsTab({ element })] : []), ], }; } |
