Commits
Commits on
978e6857d64772912559c8d8a4e6ee7cd309bdccFiltered to crates/app/src/tests/layout.rsClear filter2026-08-20
🐛 fix(ui): a menu fits the room it is allowedAhmet Kaan Gümüş · 9585160
🐛 fix(ui): a menu fits the room it is allowed The clamp put the menu's top below the picture, and then the menu walked straight back up over it: the list was still measured against the whole window, so anything taller than the space below the frame was re-fitted to the window's own bottom edge. Measured on a 720-high room, a 396-high menu floored at 404 came back to 324 and ate the last ten pixels of the picture. Menus now size their list against the room they are actually allowed to fill, so a long one scrolls inside its own plate exactly as the keys overlay does, and the frame stays whole. Two tests hold it: one reproduces those numbers, one greps for the shape of the mistake so the next floated surface cannot make it quietly. This is the fourth surface to land on the picture — after the notice bar, the export card and the preview badge — which is why the guard is structural rather than another instance fixed.
✨ feat(ui): sources get their own colour and the ruler learns to countAhmet Kaan Gümüş · 25a08e3
✨ feat(ui): sources get their own colour and the ruler learns to count The darkroom's source tints were four greys, so every source carried the same non-identity and the mock's whole read — each film marking its own dot, spine and waveform — could not happen. The family gets the real twelve-hue wheel the language describes, stepped off the reference inks and held in the contrast band; the other twelve palettes keep their own tints untouched. The bench ruler was a filled bar. It has ticks and MM:SS labels now, chosen so they never crowd, with the playhead's own timecode pinned at its left edge, and each lane head wears a dot in its first clip's ink. The dock's import verbs stop lying: they carry real actions with real chords. Add files takes ctrl+o, which the once-a-project proxy toggle gives up to a command an editor runs all day. Paste path takes ctrl+l rather than the mock's ctrl+v, which the timeline's own paste has earned. The tab letters are gone rather than shown unbound — bare l and i belong to lift and mark-in.
✨ feat(ui): the room becomes the one in the mockAhmet Kaan Gümüş · 622904e
✨ feat(ui): the room becomes the one in the mock Beside the mock, the shipped room was nowhere near it. The dock was the legacy library verbatim — pill tabs, a Media/Audio/Text row, a filled Import button, an amber accent no chrome may carry, and a source name clipped and dimmed past reading. It is now the dock the mock draws: a count line, a chrome-less filter, ghost sort chips, two-line rows whose names are mono and legible and ellipsize at the end, an import section, and the hint that names the four gestures. The spine groups its commands under heads and stacks each glyph over its chord. The time band leads with the timecode, carries the transport as ghosts, reads the cut out loud, and ends in the room's one bordered chip — which now actually exports: the stance had been suppressing the action and never mounted the card, so the control was wired to nothing. The bench grows real thumbnails and waveforms in the source's ink, with the name plate inside the clip where the mock puts it. The fonts the language always named are bundled at last: Archivo and Spline Sans Mono, cut to static weights because this text backend cannot read a variable axis and would have drawn every weight the same. The darkroom is the room you get now; OLD_GUI=1 opens the old one.
🐛 fix(ui): no bar over the picture, and the ledger names the cutAhmet Kaan Gümüş · 43f5ab4
🐛 fix(ui): no bar over the picture, and the ledger names the cut The legacy notice bar lives inside the picture, and the stance reuses the picture, so every darkroom notice painted a full-width bar across the bottom tenth of the film — under the stance's own plate, which was already showing the same words. The bar stays home in the legacy room now, and a test fails if it ever wanders back. Splitting wrote nothing to the ledger, so the bench grew a splice while the room said nothing happened. The cut speaks now, in the grey that fades on its own. Trim and walk stay silent: they run thousands of times an hour and would turn the ledger into a firehose. DESIGN §9 asks for chords surfaced in place on a held ?, not a cheat-sheet. Fifteen of seventy-one commands have a widget in the room today and all fifteen already wear their chord permanently; the other fifty-six have nowhere to stand yet. The section is amended to say what the room does and what it owes, rather than leaving the document describing a room that does not exist.
🐛 fix(ui): the film keeps its shapeAhmet Kaan Gümüş · 156db78
🐛 fix(ui): the film keeps its shape The picture was stretched to fill whatever box it got, in both rooms, for as long as the app has existed: object_fit(Contain) was set and never took effect, so a sixteen-by-nine source was drawn at two-point-three to one and, with the judging plates up, two-point-eight. It draws through a canvas now that computes the fitted rect itself and paints there, so the frame keeps its own shape and the bars beside it are room chrome. That canvas needed a real box to measure. The stance's picture div was a block one, so it sized itself from flow children and the absolutely placed canvas — the only child — left it at zero height and the picture went black. It is a flex box now, which is what its flex_1 child always assumed. The judging plates reserve their strip whether or not they are showing, so walking onto a cut no longer resizes the film underneath.
🐛 fix(ui): the seam loses its hue and the chords become reachableAhmet Kaan Gümüş · 9e2bfd6
🐛 fix(ui): the seam loses its hue and the chords become reachable
The verifier drove the room and found three faults. DARK_SEAM carries an
alpha byte, but the stance handed it to rgb(), so every seam between
regions painted pure blue — the first law broken in the first screenshot.
It goes through rgba() now, a sweep found no other constant of that shape
mismatched, and a new test catches the class: the old guard only grepped
colour literals, so a hue arriving through a theme constant sailed past it.
The stance root read keys with no modal guards, so Home seeked the playhead
while the dock's Colour card was open, and Delete and Cut were reachable the
same way. It now asks the same shared predicate the legacy room asks.
Actions whose surfaces the stance does not draw yet are suppressed rather
than left setting invisible state.
gpui clears the shift modifier for every symbol key and hands over the
shifted glyph instead, so Chord.shift and lookup_shifted never had a
production caller and the stride-ten walk could not fire. The dead
machinery is gone; stride ten is its own pair of actions on < and >, and
selection moves to { and } — on shift+[ it had become keyboard-dead, a
regression the legacy room was carrying too.✨ feat(ui): the cut becomes the subject and the dock fillsAhmet Kaan Gümüş · 14bd4a6
✨ feat(ui): the cut becomes the subject and the dock fills DESIGN.md §12 steps 3 and 4. The cut grammar dispatches for real: , and . walk the marked clip's cuts (shift strides ten), [ and ] trim its edges at frame detents through the same engine door the mouse drag uses, / loops the subject span while the transport pumps. The maths live as pure functions in timeline_math.rs with their own tests. The stance's own regions fill in: the spine carries its commands as ghost glyphs wearing chords read live from the keymap, the screen draws the picture through the same path the legacy room uses and puts OUT|IN plates up when the playhead rests on a cut, the time band leads with timecode and the cut odometer. The stance root now takes focus and reads keys — before this it had none, so the chords were unreachable there. The dock delegates to ui/dock_stance.rs: Sources reuses the library assembly, Clip shows Speed, Colour, Transform and EQ as ghost verbs over the existing param cards. No box in the dock; the only one is Export.
✨ feat(ui): the stance stands behind a flagAhmet Kaan Gümüş · 9499168
✨ feat(ui): the stance stands behind a flag DESIGN.md §12 step 2. EDITH_DARKROOM=1 hands the window to ui/stance.rs: spine, screen, time band, bench, ledger, dock, in the geography §5 draws, painted only from the Darkroom family and pinned to that palette at startup. The regions are placeholders with their section heads; each carries a hook comment naming the step that fills it. The legacy tree is untouched when the flag is unset — the only edit to that arm is the paren and into_any_element() both branches need to share one return type.
2026-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.