Skip to content

Write HTML. Render video. Built for agents.

feat(studio): make storyboard view default available (remove FF) (#1794)

James Russof24a1a9ce725
diff --git a/packages/studio/fixtures/storyboard-sample/README.md b/packages/studio/fixtures/storyboard-sample/README.md
index ab3df39d49..cf76a5b140 100644
--- a/packages/studio/fixtures/storyboard-sample/README.md
+++ b/packages/studio/fixtures/storyboard-sample/README.md
@@ -13,10 +13,10 @@ It exercises the storyboard contract end to end:
- Frame 5 (`05-cta.html`) is intentionally **absent** and `status: outline`, so
the grid has an outline placeholder to render.
-Preview the storyboard view (flag-gated):
+Preview the storyboard view:
```bash
-VITE_STUDIO_ENABLE_STORYBOARD=1 npx hyperframes preview packages/studio/fixtures/storyboard-sample
+npx hyperframes preview packages/studio/fixtures/storyboard-sample
```
Inspect just the parsed manifest the Studio consumes:
diff --git a/packages/studio/src/App.tsx b/packages/studio/src/App.tsx
index 897061e22e..83a52c7239 100644
--- a/packages/studio/src/App.tsx
+++ b/packages/studio/src/App.tsx
@@ -36,10 +36,7 @@ import {
import type { DomEditSelection } from "./components/editor/domEditing";
import { StudioHeader } from "./components/StudioHeader";
import { useGestureCommit } from "./hooks/useGestureCommit";
-import {
- STUDIO_KEYFRAMES_ENABLED,
- STUDIO_STORYBOARD_ENABLED,
-} from "./components/editor/manualEditingAvailability";
+import { STUDIO_KEYFRAMES_ENABLED } from "./components/editor/manualEditingAvailability";
import { GestureTrailOverlay } from "./components/editor/GestureTrailOverlay";
import { StudioLeftSidebar } from "./components/StudioLeftSidebar";
import { StudioPreviewArea } from "./components/StudioPreviewArea";
@@ -65,7 +62,7 @@ type CanvasRect = { left: number; top: number; width: number; height: number };
export function StudioApp() {
const { projectId, resolving, waitingForServer } = useServerConnection();
const initialUrlStateRef = useRef(readStudioUrlStateFromWindow());
- const viewModeValue = useViewModeState(STUDIO_STORYBOARD_ENABLED);
+ const viewModeValue = useViewModeState();
// sessionStorage-backed: fires once per tab, survives HMR remounts
useEffect(() => {
diff --git a/packages/studio/src/components/StudioHeader.tsx b/packages/studio/src/components/StudioHeader.tsx
index f998a8db25..d30b4fafb9 100644
--- a/packages/studio/src/components/StudioHeader.tsx
+++ b/packages/studio/src/components/StudioHeader.tsx
@@ -3,7 +3,6 @@ import { RotateCcw, RotateCw, Camera } from "../icons/SystemIcons";
import {
STUDIO_INSPECTOR_PANELS_ENABLED,
STUDIO_MANUAL_EDITING_DISABLED_TITLE,
- STUDIO_STORYBOARD_ENABLED,
} from "./editor/manualEditingAvailability";
import { getHistoryShortcutLabel } from "../utils/studioHelpers";
import { useStudioShellContext } from "../contexts/StudioContext";
@@ -204,8 +203,8 @@ export function StudioHeader({
</span>
<span className="text-[11px] font-medium text-neutral-300">{projectId}</span>
</div>
- {/* Center: storyboard / preview toggle (flag-gated) */}
- {STUDIO_STORYBOARD_ENABLED && <ViewModeToggle />}
+ {/* Center: storyboard / preview toggle */}
+ <ViewModeToggle />
{/* Right: toolbar buttons */}
<div className="flex items-center gap-1.5">
<button
diff --git a/packages/studio/src/components/editor/manualEditingAvailability.ts b/packages/studio/src/components/editor/manualEditingAvailability.ts
index 785eaa7727..a8b3faf67d 100644
--- a/packages/studio/src/components/editor/manualEditingAvailability.ts
+++ b/packages/studio/src/components/editor/manualEditingAvailability.ts
@@ -82,16 +82,6 @@ export const STUDIO_RAZOR_TOOL_ENABLED = resolveStudioBooleanEnvFlag(
true,
);
-// Storyboard view: a top-level, toggleable view that renders STORYBOARD.md as a
-// contact sheet of live HTML frame tiles, replacing the timeline/preview stage.
-// Opt-in / off by default until the experience is ready for broad exposure.
-// VITE_STUDIO_ENABLE_STORYBOARD=1 npx hyperframes preview
-export const STUDIO_STORYBOARD_ENABLED = resolveStudioBooleanEnvFlag(
- env,
- ["VITE_STUDIO_ENABLE_STORYBOARD", "VITE_STUDIO_STORYBOARD_ENABLED"],
- false,
-);
-
export const STUDIO_PREVIEW_SELECTION_ENABLED = STUDIO_INSPECTOR_PANELS_ENABLED;
// Stage 7 Step 3c: SDK cutover — routes inline-style ops through SDK dispatch
diff --git a/packages/studio/src/contexts/ViewModeContext.tsx b/packages/studio/src/contexts/ViewModeContext.tsx
index f359f4182c..f9a17dfc34 100644
--- a/packages/studio/src/contexts/ViewModeContext.tsx
+++ b/packages/studio/src/contexts/ViewModeContext.tsx
@@ -44,14 +44,11 @@ export interface ViewModeValue {
}
/**
- * Owns the view-mode state. When `enabled` is false (storyboard flag off) the
- * mode is pinned to `timeline` and the URL is left untouched, so the feature is
- * fully inert until the flag is on.
+ * Owns the view-mode state — initial read from `?view=`, toggling, popstate sync.
+ * Storyboard mode is always available; no flag gating.
*/
-export function useViewModeState(enabled: boolean): ViewModeValue {
- const [viewMode, setMode] = useState<StudioViewMode>(() =>
- enabled ? readViewModeFromUrl() : "timeline",
- );
+export function useViewModeState(): ViewModeValue {
+ const [viewMode, setMode] = useState<StudioViewMode>(() => readViewModeFromUrl());
// Reflect genuine browser back/forward between history entries with a different
// `?view=`. Note: our own writes use `replaceState` (below), which does NOT fire
@@ -60,23 +57,17 @@ export function useViewModeState(enabled: boolean): ViewModeValue {
// the mount-time read); a scripted `pushState`/`replaceState` to `?view=` would not be
// reflected here, by design.
useEffect(() => {
- if (!enabled) return;
const onPopState = () => setMode(readViewModeFromUrl());
window.addEventListener("popstate", onPopState);
return () => window.removeEventListener("popstate", onPopState);
- }, [enabled]);
+ }, []);
- const setViewMode = useCallback(
- (mode: StudioViewMode) => {
- if (!enabled) return;
- setMode(mode);
- writeViewModeToUrl(mode);
- },
- [enabled],
- );
+ const setViewMode = useCallback((mode: StudioViewMode) => {
+ setMode(mode);
+ writeViewModeToUrl(mode);
+ }, []);
- const effectiveMode = enabled ? viewMode : "timeline";
- return useMemo(() => ({ viewMode: effectiveMode, setViewMode }), [effectiveMode, setViewMode]);
+ return useMemo(() => ({ viewMode, setViewMode }), [viewMode, setViewMode]);
}
const ViewModeContext = createContext<ViewModeValue | null>(null);
diff --git a/skills-manifest.json b/skills-manifest.json
index 718f70fe4e..8548f5078e 100644
--- a/skills-manifest.json
+++ b/skills-manifest.json
@@ -26,7 +26,7 @@
"files": 7
},
"hyperframes-core": {
- "hash": "6243b6f09c94cce1",
+ "hash": "57d63243e8dcd11e",
"files": 13
},
"hyperframes-creative": {
diff --git a/skills/hyperframes-core/references/storyboard-format.md b/skills/hyperframes-core/references/storyboard-format.md
index e9d962ba31..c46bda11de 100644
--- a/skills/hyperframes-core/references/storyboard-format.md
+++ b/skills/hyperframes-core/references/storyboard-format.md
@@ -2,7 +2,7 @@
Defines the storyboard's **base data format** only: the `STORYBOARD.md` file shape and the `StoryboardManifest` it parses into. How a workflow _generates_ a storyboard lives in that workflow; the optional narration/TTS file (`SCRIPT.md`) is a separate concern owned by the TTS step, not here.
-A storyboard is the **plan layer** for a video — an ordered set of **frames** (key moments) in one markdown file. HyperFrames Studio renders it as a contact sheet (the Storyboard view, behind `VITE_STUDIO_ENABLE_STORYBOARD=1`). Parser: `@hyperframes/core/storyboard` → `StoryboardManifest`; read API: `GET /api/projects/<id>/storyboard`.
+A storyboard is the **plan layer** for a video — an ordered set of **frames** (key moments) in one markdown file. HyperFrames Studio renders it as a contact sheet (the Storyboard view, available by default in every Studio session). Parser: `@hyperframes/core/storyboard` → `StoryboardManifest`; read API: `GET /api/projects/<id>/storyboard`.
## Frontmatter (global direction)