Commit Graph
827 Commits
Author SHA1 Message Date
Miguel ÁngelandClaude Opus 4.6 f37923739d fix(studio): block element selection while composition is loading
Prevent users from selecting elements in the preview while the
composition is still loading (showing "Loading composition" overlay).
Selection and hover highlighting are suppressed until the player fires
the ready event.

Also reverts motion panel and manual drag editing defaults to false —
these were accidentally set to true during the PR #693 merge.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-10 18:41:02 +00:00
Miguel ÁngelandClaude Opus 4.6 4126191db4 fix(runtime): update clock duration when root timeline is late-bound
Compositions with external sub-compositions (like apple-presentation
with 7 slides) load child compositions via fetch(). The root GSAP
timeline is only bound after all external compositions finish loading,
but the TransportClock duration was only set during initial setup.

When bindRootTimelineIfAvailable runs after the external compositions
load, it captures the root timeline but never updates the clock.
player.getDuration() continues returning 0, so the player's probe
interval never fires the 'ready' event, and the Studio shows "Loading
composition" indefinitely.

Now bindRootTimelineIfAvailable updates clock.setDuration when the
root timeline is late-bound. Guarded with try/catch for the early call
site where clock is not yet initialized (temporal dead zone).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-10 18:40:58 +00:00
Miguel Ángel d5ee383ee2 chore: release v0.6.0-alpha.4 2026-05-10 18:40:58 +00:00
Miguel ÁngelandClaude Opus 4.6 70bc81f7c4 fix(studio): thumbnail crash, feature defaults, multi-select UX, fps selector
Power-user audit fixes for the alpha studio:

- vite.config.ts: wrap thumbnail generation in try/catch so Puppeteer
  TimeoutError doesn't crash the entire vite dev server as an uncaught
  rejection. Close the page on error to prevent browser session leaks.

- manualEditingAvailability.ts: enable motion panel and manual canvas
  drag editing by default (were both false, undiscoverable without
  knowing the env vars).

- PropertyPanel.tsx: show "N elements selected" feedback when multiple
  elements are selected instead of the generic "Select an element"
  empty state.

- RenderQueue.tsx + App.tsx: add FPS selector (24/30/60) to the render
  export bar instead of hardcoding 30fps. Pass the user's choice
  through to startRender.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-10 18:40:58 +00:00
Miguel ÁngelandClaude Opus 4.6 6fb15b4c2a fix: alpha preview e2e fixes — exports, init templates, EPIPE crash
Three bugs found via automated e2e testing of the v0.6.0-alpha preview:

1. core: add missing package.json export specifiers for
   studio-api/manual-edits-render-script and
   studio-api/studio-motion-render-script — the alpha.3 npm publish
   failed because the studio build could not resolve these sub-paths.

2. cli: fix init --example creating empty projects — tsup leaves empty
   template directories in dist/ during the build, causing
   existsSync(templateDir) to return true and skip the remote fetch
   fallback. Now checks for index.html inside the dir instead.

3. engine: fix unhandled EPIPE crash in streaming encoder — ffmpeg
   stdin/stdout had no error handlers, so a write after the ffmpeg
   process exits throws an uncaught error that crashes the process.

Verified with 8 consecutive e2e iterations (424 test runs, 0 flaky).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-10 18:40:52 +00:00
Miguel ÁngelandClaude Opus 4.6 5f661b4005 fix(studio): prevent read-only property crash in manual edit wrappers
The seek/play/applyAfter wrapper functions in manualEdits.ts crashed
with "Cannot set property X which has only a getter" when the player
or timeline objects define seek/play as getter-only properties. This
prevented ALL manual edits (position, rotation, size) from persisting
to disk — the error thrown during applyCurrentStudioManualEditsToPreview
aborted the save queue.

Wrapped all three property assignments in try/catch so wrapping
gracefully degrades when the target object is non-configurable.

Verified: position edit (X=42px) now persists to
.hyperframes/studio-manual-edits.json and survives page refresh.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-10 18:40:52 +00:00
Miguel ÁngelandClaude Opus 4.6 706c7992e8 fix(studio): revert motion panel default to false
Motion panel stays opt-in via env var per product direction. Only
the Design panel is enabled by default.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-10 18:40:52 +00:00
Miguel ÁngelandClaude Opus 4.6 a886e70b28 fix(studio): prevent browser launch timeout from crashing dev server
The shared Puppeteer browser pool in getSharedBrowser() could throw a
30s TimeoutError during launch. This error propagated as an uncaught
rejection and killed the vite process, even though generateThumbnail
had its own try/catch — the browser launch promise rejected outside
that scope. Now getSharedBrowser itself catches launch failures and
returns null, so thumbnails degrade gracefully instead of crashing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-10 18:40:52 +00:00
Miguel ÁngelandClaude Opus 4.6 52674dfd86 fix(studio): stale selection, rotation control, design panel polish
Fixes and improvements based on power-user testing feedback:

1. Fix stale selection after style edits — handleDomStyleCommit now
   calls refreshDomEditSelectionFromPreview after persisting, matching
   every other commit handler. Without this, the PropertyPanel showed
   frozen computedStyles after color/radius/shadow edits, making it
   look like editing "didn't work." Also adds error handling around
   the persist call.

2. Add rotation field to the Design panel Layout section — reads the
   current rotation angle from the manual edit manifest and commits
   via the existing handleDomRotationCommit handler.

3. Enable motion panel by default — STUDIO_MOTION_PANEL_ENABLED now
   defaults to true so the Motion tab is discoverable without env vars.

