forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 7f487c10e98d32efa4e4b554b778d2eea5d16efdFiltered to crates/app/src/layout.rsClear filter

2026-08-20

🐛 fix(ui): the bench floor counts its own border and the ledger'sAhmet Kaan Gümüş · ede1e2c
🐛 fix(ui): the bench floor counts its own border and the ledger's

BENCH_CHROME_H undercounted the section head's real line box by 1px
(gpui's phi line-height, not the label's bare 10px font size) and never
counted the bench div's own top border. BENCH_MIN_H also never reserved a
row for the ledger's fixed-position top border, which sits below the
bench regardless of bench_h -- a bench exactly as tall as its content
still shared its last pixel row with that border and lost it. Both are
now named terms (BENCH_CHROME_H = 21, LEDGER_SEAM_CLEARANCE = 1), raising
the floor from 94 to 96, and a new test locks BENCH_CHROME_H to what
stance::bench actually draws plus the ledger's clearance.
🐛 fix(ui): a lane row grows to fit its own dot, not just its labelAhmet Kaan Gümüş · db9815b
🐛 fix(ui): a lane row grows to fit its own dot, not just its label

LANE_MIN_H was 18px, the label's own line box (gpui defaults line_height
to the golden ratio, not 1x font size, so 11px mono renders in an 18px
box) but not the status dot beneath it. Every lane's dot silently spilled
into the row below -- invisible except on the last lane, which has no
next row to spill into and clipped into the ledger instead. LANE_MIN_H is
now derived from the label's line box + head gap + dot diameter (24px),
so BENCH_MIN_H rises from 82 to 94, and a new test recomputes that
content height independently so a future shrink or label-size growth
fails loudly instead of clipping quietly again.
🐛 fix(ui): the bench floor stops clipping A1, and a notice stops hiding the lanesAhmet Kaan Gümüş · e9946aa
🐛 fix(ui): the bench floor stops clipping A1, and a notice stops hiding the lanes

BENCH_MIN_H was a guessed literal (80.) 2px short of the actual stack the
bench builds top to bottom (section head + padding, ruler, two lane rows at
their own floor, and the gaps between them); derive it from those same
constants instead so A1's clip-bar border and status dot are no longer cut
off unscrolled at the floor.

The transient notice plate was anchored a fixed LEDGER_H + 6. off the
ledger, which put it directly over the V1/A1 lane chips whenever the bench
was short enough. Anchor it bench_h further up instead, so its bottom edge
always sits at the bench's own top edge -- above the bench, never over it,
at any height.
🐛 fix(layout): seams clamp before they persist, and survive a release outside the windowAhmet Kaan Gümüş · 4e57e1c
🐛 fix(layout): seams clamp before they persist, and survive a release outside the window

Two defects both best-of-2 arms shared:
- drag_split wrote the raw pointer value, so an over-drag left bench=-1 on
  disk; readers clamped it, but the file read as corrupt. Clamp before write.
- drag_move's outside-window release arm dropped the drag without the save
  that only drag_release performed, so the size reverted on restart.

Grafts from the losing arm: Split::PERSISTED + key() replace two hardcoded
lists that could drift; two persistence tests where there were none; bench
ceiling now guarantees the picture 160px; bench floor 68 -> 80, since 68 was
measured to clip the V1 lane chip and drop A1 entirely.
✨ feat(ui): the seams answer a dragging handAhmet Kaan Gümüş · e964420
✨ feat(ui): the seams answer a dragging hand

Wire the darkroom stance root's drag consumers: `#stance-room` in
ui/stance.rs mounted the Dock/Bench divider on_mouse_down but never
on_mouse_move/on_mouse_up, so a hand on the seam set split_drag and
nothing ever read it back -- the whole persisted-split machinery from
the previous pass sat dead behind an unwired listener. Same door the
legacy render.rs tree already opens on its own root, for the same
reason (the pointer outruns the 6px hitbox on the first move).

Also closes the corner-cut named alongside it: below_picture_floor/
menu_floor clamped a right-click menu's floor against the fixed
BENCH_H const, so a hand-widened bench left the floor stale. Both now
take the live Player::split_px(Split::Bench, ...) reading from their
three call sites (library.rs, overlays.rs x2).

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): 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

✨ 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.
🐛 fix(timeline): the scrollbar strip is panel furniture, not lane pixelsAhmet Kaan Gümüş · 27b5f78
🐛 fix(timeline): the scrollbar strip is panel furniture, not lane pixels

f69ba33 stood the new strip under the lanes as one more flex_none row of
the panel but left TIMELINE_FIXED_H describing a panel without it, and
every lane-height decision reads that number: the region's own height
(timeline_h), the fold the column is laid out against (lanes_box), and
the seam's drag floor. The region came out 22 px short of its furniture,
the flex_1 lane column paid the difference, and the last lane slid under
the fold cut to 28 of its 48 px -- the lane-header-cut-in-half class
again, now at the default size, with the affordance silent because the
prediction still said the lane fit.

The strip's row (SCROLL_HIT_H and its gap) now rides in TIMELINE_FIXED_H
beside the ruler's, and TIMELINE_SHARE grows to the floor that yields:
171 px of the 360 at the 640x360 floor, where the old 0.42 (151 px) is
smaller than the floor and the clamp made the floor the answer anyway --
the share said the panel took less of a short window than it did. The
pixels at that floor do not move; the two constants agree again.
✨ feat(library): a stand-in switch on every row — on, off, and one encoder at a timeAhmet Kaan Gümüş · 3da7bd9
✨ feat(library): a stand-in switch on every row — on, off, and one encoder at a time

