forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/app/src/tests/media.rsClear filter

2026-10-26

💄 UI pass: proxies off by default, picture-only fullscreen, hover submenus, level in the volume sliderAhmet Kaan Gümüş · f178286
💄 UI pass: proxies off by default, picture-only fullscreen, hover submenus, level in the volume slider

- Proxies: "Make them on import" now defaults to off (pref file and fresh
  sessions); the switches say "proxies" so a search finds them.
- Fullscreen: a button at the transport's right end; fullscreen draws only
  the picture and the transport band; Escape leaves it.
- Context menu: Clip label and Fit are hover submenus like Adjust and
  Compound; moving between two ▸ rows switches the open submenu. A
  right-click inside a selection makes the clicked clip the anchor, so
  Equalizer no longer refuses on a linked video half; Alt+4 on a video
  clip opens the EQ on its linked audio.
- Volume: the live output level rides inside the slider's fill instead of
  as separate bars beside it.
- Hover hints: label and key chips share one centre line, even padding;
  undo steps read as verbs ("Undo Enable/disable clip"), clearer wording.
- Resize while playing: the picture restart waits until the size has held
  still for 200 ms instead of reseeking every 8 px.
- Ripple trim of a start edge no longer trips the lane's overlap check.
- Tests: no longer pinned to one ffmpeg's exact bitrates/offsets; the
  .edith probe test writes its own project; overflow fixes in test helpers.

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-30

🔀 merge(decode): EXIF orientation is shown, and a decode failure says why it stoppedAhmet Kaan Gümüş · a72b5b1
🔀 merge(decode): EXIF orientation is shown, and a decode failure says why it stopped

# Conflicts:
#	crates/app/src/tests/media.rs
feat(app): a decode failure reaches the strip, as the lost sound device doesAhmet Kaan Gümüş · 6bc4cc2
feat(app): a decode failure reaches the strip, as the lost sound device does

`PlaybackSession::video_failure_reason` (the engine half is the previous
commit) had no consumer, so a decode failure still reached nobody: the
worker printed it to stderr, dropped the channel, and the app read the
closed channel as the film finishing. The transport said ENDED over a
frozen last good frame with nothing in the window saying why.

It goes through the **existing** notice queue, not a second banner
system: `decode_failed_line` is `audio_lost_line`'s twin, and
`decode_change_notice` is `audio_change_notice`'s, step for step, because
the thing that changed is the same kind of thing -- a reason the engine
started or stopped stating between two frames. `watch_decode` sits beside
`watch_audio` in the pump, keyed to `session_gen` for the same reason, so
a preview flip cannot announce the other session's failure.

`AudioStep`/`audio_step` become `ReasonStep`/`reason_step`: the pure
decision was never about audio, it is a comparison of one session
generation and two reasons, and the picture side now needs it too. A
second copy of that state machine would have been the wrong answer.

The retraction is what keeps this from becoming noise: a decode that
fails, is seeked away from and succeeds takes its line back, or the strip
keeps saying DECODE FAILED over a film that plays. Asserted both ways,
along with the two lines not taking each other down.

cargo test -p edith --bin edith tests::media -- 34/34.
fix(player): one owner for the monitoring level, so a preview close cannot undo itAhmet Kaan Gümüş · 8b784e6
fix(player): one owner for the monitoring level, so a preview close cannot undo it

The level is the *window's*, but it was pushed at whichever session
happened to be on screen (`apply_volume` went through
`active_session()`, preview-or-timeline). Open a preview, press M, press
Esc: the preview is quiet, the notice goes, and the timeline plays at
the level from before the preview -- usually full -- while the control
still reads "Muted". Shown level and heard level disagreed and nothing
said so. `open_preview` pushed at the preview directly rather than
through the one door, which is the same defect wearing a different hat.

The app keeps exactly one copy of the level (`Player::volume`, a setting
of the window and not of any session) and every session is a follower
of it. The engine cannot own it: a preview and the timeline are two
sessions with two devices, and the level has to outlive both, so the
owner is above them.

* `push_gain(gain, sessions)`: the push, over every session handed in.
  A free function over the sessions rather than a `&self` method so the
  round trip can be driven without a `Player`, which takes a gpui
  `Context` this test binary has no `TestAppContext` to build.
* `apply_volume` is a call to it with both session slots; `open_preview`
  and `close_preview` call it, so no door can swap the session on screen
  without telling the new one what the window is showing.

