Commits
Commits on
ef5832fea151ca30db92b142c8de131c5f43fc49Filtered to crates/app/src/tests/layout.rsClear filter2026-08-19
wip(engine): transform table threads through project/playback/proxy, .edith v20Ahmet Kaan Gümüş · 621274eBrowse files
✨ feat(engine): per-clip audio fades, adjacency crossfade, and edith 18Ahmet Kaan Gümüş · 6d0747c
✨ feat(engine): per-clip audio fades, adjacency crossfade, and edith 18 Clip carries fade_in/fade_out, an equal-power gain envelope mixed into playback and export, a crossfade() op that sets both edges of two adjacent audio clips, and split's rule that only the kept edge keeps its fade. The project file format bumps to edith 18 to carry the two new fields; a v17 (or older) file loads with every clip's fades at zero. Fixes a stray fade_in/fade_out struct-literal fragment left outside any Clip literal in Player::trimmed (crates/app/src/player/timeline_edit.rs), which was a syntax error breaking the whole app crate's build. Adds unit coverage for Fade::gain_at's boundary/midpoint curve, the split edge rule, crossfade's adjacency refusal, the Clip size-lock test (40 -> 48 bytes), and a v17-loads-zero-fades / v18-round-trips edith.rs test.
🧹 chore(app): the compiler has nothing left to sayAhmet Kaan Gümüş · 47519e8
🧹 chore(app): the compiler has nothing left to say The uniform lanes_shown/rows_below pair went with their last caller (the mixed math is the render's), their pins moved onto the mixed variants, and the escape rule's re-export is the tests' alone.
🐛 fix(app): an export's own result cannot get buried in the queueAhmet Kaan Gümüş · 601dec3
🐛 fix(app): an export's own result cannot get buried in the queue push_notice queued strictly oldest-first, so an EXPORT DONE landing behind a PROXY READY and a caption notice sat three dismissals deep -- the one line a person started the export to read was the one they never saw. Export outcomes (done or failed) now jump to the front of the queue instead of the back.
✨ feat(app): subtitle cue font and size are the user's to chooseAhmet Kaan Gümüş · dd4bbea
✨ feat(app): subtitle cue font and size are the user's to choose A subtitle-style file beside the theme holds a family and a size (10-28, default 14); the cue plate reads them live and the line height scales on the stock ratio. New card lists every system family plus the platform default, opened from the inspector's Font control or y. A file the format could not have written falls back whole to the defaults.
✨ feat(app): a library full of subtitles reads as its films againAhmet Kaan Gümüş · 791ea9f
✨ feat(app): a library full of subtitles reads as its films again Group headers in the Text tab used to vanish under sub_headers_fit's viewport gate, which was the one thing carrying "whose tracks these are" once a window got short -- so a short window left every track looking like it belonged to whichever film happened to be scrolled into view. The row list already scrolls past SUB_ROWS_H, so the gate was solving a problem the scrollbar had already solved: headers are now drawn whenever there is more than one source, full stop. Each header now also says how many tracks it holds and folds its rows shut on a click (Player::sub_folded, session-lifetime, never saved) -- a plain toggle and not the click-cycling pattern this codebase has already thrown out once. Its hit target moved up to HIT_MIN to earn the click. A standalone .srt was already its own named group (by its own filename) rather than a sourceless catch-all, so no "External" bucket was needed for it.
🐛 fix(app): the caption strip is thin again, and the header still fits its own doorsAhmet Kaan Gümüş · 0a5590f
🐛 fix(app): the caption strip is thin again, and the header still fits its own doors f85f4db drew subtitle lanes as full LANE_H media rows and kept only a 4px cue band -- SUB_LANE_H (== HIT_MIN, 24px) undoes that: a caption lane's row, its box and its bed all draw at it now, branched off `lane.kind` at the one place a row's height is set. A thinner header has no room for two stacked HIT_MIN targets, so the subtitle lane's remove control moves off its own row onto the right button of the show/hide eye -- the same door a caption's own box already answers to. 20px, the other harness candidate the task asked for, was never shippable: the eye button is the row's one surviving hit target and fills the whole row, so anything under HIT_MIN there is a WCAG 2.5.8 target shrunk to chase a pixel count. lanes_h_mixed/lanes_shown_mixed/rows_below_mixed generalise the panel's overflow math off each lane's own height instead of assuming every row is LANE_H, so a caption track in the stack does not throw off the "N more below" affordance. The uniform lanes_h/lanes_shown/rows_below and their pinned tests are untouched.
2026-08-15
🐛 fix(timeline): the strips are their own mouse regions, and a jump is a proportionAhmet Kaan Gümüş · 640189f
🐛 fix(timeline): the strips are their own mouse regions, and a jump is a proportion The lane stack's strip lay over the beds as painted pixels and as nothing else: a press fell through to the clip beneath it -- selected it, started its drag, opened its menu -- and a notch over it scrolled the stack twice, once by the strip's own handler and once by the column's native scroll behind it. The strip now occludes: gpui's hit test stops at it, so nothing under it hears a button or a wheel, and the wheel it answers with is the column's own unit (pixel_delta, a line a notch) so a notch there moves the stack exactly as far as a notch over the names does. An occluder is also deaf itself to the root that follows every drag, so the thumb's two listeners ride on the strip exactly as drag_scrim's do -- a vertical thumb drag never leaves the strip's own 14 px, and a drag that does is picked up by the root's copies without a seam. The time axis's strip takes the press and the wheel for the same reason: its row sits over nothing today, but a gesture it drew was not its to share. The time axis's click-beside-the-thumb jump was worked out in pixels at the view's own pps, which lands at span-over-duration of the target -- the first drag sample, read through the track's proportion like every other, then snapped the view to where the hand had not put it. The jump now goes through that same proportion, so the thumb centres on the press, at its own width and at its floor width alike, and the drag that carries on from the press lands exactly where the jump left the view.
✨ feat(timeline): the scrollbar is only there while there is somewhere to goAhmet Kaan Gümüş · dd77ab0
✨ feat(timeline): the scrollbar is only there while there is somewhere to go Zoomed out to the whole timeline the horizontal strip was furniture for a view that cannot move: a dim full-width thumb under the lanes, holding its row whether anyone could use it or not. The strip now vanishes at the fit -- and its row goes with it, out of every budget at once. The budget grew a door: timeline_fixed_h(scroll) answers the region (timeline_h), the fold the lanes are laid out against and the seam's drag floor together, so the three cannot disagree about whether the strip is there, and the lanes keep exactly the room they had at either side of the zoom that crosses the line. The share stays sized for the taller, strip-bearing floor -- the one the clamp would otherwise overrule at the 640x360 floor. The lane stack gets its own bar too, over the beds' right edge -- over and not beside, because a gutter would take its width off the bed and the ruler above would stop pointing at the moment the lanes are drawn at. The thumb is the visible share of the rows, read straight off the column's own scroll handle -- box, fold and how far down it has been taken are all the handle's to know, so nothing about the stack is a second truth -- and a drag is followed on the root like every gesture that outlives its strip. Names and beds are one column, so they move together; the wheel over the strip scrolls the stack a notch's share of what it is showing, and with the whole stack on screen there is no strip at all.
✨ feat(timeline): a scrollbar under the lanesAhmet Kaan Gümüş · c707e9d
✨ feat(timeline): a scrollbar under the lanes The time axis was the one dimension the panel scrolled with no bar to scroll it by -- only the wheel and the keys reached it. A strip under the lanes now carries a thumb that is the visible share of the drawn duration at its own place on the track: read off the very Scale every box is drawn through, so a wheel notch, a zoom about the pointer and the follow of the playhead all move it, because they all move the one state. Drag the thumb and the view follows live (the pointer leaves the 6 px strip at once, so the gesture is followed on the root like a scrub); press beside it and the view jumps to the press and carries on from there; the wheel still works over it. The strip is its own mouse region -- a press there never reaches a lane -- and with nothing to scroll the thumb fills the track and dims.
🐛 fix(timeline): a caption's unity gate is measured in framesAhmet Kaan Gümüş · 71b7468
🐛 fix(timeline): a caption's unity gate is measured in frames The badge's unity gate was two permille, but placement rounding is an absolute error: frames_of_us leaves a short track up to half a frame off real time, which is sixteen permille of a one-second window — most palette drops under two and a half seconds badged, one of them a self-contradicting 1.00x. Unity is now 'the window lands within a frame and a half of the span', in the timeline's own frames; the permille survives only as the rate the badge shows.
✨ feat(timeline): captions keep their own clock through a re-rateAhmet Kaan Gümüş · f8f5c46
✨ feat(timeline): captions keep their own clock through a re-rate A placement's cues crossed the timeline one window-microsecond to one timeline-microsecond, which is only the truth at unity: a group's re-rate compresses the frames and leaves the window alone, so the plate and the lane export drew the words falling behind their box, cue by cue, and the tail past the end. The map now goes by the placement's own proportion -- at unity every cue lands exactly where it always did, to the microsecond, and at 2x the words cross in half the time. A caption's box wears the rate its window plays at, derived off the placement itself (so the badge survives the group coming apart), gated past placement rounding; and the grade and the fit resolve a caption in hand to the picture it was pinned to, saying so out loud when there is none -- the speed, silence and equalizer cards' own rule.
✨ feat(timeline): ctrl-click multi-selection, manual groups, ctrl+aAhmet Kaan Gümüş · 66d5395
✨ feat(timeline): ctrl-click multi-selection, manual groups, ctrl+a The app half of manual clip grouping: the timeline's selection becomes a list of picks (Selection, click order kept, anchor = last), ctrl+click toggles a pick on every clip box, caption box and edge strip, and a right-click on a picked placement keeps the selection so the menu's Group row acts on all of it — one pick keeps the span-partner flow. SelectAll takes ctrl+a (every clip and caption, one selection) and RemoveAudioLane moves to ctrl+q beside its own letter. The oracle unhides Group and Detach over captions, words the one-clip-per-lane refusal, and the caption menu grows the group rows. marked() lights every pick and its link-mates — captions included — captions wear the grouped border, trims preview each member by the drag's delta clamped to its own room, deletes route a grouped caption through the group door, and a drag's snap excludes the group it carries. The save-format tests and every affected app suite updated with the new shapes.
2026-08-14
🐛 fix(ui): the lane header cut in half at the timeline's floorAhmet Kaan Gümüş · 99354cc
🐛 fix(ui): the lane header cut in half at the timeline's floor The floor a timeline may be dragged to was one lane under the chrome, which left nothing for the line saying the rest of the tracks are below -- and that line is always drawn there once a project has a second track, out of the lane's own pixels. The header came out 27 px of its 48: the track's name, its subtitle dot and its × all cut in half. The affordance's line and gap are part of the floor now, so the lane it promises is a whole one. A size dragged with one track is raised to the new floor as it is read when a second arrives, not drawn under it.
✨ feat(ui): panels resize by dragging their dividersAhmet Kaan Gümüş · a39a88f
✨ feat(ui): panels resize by dragging their dividers The library, the inspector and the timeline were laid out at a fixed share of the window; the three seams between them are handles now. A press on a strip is tracked from the root like every other drag here (a 6 px strip is not where the pointer stays), the size lands in the model and every region reads it back through one door -- so a dragged width survives the release and cannot disagree with what is drawn. Each panel stops at its own floor and at a third of the window (most of it, for the timeline), so neither a panel nor its neighbour can be dragged away and lost. The bed's pixel-to-time answer is measured off the ruler's own prepaint box, so a click still names the frame it points at at every size.
🧹 chore(app): the subtitles toggle says what is placed, not what is pickedAhmet Kaan Gümüş · d6c0e92
🧹 chore(app): the subtitles toggle says what is placed, not what is picked
Under lanes the picture reads the subtitle lanes, so the toggle's notice
naming the palette row named a track the stroke never touches: it now counts
the captions actually placed, and so does the toolbar's own label ('No subs'
for a palette full of tracks nobody dragged anywhere).
- actions.rs: toggle_subtitles words itself off placed captions; subtitle_track
(the last pick-shows-it reader) gone, placed_captions in its place.
- toolbar.rs: the subs control reads placed captions.
- subs.rs/export.rs: docs that still said a pick draws.✨ feat(app): + S makes a subtitle track, and the file door keeps its own nameAhmet Kaan Gümüş · 6830c39
✨ feat(app): + S makes a subtitle track, and the file door keeps its own name "if I press button +S it should create subtitle track section": it opened a file chooser instead, which is the one thing a track button never does. The button and its "s" now add a `LaneKind::Subtitle` lane exactly as + V and + A add theirs, ctrl+t takes the last one back, and the chooser survives as `ImportSubtitles` (ctrl+i) behind the Text tab's own "Add subtitles from a file…" -- the panel where the tracks it reads are listed. Every notice follows the split: an import lands rows "in the palette", a lane says "drag a subtitle from the panel onto it", and a remove with no subtitle lane says so instead of "open a file first" over an open file. The export card's Subtitles row was framed around palette picks: with an empty pick list it dropped the engine's sentence whole, so a lane the export carries nothing of said nothing at all. The sentence is kept whatever the picks are, and a row the sentence already speaks for gets no clause of its own.
✨ feat(app): the words get a track of their own, dragged and trimmed like everything elseAhmet Kaan Gümüş · eef3d5d
✨ feat(app): the words get a track of their own, dragged and trimmed like everything else The subtitle strip under the lanes is gone and the subtitle lanes the engine model landed are drawn as lanes: the same row, the same header, the same bed. A palette row is dragged out of the Subtitles list onto one, a placement is dragged along it or onto another subtitle track, either end is trimmed, and the box's own × lifts it off -- a caption is not in the clip selection's index space, so no stroke reaches it and a lane holding one may not be removed. The row is `lane_row`, unbranched: a subtitle lane holds no `Clip` and every other lane holds no `SubClip`, so the two lists are never both full and there is no second kind of row to keep in step. Headers reorder and remove through the machinery every lane already had. An `Ok` is never a toast: `move_sub` and `trim_sub` answer a pick-up-put-back and an edge stopped at a wall with `Ok` and no undo step, so only the refusals are shown, in the engine's own words after the head. A subtitle lane refuses media in `lane_refuses`, so the shadow is red on the way down. Each lane's header carries its eye, on by default and dropped wholesale when a lane is removed or reordered -- what reads it over the picture is the next slice; nothing is saved yet either.
2026-08-13
🐛 fix(tests): a card's body ends where the card doesAhmet Kaan Gümüş · f6f8156
🐛 fix(tests): a card's body ends where the card does `every_card_closes_without_the_keyboard` read a card's source "up to the next `\n fn `" out of every source file joined end to end -- and these methods are `pub(crate) fn`, which that cut matches none of. So each body ran tens of thousands of characters past its own end, through the rest of its file and into the next one: `mix_card`'s scrim could stop closing the card and the guard still passed, on five other cards' `close_card` calls downstream of it. Two helpers in the tests' own module now, because a slice that starts at `ui_source()` spills by construction and there are 42 seams to spill at: `source_from` cuts inside the one file its needle is in, and `fn_body` ends a method at the ` }` at the impl's own indent. The inspector's occlusion rule reuses the first; the concatenation keeps its old job of answering whether a line is written anywhere, and says so.
🔧 chore(tests): the window's tests move out of the file they were testingAhmet Kaan Gümüş · e87ada1
🔧 chore(tests): the window's tests move out of the file they were testing Two thirds of `main.rs` was its own test module: sixteen thousand lines, of which six thousand were the tests. They are `src/tests/` now -- shared imports and fixtures in `mod.rs`, the tests themselves under the five headings they already fell into: editing, view, cards, media, layout. Pure motion, except for the scans. Several guards read the window's own source to hold a structural rule, and they read it with `include_str!` over a list of file names -- a list that goes quietly wrong the moment a region moves house, which is exactly what this commit does to six thousand lines and the next one will do to more. They walk `src/` at run time now: every `.rs` under it, found rather than named, so a rule cannot be passed by moving the code out from under it. A stray colour in a file nobody declared as a module is caught; under the old list it was not.