Skip to content

Commit d0a7f7d

Browse files
fix(studio): remove motion tab from right panel (#1391)
The motion panel was behind a feature flag defaulting to false and never shipped. Remove the tab button, MotionPanel component, feature flag, and all associated wiring (EaseCurveEditor, SpringEaseEditor, MotionPanelFields, MotionPathOverlay). The underlying motion data infrastructure (studioMotion, studioMotionOps) remains intact for the GSAP panel. Co-authored-by: Miguel Ángel <miguelangelsisi098@gmail.com>
1 parent ad5229a commit d0a7f7d

16 files changed

Lines changed: 9 additions & 1244 deletions

packages/studio/src/App.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -389,17 +389,14 @@ export function StudioApp() {
389389
);
390390

391391
const {
392-
selectedStudioMotion,
393392
designPanelActive,
394-
motionPanelActive,
395393
inspectorPanelActive,
396394
inspectorButtonActive,
397395
shouldShowSelectedDomBounds,
398396
} = useInspectorState(
399397
panelLayout.rightPanelTab,
400398
panelLayout.rightCollapsed,
401399
isPlaying,
402-
domEditSession.domEditSelection,
403400
gestureState === "recording",
404401
);
405402

@@ -530,9 +527,7 @@ export function StudioApp() {
530527

531528
{!panelLayout.rightCollapsed && (
532529
<StudioRightPanel
533-
selectedStudioMotion={selectedStudioMotion}
534530
designPanelActive={designPanelActive}
535-
motionPanelActive={motionPanelActive}
536531
activeBlockParams={activeBlockParams}
537532
onCloseBlockParams={() => {
538533
setActiveBlockParams(null);

packages/studio/src/components/StudioRightPanel.tsx

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
import { Tooltip } from "./ui";
22
import { PropertyPanel } from "./editor/PropertyPanel";
3-
import { MotionPanel } from "./editor/MotionPanel";
43
import { LayersPanel } from "./editor/LayersPanel";
54
import { CaptionPropertyPanel } from "../captions/components/CaptionPropertyPanel";
65
import { BlockParamsPanel } from "./editor/BlockParamsPanel";
76
import { RenderQueue } from "./renders/RenderQueue";
87
import type { RenderJob } from "./renders/useRenderQueue";
9-
import type { StudioGsapMotion } from "./editor/studioMotion";
108
import type { BlockParam } from "@hyperframes/core/registry";
11-
import {
12-
STUDIO_INSPECTOR_PANELS_ENABLED,
13-
STUDIO_MOTION_PANEL_ENABLED,
14-
} from "./editor/manualEditingAvailability";
15-
16-
/** Motion data without targeting metadata. */
17-
type StudioMotionData = Omit<StudioGsapMotion, "kind" | "target" | "updatedAt">;
9+
import { STUDIO_INSPECTOR_PANELS_ENABLED } from "./editor/manualEditingAvailability";
1810

1911
import { useStudioContext } from "../contexts/StudioContext";
2012
import { usePanelLayoutContext } from "../contexts/PanelLayoutContext";
@@ -23,9 +15,7 @@ import { useDomEditContext } from "../contexts/DomEditContext";
2315
import { usePlayerStore } from "../player";
2416

2517
export interface StudioRightPanelProps {
26-
selectedStudioMotion: StudioMotionData | null;
2718
designPanelActive: boolean;
28-
motionPanelActive: boolean;
2919
activeBlockParams?: {
3020
blockName: string;
3121
blockTitle: string;
@@ -40,9 +30,7 @@ export interface StudioRightPanelProps {
4030

4131
// fallow-ignore-next-line complexity
4232
export function StudioRightPanel({
43-
selectedStudioMotion,
4433
designPanelActive,
45-
motionPanelActive,
4634
activeBlockParams,
4735
onCloseBlockParams,
4836
recordingState,
@@ -84,8 +72,6 @@ export function StudioRightPanel({
8472
handleDomAddTextField,
8573
handleDomRemoveTextField,
8674
handleAskAgent,
87-
handleDomMotionCommit,
88-
handleDomMotionClear,
8975
selectedGsapAnimations,
9076
gsapMultipleTimelines,
9177
gsapUnsupportedTimelinePattern,
@@ -159,21 +145,6 @@ export function StudioRightPanel({
159145
Layers
160146
</button>
161147
</Tooltip>
162-
{STUDIO_MOTION_PANEL_ENABLED && (
163-
<Tooltip label="Animation and motion" side="bottom">
164-
<button
165-
type="button"
166-
onClick={() => setRightPanelTab("motion")}
167-
className={`h-8 rounded-xl px-3 text-[11px] font-medium transition-colors ${
168-
rightPanelTab === "motion"
169-
? "bg-neutral-800 text-white"
170-
: "text-neutral-500 hover:bg-neutral-800/70 hover:text-neutral-200"
171-
}`}
172-
>
173-
Motion
174-
</button>
175-
</Tooltip>
176-
)}
177148
</>
178149
)}
179150
<Tooltip label="Render queue and exports" side="bottom">
@@ -248,14 +219,6 @@ export function StudioRightPanel({
248219
recordingDuration={recordingDuration}
249220
onToggleRecording={onToggleRecording}
250221
/>
251-
) : motionPanelActive ? (
252-
<MotionPanel
253-
element={domEditGroupSelections.length > 1 ? null : domEditSelection}
254-
motion={selectedStudioMotion}
255-
onClearSelection={clearDomSelection}
256-
onSetMotion={handleDomMotionCommit}
257-
onClearMotion={handleDomMotionClear}
258-
/>
259222
) : (
260223
<RenderQueue
261224
jobs={renderJobs}

packages/studio/src/components/editor/EaseCurveEditor.tsx

Lines changed: 0 additions & 221 deletions
This file was deleted.

0 commit comments

Comments
 (0)