Witnesses: `a_preview_close_leaves_the_timeline_at_the_level_the_window_shows`
round-trips the level through the real push and reads it back out of the
device (`PlaybackSession::gain`), with a control that a session outside
the push is untouched. `the_window_level_is_pushed_at_every_session_and_on_every_swap`
pins the wiring the first cannot execute; reverting the push to the
active session alone fails it.

2026-09-24

📝 docs(audio): the death writer is the wave branch's tick, not a missing halfAhmet Kaan Gümüş · 56924e8
📝 docs(audio): the death writer is the wave branch's tick, not a missing half

E1 settled by the integrator: the engine writer exists on the wave branch -- `tick`'s dead branch sets `AUDIO_LOST` and `rearm_audio` clears it -- while this lane's base engine carries neither, so the earlier wording read as an engine defect that is not owed. The three documents now say what each side is: the engine writes the reason (wave branch), this lane reads it and spells none of its words, the flip is driven through the seam here and asserted end to end on the merged tree. Nothing in either test depends on when `tick` sets it.
📝 docs(audio): the reason's writer is the engine lane, not this oneAhmet Kaan Gümüş · a091c6d
📝 docs(audio): the reason's writer is the engine lane, not this one

The documents said the engine sets `audio_disabled_reason` on a death and clears it on its re-arm. In this tree nothing assigns that field off the death path: the only mid-session writer is `arm_audio` (`crates/engine/src/playback.rs:2687`), which assigns only when `open_audio` returned a device, so it can only clear. The app side is the *reader* of whatever reason the engine reports, and it never spells the engine's words -- a death that sets nothing stays unsaid, and that is the engine lane's half of this defect.
🐛 fix(audio): the sound watch is keyed to the session it describesAhmet Kaan Gümüş · e87ca88
🐛 fix(audio): the sound watch is keyed to the session it describes

The watch cached one reason while `sound_reason` read `active_session()`, so a preview opening or closing -- a *different* session, and the timeline's own unchanged reason restored behind it -- read as a device that came back and then died again, and the phantom line stayed on the strip. `watch_audio` now asks the pure `audio_step` about the session generation its cache describes against the one the frame serves: a swap seeds and announces nothing, and only a change on the *same* session pushes or clears. `close_preview` bumps `session_gen` like every other install and drop (it was the one door that did not), so the key holds at every swap.

Doc corrected with it: this side is the *reader* of `audio_disabled_reason`; the writer of a mid-session death is the engine's own file (nothing in this tree assigns it off the `Audio::died` route yet -- `arm_audio` can only clear it), which is the wave lane's, and no constant of it is spelled here.
🐛 fix(audio): a device that dies under an open file says so, and unsays itAhmet Kaan Gümüş · c80d1f7
🐛 fix(audio): a device that dies under an open file says so, and unsays it

The engine knows: a death sets its `audio_disabled_reason` to its lost-device word, and its own 1 s re-arm clears it again. No consumer on this side ever looked -- both `audio_notice` call sites are the *open* paths -- so a device that died mid-session played on in silence with no message at all, and the strip went on saying nothing after the sound came back.

`Player::watch_audio` is the per-frame check, run from `Player::pump` (the one place every frame passes through): one read of an `Option<&str>` and one compare, with the strings built only on the change itself. `audio_change_notice` is the queue half and reuses the existing notice path -- `push_notice` for the death, and the same line taken back off the strip when the reason clears, only that line. The two open sites seed the cache (`Player::seed_audio_watch`) so a reason unchanged across the open is not announced a second time, and a line left over from the file before comes off.

2026-09-19

💄 ui(settings,export): settings is a centred modal; the budget goes below a megabitAhmet Kaan Gümüş · 9085e57
💄 ui(settings,export): settings is a centred modal; the budget goes below a megabit

- settings page reframed from the full-width below-picture sheet to a
  centred modal card (480px plate of one tabbed column's measure,
  viewport-capped with the rows scrolling, click-away/esc close
  unchanged) — the sheet covered the timeline; new layout guard pins
  the geometry
- export budget floor drops from 1 Mbps to 100 kbps in both the engine
  (MIN_BITRATE) and the app (BPS_MIN), so a typed '600k' travels as
  0.6 Mbps instead of being silently rewritten to 1.0; pins re-seated
  at the new floor, wheel steps unchanged, no-session fallback keeps
  its 6 Mbps meaning as a literal
- DESIGN.md §11.6 names the settings modal as an accepted occlusion
  exception, per its own 'the document changes explicitly' rule

2026-09-16

✨ feat(audio): the look panel picks the strand colour and reads a typed oneAhmet Kaan Gümüş · 880e8a0
✨ feat(audio): the look panel picks the strand colour and reads a typed one

