Commits
Commits on
484d07d60fa68bd3b068fa98393eddbc6450152c2026-08-21
✨ feat(darkroom): menu styling, source removal with clips, settings chords, spine geographyAhmet Kaan Gümüş · 3e04aeb
✨ feat(darkroom): menu styling, source removal with clips, settings chords, spine geography Baseline of the Darkroom parity work before the old-UI removal lanes branch.
🐛 fix(timeline): the wheel runs the film forward, not backAhmet Kaan Gümüş · 83b80db
🐛 fix(timeline): the wheel runs the film forward, not back Wheel up scrolled back toward the head, on the reasoning that a page's wheel up goes toward its top. A timeline is not a page — the wheel pushes the film past the playhead, so up is later.
✨ feat(bench): a palette row can land on a laneAhmet Kaan Gümüş · a650264
✨ feat(bench): a palette row can land on a lane The drop-ghost work left this half undone: a caption dragged from the palette previewed a landing and had nothing to land in. Wire place_sub on the bed so the preview leads somewhere.
✨ feat(timeline): close every gap on the track at onceAhmet Kaan Gümüş · e78c741
✨ feat(timeline): close every gap on the track at once A second row in the gap menu, named for the lane it will touch, so nobody has to guess whether it reaches the others. Gaps close right to left, since each close moves the ones after it, and the whole sweep is one undo press. A gap a linked take cannot close without losing sync is skipped rather than forced, and the notice says how many were left and where.
✨ feat(bench): right-click empty space to close the gapAhmet Kaan Gümüş · 8ce6d6b
✨ feat(bench): right-click empty space to close the gap Right-clicking empty bench space raised no menu at all before. It now hit-tests the gap under the pointer and offers to close it, rippling that lane left. A file with audio lands as one take, and rippling half a take would pull it out of sync — so the scope widens to the take's other lane only when the very same stretch is empty there too. When the two gaps differ, it refuses and names the lane to fix rather than moving anything. The refusal is readable now: the notice plate was reading the oldest notice while the ledger read the newest, so a mouse-raised message queued behind an unread one and never showed. It reads the newest, and wraps.
fix(ui): the notice plate reads the newest message, not the stalestAhmet Kaan Gümüş · d3bace2
fix(ui): the notice plate reads the newest message, not the stalest notice_plate showed notices.front() while the ledger's "last action" already read notices.back() -- and nothing but a keystroke ever calls dismiss_notice(), so a mouse-driven refusal queued behind an earlier, undismissed notice (a ctrl+s "SAVED ...") never reached the plate at all. The plate now reads back(), matching the ledger, so the newest notice is always the one shown; its max width also grows from 360 to 480px so a refusal-plus-remedy sentence gets two or three lines instead of being left to the ledger's single truncated line.
fix(timeline): close gap carries a linked take across, not one lane into silenceAhmet Kaan Gümüş · 7f487c1
fix(timeline): close gap carries a linked take across, not one lane into silence Close gap was a permanent no-op for any linked A/V take: cut_regions refused per-lane ripples that would pull a take's picture half away from its sound half. gap_take_scope now widens the ripple to the take's other lane whenever the same stretch is empty there too (same start, same length, so nothing but silence moves and sync holds), and refuses -- in words the user can act on -- when the gap doesn't match or the other half is solid, rather than leaving the row to click into silence.
✨ feat(timeline): a right-click on empty bench space closes the gapAhmet Kaan Gümüş · 29d8b28
✨ feat(timeline): a right-click on empty bench space closes the gap Right-clicking a gap on a lane (video, audio, or the head/tail/middle of one) now opens the same clip-menu surface with a single "Close gap" item; picking it ripples every clip after the gap left on that lane only (Premiere-style per-lane scope, repeatable per track), through Project::cut_regions so it is one undo press like every other ripple. engine/src/project.rs: Project::gap_at (+ private gap()) finds the empty stretch under a frame, None for inside-a-clip or the open end of a lane (nothing there to ripple back) engine/src/playback.rs: PlaybackSession::gap_at forwards it app/src/menus.rs: ContextMenu::on (Clip|Gap) replaces the clip-only idx field so the existing menu, its scrim, and every context_menu = None clear site cover the gap menu for free app/src/player/timeline_edit.rs: open_gap_menu + close_gap app/src/ui/overlays.rs: gap branch of context_card renders "Close gap" app/src/ui/bench_stance.rs: bed's right-click hit-tests gap_at; a click that lands on a clip leaves that clip's own menu untouched
✨ feat(ui): the last chord-only controls grow a faceAhmet Kaan Gümüş · 53a56dc
✨ feat(ui): the last chord-only controls grow a face Fit joins its siblings as a verb row in the dock's clip tab, and Redo takes its place beside Undo on the spine — it had a button in the old room and none in this one. The guard is the point: every chord-bound action must now own a visible affordance in the darkroom or be named in the chord-only list, so the next one cannot go missing quietly.
✨ feat(ui): a clip card can be made big enough to work inAhmet Kaan Gümüş · c41d066
✨ feat(ui): a clip card can be made big enough to work in Maximizing mounts the card against the window instead of the dock column — an absolute child is sized by its immediate parent, so a window-space offset applied inside the dock put the card in a sliver off the bottom. Toggled by m, by the glyph on the card head, and by a double-click on it; esc gives the size back before it closes the card; the pick survives a restart. The extra room buys resolution, not scale: the EQ's tick gaps go 124.5px to 264.5px with the glyph height unchanged at 8px. Height is floored at the default bench so a small bench cannot shrink the maximized card, and the graph now flexes so the band controls stay visible instead of overflowing. Also fixes clip_tab discarding its own width parameter, which had been handing every card the whole window instead of the dock it lives in.
fix(ui): 20 Hz stops wrapping and a maximized EQ card stops hiding its own controlsAhmet Kaan Gümüş · a333a46
fix(ui): 20 Hz stops wrapping and a maximized EQ card stops hiding its own controls The end-tick anchor fix left the boxes at a fixed 24px, narrower than "20 Hz" at the dark theme's 11px mono, so it wrapped to two lines instead of clipping. Widened both end boxes to their own label's width at the size they draw (eq_tick_end_w, derived from the list-truncation ladder's existing chars-to-pixels ratio so a future type-scale bump widens the box instead of re-wrapping it), plus whitespace_nowrap() as a backstop. The maximized EQ graph also claimed a flat EQ_GRAPH_MAX_H slice regardless of how much room a small bench actually left, pushing the Band/Flatten/Spectrum rows into a scroll the docked card never needed at the same bench. The graph now flex_1()s between the docked floor and the maximized ceiling, taking whatever room the rows below it leave over instead of claiming a fixed slice first.
✨ feat(ui): fit and redo find their own buttonsAhmet Kaan Gümüş · 7b04d88
✨ feat(ui): fit and redo find their own buttons Fit had a chord and a spot buried in the clip's right-click menu but no direct button in the darkroom dock; Redo had a legacy toolbar button Undo's darkroom glyph never grew a twin for. Both now sit beside their siblings (Fit in the dock's clip verbs, Redo paired with Undo in the spine), chord still visible on each. Re-audited the settings page landed since the original parity scout ran: the four project pickers, subtitle style and both proxy toggles are confirmed already mouse-reachable there. Adds a source-scan regression guard: every chord-bound ActionId must show up in the darkroom tree's text or be named as an accepted chord-only stroke, so this "keyboard-only option" class gets caught before it ships again instead of being found by hand a fifth time.
✨ feat(settings): the film's declared HDR grade becomes visibleAhmet Kaan Gümüş · c2943bb
✨ feat(settings): the film's declared HDR grade becomes visible The engine has always parsed mastering-display peak, MaxCLL and MaxFALL from both the MKV and MP4 paths and fed them to the tonemapper; nothing above the engine could see them. PlaybackSession now carries the ContentLight, and two read-only rows under HDR tonemap state the numbers. Read-only because no field exists anywhere to persist an override — a readout of what the file declares, not an invented setting.
feat(ui): the settings page shows the HDR reference the file declaredAhmet Kaan Gümüş · e88fbc8
feat(ui): the settings page shows the HDR reference the file declared Surfaces the MaxCLL/MaxFALL and mastering-display peak the demuxers already parse into ContentLight but nothing in the UI ever read (grep across crates/app/src returned zero hits outside tests). Two new read-only rows sit beside the existing HDR tonemap picker in the settings page's PROJECT section -- "HDR reference" (mastering peak) and "Content light" (CLL/FALL) -- using the page's own row_static idiom (no cursor/hover/click) since nothing in engine::project::Project has a field to persist an override into. PlaybackSession gains a content_light() accessor, populated at every open site (fresh open, saved-project reopen) by a second header-only Demuxer::open for the light level, matching the same double-open-for-a-header trade this file already accepts for audio probes.
fix(ui): maximized eq/color/etc cards stop shrinking with a small benchAhmet Kaan Gümüş · f429c6e
fix(ui): maximized eq/color/etc cards stop shrinking with a small bench
below_picture_floor fed the *live* bench straight into the maximized
card's top, so a bench dragged down to BENCH_MIN_H (legal, and the
value the user's own stance-splits held) gave the maximized card LESS
room than docked -- backwards from what maximize promises, and its
curve/handles stopped rendering entirely. maximized_card_top floors
the bench at BENCH_H (the untouched default) before computing the
floor, so a small bench can no longer starve it; a larger bench still
grows it further, unchanged.
Also insets the EQ frequency axis's two end labels ("20 Hz", "20k")
to the graph's own edges instead of centering them on 0%/100%, which
hung half of each off the plot and clipped it.✨ feat(ui): a settings page for the project and the editorAhmet Kaan Gümüş · bdb07d9
✨ feat(ui): a settings page for the project and the editor Project settings change what is rendered and live in the .edith; editor settings describe this machine and live in ~/.config/edith. Reached by the St glyph on the spine and by ctrl+, — chord-only entry is the gap this room kept repeating. Both proxy switches now keep a machine default beside the project's own pick, and every row's hint names the door it actually uses; a test now holds each row to that claim. Refusing an action while an export runs finally says so: the key guard stopped folding 'an export is running' into 'a card owns the screen', so the refusal reaches the notice plate instead of dying silently.
🐛 fix(ui): the Proxies default gets a home and a refusal finds its voiceAhmet Kaan Gümüş · 0a7a759
🐛 fix(ui): the Proxies default gets a home and a refusal finds its voice D1: the Proxies row hint promised a ~/.config/edith default no code ever wrote -- toggling it with nothing open vanished on relaunch. Gives Proxies its own save_proxies_pref/load_proxies_pref, the same sibling file auto-proxies already keeps, wired into toggle_proxies and read at startup. Strengthens the settings guard to scan every row's own hint text for a ~/.config/edith claim and demand the matching pref pair exist, not just the section headers. D2: pressing ctrl+, during an export was a silent no-op -- the oracle's own "an export is running" refusal for ActionId::Settings never reached notify_user because the darkroom's key guard swallowed every key whenever modal() was true, and modal() folds exporting() in. Splits Player::card_open() (an actual card/menu owns the keyboard) out of modal() (that, or an export is running) and points the stance's key guard at card_open() alone, so a bare export with no card open now falls through to enable()/act() and the refusal gets spoken like any other. Every other action refused only by an export was equally mute; this fixes the guard, not the one action.
2026-08-20
fix(ui): a maximized clip card escapes the dock instead of the sliver inside itAhmet Kaan Gümüş · b1ff91f
fix(ui): a maximized clip card escapes the dock instead of the sliver inside it The maximize offset (`below_picture_floor`) is a window-space y, but every param card (EQ/Colour/Transform/Speed/Silence/Mix/Subtitle style) was mounted inside `dock_stance.rs`'s "dock-clip-rows" -- a ~280-390px, less- than-window-tall strip. An absolutely-positioned child is sized against its own immediate parent regardless of any `.relative()` upstream, so the window-space offset was applied inside that short box and shoved the card to a ~120px sliver at the bottom, with the graph never on screen: maximize made every card smaller. The seven cards now mount two ways depending on `card_maximized`: un-maximized, they stay in `dock_stance.rs`'s dock column exactly as before; maximized, they mount at `ui::stance::render`'s "stance-centre" instead, the same window-space root `context_card`/`library_card`/ `export_card`/`picker_card` already render from. Also: `dock_stance::clip_tab` ignored its own `width` parameter and fed the whole window's width into `eq_card_w`, so an un-maximized EQ card asked for up to 720px inside a ~390px column and overflowed past the window edge (the "480 in 280" shape of bug this feature already tried to fix once). It now feeds the dock's real width. Guard: `a_maximized_cards_room_is_bigger_than_the_docked_rooms_not_smaller` (tests/cards.rs) checks in pure values that the maximized mount's room is wider than the docked room it escaped, using the same width formulas production code calls. This binary has no `TestAppContext` to mount the real tree and read painted rects back, so it cannot see the div nesting itself -- only driving the app proves the fix lands on screen; the test's own doc comment says so. The legacy tree (`OLD_GUI=1`) has the same class of bug in `ui/inspector.rs` (the maximize width formulas want more room than the fixed inspector column can give), but an existing structural test (`an_inspector_section_occludes_no_timeline`) forbids these cards from ever mounting at the legacy root -- fixing it needs an in-place answer within the inspector's own box, not an escape, and is left as a follow-up.
🐛 fix(ui): settings project rows stop pretending an empty picker is a valueAhmet Kaan Gümüş · ba3306f
🐛 fix(ui): settings project rows stop pretending an empty picker is a value Resolution/Frame rate/HDR tonemap fell back to the bare nouns "Size", "Rate", "HDR" when no project is open -- text sitting in the value slot that reads as data but states nothing. They now show a quiet INK4 dash when nothing is picked yet; Sample rate keeps its "Source" fallback, which is a real statement of behaviour, not a stand-in. Adds a source-scan guard (no TestAppContext in this binary) pinning the three placeholder strings gone for good.
🐛 fix(settings): the page stops claiming storage it never usesAhmet Kaan Gümüş · f4ba613
🐛 fix(settings): the page stops claiming storage it never uses Driving found the EDITOR header saying 'kept in ~/.config/edith' while those rows wrote nothing there, and Auto proxies persisting nowhere at all — it reverted to On every relaunch. The engine round-trip was already right; the gap was the window-level default, which now has its own config file beside subtitle-style. Each row's hint names its real door instead of one blanket claim. Settings also could not open during an export — the exporting card owns the modal slot — while the oracle and its test asserted it could. The oracle now agrees with what the user can observe.
fix(ui): the maximize-a-card branch compiles and its own claims get testsAhmet Kaan Gümüş · db1e199
fix(ui): the maximize-a-card branch compiles and its own claims get tests Two compile errors from the wip checkpoint, both fixed at the root rather than per call site: - dark_card_head now returns `impl IntoElement + use<>`: edition 2024's default precise-capturing rule was pulling cx's elided lifetime into its opaque return type, so any hoisted `let head = dark.then(|| dark_card_head( ..., cx));` kept cx borrowed until head's own use -- fighting every other cx.listener(...) built in between. Fixing the return-type capture (rather than reordering all seven cards defensively) closes the whole class; only subtitle_style_card and silence_card actually needed the hoist once that was true. - inspector.rs's OLD_GUI=1 tree threads its existing `room: Size<Pixels>` through to color_card/transform_card/speed_card/silence_card/mix_card/ subtitle_style_card, same as eq_card already did. - below_picture_floor gained a bench_h parameter on main (the seam feature); every darkroom card's maximize-scrim .top() call now reads the live Split::Bench height instead of a stale one-arg call. - a pre-existing structural test's 1200-char window onto dark_card_head no longer reached the help tooltip once the maximize glyph/tooltip grew the function ahead of it; widened to fit. Three new tests in tests/cards.rs: EQ box growth vs. eq_x/eq_y's untouched 0..1 mapping, below_picture_floor's floor-plus-band-equals-window invariant across bench heights (using the real two-arg signature), and the maximize flag's save/load/corrupt-file round trip via the same XDG_CONFIG_HOME scratch-path pattern tests/media.rs already uses.