Commits
2026-10-23
🚚 edith moves to git.tahinli.comAhmet Kaan Gümüş · b02f499
🚚 edith moves to git.tahinli.com The working tree as of 2026-10-23, as one commit on top of the last one here. It carries the work up to that date plus the test-slimming work: integration tests merged into one binary per crate, nextest config, doctest = false, debug line tables only, perf tests behind --ignored, and faster generators, reverse, undo, subtitle-export, hevc, stabilise and hear tests.
2026-09-24
🐛 fix(preview): the cue picture cache is keyed by the cue, not by its momentAhmet Kaan Gümüş · 16925fd
🐛 fix(preview): the cue picture cache is keyed by the cue, not by its moment The cache under `Player::sub_image` was keyed by `(lane, start_us)` and served on a match, so two different bitmap cues that share a lane and a start microsecond -- lift a caption off a lane, drop another track's caption at the same frame -- painted the picture of the cue that is gone: the cue's identity was never compared, and the cache is dropped only on toggle-off, leave and open. `SubImageKey` carries the cue's own end and the picture's own allocation (`Arc::as_ptr` of the cue's image), which is stable for as long as the cue is in the session's list, so a repaint of one cue still hits while two cues never collide. The bytes are never compared: a display set is tens of kilobytes and this test runs on every frame.
2026-09-17
⚡ perf(audio): the preview paints at its own size, not the project'sAhmet Kaan Gümüş · 62b680e
⚡ perf(audio): the preview paints at its own size, not the project's The visualizer rebuilt the picture at the project resolution (1920x1080) for a preview displayed at ~584x328, so every look edit paid 4-5x what it needed. `PlaybackSession::set_view_size`/`view_size` now feed every composer the playback path opens (span, dissolve-B, black) and the app pushes the Contain-fitted display box from a probe on the picture area, with an 8 px deadband so a resize drag does not thrash. The export keeps its own seat at the project resolution and is untouched. Ring, a test song, ms per painted frame, glow 2/4/8/12/16: 18.5/35.7/64.7/93.2/117.1 -> 5.7/5.9/9.6/12.9/15.9 "Save frame as PNG" would otherwise have followed the preview down to that size, so it now asks the seat for one frame at the project's own size and writes the PNG when it lands (keyed to the session that asked, with a 2 s bound), and the preview's size comes back on the next repaint. The painter's per-frame buffers (VizScratch) are owned by the painting thread: 27 Vecs a frame -> 8, and none on later frames.
2026-09-09
2026-08-26
🔥 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.
2026-08-21
2026-08-20
🐛 fix(ui): the darkroom stops promising what it cannot doAhmet Kaan Gümüş · 4137821
🐛 fix(ui): the darkroom stops promising what it cannot do A verifier drove every control and found three dead ones sharing a cause: the render entry returns early for the darkroom, so everything mounted below that line — the enter key, the escape that closes a preview, the menus — belonged to the old room alone. The stance grew the branches it was missing and mounts the cards it was missing. Enter adds a source at the playhead now. Right-clicking a source dot used to set a menu the room never drew, and since a set menu counts as an overlay, the room went modal with nothing on screen and swallowed every key but escape; the menu paints, and a test now asserts no such state can go modal without showing something. The export card and the preview badge were still the old app's sheets over the picture — the residue. Export is a plate over the bench with one bordered chip, and it still exports. The preview says its piece beside the frame instead of on it. The hero timecode and the ledger disagreed by four seconds because the band asked the active session, which is the preview's clock while a preview is up. Both read the one position the room already computes.
🐛 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): s cuts, the loop arms cold, and no command hidesAhmet Kaan Gümüş · b999ecf
🐛 fix(ui): s cuts, the loop arms cold, and no command hides Round two of the verifier's drive. Bare s added a subtitle lane while the design contract reserves it for the split, so an editor pressing it twenty times got twenty stray lanes and no cuts; s splits now and the caption lane answers to c. Arming loop-trim forced playback on, so the editor's own next space toggled it straight back off and the room looked frozen — arming leaves the transport exactly as it found it, which is what the disarm side always did. Three commands lived only on keys: the stride-ten walk, the selection walk, and the overlay that would have taught them. The spine now shows both strokes beside the walk glyphs, carries the selection pair, and the keys overlay opens again — the surface is the shortcut sheet, which is the whole point of the rule. The two-up plates were painted over the bottom of the picture. The screen lays them out as a sibling now, so the picture shrinks to make room rather than being covered. The dock tab left its process-global static for the same config the palette uses, so the room reopens on the tab it closed on.
✨ 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.
2026-08-19
🐛 fix(app): the scrub bar steps over the notices instead of on themAhmet Kaan Gümüş · 3136aa6
🐛 fix(app): the scrub bar steps over the notices instead of on them Its 24px hit area sat on the one-line notice plate, so a click meant to dismiss the notice seeked the preview instead, and the fill bisected the text. The bar now rests on top of whatever height the transient bars measured this frame.
✨ feat(app): the preview gets a scrub barAhmet Kaan Gümüş · e9c5f4b
✨ feat(app): the preview gets a scrub bar The preview picture now carries its own seek track along its bottom: the played share drawn as a fill, a WCAG-tall hit area over a 6 px rail, and click or drag to jump anywhere in the file. It seeks through the ordinary `Player::seek`, so it lands on the preview session the way the keyboard step does and never disturbs the timeline underneath. Driven headlessly against a 100 s H.264 mp4: the fill advanced 1:35:01 -> 1:39:18 between two shots, a click at the bar's midpoint moved the clock 1:39:18 -> 0:50:02 with the picture changing, a drag 850 -> 300 px landed 0:09:01, and esc left the timeline region pixel-identical to its pre-preview shot (compare -metric AE = 0).
🐛 fix(app): a preview shows neither the timeline's captions nor its hintsAhmet Kaan Gümüş · 490cfd3
🐛 fix(app): a preview shows neither the timeline's captions nor its hints The timeline's cue overlay would caption the wrong film over a preview picture, and the drop-a-file hint keyed off the timeline session alone.
✨ 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 row previews its file over the timelineAhmet Kaan Gümüş · 5231711
✨ feat(app): a library row previews its file over the timeline A row's ▶ button (and esc, or the banner's own Stop) opens the file in place of the picture without touching the edit's own playhead or undo stack: PlaybackSession::open already builds exactly this session, so the pump, transport, seek, step, volume and end-of-stream handling all route through a new active_session()/active_session_mut() that reads the preview while one is up and the timeline otherwise.
2026-08-14
✨ feat(subs): one subtitle track is shown and every placed one is exportedAhmet Kaan Gümüş · 1139174
✨ feat(subs): one subtitle track is shown and every placed one is exported The picture drew every subtitle lane at once, so three lanes of different words were three plates over one film and two hundred were nonsense. One lane draws now -- the one whose header dot is lit -- and clicking another lane's header moves the picture to it. The pick is resolved against the lanes there are at the moment it is read (`subs::active_lane`), so one lane needs no picking, the first lane added draws, and removing the shown lane promotes the first one left instead of blanking the picture. The overlay asks the shown lane for its cues and no other, so a frame costs what one lane costs whatever the stack is. What travels in a file is untouched by that pick: every subtitle lane on the timeline is its own track in the output. What did travel wrongly is a track sitting in the *palette* on no lane at all -- with every subtitle lane emptied, the engine's palette fallback wrote all of them into the file. `Player::export_subs` now answers with the tracks a lane places, which is the same sentence the card says.
🧹 chore(app): the dead imports and the arguments nothing readsAhmet Kaan Gümüş · 07ee3c7
🧹 chore(app): the dead imports and the arguments nothing reads A build printed thirteen warnings and every one of them was something the code had stopped using: four imports nobody names any more, a picture duration the timeline is handed and never reads, and the export flag a rewrite of the hint line left behind. Removed rather than hushed. An unused argument is a caller handing over something the callee has no use for, and the two bindings that were computed and dropped read state on every frame to throw it away. What is left of the thirteen is five dead-code warnings whose only callers are tests -- a panel-height ladder, a volume label, the theme's focus stroke, the palette lookup beside it -- and taking those out means taking their tests out, which is a decision about that code and not a warning to be tidied on the way past.
✨ feat(app): the picture shows what is placed, and every open eyeAhmet Kaan Gümüş · afea3b2
✨ feat(app): the picture shows what is placed, and every open eye The overlay stops reading the picked palette row and reads the subtitle lanes: the union of every enabled lane's cues at the playhead (`PlaybackSession::sub_lane_cues` minus `Player::subs_off`), one plate per cue, lane order bottom-up so S1 keeps the line it has when it is the only one. Nothing shows until it is placed -- the model every other medium here already follows, and the end of the auto-show a walked file used to get. The palette row's click loses its show semantics and keeps the selection the × acts on; the heading names no track any more, and the tooltip and the import tail say where a track landed and what the next move is. `Player::sub_image` is keyed by (lane, start_us): two lanes are two placements at one microsecond, and a shut eye must not leave the picture before it on screen. A picture cue draws from the lowest enabled lane alone (one cache slot, one canvas over the whole region) and the plate stack still steps over the transient bars.
🐛 fix(app): the cue steps over the bar hanging off the pictureAhmet Kaan Gümüş · 0c26d06
🐛 fix(app): the cue steps over the bar hanging off the picture A notice, the import line and the seek line hang off the bottom edge of the picture region, and the cue plate sat at a fixed 8 px off that same edge -- so every message was drawn across the line being read, and cost the reader both of them. The plate now sits above whatever those bars measured (`height_probe` -> `sub_bottom`) and comes straight back down the frame they leave: the no-notice position is unchanged to the pixel, which is the position people are used to. A picture cue (PGS) is slid up by the same measurement with cancelling top/bottom insets, so the disc's canvas keeps the height -- and so the fit -- it had with nothing hanging there, rather than being refitted into a shorter box. Measured and not counted: a notice wraps to as many lines as the window is narrow (31 px on one line, 43 on two), and any constant here would be right at exactly one width. The probe asks for one more frame when that height changes, because the window a notice arrives on may be paused and never draw again by itself.
2026-08-13
chore: rename ponytail: comment marker to corner-cut:Ahmet Kaan Gümüş · 9ba8e0a
chore: rename ponytail: comment marker to corner-cut: Marker convention renamed after uninstalling the ponytail plugin; semantics unchanged (deliberate corner-cut, known ceiling + upgrade path). Token-only rename, 81 comment lines, no code change.
✨ feat(ui): the palette is picked in the window, not at the buildAhmet Kaan Gümüş · 4ddba0c
✨ feat(ui): the palette is picked in the window, not at the build The two colour families were a cargo feature (`--features warm`), which makes the choice one only whoever compiled the binary could make. Both are now `Palette` values behind one relaxed load: a token is a call (`BG_PANEL()`) that reads a field off a 'static table, so a swap repaints the whole window with no restart and no lookup by name. The door is a list, not a toggle -- Theme sits in the toolbar's View group beside Snap, and opens the same picker the resolution and the HDR rendition already use, so a third palette costs one line in `PaletteId::ALL` and nothing anywhere else. The stroke is ctrl+h, the row is in the actions card, and the list now answers the keyboard as well as the pointer: up, down, enter, escape, on every picker in the editor rather than only this one. The pick is kept in ~/.config/edith/theme, beside the keybindings and under the same XDG rule, so it survives a restart; a file that cannot be written is said out loud. The contrast guards run against every palette in the table now instead of the one that used to be compiled, which is what makes a palette added later land gated.
2026-08-12
♻️ refactor(ui): extract the UI out of main.rs into ui/ modulesAhmet Kaan Gümüş · d8bffff
♻️ refactor(ui): extract the UI out of main.rs into ui/ modules The whole window was one 19,916-line file with one Render impl in it, which is why every colour sweep so far lost to instance patches: there was no seam to sweep. One module per region, and one theme module every paint reads a token from -- no 0x literal survives outside it.