The CLIP tab's look section gains a Colour | Strand target over the disk
(Strand only once the waveform has two or more strands) and a field that
shows and takes the colour as #RRGGBB or rgb()/rgba(); an unreadable string
is refused in words and changes nothing. The wheel acts on the picked slot.

Every sample after the press is a live write, so one drag is one undo step
rather than sixty. And every click door that writes the project arms
autosave -- the look family, the settings rows, the library's source
removal -- which none of them did: a colour picked and then closed was lost
with no prompt, and the ledger never said "unsaved".
🐛 fix(audio): coalesce the visualizer wheel drag like the colour barsAhmet Kaan Gümüş · ed847d4
🐛 fix(audio): coalesce the visualizer wheel drag like the colour bars

One pointer sample wrote one edit(Dirty::Picture) -> start_picture: a full
picture rebuild at the playhead per sample, so a drag queued a reopen per
step and the window froze for the sum -- the shape drag_color's own comment
already names. The wheel now holds a sample while a rebuild is in flight
(stash_or_write, busy = a pending reseek), flushes it on release, and draws
its mark from the held sample so the hand leads the picture.

2026-09-13

🔁 feat(audio): the MP3 and Vorbis encode seats are the native ec-mp3 / ec-vorbisAhmet Kaan Gümüş · f68f46d
🔁 feat(audio): the MP3 and Vorbis encode seats are the native ec-mp3 / ec-vorbis

The two registry-crate encoder seats (rusty_mp3 0.6, rusty_vorbis 0.1.1)
leave the tree; both formats encode through the codec family's own crates
(path deps, same boundary ec-opus/ec-ac3 already cross).

MP3 (CBR per the card's rate rows): same seat contract, same
Mp3EncoderConfig field names, call sites unchanged. A/B on identical
16-bit PCM (suite fixtures + a 30 s 44.1 kHz stereo music decode),
outputs decoded through symphonia: correlation 0.9994-0.9998 against the
incumbent's 0.9980-0.9991 at the same 192 kbps, PSNR +5..+7 dB, and the
decoded length lands exactly on the mix (the old seat ran 180 samples
long with a 1057-sample shift the gapless tag only partly hid).

Vorbis: the seat's quality knob alone saturates below the incumbent's
operating band, so write_ogg drives the encoder the way its own rate
gates are measured -- rate loop started at quality 0.85 and held to a
128 kbps target. At the incumbent's own 0.85 operating point (123.8 kbps
actual on the music clip, correlation 0.9947) the new seat reads
129.0 kbps actual at correlation 0.9968, +3.1 dB PSNR; against ffmpeg's
libvorbis -q 5 it is par at the same rate (0.9968 vs 0.9973). Every
export decodes to exactly the timeline's frame count, correlation peak
at lag zero.

That measurement retires write_ogg's workaround: the old seat advanced
its granule a hop early and overran the tail, so the function carried a
1024-sample pre-roll and two granule corrections around it. ec-vorbis
reports spec granules and clamps its final one to the sample count fed,
so the pre-roll, the per-packet shift and the manual tail declaration are
deleted. Mono stays dual mono (bit-identical L/R, worst |L-R| = 0
measured) because the format row promises stereo, not because the encoder
refuses mono as the old seat's did.

Perf, named: MP3 encode wall is 0.05x the old seat on the 30 s clip
(4.3 s vs 0.20 s CBR; the old shim encoded blocks across all cores, the
new seat is single-threaded sequential) -- the price of the quality and
gapless-exactness above; Vorbis at the seat's operating point is 1.4x
faster than the old seat (49 ms vs 69 ms per 30 s). audio_export and
backends suites green (14 + 8), export lib tests green, cargo check -p
engine --all-targets zero warnings; lock carries no rusty_mp3/rusty_vorbis
stanza.

2026-09-12

✨ feat(engine): software VP8 decode via dlopen'd libvpx seat in the pluginAhmet Kaan Gümüş · ba33df0
✨ feat(engine): software VP8 decode via dlopen'd libvpx seat in the plugin

VP8 was refused by a stale UNSUPPORTED claim ('no VP8 decoder'); the
vendored cros-codecs VP8 decoder is VA-API-only and the test GPU
exposes no VP8 VA-API profile, so the real seat is software: libvpx.so.9
dlopen'd inside libengine_hw.so (vpx.rs), routed before any GPU device
opens, seek = destroy+re-init on the demuxer's keyframe contract,
CAP_VP8 reported as the plugin's seat. Codec::Vp8 plumbed through
demux (V_VP8 + mp4 vp08), colorspace, refusals; export UI gains a
truthful read-only VP8 row; test_vp8.{webm,mp4} fixtures + capability
row + tests/vp8.rs decode/export twins. Verified by the authoring
session: headless playloop 270 frames 0 dropped, 50/50 seeks, live
harness-driven UI playback, cross-provider review PASS (FFI layouts
against shipped libvpx DWARF, valgrind-clean).

