forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 978e6857d64772912559c8d8a4e6ee7cd309bdccFiltered to crates/app/src/tests/mod.rsClear filter

2026-08-19

🧹 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.
✨ feat(app): fullscreen fills the screen with the player, not the appAhmet Kaan Gümüş · 24cc062
✨ feat(app): fullscreen fills the screen with the player, not the app

Fullscreen used to hand the OS window to the monitor with all of the
chrome still on it -- a bigger editor, not a bigger picture. It now
draws the picture region alone, the way every consumer player does,
and asks the platform's own toggle to agree with it.

Escape leaves it, and is answered before any menu or preview under it
gets a look at the stroke: one stroke, one effect, so an escape with a
preview open behind fullscreen leaves fullscreen first and stops the
preview on the second. F11 toggles it either way.

Driven live in the nested-sway harness on a 4K H.264 mp4: the click on
Fullscreen left only the letterboxed picture on screen (no topbar,
library, inspector or timeline pixels) with sway fullscreen_mode=1;
Escape brought the whole layout back at fullscreen_mode=0; F11 in and
Escape out repeated it. 174/174 app tests green.
✨ feat(app): the project's sound rate gets a picker beside its two siblingsAhmet Kaan Gümüş · 2c88d10
✨ feat(app): the project's sound rate gets a picker beside its two siblings

Resolution and rate have long had a card row and a stroke; the mix's own
sample rate (engine already honours it end to end) had neither. Wires
PlaybackSession::sample_rate/set_sample_rate through a third
pending_settings slot, a SampleRate pick/choice, and a project-panel row
next to Size and Rate -- reachable before any file is open the same way
the other two are.
✨ feat(app): resolution and rate are choosable before any file opensAhmet Kaan Gümüş · dc9a2c2
✨ feat(app): resolution and rate are choosable before any file opens

A pick made on an empty player waits in pending_settings and lands on
the next session the moment it is built, the same way a saved project's
own numbers do. The inspector rows and the Resolution keystroke work
with nothing open; a .edith's saved settings still win over a stale
pre-import pick. Engine test proves a later import never touches an
explicit resolution or rate.
✨ feat(app): the export card leads with presetsAhmet Kaan Gümüş · e6a4f45
✨ feat(app): the export card leads with presets

Primary pane: destination, Web / Small file / Master / Audio only /
Custom presets (keys v/l/t/u, refusal-aware rows), and an Advanced fold
(s) holding the full codec matrix and machine notes. Master writes
HEVC/High so its re-editing promise stays true; default state lands on
Web.
🎨 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.
🐛 fix(app): the export card's presets pick their own bundle, not the codec row's leftoversAhmet Kaan Gümüş · 4b92704
🐛 fix(app): the export card's presets pick their own bundle, not the codec row's leftovers

Six judge-confirmed defects in one pane: a refused preset click still wrote
a quality (checked the refusal after the write, not before), refused
presets rendered bright and clickable with no reason shown, the card opened
on Custom because the launch default (Mp4, Auto) matched no bundle, the
five preset rows were pointer-only, and the status line still advertised
g/r after they moved into Advanced. Master now bundles HEVC/High instead of
H.264/High, so its own "for re-editing later" detail (intra-only, every
frame a cut point) is true of what it actually writes.
⚡ 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.
🐛 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.

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.
🧹 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): 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.
✨ feat(app): the seat that writes the picture is picked on the card, not by an env pinAhmet Kaan Gümüş · 50af5b5
✨ feat(app): the seat that writes the picture is picked on the card, not by an env pin

The export card gains an Encoder row: Auto, Hardware or Software, three rows in a
list like every other setting with more than two values -- `e` steps it, a click
opens the list, and the planned line under the rows re-probes and says which seat
it measured.

Auto is what every export did before (the GPU where there is one). Hardware is
the GPU or a refusal in words -- `Enc::open` refuses before the muxer exists, so
nothing is written -- and it is now the only door to the plugin's AV1 seat, which
`VE_HW_AV1=1` used to guard: an env pin nobody exporting a film would ever find.
A person who picks it for AV1 gets a plain row naming what happened on this box's
driver, and the pick still stands.

Software forces the CPU encoder, which also takes the zero-copy path off the
table by construction (`Enc::dma_want` answers only for the two hardware seats).

Kept with the project: `.edith` gains an `encoder` line at v14, written only when
it is not Auto, and a v13 file loads as Auto.

- engine: `ExportSettings::force_sw` -> `seat: EncoderSeat`; `hw_seat` returns the
  refusal instead of falling back; `planned_video` says `NO_HW_SEAT` where it would
- app: `Pick::Encoder`/`Choice::Encoder`, card row, `e` in the card's own keyboard
  and in the keys menu (`FIXED`)
- tests: the backends sweep runs all three seats (the AV1 hardware seat excepted,
  as before), and asserts the refusal is only what a missing seat produces
✨ feat(app): the stand-ins are made when a project asks, not whenever a big film arrivesAhmet Kaan Gümüş · 269b0c2
✨ feat(app): the stand-ins are made when a project asks, not whenever a big film arrives

A project now says whether an import makes a proxy by itself. On is the
default and the line left out, so every project that came before behaves
exactly as it did; off makes nothing at all, and turning Proxies on is
what asks for the ones the project is missing -- the only ask there is,
since no per-source item exists.

The file grows an `autoproxy` line and the version goes to 13: a v12
project makes them by itself, which is all any project could do.

The switch is a button beside Proxies in the PROJECT panel, ctrl+o, and
a row on the actions card -- the three doors together, as the two
sync tests require.
🐛 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

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