4. Color controls only when element has color — fill color section now
   only shows when the element has an explicit non-transparent
   background-color. Text color shows only when the element has a
   color style. Prevents showing color pickers on elements where
   color edits have no visible effect.

5. Exclude canvas from selection — added "canvas" to
   DOM_LAYER_IGNORED_TAGS so canvas elements are not selectable in the
   preview or listed in the layer panel.

6. Multi-selection feedback — shows "N elements selected" with
   guidance instead of the generic empty state when multiple elements
   are selected.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-10 18:40:52 +00:00
Miguel Ángel 25f60bfb9d fix(studio): handle raster inspector clicks 2026-05-10 18:40:52 +00:00
Miguel Ángel a5434fba06 fix(studio): keep notion preview playback moving 2026-05-10 18:40:52 +00:00
Miguel Ángel 475754ccb5 feat(studio): simplify inspector selection ux 2026-05-10 18:40:43 +00:00
Miguel Ángel c147077b0d chore: release v0.6.0-alpha.3 2026-05-10 18:40:43 +00:00
Miguel Ángel 70fc56387c chore: ignore .claude directory 2026-05-10 18:40:35 +00:00
Miguel Ángel 43734a60f4 feat: disable Studio timeline while composition loads 2026-05-10 18:40:17 +00:00
Miguel Ángel a672d825f4 feat: show composition loading in studio 2026-05-10 18:40:17 +00:00
Miguel Ángel 67867ed965 feat: auto-open timeline clip layers 2026-05-10 18:40:17 +00:00
Miguel Ángel 79b6948996 chore: release v0.6.0-alpha.2 2026-05-10 18:40:17 +00:00
Miguel Ángel 62ee749e67 fix(studio): keep motion panel opt-in 2026-05-10 18:40:17 +00:00
Miguel Ángel e653025a37 feat(studio): enable inspector panels by default 2026-05-10 18:40:17 +00:00
Miguel Ángel 69c8966b40 chore: release v0.6.0-alpha.1 2026-05-10 18:40:17 +00:00
Miguel Ángel defc64e906 feat(studio): add alpha editor layer inspector 2026-05-10 18:40:17 +00:00
Miguel Ángel 99d3fc8099 feat(core): add studio animation preview APIs 2026-05-10 18:40:06 +00:00
Miguel Ángel d4876b4e5b chore: release v0.5.0-alpha.15 2026-05-10 18:39:53 +00:00
Vance Ingalls 073fb74643 fix: share manual edit render runtime 2026-05-10 18:39:45 +00:00
Vance Ingalls 8860695de4 fix: harden manual edit refresh apply 2026-05-10 18:39:14 +00:00
Vance Ingalls 4935ac583d fix: persist manual preview edits on refresh 2026-05-10 18:39:14 +00:00
Vance Ingalls 46df941102 fix: commit drag offsets from gesture math 2026-05-10 18:39:14 +00:00
Vance Ingalls ced335e626 fix: apply nested manual edits in drilled previews 2026-05-10 18:39:14 +00:00
Vance Ingalls 47dd59fe39 fix: address studio manual edit review feedback 2026-05-10 18:39:14 +00:00
Vance Ingalls 42f864e19c fix: harden studio group overlay events 2026-05-10 18:39:14 +00:00
Vance Ingalls 8184dc7508 fix: select studio groups on pointerdown 2026-05-10 18:39:14 +00:00
Vance Ingalls df94d63847 fix: seed additive studio selection groups 2026-05-10 18:39:14 +00:00
Vance Ingalls 83d7061563 fix: preserve studio group selections 2026-05-10 18:39:14 +00:00
Vance Ingalls 7a736eb1f8 feat: add studio group repositioning 2026-05-10 18:39:14 +00:00
Vance Ingalls 8c6af5734e fix(studio): route inspector geometry through manual edits 2026-05-10 18:39:14 +00:00
Vance Ingalls c3c4998650 feat(studio): reset selected manual edits 2026-05-10 18:39:14 +00:00
Vance Ingalls 6eaa117c0a fix(studio): connect rotate handle line to selection 2026-05-10 18:39:14 +00:00
Vance Ingalls 2a412faec2 fix(studio): match rotate handle size to resize handle 2026-05-10 18:39:14 +00:00
Vance Ingalls 9ba1e6eb65 fix(studio): allow small rotation adjustments 2026-05-10 18:39:14 +00:00
Vance Ingalls 62e1db836c fix(studio): keep rotate handle aligned while dragging 2026-05-10 18:39:14 +00:00
Vance Ingalls 69cf85b269 fix(studio): rotate manual edits around center 2026-05-10 18:39:14 +00:00
Vance Ingalls 47159e85af fix(studio): drag hovered canvas targets immediately 2026-05-10 18:39:14 +00:00
Vance Ingalls dc949f5974 feat(studio): highlight hovered canvas target 2026-05-10 18:39:14 +00:00
Vance Ingalls 7563d260a6 fix(studio): keep rotation edit base stable 2026-05-10 18:39:14 +00:00
Vance Ingalls 79b33aca0a fix(studio): reapply manual edits during playback 2026-05-10 18:39:14 +00:00
Vance Ingalls fa208641be fix(studio): scale master edits in source coordinates 2026-05-10 18:39:14 +00:00
Vance Ingalls d9b3be0261 fix(studio): allow master canvas layer selection 2026-05-10 18:39:14 +00:00
Vance Ingalls 9098255985 fix(studio): stabilize manual edit manifest rendering 2026-05-10 18:39:14 +00:00
Vance Ingalls 62f212aacf feat: persist studio manual edits via manifest 2026-05-10 18:39:13 +00:00