From 43f5ab49d3ae8a9639fa604b2932958d7b355293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 20 Aug 2026 11:55:07 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(ui):=20no=20bar=20over=20the?= =?UTF-8?q?=20picture,=20and=20the=20ledger=20names=20the=20cut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The legacy notice bar lives inside the picture, and the stance reuses the picture, so every darkroom notice painted a full-width bar across the bottom tenth of the film — under the stance's own plate, which was already showing the same words. The bar stays home in the legacy room now, and a test fails if it ever wanders back. Splitting wrote nothing to the ledger, so the bench grew a splice while the room said nothing happened. The cut speaks now, in the grey that fades on its own. Trim and walk stay silent: they run thousands of times an hour and would turn the ledger into a firehose. DESIGN §9 asks for chords surfaced in place on a held ?, not a cheat-sheet. Fifteen of seventy-one commands have a widget in the room today and all fifteen already wear their chord permanently; the other fifty-six have nowhere to stand yet. The section is amended to say what the room does and what it owes, rather than leaving the document describing a room that does not exist. --- DESIGN.md | 25 ++++++++++++++++++++++ crates/app/src/player/timeline_edit.rs | 22 ++++++++++++++++++- crates/app/src/render.rs | 9 +++++++- crates/app/src/tests/layout.rs | 29 ++++++++++++++++++++++++++ crates/app/src/ui/stance.rs | 11 ++++++---- 5 files changed, 90 insertions(+), 6 deletions(-) diff --git a/DESIGN.md b/DESIGN.md index d2db6a5..3641dd2 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -178,6 +178,31 @@ capability is genuinely absent — otherwise it is a bug, not a message. A verb - **`?` held** dims the room one fill step and surfaces chords *in place* beside their controls; release restores. No modal cheat-sheet; learning stays geographic. The film keeps playing. + **Amendment (2026-08-20), explicit per this section's own rule:** the geographic reading above + is only partly built and edith currently ships the fallback instead — named here rather than + silently violated. + + Fifteen of the keymap's 71 actions already have a geographic home in the darkroom stance today, + and every one of those wears its chord **permanently**, not gated on `?` (spine glyphs, the + time band's transport and Export chip, the dock's four Clip verbs) — a stronger reading of "the + UI *is* the shortcut sheet" (§4) than "surfaces on hold" asks for, so nothing further was owed + those fifteen. The other 56 actions (`,` `.` `[` `]` shuttle strides, marks, clipboard, delete, + lift/detach/group/regroup, fit/resolution/zoom, subtitle add/style, silence, project cards, + etc.) have **no widget anywhere in the room** — burst-use surfaces (screen, bench, time band) + are the checklist's most expensive land (§11.1), and giving each of the 56 a geographic + placement is that many individual placement decisions across the bench, time band and dock, not + one fix. Until that lands, `?` held keeps opening `ui::stance::keys_overlay`: a single scrolling + plate (plate styling per §4, positioned over the bench+ledger footprint so it never reaches the + screen — §11.6's occlusion check holds) listing every action by [`keymap::Category`]. It is a + cheat-sheet, and it is modal for as long as the key is held; both are accepted here rather than + hidden. + + Ceiling to close this amendment: walk the 56 down to zero by giving each a home next to the + control it already has no visual presence beside (marks and clipboard on the time band's cut + readout row; lift/detach/group/regroup as bench lane-head ghosts; fit/resolution/zoom on the + screen's own corner; subtitle/silence/project verbs into the dock next to the tab they already + belong to) — at which point the plate deletes and `?` held becomes pure dim, no list. + ## 10. The joy layer Game-feel, not gamification. All specs ≤150ms, ease-out, tied to real actions, honor diff --git a/crates/app/src/player/timeline_edit.rs b/crates/app/src/player/timeline_edit.rs index 2faeb70..3d2f2c2 100644 --- a/crates/app/src/player/timeline_edit.rs +++ b/crates/app/src/player/timeline_edit.rs @@ -25,7 +25,27 @@ impl Player { self.seek(f64::from(at) / self.fps, cx); } if let Some(session) = &mut self.session { - session.cut_at(f64::from(at) / self.fps); + // The ledger's last action (DESIGN §5) reads the notice queue's + // back, and a split used to leave nothing there -- two clips + // appeared on the bench while the ledger still named whatever + // came before. `NOTICE_TELL`'s grey "told you" (§8) self-fades, + // so this does not linger over the picture; it just gives the + // ledger something true to say. Held `,`/`.`/`[`/`]` (walk, trim) + // stay silent on purpose -- those fire many times a second and a + // notice per keystroke would turn the ledger into a firehose, + // exactly what §8's "one at a time" is against; a single `s` is + // not that. + // The legacy room has no ledger reading this queue and never + // notified on a split before -- gated so that room's behaviour + // stays exactly as it was. + let cut = session.cut_at(f64::from(at) / self.fps); + if self.darkroom { + if cut { + self.notify_user("SPLIT".into()); + } else { + self.notify_user("NOTHING TO SPLIT — the playhead is already on a cut".into()); + } + } } self.selected.clear(); cx.notify(); diff --git a/crates/app/src/render.rs b/crates/app/src/render.rs index 5935a12..86e67de 100644 --- a/crates/app/src/render.rs +++ b/crates/app/src/render.rs @@ -123,7 +123,14 @@ impl Player { .gap(px(2.)) .children(self.import_bar(cx)) .children(self.seek_bar()) - .children(self.notice_bar(cx)) + // DESIGN §8: no full-width bar over the picture, ever. + // The darkroom stance has its own §8-conformant notice + // plate above the ledger (`ui::stance::notice_plate`) -- + // this legacy bar would otherwise paint a second, + // picture-covering copy of the same notice underneath + // it. The legacy (non-darkroom) room keeps this bar + // exactly as it was. + .children((!self.darkroom).then(|| self.notice_bar(cx)).flatten()) // How tall the lot came out, for the cue plate above to // step over ([`sub_bottom`]) -- the bars are over the // picture, and a message drawn across the line being diff --git a/crates/app/src/tests/layout.rs b/crates/app/src/tests/layout.rs index d86904c..70f1442 100644 --- a/crates/app/src/tests/layout.rs +++ b/crates/app/src/tests/layout.rs @@ -1837,3 +1837,32 @@ fn the_picture_letterboxes_through_a_canvas_never_a_plain_img_object_fit() { ); } } + +/// DESIGN §8: "No full-width bars, no covering the picture, ever." The +/// darkroom stance (`ui::stance::screen`) draws +/// [`Player::picture_area`](crate::Player::picture_area) directly, so a +/// notice surface that reaches into that method unconditionally reaches the +/// picture on the darkroom path too -- measured live covering the bottom 10% +/// of the frame (rows 300-333 of 335) *underneath* the stance's own +/// §8-conformant plate (`ui::stance::notice_plate`), which drew the same +/// notice a second time above the ledger. The legacy (non-darkroom) room +/// keeps its full-width `notice_bar` exactly as it always has -- this only +/// pins the darkroom path off it. +#[test] +fn the_darkroom_path_never_lets_a_notice_surface_reach_the_picture() { + let body = fn_body("picture_area"); + assert!( + body.contains("self.notice_bar(cx)"), + "picture_area no longer draws notice_bar at all; re-check the darkroom gate still applies" + ); + let at = body.find("self.notice_bar(cx)").expect("checked above"); + // Whatever gates the call, it has to name `darkroom` and it has to be + // upstream of the call itself -- a gate written after the call, or one + // that never mentions the flag, is not a gate on this method. + let before = &body[..at]; + assert!( + before.contains("self.darkroom") || before.contains("!self.darkroom"), + "notice_bar in picture_area is not gated on self.darkroom any more -- \ + the darkroom stance would paint it over the picture again" + ); +} diff --git a/crates/app/src/ui/stance.rs b/crates/app/src/ui/stance.rs index 89a1846..0af9094 100644 --- a/crates/app/src/ui/stance.rs +++ b/crates/app/src/ui/stance.rs @@ -98,11 +98,14 @@ fn ghost_dual(player: &Player, glyph: &str, action: ActionId, stride: ActionId) /// fill step for as long as the key is held, never a latch (DESIGN §9: "no /// modal cheat-sheet"). /// -/// corner-cut: DESIGN §9 wants chords surfaced *in place beside their -/// controls* across every region; this is one scrolling list plate instead, -/// anchored over the bench/ledger footprint so it never reaches the screen. +/// corner-cut, named explicitly in DESIGN §9's own 2026-08-20 amendment +/// rather than silently shipped against the section's original text: it +/// wants chords surfaced *in place beside their controls* across every +/// region, and this is one scrolling list plate instead, anchored over the +/// bench/ledger footprint so it never reaches the screen (§11.6 holds). /// Ceiling: DESIGN §12 step 7's full geographic pass (each region draws its -/// own rows while held). +/// own rows while held) -- §9's amendment names the 56 actions still +/// without a home. fn keys_overlay(player: &Player) -> impl IntoElement { div() .id("stance-keys-overlay")