Skip to content

Editor: filmstrips, render dialog, faster timeline, media pool, offline preview - #9

Merged
tinygusie2 merged 2 commits into
mainfrom
timeline-thumbs-render
Sep 28, 2026
Merged

tinygusie2 merged 2 commits into
mainfrom
timeline-thumbs-render

Conversation

@tinygusie2

@tinygusie2 tinygusie2 commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

What does this change?

A round of editor improvements:

  • Timeline: clip filmstrips; lighter dragging (only the blocks move); the playhead follows a trimmed edge. Also: Alt = no snapping, , / . frame nudge, dragging several selected items together, auto-scroll at the edges, fit-to-view (\), ripple delete (Shift+Del), and deselecting by clicking an empty spot, Esc or the inspector's × button. Scrubbing no longer selects text.
  • Render dialog: state, progress per format/video, time left, Stop, the log folded away. The result view shows a player, stats and one row per output file.
  • Media pool: Clips/Audio tabs, search, cards with duration, a used mark and hover scrubbing, drag onto the timeline.
  • Editing and saving: typing patches the preview live instead of rebuilding it each time. Undo restores the selection and playhead, and history is kept per video. Nothing is lost on reload or close.
  • Offline: GSAP ships with the app instead of loading from jsdelivr. When the CDN was blocked, the preview broke with gsap is not defined.
  • Tests: npm run test:ui drives the editor in the installed Chrome/Edge via playwright-core, and runs in CI.

How did you check it?

  • npm run check (21/21) and npm test (27/27) pass; npm run test:ui 11/11 locally
  • Tried it in the editor (including undo/redo) on a throwaway project
  • Rendered a video (9:16 + 16:9) with the local GSAP copy
  • The Electron close-flush (main.mjs) is not exercised in a running app yet
  • test:ui in CI relies on the runner's preinstalled Chrome; not seen running there yet

tinygusie2 and others added 2 commits September 28, 2026 22:03
Timeline
- Clip filmstrips: the frames under each part of a clip (trim, source offset
  and speed included), from one strip per file cached in .cache/thumbs/.
- Dragging moves the blocks instead of rebuilding the timeline; trimming takes
  the playhead along so the preview shows the frame you cut on.
- Alt while dragging: no snapping. , and . (or Alt+arrows) nudge the selection
  a frame (Shift: ten), as one undo step. Dragging one of several selected
  items moves them all. The view scrolls along near its edges. \ or the new
  button fits the whole video. Shift+Delete ripple-deletes clips.
- Clicking an empty spot of a track, of the preview, Esc or the new close
  button in the inspector deselects. Scrubbing no longer selects text, and the
  playhead's red handle can be dragged.

Render dialog
- State chip, percentage, time left, a chip per format or video, the log
  folded away (opened on errors), Stop that ends the whole render tree and
  removes only the half-written file.
- A result view with a player framed to the output's shape, render time, total
  size, and a row per file (format, resolution, size, download).

Media pool
- Clips and Audio tabs with counts, search, cards with duration, a used mark
  and scrubbing on hover, empty states, audio rows with length and role.
- Drag a clip or audio file onto the timeline: clips land on the row and time
  where they're dropped; audio becomes the music there (or the voice on its row).

Editing and saving
- Typing in a text field patches the preview directly and rebuilds it once the
  typing stops.
- Undo restores the selection and the playhead, and history is kept per video.
- A pending save survives a reload (sendBeacon) and closing the window
  (main.mjs flushes before it closes); brand edits too.

Offline
- GSAP ships as a dependency: the preview and every render project load a
  local copy instead of the CDN, so a blocked or missing connection no longer
  breaks the preview.

Tests
- npm run test:ui: editor tests in the installed Chrome or Edge through
  playwright-core (skipped without one), also run in CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lders

npm runs scripts through cmd.exe on Windows, which dropped the ^ from
--ignore=^/dist. The unanchored /dist then also removed node_modules/gsap/dist,
and the packaged app failed at start with "Cannot find module ... gsap.min.js".
The packager is now called through its API with anchored patterns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tinygusie2
tinygusie2 merged commit 5a1a3ba into main Sep 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant