Commit Graph
1459 Commits
Author SHA1 Message Date
Miguel Ángel 2b1495f7af fix(studio): a cropped layer's outline is cut at the layer's own scale, sealed or not (#8496)
* fix(studio): a cropped layer's outline is cut at the layer's own scale, sealed or not

* fix(core): the geometry stream keeps an element whose geometry now carries its layout size

* fix(studio): a turned layer's crop is cut at its own scale, not its upright box's
2026-11-22 14:59:34 +00:00
Miguel Ángel 3ac5265aac fix(studio): Studio acts on a sealed preview's key report only after a real press or click (#8503)
* test(studio): a sealed preview's key reports act only after a real press

* fix(studio): Studio acts on a sealed preview's key report only after a real press or click
2026-11-22 13:24:12 +00:00
Miguel Ángel 0e6879b8ef fix(studio): scrubbing across a cut shows the newest frame, not black (#8501)
* test(studio): a scrub's newest paused frame is decoded, never refused while an older one settles

* fix(studio): scrubbing across a cut shows the newest frame, not black

* test(studio): a flood of paused-frame asks decodes only the newest; a throw never stalls
2026-11-22 13:13:47 +00:00
Miguel Ángel 45674e840f fix(studio): copy and duplicate refuse a file that is not one of the project's compositions (#8490)
* refactor(core): keep the SVG element and attribute allowlist in its own module

* test(studio): clipboard writes refuse markup a scripting preview reads differently

* fix(studio): paste and duplicate write only allowed markup unless it comes from the same file

* test(studio): copy and duplicate use only files Studio knows in the project

* fix(studio): copy and duplicate refuse a file that is not one of the project's compositions

* test(core): inline SVG with its namespace declarations pastes from another file

* fix(core): paste keeps SVG namespace declarations and checks xlink:href as a link

* chore(cli): regenerate the media-use SVG sanitizer from its moved allowlist
2026-11-22 12:54:49 +00:00
Miguel Ángel 97b90d8fa2 fix(studio): a sealed preview's clips keep their GSAP transition label (#8499)
* test: a sealed preview's clips name their GSAP transition

* fix(studio): a sealed preview's clips keep their GSAP transition label

* fix(studio): GSAP scene and overlay clips carry their transition label too
2026-11-22 12:40:37 +00:00
Miguel Ángel a770f4b85d fix(studio): a sealed press held across a frame swap starts on the frame shown (#8492)
* fix(studio): a sealed press held across a frame swap starts on the frame shown

A press made while a sealed preview changes waits, then reads where its element is over the frame's channel. It
read over the frame it was pressed on; when the change swapped frames, that frame was gone, no answer came, and the
drag was dropped. It now reads over the frame shown once the change ends, asks again once if that frame changes,
and starts from the box Studio drew when the frame never answers. A frame that answers the element is gone still
drops the press, as a scriptable preview does.

* refactor(studio): the held press's frame ask and start choice are their own steps

* fix(studio): a held press with no answer starts from its box as pressed, not as redrawn

* fix(studio): a press held across a sealed frame swap draws on the frame shown
2026-11-22 12:39:39 +00:00
Miguel Ángel 0b73069201 fix(studio): paste and duplicate write only allowed markup unless it comes from the same file (#8483)
* refactor(core): keep the SVG element and attribute allowlist in its own module

* test(studio): clipboard writes refuse markup a scripting preview reads differently

* fix(studio): paste and duplicate write only allowed markup unless it comes from the same file

* test(core): inline SVG with its namespace declarations pastes from another file

* fix(core): paste keeps SVG namespace declarations and checks xlink:href as a link

* chore(cli): regenerate the media-use SVG sanitizer from its moved allowlist
2026-11-22 12:05:34 +00:00
Miguel Ángel 039eca4f0f fix(studio): rotating a layer in a sealed preview turns it from the angle its stylesheet shows (#8469)
* fix(studio): rotating a layer in a sealed preview turns it from the angle its stylesheet shows

A sealed preview's stand-in carries only inline styles, so a rotate on a layer whose stylesheet sets its turn or a
centring transform started from 0 and turned about the wrong point. The frame's gesture-start answer now reports the
CSS turn (angle and where to draw it) from computed style, read by the same code Studio used, moved to
@hyperframes/core/runtime/css-rotation. The rotate draft gains a transform route, which the frame's validator now
accepts; both sides check the transform text before it can reach the saved source.

* fix(core): a sealed frame's transform text must parse as a transform list

A character allowlist let 'translate(1px' and '/*' through, so a frame could close the saved inline transform early
and swallow the element's other inline styles into it. isTransformList now folds innermost known calls until none
are left and accepts only what folds away: known function names, balanced parentheses, no comments.
2026-11-22 12:03:53 +00:00
Miguel Ángel 679a5a7e0b fix(studio): a menu that does not fit below opens above, never over what opened it (#8406)
* fix(studio): a menu that does not fit below opens above, never over what opened it

* test(studio): the timeline parts fixture opens its clip menu from an anchor
2026-11-22 11:49:32 +00:00
Miguel Ángel fccd00e719 fix(studio-server): a cut names its new half from the file's own id (#8481) 2026-11-22 11:09:31 +00:00
Miguel Ángel bc3d7b43e8 test(studio): the edit-accuracy bench reads what a person ends with after sealed saves and undos (#8475)
* test(studio): the edit-accuracy bench reads a sequence's file once its last edit has saved

A sealed press made while the previous save is out waits, then replays and saves. The sequence bench read the
file once its write count was met, which one gesture writing twice can reach before the last gesture saves, so
that edit looked lost. Studio now says on the page while an edit saves, and the bench also waits for that and
for no waiting press, two frames in a row.

* test(studio): a sequence's undo step waits until the undo is shown and records how long it took

* test(studio): an undo step records when the box first moves apart from when Studio is idle

* test(studio): the bench's rest wait takes its clock, so its times are exact in tests
2026-11-22 10:56:35 +00:00
Miguel Ángel bfd6cb755f fix(studio): a pasted element lands after its own original, never inside a script (#8489)
* fix(studio): a pasted element lands after its own original, never inside a script

* fix(studio): a paste compares the anchor id instead of building a pattern from it
2026-11-22 10:56:11 +00:00
Miguel Ángel 5ae70826ed fix(core): a far clip the runtime lets go of keeps counting in the film's length (#8480)
* fix(core): a far clip the player lets go of keeps its measured length

* test(studio): a capture page keeps a far clip's length while the runtime lets go of it

* fix(core): a far clip the runtime lets go of stays in Studio's clip list
2026-11-22 10:29:19 +00:00
Miguel Ángel 61008a40dd fix(studio): a sealed preview shows paused video frames from Studio's decoder (#8466)
* fix(studio): a sealed preview shows paused video frames from Studio's decoder

* fix(studio): an aborted paused-frame decode holds its slot until it settles
2026-11-22 10:15:02 +00:00
Miguel Ángel c99cbbe44d fix(studio): a drag behind a refused edit is refused only when it would land on a clip (#8456)
* fix(studio): a refused delete no longer brings back another delete still saving

A refused delete, or a ripple shift that fails after its delete, now moves
back only the clips that delete shifted, on the timeline as it is now,
instead of restoring the timeline from before it.

* fix(studio): a refused delete also refuses the ripple shifts queued behind it

A delete's ripple shift saves absolute starts worked out with every earlier
pending delete applied. When one of those is refused, the shifts queued
behind it are refused too and leave their gap, so the saved file never
puts a clip on top of the restored one.

* fix(studio): a ripple shift queued behind a refused edit is refused before it writes

The timeline's edit queue now has one owner. It knows when an edit still
pending is refused, and a ripple shift (after a delete or a trim) queued
behind it is refused instead of saving starts that assumed that edit. The
trim ripple's rollback moves clips back by its own shift only. Drags,
single-clip timing and link edits are unchanged.

* fix(studio): a drag queued behind a refused edit is refused only if it would overlap

A drop is where the user put it, so a drag queued behind an edit that is
then refused still saves, unless it would now land on a clip in its lane,
such as the one a refused delete puts back. Then it is refused with the
same "Clips on the same track can't overlap." notice a refused drop
shows, and the clip returns to where it was. The lane overlap check is
shared with the insert-on-drop partner check.

* fix(studio): a trim behind a refused edit follows the drag rule, and both notices show as info

A trim queued behind an edit that is then refused is kept unless it now
overlaps a clip in its lane, the same rule as a drag. A refused drag or
trim shows "Clips on the same track can't overlap." in the same info tone
as a refused drop: the notice's owner now holds its words and its tone.

* fix(studio): a refused edit refuses trims behind it, per project, until every save settles

- A queued save stays tracked until it settles, so a later failure still
  refuses the ripple queued behind it.
- A trim's own resize is refused behind a refused edit too: its start and
  duration were read from the timeline that edit left.
- Each project gets its own queue.
- A refused trim shift reloads the preview, as a refused delete does.

* test(studio): the project-switch case keeps the old project's save pending

* fix(studio): a single-clip SDK timing save waits its turn in the edit queue

The SDK move and resize now run inside the queued edit, with the file-write
fallback in the same entry, so the earlier-refusal check guards both paths
and later edits see these saves.

* test(studio): give the clip-timing tests a 10 s timeline so every case can use the SDK path

* fix(studio): a single-clip drag behind a refused edit is refused only when it lands on a clip

* fix(studio): a queued timeline edit reads and writes only the project it was queued in

Each edit queue now carries the project it was made for and hands that id to
every queued edit, so the SDK readers, the file writes and the tween rewrite
never follow a project switch that happens while an edit waits.

* test(studio): hold the old project's save from the start in the project-switch case

* revert(studio): leave project isolation of queued edits to its own change

Takes out the per-project queue and the project binding of queued edits.
Main already lets a queued edit follow a project switch, through more
handles than the project id (preview, timeline store, history), so that
fix moves to one change that covers every handle.

* fix(studio): a queued single-clip SDK save reads the project it was made in

Main read the project as the save started, right away; queued, it read it
when its turn came. The move and resize now take the project when the
gesture queues them, for the SDK reader and the tween rewrite.

* fix(studio): a refused edit refuses only later edits of its own project

Each queued edit carries the project it was queued in, and the queue tracks
refusals per project, so a refusal left behind by a project the editor has
moved away from never refuses an edit in the one now open.

* test(studio): the switch matrix's stand-in SDK session finds no element, like an unknown target

* fix(studio): a refused drag takes back only its own shift

With Ripple on, a drag behind a refused delete was rolled back to its
rippled start, on top of the clip the delete put back. Both drag rollbacks
now move the clip from where it is by this drag's own shift, the rule the
delete and trim rollbacks follow. The overlap check no longer takes a lane
it never reads.

* test(studio): the drag-overlap test's earlier refused edit belongs to the hook's project

* refactor(studio): track-insert edits live beside the track-insert layout

buildTrackInsertEdits moves unchanged from the drag commit into
timelineDragLanding, next to layoutAfterTrackInsert, whose layout it turns
into edits. Both the drag and the canvas z-order mirror still call it.

* fix(studio): a drag behind a refusal in a project no longer shown is refused

The drag's overlap check reads the timeline on screen. Once the editor shows
another project, that timeline is not the drag's own, so the check could keep
a drag that lands on the clip its refused delete put back. A queue whose
project is not shown now refuses an edit behind a refusal outright, before any
policy reads live state.

* test(studio): the group-drag row carries the policy the move adapter gives it
2026-11-22 10:07:54 +00:00
Miguel Ángel f57552da49 fix(studio): a sealed Layers pick of a cropped layer puts its resize corners on the whole layer (#8468)
* fix(studio): a sealed Layers pick of a cropped layer puts its resize corners on the whole layer

* test(studio): keep the crop-lift test's comment within the line limit
2026-11-22 10:07:51 +00:00
Miguel Ángel 7e26a6d3c0 fix(studio): a sealed move or resize ends its draft in the save's own frame message (#8473)
* fix(studio): a sealed move's save ends its drag draft in the same frame message

A sealed move on GSAP's route sent its saved x/y as patch-tweens and the end of the drawn translate as a
later draft message, so the frame could paint one frame with both: the layer one whole drag too far.
The save now carries the draft's end and the frame applies both in one task. An end that nothing takes
goes once, as one message, and an end naming an older draft is ignored.

* refactor(core): parse patch-tweens' draft ends in a wrapper, leaving the patch parser as it was

* refactor(studio): a drag member's draft end moves to its own module, under the 600-line limit
2026-11-22 09:43:18 +00:00
Miguel Ángel 4157992664 fix(core): load the motion path plugin only for a page that tweens along a path (#8449)
* fix(core): load the motion path plugin only for a page that tweens along a path

* fix(core): a path tween an external script builds still gets the motion path plugin

* test(studio): a path tween from an external script gets the plugin when Studio connects

* fix(core): a page with a script the preview cannot read still gets the motion path plugin

* fix(studio-server): the preview builder, not a file name, decides a page needs no path plugin

* refactor(studio-server): split the preview builder's script check

* fix(studio-server): a script the preview builder cannot read leaves the page unmarked

* fix(studio-server): the preview builder reads scripts off the event loop, within a time budget

* fix(studio-server): the preview builder resolves script paths off the event loop too

* fix(studio-server): the preview builder's script scan stays inside the request's deadline

* fix(core): the async project path check answers null for a path it cannot resolve
2026-11-22 09:40:47 +00:00
Miguel Ángel f51e57b26e fix(studio): a thrown value whose name getter throws still falls back to a reload (#8474)
* test(studio): a thrown value whose name getter throws still falls back and reports other

* fix(studio): a thrown value's name that throws reports other and keeps the reload

* style(studio): keep the thrown-name note to one line
2026-11-22 09:32:54 +00:00
Miguel Ángel 3e101f9654 fix(studio): a timeline edit queued before a project switch stays in its own project (#8458)
* fix(studio): a refused delete no longer brings back another delete still saving

A refused delete, or a ripple shift that fails after its delete, now moves
back only the clips that delete shifted, on the timeline as it is now,
instead of restoring the timeline from before it.

* fix(studio): a refused delete also refuses the ripple shifts queued behind it

A delete's ripple shift saves absolute starts worked out with every earlier
pending delete applied. When one of those is refused, the shifts queued
behind it are refused too and leave their gap, so the saved file never
puts a clip on top of the restored one.

* fix(studio): a ripple shift queued behind a refused edit is refused before it writes

The timeline's edit queue now has one owner. It knows when an edit still
pending is refused, and a ripple shift (after a delete or a trim) queued
behind it is refused instead of saving starts that assumed that edit. The
trim ripple's rollback moves clips back by its own shift only. Drags,
single-clip timing and link edits are unchanged.

* fix(studio): a refused edit refuses trims behind it, per project, until every save settles

- A queued save stays tracked until it settles, so a later failure still
  refuses the ripple queued behind it.
- A trim's own resize is refused behind a refused edit too: its start and
  duration were read from the timeline that edit left.
- Each project gets its own queue.
- A refused trim shift reloads the preview, as a refused delete does.

* test(studio): the project-switch case keeps the old project's save pending

* fix(studio): a single-clip SDK timing save waits its turn in the edit queue

The SDK move and resize now run inside the queued edit, with the file-write
fallback in the same entry, so the earlier-refusal check guards both paths
and later edits see these saves.

* test(studio): give the clip-timing tests a 10 s timeline so every case can use the SDK path

* fix(studio): a queued timeline edit reads and writes only the project it was queued in

Each edit queue now carries the project it was made for and hands that id to
every queued edit, so the SDK readers, the file writes and the tween rewrite
never follow a project switch that happens while an edit waits.

* test(studio): hold the old project's save from the start in the project-switch case

* revert(studio): leave project isolation of queued edits to its own change

Takes out the per-project queue and the project binding of queued edits.
Main already lets a queued edit follow a project switch, through more
handles than the project id (preview, timeline store, history), so that
fix moves to one change that covers every handle.

* fix(studio): a timeline edit queued before a project switch stays in its own project

Each edit queue carries the project it was made for and is closed when the
editor shows another one. A queued edit reads, writes and records history
in its own project; its live side (preview patches and reloads, the SDK
session, the timeline store and its rollbacks, the pending-path set) runs
only while that project is shown. Gestures still saving are forgotten on a
switch, so no drag or resize rolls back the new project's timeline.

* test(studio): the project-switch test covers a single-clip move and every reach into the preview

* test(studio): type the preview spy's traps

* refactor(studio): let the queue's names carry what two doc lines said

* fix(studio): a queued single-clip SDK save reads the project it was made in

Main read the project as the save started, right away; queued, it read it
when its turn came. The move and resize now take the project when the
gesture queues them, for the SDK reader and the tween rewrite.

* fix(studio): a project's edits keep one order across a switch away and back

A new project's queue starts from the previous queue's tail, so returning to
a project never runs its next edit beside a save it left waiting. Refusals
and the closed flag stay per queue. The old queue is closed, and pending
gestures forgotten, when the switch commits, not during render.

* fix(studio): a refused edit refuses only later edits of its own project

Each queued edit carries the project it was queued in, and the queue tracks
refusals per project, so a refusal left behind by a project the editor has
moved away from never refuses an edit in the one now open.

* test(studio): the switch matrix's stand-in SDK session finds no element, like an unknown target
2026-11-22 08:41:27 +00:00
Miguel Ángel 05d1bc8b1c fix(studio): a sealed crop draws a layer's insets at its own scale and follows a seek (#8451)
* test(studio): a sealed scaled card's crop insets draw at its own scale before any press

* test(studio): a sealed crop re-reads a resized card and drops a read from an earlier selection

* fix(studio): a sealed crop draws a scaled layer's insets at its own scale before any press

* style(studio): wrap the sealed crop read's comment under the line limit

* test(studio): a sealed scaled layer picked in the Layers panel crops at its own scale

* refactor(studio): read a sealed crop's start in its own hook

* test(studio): overlays wake on a sealed preview's posts and only on Studio's own preview frame

* fix(studio): a sealed preview's playhead posts wake the editor overlays after a seek

* test(studio): a seek that keeps a sealed card's painted box still re-reads its crop scale

* fix(studio): a sealed crop re-reads its layer's scale when the playhead moves

* test(studio): a sealed crop re-reads once the frame shows the seek, not on Studio's playhead

* fix(studio): a sealed crop re-reads its scale when the frame applies a seek
2026-11-22 08:40:03 +00:00
Miguel Ángel deb478a3f6 refactor(studio): a preview clip's number and track rules live in one place (#8471) 2026-11-22 08:22:31 +00:00
Miguel Ángel e98ca56c4a fix(studio): an in-place tween patch that throws says why it fell back to a reload (#8454)
* test(studio): an in-place tween patch that throws reports the error's name

* fix(studio): an in-place tween patch that throws says why it fell back to a reload

* test(studio): a composition's own error class name reports as other

* fix(studio): only built-in error names leave an in-place patch's report

* test(studio): a built-in error from the preview frame's realm reports its name

* fix(studio): an in-place patch reads a thrown error's name from any realm
2026-11-22 08:15:29 +00:00
Miguel Ángel 926e1b5601 fix(studio): a sealed resize keeps a self-centring layer where it is (#8467) 2026-11-22 08:08:47 +00:00
Miguel Ángel d37563e35b fix(studio): hiding an element hides it in the preview, sealed or not (#8461)
* fix(studio): hiding an element hides it in a sealed preview too

* fix(core): an element given data-hidden after the film loads is hidden, and shown again when it goes
2026-11-22 07:49:20 +00:00
Miguel Ángel 56e0d6fbd7 fix(studio): a ripple shift queued behind a refused edit is refused before it writes (#8443)
* fix(studio): a refused delete no longer brings back another delete still saving

A refused delete, or a ripple shift that fails after its delete, now moves
back only the clips that delete shifted, on the timeline as it is now,
instead of restoring the timeline from before it.

* fix(studio): a refused delete also refuses the ripple shifts queued behind it

A delete's ripple shift saves absolute starts worked out with every earlier
pending delete applied. When one of those is refused, the shifts queued
behind it are refused too and leave their gap, so the saved file never
puts a clip on top of the restored one.

* fix(studio): a ripple shift queued behind a refused edit is refused before it writes

The timeline's edit queue now has one owner. It knows when an edit still
pending is refused, and a ripple shift (after a delete or a trim) queued
behind it is refused instead of saving starts that assumed that edit. The
trim ripple's rollback moves clips back by its own shift only. Drags,
single-clip timing and link edits are unchanged.

* fix(studio): a refused edit refuses trims behind it, per project, until every save settles

- A queued save stays tracked until it settles, so a later failure still
  refuses the ripple queued behind it.
- A trim's own resize is refused behind a refused edit too: its start and
  duration were read from the timeline that edit left.
- Each project gets its own queue.
- A refused trim shift reloads the preview, as a refused delete does.

* test(studio): the project-switch case keeps the old project's save pending

* fix(studio): a single-clip SDK timing save waits its turn in the edit queue

The SDK move and resize now run inside the queued edit, with the file-write
fallback in the same entry, so the earlier-refusal check guards both paths
and later edits see these saves.

* test(studio): give the clip-timing tests a 10 s timeline so every case can use the SDK path

* fix(studio): a queued timeline edit reads and writes only the project it was queued in

Each edit queue now carries the project it was made for and hands that id to
every queued edit, so the SDK readers, the file writes and the tween rewrite
never follow a project switch that happens while an edit waits.

* test(studio): hold the old project's save from the start in the project-switch case

* revert(studio): leave project isolation of queued edits to its own change

Takes out the per-project queue and the project binding of queued edits.
Main already lets a queued edit follow a project switch, through more
handles than the project id (preview, timeline store, history), so that
fix moves to one change that covers every handle.

* fix(studio): a queued single-clip SDK save reads the project it was made in

Main read the project as the save started, right away; queued, it read it
when its turn came. The move and resize now take the project when the
gesture queues them, for the SDK reader and the tween rewrite.

* fix(studio): a refused edit refuses only later edits of its own project

Each queued edit carries the project it was queued in, and the queue tracks
refusals per project, so a refusal left behind by a project the editor has
moved away from never refuses an edit in the one now open.

* test(studio): the switch matrix's stand-in SDK session finds no element, like an unknown target
2026-11-22 07:30:46 +00:00
Miguel Ángel 5e6068e94a fix(studio): a reloaded preview shows the saved grade, not one an undo took back (#8455)
* test(studio): a dragged grade saves to the file once

* fix(studio): a colour grade made in the property panel saves to the file

* test(studio): the grade panel follows an undo of a saved grade

* fix(studio): the grade panel follows an undo or redo of the grade

* test(studio): the grade-save panel test lives in its own file

* fix(studio): a reloaded preview shows the saved grade, not one an undo took back

* refactor(studio): grade saves live in their own hook
2026-11-22 07:24:10 +00:00
Miguel Ángel ff01d81be1 fix(studio): a sealed canvas pick selects the timeline clip it belongs to (#8459)
* test(studio): a sealed pick of a clip's child selects the clip, as a same-origin one does

* fix(studio): a sealed canvas pick selects the timeline clip it belongs to

* fix(studio): a frame ancestor with no id is skipped when finding a sealed pick's clip
2026-11-22 07:17:09 +00:00
Miguel Ángel 34d5c4678d fix(studio): a key pressed in a sealed preview reaches Studio's hotkeys (#8444)
* test(studio): a key pressed in a sealed preview inside the player reaches Studio

* fix(studio): a key pressed in a sealed preview reaches Studio's hotkeys

* test(core): a key typed into a field inside a shadow root stays with the field

* fix(core): a key typed into a field inside a shadow root is not taken as a shortcut

* test(studio): the sealed preview fixture connects after its frame has loaded

* test(core): a modal or button around a shadow root still owns the keys focused inside it

* fix(core): a modal or button around a shadow root still owns the keys focused inside it

* fix(core): a key target with no shadow root still reaches the playback checks
2026-11-22 06:57:04 +00:00
Miguel Ángel bf21bf9f78 fix(studio): a preview clip's track is taken only as a whole number (#8447)
* fix(studio): a preview clip's track, start and length enter the timeline only as numbers

* fix(studio): a preview clip's track is taken only as a whole number, as the runtime writes it
2026-11-22 06:32:19 +00:00
Miguel Ángel 77f3b55fd3 fix(studio): a colour grade made in the property panel saves to the file (#8450)
* test(studio): a dragged grade saves to the file once

* fix(studio): a colour grade made in the property panel saves to the file

* test(studio): the grade panel follows an undo of a saved grade

* fix(studio): the grade panel follows an undo or redo of the grade

* test(studio): the grade-save panel test lives in its own file

* refactor(studio): grade saves live in their own hook
2026-11-22 06:31:30 +00:00
Miguel Ángel eea73b3107 fix(studio): moving and nudging an element works in a sealed preview (#8263)
* fix(studio): arrow keys nudge the selected element in a sealed preview

A sealed preview's selection is a stand-in that is never in the page, so the nudge's check that the element is still
there refused every key and nothing moved. It now uses the same check the selection publisher uses, which keeps a
sealed selection until it is replaced.

* fix(studio): a sealed nudge moves an animated element by its tween and saves where it was drawn

A sealed preview's selected element is a stand-in with no animation or translate of its own, so a nudge guessed both from an empty page: it wrote a plain translate over the stylesheet's and the element landed elsewhere after a reload. The nudge now waits for the frame's gesture-start read, the one a press uses, and keys pressed meanwhile join the burst.

* test(studio): pass the nudge its frame refs in the undo paint test

* fix(studio): a sealed move on GSAP's route lands where it was drawn, not twice as far

When a move ends, the sealed frame kept the translate the gesture drew. A move on GSAP's route saves the new position as GSAP's x and y, so the layer then showed the move twice until the frame loaded again. The frame now drops the drawn translate for those moves; a move saved as a plain translate still keeps it.

* refactor(studio): split the sealed nudge key handler so each step reads on its own

* fix(studio): a sealed nudge waiting on its frame gives way to a drag, selection or other edit

* fix(studio): an arrow pressed while a canvas press waits on the preview does not start a nudge

* fix(studio): a sealed resize on GSAP's route keeps the size it drew when it ends

* refactor(studio): name the size-keeping draft end instead of commenting it

* fix(studio): a sealed resize saved as GSAP scale drops the size it drew when it ends

* fix(studio): a sealed resize keeps its drawn size unless its save wrote the size as scale

* fix(studio): a whole-tween resize of a width/height tween says it saved the size, not scale

* test(studio): cover the resize writer's held-size and unnamed-element returns

* test(studio): reach the resize writer's no-selector refusal with an element no selector addresses
2026-11-22 05:40:06 +00:00
Michael Wang 59ea053f10 fix(studio): timeline clips from the preview keep numeric fields, and drops write them as numbers (#8438)
* fix(studio): keep a preview frame's clip timing and track numeric

Clips from a preview frame's timeline message or runtime snapshot are
kept only when start and duration are finite numbers and track is a
whole number. Asset drop, file drop, paste and duplicate write
data-track-index as a whole number, and paste checks a clip's markup
for running code after its root tag takes the new start and track.

* fix(studio): write a dropped asset's start and duration as finite numbers

buildTimelineAssetInsertHtml writes data-start and data-duration through
formatTimelineAttributeNumber, with a non-finite or non-number value
written as 0, so a store row's timing cannot add text to the tag.
2026-11-22 05:04:15 +00:00
Miguel Ángel 0774d96462 fix(studio): caption edits save through the project's file writer (#8445)
* test(studio): an edited caption word saves through the real files route

* fix(studio): caption edits save through the project's file writer
2026-11-22 04:08:16 +00:00
Miguel Ángel e1845e5dec fix(studio): a preview clip's track, start and length enter the timeline only as numbers (#8446) 2026-11-22 03:57:31 +00:00
Miguel Ángel 79e43a33a8 fix(studio): the topology lens shows in a sealed preview (#8420)
* test(studio): a sealed preview's topology lens is drawn from the frame's geometry answer

* fix(studio): the topology lens shows in a sealed preview

* test(studio): a sealed frame's lens matches a live frame's on the real runtime

* fix(studio): a sealed lens finds its composition host by walking the frame's parents

* refactor(studio): the topology lens measures in its own hook
2026-11-22 02:22:44 +00:00
Miguel Ángel 925cea1f1f fix(studio): a refused delete also refuses the ripple shifts queued behind it (#8421)
* fix(studio): a refused delete no longer brings back another delete still saving

A refused delete, or a ripple shift that fails after its delete, now moves
back only the clips that delete shifted, on the timeline as it is now,
instead of restoring the timeline from before it.

* fix(studio): a refused delete also refuses the ripple shifts queued behind it

A delete's ripple shift saves absolute starts worked out with every earlier
pending delete applied. When one of those is refused, the shifts queued
behind it are refused too and leave their gap, so the saved file never
puts a clip on top of the restored one.
2026-11-22 02:04:41 +00:00
Miguel Ángel 8ad7cbae24 fix(studio): a reload that gives up says whether its frame was missing, blank or unreadable (#8419)
* fix(studio): a reload that gives up says whether its frame was missing, blank or unreadable

A shadow reload that times out with no page used to say "no-page" for three different stalls. It now says no-frame
(none added, or gone), blank (added, still about:blank) or unreadable (added, document not readable), and for the
last two whether the frame was given a page address and how long ago it was added.

* refactor(studio): the frame's added time lives beside the give-up message

* fix(studio): a sealed preview's give-up names its step as sealed
2026-11-22 02:04:39 +00:00
Miguel Ángel 28502224a5 fix(studio): show a sealed composition's clip on the timeline (#8408)
* fix(studio): show a sealed composition's clip on the timeline

* fix(studio): keep a sealed load's clip bound to its own preview and length

* fix(studio): an older preview read never replaces a newer timeline

* fix(studio): only the preview on screen writes the timeline

* fix(studio): a removed preview frame's pending read writes nothing
2026-11-22 02:04:37 +00:00
Miguel Ángel 8929d11649 fix(studio): an insert on drop never lets linked partners overlap or start before 0 (#8416)
The partner check now places every clip in a partner's lane where it will
land, moving or not, and refuses a partner that would start before 0.
2026-11-22 00:25:18 +00:00
Miguel Ángel c1f4a193a9 fix(studio): a refused delete no longer brings back another delete still saving (#8413)
A refused delete, or a ripple shift that fails after its delete, now moves
back only the clips that delete shifted, on the timeline as it is now,
instead of restoring the timeline from before it.
2026-11-22 00:24:06 +00:00
Miguel Ángel c3a6739903 fix(studio): a sealed undo of a GSAP-animated layer's style shows in place (#8320)
* fix(studio): a sealed undo of a GSAP-animated layer's style shows in place, without a reload

* fix(studio): a sealed undo refused after a later one reloads instead of replaying the older state

* fix(studio): a sealed undo's script re-run travels in its restore request, so no write races it

* fix(studio): import the sealed re-run builder where the undo sends it

* refactor(studio): one shape guard for the restore parser and a named re-run choice

* refactor(studio): the sealed undo attaches its re-run in one helper

* test(studio): count only the restore's own requests to the sealed frame

* fix(studio): a sealed re-run keeps a newer scrub and an unusable re-run keeps the plain restore

* fix(studio): a deferred re-run keeps a newer scrub and a newer edit; sealed preloads MotionPath

* refactor(studio): name a soft reload's mark and its script run

* test(studio): share the Chrome bundle's node shim and read the composition's own script

* fix(studio): a waiting re-run leaves the composition's script until it runs

* fix(studio): the soft-reload wait only swaps timelines a newer run left alone

* test(studio): the soft-reload wait tables drive each step from one map

* fix(studio): one MotionPath loader settles every waiting re-run when the plugin loads

* test(core): a failed MotionPath load is retried by the next re-run

* test(studio): a wait-table step after the swap waits for the swap's render

* fix(studio): only the newest soft-reload run may swap, reload or move the playhead

* fix(studio): a refused sealed tween patch re-runs the script instead of reloading

* test(studio): the playing-through-the-wait row allows the player's frame snap

* fix(studio): a late preview answer acts only when no later re-run carries its change

* test(studio): held-answer rows release a still-waiting run when the page closes

* test(core): a restore says whether it re-ran the script

* test(studio): sealed preview equals a fresh load after late answers in any order

* fix(studio): a late refusal recovers with the whole saved snapshot, attributes and timing

* fix(studio): only an explicit refusal keeps an undo's attributes from being covered

* test(studio): ordering table holds a refusal until its request posts, restores a safe attribute

* test(studio): ordering fixture carries the hf ids Studio's server serves

* fix(studio): a refused retime is never covered by a script-only re-run

* test(studio): ordering table keeps the title undo and restores safe and unsafe attributes

* refactor(studio): a restore's snapshot comes from one helper

* test(studio): a refused request is answered at its own step, as in the retime probe

* test(studio): the ordering runner lives in a shared sequence harness

* test(studio): a patch recovery after a live retime carries the retime's timing

* test(studio): the ordering fixture sends its own script instead of parsing the file

* test(studio): the sequence harness keeps its refusal table private

* test(studio): ordering table generates live retimes, scrubs and port rejections

* test(studio): a harness reload shows the new load at Studio's playhead

* test(studio): the ordering table carries the reviewer's round-8 sequences

* test(studio): the first round-8 sequence holds the live retime's refusal

* test(studio): the ordering table pins the seeds that found each round-8 class

* fix(studio): sealed recoveries keep saved timing, the live playhead and port rejections

* test(studio): sealed mocks answer through previewAnswer; channel row for error vs no reply

* test(studio): the timing sync and script commit mocks answer through previewAnswer

* refactor(studio): a late live retime's recovery is its own step

* test(studio): ordering table generates two-script files, missed deadlines and unanswered requests

* test(studio): the data-start undo restores a clip no script animates

* test(studio): a save that reloads at once counts as one nothing can apply in place

* fix(studio): sealed writes count as covered only by a newer applied run that carried their state

* test(studio): the ordering table pins the seeds that found each round-9 class

* fix(studio): a sealed re-run covers from its send only what it carried

* test(studio): the ordering fixture marks each save as Studio's write does

* test(studio): a two-script sequence may recover only by reloading

* test(studio): the harness reload loads again after a save, as Studio's shadow reload does

* test(studio): the ordering table splits its fixed rows from fresh seeds to fit the flake gate

* test(studio): the ordering fixture keeps its generator private

* fix(studio): a sealed write's file version is its save's, and timing coverage survives a later run

* fix(studio): the ledger keeps each timeline's newest snapshot by its save's version

* test(studio): soft-reload expectations name the save revision where a real save made one

* test(studio): the ordering table pins the seeds that found reversed save responses

* refactor(studio): a sealed restore's send moves to its own module under the file size cap

* test(studio): the wait table settles two waiting runs and a pause before it reads them

* test(studio): the ordering table reverses older timing writes behind a newer data-start undo

* fix(studio): a sealed write older than a file already sent to the preview is not sent

* test(studio): mocked preview channels run the send gate as the real one does

* test(studio): the patch request names its default deadline

* test(studio): the ledger pins an older live retime sent after a newer file

* fix(studio): a sealed tween patch carries its save's version without a snapshot too

* test(studio): the undo row expects the in-place re-run of the undone file

* test(studio): the ordering table loads the newer file between reversed timing syncs

* fix(studio): a new sealed preview load refuses writes older than the file it shows

* refactor(studio): the sequence runner plays a reversed step in its own function
2026-11-21 23:38:57 +00:00
Miguel Ángel 8a69ea0395 fix(studio): fx badges in a sealed preview show the clip's look, crop and duck (#8411)
* test(studio): a sealed preview's fx badge lights from what discovery read

* fix(studio): fx badges in a sealed preview show the clip's look, crop and duck
2026-11-21 23:14:47 +00:00
Miguel Ángel 71907274a7 fix(studio): a paused untagged video shows the colours the export renders (#8405)
* test(studio): a paused untagged video is drawn as the export reads it

* fix(studio): a paused untagged video shows the colours the export renders, not BT.709
2026-11-21 23:06:44 +00:00
Miguel Ángel 08bd7fc126 feat(studio): dropping a clip onto main-track clips can insert it there (#8397)
* feat(studio): dropping a clip onto main-track clips can insert it there

* fix(studio): say why a dropped clip went back, from the timeline's own notice

* fix(studio): keep the drag commit file under the line cap

* fix(studio): an insert never puts a linked clip on top of another clip in its lane
2026-11-21 23:03:01 +00:00
Miguel Ángel 7ec38388bf fix(studio): a delete and its ripple shift save as one edit (#8404)
* fix(studio): trimming a main-track clip with Ripple on closes the gap

* fix(studio): a trim and its ripple shift join the edit queue together

* fix(studio): a delete and its ripple shift join the edit queue together

* fix(studio): a deleted clip leaves the preview at once so the next delete ripples from it
2026-11-21 22:33:24 +00:00
Miguel Ángel da46c89e2a fix(studio): the poster rendered for the next open no longer delays a clip's picture (#8400)
* fix(studio): the poster rendered for the next open no longer delays a clip's picture

Studio renders a missing preview poster for the next open as a low-priority composition thumbnail. Started in a free slot, it could not be overtaken: when the preview was ready before the timeline's clips existed (a sealed preview, on a first open), a clip's thumbnail asked for a moment later waited for a slot and landed about a second after the rest. Work nobody reads now starts only when no other thumbnail of its kind is running.

* test(studio): the thumbnail connection check expects the one request a held open starts

The check's proxy never answers a thumbnail render, and it counted two held requests per project: the composition's thumbnail and the poster rendered for the next open. That poster now waits for an idle bucket, so behind a render that never ends it never starts. One held request per project is what Studio sends; the check still fails when a hidden page keeps its request.
2026-11-21 22:30:43 +00:00
Miguel Ángel 8222489f06 fix(studio): trimming a main-track clip with Ripple on closes the gap (#8394)
* fix(studio): trimming a main-track clip with Ripple on closes the gap

* fix(studio): a trim and its ripple shift join the edit queue together
2026-11-21 21:01:18 +00:00
Miguel Ángel e8f52dc866 fix(studio): adding or removing a text field keeps the spaces between words (#8369)
* test(studio): spaces between child text fields survive a panel write

* fix(studio): adding or removing a text field keeps the spaces between words

* refactor(studio): text-field markup writing gets its own file
2026-11-21 12:20:55 +00:00
Miguel Ángel b0d9f36159 test(studio): the marquee-past-the-cap check waits as long as the frame takes to answer (#7757) 2026-11-21 10:58:21 +00:00