2026-09-09

✨ feat(app): the export moment's row 3 is the encode optionsAhmet Kaan Gümüş · f916eb3
✨ feat(app): the export moment's row 3 is the encode options

The choices were only in the Settings room and nothing on the moment
pointed there (user: "couldn't find how to change encode options,
simplifying doesn't mean getting rid of advanced settings"). Row 3's
readout becomes the controls it was reporting: three ghost segments --
picture `c`, sound `b`, encoder `g` -- driving the very setters the
Settings rows drive, plus a `settings ^,` ghost as the door to the rest.
The Encoder chord moves `e` -> `g` on both surfaces, since `e` is the
moment's own Export press and a ghost wears no shifted letter.

2026-08-26

🐛 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.

2026-08-21

fix: format Darkroom integrationAhmet Kaan Gümüş · 9a27ee6Browse files

2026-08-20

🐛 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.

2026-08-19

🐛 fix(app): a library preview finally has a pulseAhmet Kaan Gümüş · 397bd83
🐛 fix(app): a library preview finally has a pulse

render() ticked only the timeline's own session, never the preview
one -- so a preview's audio-driven clock never advanced, pump() saw
the same target every frame, and the picture sat frozen on frame 0
however long play ran. Ticks now go through active_session_mut(),
the same preview-first routing pump/transport already use.
✨ 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): fullscreen, library preview, and frame screenshotsAhmet Kaan Gümüş · fbdd221
✨ feat(app): fullscreen, library preview, and frame screenshots

F11/toolbar fullscreen via gpui toggle_fullscreen; a per-row play
button previews any library file over the timeline without touching
the edit (separate preview session, escape restores); w/toolbar saves
the current frame as PNG under ~/Pictures/edith with no-clobber
suffixes and a notice naming the file.
✨ feat(app): the current frame saves as a PNG with a keystrokeAhmet Kaan Gümüş · 7a82c20
✨ feat(app): the current frame saves as a PNG with a keystroke

Bare w (free by hand-scan of the default keymap), or the toolbar's own
"Shot" button, write whatever is on screen -- timeline or a preview --
to ~/Pictures/edith as stem-timecode.png, never clobbering an earlier
shot of the same second. Blocked during export like every other
one-shot action (oracle.rs's allow-list already covers this).
✨ 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.
🎨 style(app): subtitle lanes go thin and library subtitles get real groupsAhmet Kaan Gümüş · 2efce0f
🎨 style(app): subtitle lanes go thin and library subtitles get real groups

SUB_LANE_H=24 (WCAG hit-target floor) with per-kind lane math restores
the thin caption look f85f4db lost; lane remove moves to right-click on
the eye. Library subtitle group headers are always on when several
sources exist, foldable per source, with tint and track count.
✨ 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.
⚡ perf(app): the silence scan starts at import, not at the cardAhmet Kaan Gümüş · 99d87d4
⚡ perf(app): the silence scan starts at import, not at the card

Moves the whole-source RMS decode engine::silence::levels_with_progress
was only ever asked for when the silence card opened
(Player::start_silence_scan) into Player::cache_media, the same
per-repaint "unseen sources" door the waveform, proxy and stream
probes already run through. The scan is now landed under a
whole-source sentinel key (full_scan_key, out_frame = u32::MAX) in
the very silence_levels map the card reads, so scan_silences slices a
clip's own [in, out) window out of it (slice_whole_levels) before
ever falling back to the on-demand per-clip scan the card used to
start unconditionally.

silence_bg tracks scans in flight per (path, stream): its presence is
the dedupe against a re-add of the same source, and remove_source /
close_session cancel it via the same Progress::cancel flag
start_silence_scan already used, so a source that leaves mid-decode
does not write levels into a library that no longer holds it.

Caveat: the background decode is still O(file length) -- ~1700x
realtime per engine::silence::levels' own doc comment, so a
several-hour file is still seconds of background work, just no
longer on the card's critical path, and a card opened before that
finishes still falls back to its own on-demand scan.

2026-08-15

✨ 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

✨ 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.
✨ 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.
✨ 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.
🐛 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(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.