The ✕ that stopped a stand-in being made read as taking the file out of
the library. What a row shows now is a switch: a hollow dot when the film
plays itself, a filled one when a stand-in plays, a stop square while one
is being made, with how far it has got drawn under it.

A click in the asked window stops rather than starts a second encoder;
the engine takes a claim on the .part before the header is read so no
two encoders ever write one path. A delete that could not happen says so
and the row stays on over the proxy that is still what plays. The off
choice is written beside the cache entry and outlives the session, and
the detail line keeps its width past the switch.

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.
🧹 chore(app): items nothing calls are gone or sit with the testsAhmet Kaan Gümüş · 0ec584d
🧹 chore(app): items nothing calls are gone or sit with the tests

`cargo build` was warning about five items in the app and two in the
vendored `rusty_h264-common`. Each is sited where its callers actually
are rather than silenced:

- `PANEL_H`, `panel_h`, `Volume::label` and `PaletteId::palette` are
  asked for only by the guards, so they are `#[cfg(test)]` now.
- `STROKE_FOCUS` is deleted: the keyboard ring it was drawn for was
  never painted, in any palette, since the token landed -- nothing in
  the editor takes gpui focus. The twelve values are in the history for
  whoever wires a focus ring.
- vendored `bs_tile` is called only by that crate's own tile guards, and
  `qpel_compose` only from `#[cfg(accel)]` blocks; both carry their call
  sites' cfg now, marked as edith patches like the manifest's.

No behaviour change. `cargo test -p edith`: 142 passed.
✨ 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.
✨ 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

🐛 fix(engine): "no picture in it" is a header's answer, not an extension's guessAhmet Kaan Gümüş · 627d623
🐛 fix(engine): "no picture in it" is a header's answer, not an extension's guess

Two residuals of the proxy round, and the doc line that makes a hardware
run measure the code it was meant to.

The quiet answer for a file that is not a film was name-shaped: an
audio-only `.mp4`, `.mkv` or `.mov` is a video container with no video
track in it, so no extension can tell and every one of them still opened,
failed and said "NO PROXY" about a song. Only the header knows, and the
demuxer already knew -- it just said so in prose, which is the one thing
in this engine free to be reworded. `NoVideoTrack` makes it a type: the
two doors that mean *this file carries no picture at all* return it, a
front-end still shows the sentence it always showed, and the proxy takes
it as the same silent `None` a 1080p film gets. A picture in a codec
nothing here decodes is not that class and stays loud.

...and the cap was soft by exactly what it was capping: the sweep aimed
at 20 GB and then two encodes wrote gigabytes on top of it, so the disk
held the cap plus a film per encode (~43 GB worst case). It now sweeps to
`CACHE_CAP - reserve`, where the reserve is what those encodes will
really take -- the file's own bits-per-pixel arithmetic times the 1.25 the
hardware seat overshoots its asked-for rate by -- held to half the cap so
a single 4K feature cannot empty the cache to make room for itself.
`AT_ONCE` moves into the engine beside that arithmetic: how many encodes
run at once *is* how much room the sweep must leave, and two places
holding that number is one place for them to disagree.

The ignored hardware tests now say to build `-p engine-hw --release` as
its own step: `--tests` does not rebuild the cdylib, so the plugin beside
the test binary is whatever was there last time -- and a hardware claim
measured against a stale one is a claim about code nobody edited.

One commit rather than two: both fixes are in `proxy.rs`, in regions a
hunk split cannot separate cleanly (it was tried once and produced a
corrupt intermediate), so each is named here instead.
✨ feat(app): a Proxies switch in the panel, and the stand-ins made without being askedAhmet Kaan Gümüş · 892f813
✨ feat(app): a Proxies switch in the panel, and the stand-ins made without being asked

A film this machine cannot cut at speed -- bigger than 1080p, or HEVC or
AV1 at any size -- gets its stand-in started the moment it lands in the
library, two at a time so ten dropped files cannot start ten encodes
over one hardware seat. The library row says how far it has got and then
that there is one; the PROJECT panel's Proxies button says which way the
switch is set and carries the least-finished percentage beside it, so a
switch thrown before anything is ready says so rather than doing
nothing.

The switch is an action like every other: ctrl+p, on the actions card,
and a button that is both the state and the door -- the two tests that
already hold every action to that pass it unchanged.

A stand-in that cannot be made is a line and no more: the film itself is
what plays, which is what plays until one is ready anyway.
🔧 chore(app): the window's file lets sixteen neighbourhoods keep their ownAhmet Kaan Gümüş · 963252a
🔧 chore(app): the window's file lets sixteen neighbourhoods keep their own

main.rs was 10,529 lines with every constant, every helper and the
window itself in one place. The geometry, the transport, the import
state, the menus, the export card, the oracle, the library rows, the
subtitles, the equalizer, the colour card, the viewport and the
timeline's arithmetic each move out to the module they belong to; the
Player and its two impls stay, which is what the file is for.

Pure motion: every line is the line it was, with pub(crate) added only
where a module boundary now stands between it and its caller.
Player::enable still delegates to the one oracle.