Commits
Commits on
286fcbb604d51ab6bcfa2bbfd4224424f37552d72026-08-27
🐛 fix(app): drag drop commits the frame the ghost last showed, snaps to 0 within 10pxAhmet Kaan Gümüş · 1f68773
🐛 fix(app): drag drop commits the frame the ghost last showed, snaps to 0 within 10px One x source for a drag: on_drag_move now stashes the pointer x that drew the ghost (Player::drag_x), and on_drop reads it back instead of a fresh window.mouse_position() -- gpui's drop callback carries no position of its own, so a second poll of the pointer was never guaranteed to answer what the ghost just showed. A wider DROP_SNAP_PX (10px, vs the 5px trim-nudge SNAP_PX) gives a release room to land on a mark; frame 0 was already always in snap_marks, even on an empty timeline, so the "must be pixel-exact to land at 0.0" complaint was tolerance, not a missing mark. The lane row's frame-0 seam moved from a layout border (which eats a pixel out of its own content box) to an absolute overlay, so the ghost, clips, and Player::frame_under all agree on one origin. Adds drop_landing_tests covering pull-to-0 on an empty timeline, pull onto a clip edge, and pull onto the playhead.
✨ ui(app): instructional-copy sweep — DESIGN §8 rejected pattern enforcedAhmet Kaan Gümüş · 067620b
✨ ui(app): instructional-copy sweep — DESIGN §8 rejected pattern enforced Empty states to single nouns, filter placeholder to one word, the "pick a verb above" plate removed; report strings keep state, lose instruction clauses. 250 app tests green, zero warnings.
✨ feat(app): spine collapses low-frequency verbs behind hover, keeps EDIT/CUT-core always visibleAhmet Kaan Gümüş · 2db0208
✨ feat(app): spine collapses low-frequency verbs behind hover, keeps EDIT/CUT-core always visible User feedback: the left spine "feels complex" -- dozens of always-visible glyph+keycap rows for SPINE/EDIT/CUT/VIEW/TRACK/ROOM/FS. Per DESIGN §6 (the cut is the subject) the true burst-use verbs are split/delete/undo/redo (EDIT) and the walk-cut pair (CUT's odometer); those stay always-visible. Everything else -- CUT's stride-10/trim/loop-trim tail, and the whole VIEW/TRACK/ROOM groups -- collapses to a hairline separator (no prose, DESIGN §8) and expands in place on pointer hover of that zone via a new Player::spine_hover flag, collapsing again on leave. Every collapsed glyph keeps its own cx.listener click handler and chord, so nothing becomes keyboard-unreachable and every verb is still clickable once hover-revealed.
2026-08-26
🧪 test(app): the refusal fixture flips — mono joins stereo now, stereo onto mono refusesAhmet Kaan Gümüş · 8c00c28
🧪 test(app): the refusal fixture flips — mono joins stereo now, stereo onto mono refuses The end-to-end refusal test imported mono test_ac3.mp4 into a stereo timeline, the exact pair engine::audio::widen just legalized. The refusal left standing is the reverse, so the test opens the mono fixture as its timeline and refuses stereo test_av.mp4 instead; the accepted-row half now rides mono test_audio_only.mp4 (3 s, 90 frames).
Merge branch 'worktree-agent-a4b3e198388f130b7'Ahmet Kaan Gümüş · a72c5c5
Merge branch 'worktree-agent-a4b3e198388f130b7' # Conflicts: # crates/engine/src/demux.rs
🧪 test(engine): let the cancel-walk test skip fixtures the video demuxer refusesAhmet Kaan Gümüş · 4257e49
🧪 test(engine): let the cancel-walk test skip fixtures the video demuxer refuses The Matroska fixture sweep now also finds the audio-only test_ac3.mka, which sorts first and which MkvDemuxer::open rightly refuses -- the test panicked on its own expect before measuring anything. Take the first fixture the video demuxer accepts, the shape the cue-index sweep below already uses.
🐛 fix(app): DEBT #91 — click-to-stop during Asked wakes the header readAhmet Kaan Gümüş · 4de1efe
🐛 fix(app): DEBT #91 — click-to-stop during Asked wakes the header read Proxy::Asked now carries the same Arc<AtomicBool> generate_if_wanted polls at the door and around the header read (crates/engine/src/proxy.rs, prior commit). start_proxy_for hands it that flag instead of a permanently-false one; toggle_proxy's Asked arm sets it on click-to-stop, so a stop during the header walk unwinds mid-read instead of only relabelling the row while the read finishes on its own.
🐛 fix(engine): mono sources up-mix onto wider timelines (DEBT #46)Ahmet Kaan Gümüş · d7c614b
🐛 fix(engine): mono sources up-mix onto wider timelines (DEBT #46) widen() (audio.rs) duplicates a mono decode buffer into every timeline channel -- the inverse of downmix(), wired into every decode site that feeds mix() (run_ac3, run_mkv_ac3, run_sym, the AAC loop in run()). audio_matches_probed (playback.rs) and the export-time width check (audio.rs:open_multi_streams_speed_at_fade) both now let a 1ch source join a wider timeline; a wider-than-timeline source stays refused.
🐛 fix(engine): DEBT #91 — proxy Asked phase now cancels its header readAhmet Kaan Gümüş · ba29145
🐛 fix(engine): DEBT #91 — proxy Asked phase now cancels its header read generate_if_wanted takes the same cancel flag Job::cancel later polls: a click to stop a stand-in while the header is still being read used to have nothing to set, so the read (a Matroska cluster walk) always ran to completion before the stop landed. Checked at the door once the seat is claimed and wrapped around Demuxer::open (demux::with_cancel), so a pre-set or mid-read cancel unwinds promptly and gives the seat back the same way a cancelled encode does (Claim's own Drop).
🐛 fix(engine): cancel an mp4 import mid-moov, same as the mkv armAhmet Kaan Gümüş · 8a96a5a
🐛 fix(engine): cancel an mp4 import mid-moov, same as the mkv arm Mp4Reader::read_header ran the whole moov parse uncancellable while the Matroska arm's walk polled the flag per element -- a cancelled import of a big mp4 blocked until the header finished (debts #57/#58). Wraps the BufReader<File> handed to Mp4Reader in a CancelableReader that checks demux::cancelled() on every read(), surfacing a "read cancelled" io::Error the mp4 crate propagates as-is, so is_cancelled classifies it the same way as the mkv path. No fork of the mp4 crate.
✅ test(engine): DEBT #64 — prove AC-3 opens out of a standalone .mkaAhmet Kaan Gümüş · ba541e9
✅ test(engine): DEBT #64 — prove AC-3 opens out of a standalone .mka crate::demux::is_matroska already admits .mka (since 810ded2), so Track::open already routes an AC-3/E-AC-3 .mka through the same MkvAc3Track door test_ac3.mkv uses -- the debt's routing gap was already closed in code, just never proven by a fixture or a test. Adds test_ac3.mka (2s 440Hz sine, ac3, 2ch 44100) to gen_fixtures.sh and a test in audio_files.rs asserting it decodes non-silent stereo audio at the right rate.
🧪 test(app): assert the bitrate refusals on the shared NumberEdit itselfAhmet Kaan Gümüş · 9dc7454
🧪 test(app): assert the bitrate refusals on the shared NumberEdit itself Lane E left commit_mbps dead in the live build (the card now commits through ui::widgets::NumberEdit) while tests still asserted the dead fn's wording — a placebo. The fn is gone; the same empty/zero/floor/ceiling refusals are asserted on the widget, the door the card actually uses.
✨ feat(ui): type-in for the transition duration row (DEBT #111)Ahmet Kaan Gümüş · 1110ca4
✨ feat(ui): type-in for the transition duration row (DEBT #111) Generalizes export_ui.rs's NumberEdit into ui/widgets.rs with a caller-owned range/digit-cap/unit instead of the hardcoded Mbps constants, adds a commit_clamped() alongside the existing refuse-on-commit commit() for rows whose stepper already clamps silently, and wires it into the Clip tab's transition duration row (click to open, digits/backspace/enter/esc through Player::param_card_key, commit through the same set_transition_frames the ± steppers now share).
✨ feat(app): keyboard trim-to-playhead (debt #42)Ahmet Kaan Gümüş · ba764f9
✨ feat(app): keyboard trim-to-playhead (debt #42)
Trim was pointer-only. Adds TrimInToPlayhead/TrimOutToPlayhead on
ctrl+{/ctrl+} (the bracket family's last free rung: bare [ ] nudge,
{ } walk selection, ctrl+[ ctrl+] jump sync points), wired through the
same PlaybackSession::trim_clip primitive the pointer drag commits
with, gated by the oracle on a subject cut with the playhead on it,
and given the same spine widget home as the nudge pair.🐛 fix(engine): reopen the audio device past a silent first sourceAhmet Kaan Gümüş · c322a69
🐛 fix(engine): reopen the audio device past a silent first source PlaybackSession::open_project pinned the device to the first non-image source (audio_source_of) with no check that source actually had a track. A silent leading source (a clip with no audio) left every later source unheard for the whole session. Now the scaffold walks forward past a silent candidate to the first source that really opens a device. Regression test in audio_files.rs proves the scan reaches a second source's audio (verified via audio_disabled_reason, since this sandbox has no PipeWire device to tap samples from).
⚡️ perf(engine): row-parallel tonemap + i420_to_bgra to hit the 39ms/frame HDR budgetAhmet Kaan Gümüş · 48cb81f
⚡️ perf(engine): row-parallel tonemap + i420_to_bgra to hit the 39ms/frame HDR budget 4K HDR10 film via VA-API: 81.2 ms/frame → 26.0 ms/frame against the 39 ms budget in hw_decode::the_hdr_film_renders_tone_mapped. Math untouched — ToneMapper::map fans per-band chroma rows and i420_to_bgra fans row chunks across available_parallelism() lanes via std:🧵:scope (the same idiom HevcEnc::code_batch already uses); correctness suites pass unchanged.
🐛 fix(app,engine): pay debts — audio-only fallbacks, panic-proof proxy, .part sweepAhmet Kaan Gümüş · b05a649
🐛 fix(app,engine): pay debts — audio-only fallbacks, panic-proof proxy, .part sweep Twelve debts paid in one batch: - engine: NoVideoTrack fallback at every video door — open_stream, open_project scaffold, and import() now route a video-extension file whose header holds no picture to the audio-only path instead of refusing (argv open, saved-project reload, and library import). - engine: proxy/export worker wrapped in catch_unwind — a decoder panic settles the shared slot with Err instead of stranding Making/Cancelling. - vendor/cros-codecs: AV1 setup_shear multiplies checked — malformed warp params are a parse error, not a process abort (live-proven on an AV1 film: clean PROXY FAILED notice, slot released, app alive). - engine: startup sweep of orphan proxy .part files. - app: Player::has_video probe cache — lane_refuses gates drops on the probed kind, not the extension; Silences hidden on soundless clips; audio import toast names rate/channels/length; stale no-session proxy label cleared. - tests: audio-only mp4 fixture + gen_fixtures.sh line, 2 engine NoVideoTrack tests, toast/lane/view cases (246 bin + 14 audio_files). Harness-proven this batch (runs 20260826-2306..2315): split-at-playhead with undo, lane-remove mouse door, fade-out drag, argv audio-only open, AV1 proxy clean failure.
🔥 remove(ui): the legacy tree — darkroom is the only roomAhmet Kaan Gümüş · 5dcc6c2
🔥 remove(ui): the legacy tree — darkroom is the only room Delete the whole legacy UI (timeline.rs, toolbar.rs, inspector.rs, legacy render body, OLD_GUI gate — the env read is gone, not a switch) and every helper only it reached: ~6,900 LOC out. Darkroom stance is the only room. Real gaps the removal flushed out, fixed here: - typed bitrate in the export card was completely dead — NumberEdit digits/backspace/enter/esc now wired in param_card_key - ActionId::CancelExport was a no-op while the progress card promised the chord — now calls cancel_export (ctrl+esc, oracle-enabled during export) - actions card had no pointer entry — "?" ghost is clickable, scrim click closes, inner list swallows - snap toggle got a button beside zoom-fit in the VIEW group Dead-by-construction machinery deleted with its tests: key rebinding (rebinding/rebind_action/capture never set live), keys_search (no search box exists), cancels_export/format_key/next_audio_kbps, 17 layout.rs consts/fns, and the rest of the 32 no-—tests dead-code warnings; both `cargo build -p edith` and `--tests` are warning-free, 245 tests green.
🐛 fix(ui): guard focus ring to darkroom + ctrl-click uses press modifiersAhmet Kaan Gümüş · 6da98cd
🐛 fix(ui): guard focus ring to darkroom + ctrl-click uses press modifiers FocusPanels (F6) called window.focus on the ring's handles even under OLD_GUI=1, where the legacy tree never mounts them -- an unmounted focus target kills all key dispatch until a mouse click. focus_surface now no-ops when !self.darkroom, the single door every route goes through. ClickEvent::modifiers() answers the mouse-up modifiers, so releasing ctrl before the button undid a ctrl-held toggle decided on mouse-down (clip_box/sub_box in bench_stance.rs, timeline.rs's two clip boxes). Added widgets::press_modifiers, reading ClickEvent::Mouse's down event instead, at all four sites. Also: dock_stance.rs's doc comments were swapped between transition_row and clip_tab -- moved each back to its own fn; the transition steppers' hitmap labels were the raw element id instead of a phrase, given "Shorten transition"/"Lengthen transition"; and view.rs's stale comment referencing the old window.focus(&self.focus_dock) call updated to name focus_surface.
✨ feat(ui): transition duration row in the darkroom clip tabAhmet Kaan Gümüş · 93dd61d
✨ feat(ui): transition duration row in the darkroom clip tab The darkroom is the default surface (legacy inspector only reachable via OLD_GUI=1), but its CLIP tab only ever showed verb ghosts -- a dissolve/crossfade applied via ctrl+x/ctrl+f had no row to see or edit its duration on the shipped surface. Adds that row, reusing ui::inspector::transition_of for the pick and Player::nudge_transition for the clamped step; only the paint is the darkroom's own idiom.
🐛 fix(ui): mouse_down keeps the selection set so a member drag moves the whole set; click collapsesAhmet Kaan Gümüş · 7b56f0a
🐛 fix(ui): mouse_down keeps the selection set so a member drag moves the whole set; click collapses pick() no longer collapses a multi-pick to set_one on a plain mouse_down when the pressed clip is already selected, since the set-drag begins on that same press. Collapsing to the one pressed clip now happens on the matching plain on_click (gpui drops the pending click once a real drag starts, so this never fires mid-drag) in both bench_stance.rs and the legacy timeline.rs clip/caption boxes.
✨ feat(ui): keyboard focus ring — F6 enters, Tab cycles dock/bench/clip, Escape exits; STROKE_FOCUS in all palettes; focused surface always mountedAhmet Kaan Gümüş · 6c35250
✨ feat(ui): keyboard focus ring — F6 enters, Tab cycles dock/bench/clip, Escape exits; STROKE_FOCUS in all palettes; focused surface always mounted
🐛 fix(ui): focus ring flips the dock tab so the focused surface is always mountedAhmet Kaan Gümüş · 49bd1d0
🐛 fix(ui): focus ring flips the dock tab so the focused surface is always mounted Player::focus_surface flips dock_src_active (via surface_wants_src_active) before window.focus lands on Dock/Inspector, so the handle being focused always has a mounted tree node -- focusing the unmounted tab's handle left gpui with no key listener anywhere, killing keyboard input until a mouse click. Routes all three focus-move sites (ActionId::FocusPanels, the dock's cycle_on_key_down, stance.rs's bench handler) through the one door.
🐛 fix(engine): MP4 mux interleaves audio under the picture (~2s hold + pts-merged drain)Ahmet Kaan Gümüş · eda4494Browse files
merge main into focus lane (keep both Deselect and FocusPanels exemptions, entry count 76)Ahmet Kaan Gümüş · 01c40d5Browse files
✅ test(engine): end-to-end mp4 interleave proof on the live export pathAhmet Kaan Gümüş · 2f0f298
✅ test(engine): end-to-end mp4 interleave proof on the live export path mp4_interleaves_a_mix_that_lands_early_under_the_rest_of_the_picture writes straight to Mp4Muxer to force the mix to land early; this adds the losing branch's real, threaded export.rs test on top of it, so the interleave boundary is also pinned through PlaybackSession::export_to rather than only against a hand-constructed muxer call. Reuses this branch's assert_no_single_stream_span_over for the run-length check instead of duplicating its merge logic; adds a small first_pts helper for the A/V sync assertion the losing test's ffprobe_packets covered.
🐛 fix(ui): wire the keyboard focus ring's entry door — F6 → FocusPanelsAhmet Kaan Gümüş · e404617
🐛 fix(ui): wire the keyboard focus ring's entry door — F6 → FocusPanels The ring built in 75ea728 was unreachable: nothing ever called window.focus on focus_dock/focus_bench/focus_inspector, so the surface on_key_down handlers (which do move focus correctly) never fired. Adds ActionId::FocusPanels bound to F6 (bare Tab stays Select at the root, unstolen), dispatched in Player::act via window.focus(&self.focus_dock) to enter the ring at its first stop. Escape inside the ring now hands focus back to the root (ui::stance::is_focus_exit_key, mirroring is_focus_cycle_key) instead of bubbling unanswered.
✨ feat(timeline): the selection moves, ghosts, copies and pastes as one setAhmet Kaan Gümüş · 459d6b4Browse files
✨ feat(engine,app): copy/paste carries the whole selection setAhmet Kaan Gümüş · 778034fBrowse files
✨ feat(engine): interleave the overlapped mp4 audio pass under the pictureAhmet Kaan Gümüş · 4ba4015
✨ feat(engine): interleave the overlapped mp4 audio pass under the picture Mp4Muxer holds ~2s of pictures and releases them merged by pts against landed sound instead of writing whole-picture-then-whole-track; feed_late_audio hands the mix over the moment it lands.
✨ feat(ui): keyboard focus v1 — Tab cycles dock/bench/clip, 1px STROKE_FOCUS ring, all other keys bubble to the root keymapAhmet Kaan Gümüş · 415844eBrowse files
✨ feat(app): drag moves the whole selection, all-or-nothingAhmet Kaan Gümüş · 33ae7d9
✨ feat(app): drag moves the whole selection, all-or-nothing A dragged clip that is itself one of the selection's picks now carries every other pick along by the same frame delta, in one undo step, and the selection survives the move with its indices remapped rather than cleared. One pick refused blocks the whole set -- nothing moves, one notice. A clip dragged from outside the selection is unchanged. Project::move_clip is now Project::move_selection with a selection of one, so the existing single-clip path is byte-identical.
✨ feat(inspector): transition duration row — retune a dissolve or crossfade after applying itAhmet Kaan Gümüş · 7f34c17Browse files
✨ feat(ui): editable transition duration in the inspectorAhmet Kaan Gümüş · 8b3853b
✨ feat(ui): editable transition duration in the inspector A dissolve or crossfade the anchor clip carries now grows a duration row under selection_section's detail line -- frames, flanked by the same −/+ steppers mbps_steppers already draws for the export card's bitrate. Backed by Player::nudge_transition, which routes to Project::set_transition_out (video) or Project::crossfade (audio); both already clamp to what the successor clip offers, so a run of presses past that room stops there. ctrl+f/ctrl+x keep seeding a fresh transition at one second -- this only moves what is already there. transition_of (crates/app/src/ui/inspector.rs) is the pure read: a dissolve is transition_out > 0 on a video lane, a crossfade is both ends of the join set (fade_out on this clip, fade_in on its adjacent successor) on an audio lane -- told apart from a plain one-sided fade drag by that two-sided signature. Pulled out free of Context and of PlaybackSession, same reason split_drag_owes_save was, so it is testable without a TestAppContext this binary has none of.
✨ feat(layout): all five panel seams persist, clamped to the window at loadAhmet Kaan Gümüş · 6fef2f2Browse files
✨ feat(app): persist all five panel seam sizes, not just dock/benchAhmet Kaan Gümüş · d35aa29
✨ feat(app): persist all five panel seam sizes, not just dock/bench Split::PERSISTED now covers library/inspector/timeline alongside dock/bench, and split_drag_owes_save follows the same list so every seam's release actually reaches the config file. load_stance_splits now takes the opening window's size and clamps each loaded seam to its own bound (SIDE_MAX_FRAC, TIMELINE_MAX_SHARE, BENCH_MIN_H) so a file written at one window size can't hand another an illegal layout.
✨ feat(transport): loop honors the i/o range (range > trim > whole timeline)Ahmet Kaan Gümüş · 7867c90Browse files
🐛 fix(app): loop honors the i/o range, priority range > trim > timelineAhmet Kaan Gümüş · 0d4b12a
🐛 fix(app): loop honors the i/o range, priority range > trim > timeline Player::pump and the Ended crossing both restarted only inside loop_trim or the whole timeline, ignoring a marked i/o range entirely. active_loop_window() now picks range > loop_trim > whole timeline, gated so a bare range with neither loop_on nor loop_trim never starts looping un-looped playback -- it is an export mark first. Loop button tooltip names which window is in force.
🎨 style(ui): re-add STROKE_FOCUS palette token for the focus-ring taskAhmet Kaan Gümüş · 59c625d
🎨 style(ui): re-add STROKE_FOCUS palette token for the focus-ring task Reverses 070a260's deletion: the C2 focus-ring feature lands on top of this in the same worktree next. Values verbatim from that commit's history; no #[expect(dead_code)] needed since the const is consumed via the palette!-macro struct-field construction, not a bare unused item.