forge
Explore
Log in

Don't you dare go Hollow

Merge branch 'worktree-agent-a2cc03916e9ce2c17'

Browse files at this commit

b8f72607892de93800277cca091cbb62816db23fAhmet Kaan GümüşParent: cb302ca8a68541
DESIGN.mdmodified+45 -28
@@ -36,7 +36,7 @@ Surfaces (dark-only; no light theme, ever):
36 | Token | Value | Role |36 | Token | Value | Role |
37 |---|---|---|37 |---|---|---|
38 | `canvas` | `#050607` | app ground, bench background |38 | `canvas` | `#050607` | app ground, bench background |
39-| `panel` | `#0E1013` | spine, dock, ledger, plates' parent surfaces |39+| `panel` | `#0E1013` | dock, ledger, plates' parent surfaces |
40 | `raised` | `#14171B` – `#17191D` | hover fill step, active verb fill |40 | `raised` | `#14171B` – `#17191D` | hover fill step, active verb fill |
41 | `hairline` | `#22262B` | 1px separations *within* a panel |41 | `hairline` | `#22262B` | 1px separations *within* a panel |
42 | seam | `rgba(0,0,0,.7)` | 1px panel-to-panel boundary |42 | seam | `rgba(0,0,0,.7)` | 1px panel-to-panel boundary |
@@ -91,9 +91,9 @@ align.
91 (Export). If a second boxed control ever appears on one surface, one of them is wrong.91 (Export). If a second boxed control ever appears on one surface, one of them is wrong.
92 - **Readouts are plates:** dark (`canvas`-on-`panel`) rectangles carrying mono text. Notices,92 - **Readouts are plates:** dark (`canvas`-on-`panel`) rectangles carrying mono text. Notices,
93 menus, chips, cues, and tooltips are all the same plate.93 menus, chips, cues, and tooltips are all the same plate.
94-- **Every command wears its chord**, everywhere it appears — spine, menus, verbs, the `?`94+- **Every command wears its chord**, everywhere it appears — right-click menus, regional verbs,
95- overlay. Nothing lives only in a menu; nothing lives only on a key. (This kills the95+ the ledger's room verbs, the KEYS tab. Nothing lives only in a menu; nothing lives only on a
96- shortcut-sync defect class permanently: the UI *is* the shortcut sheet.)96+ key. (This kills the shortcut-sync defect class permanently: the UI *is* the shortcut sheet.)
97 - **The most-read element anchors its region** — timecode leads the time band; the film leads97 - **The most-read element anchors its region** — timecode leads the time band; the film leads
98 the room.98 the room.
99 - Radii: 0 for lanes/clips/room chrome · 2px plates · 3px verbs/controls · 4–6px floating99 - Radii: 0 for lanes/clips/room chrome · 2px plates · 3px verbs/controls · 4–6px floating
@@ -105,23 +105,23 @@ align.
105 Fixed geography; nothing moves, nothing occludes the picture:105 Fixed geography; nothing moves, nothing occludes the picture:
106 106
107 ```107 ```
108-┌──┬──────────────────────────────┬──────┐108+┌─────────────────────────────────┬──────┐
109-│ │ SCREEN │ │109+│ SCREEN │ │
110-│sp│ (picture — top, never │ dock │110+│ (picture — top, never │ dock │
111-│in│ occluded) │ Src/ │111+│ occluded) │ Src/ │
112-│e │ │ Clip │112+│ │ Clip │
113-│ ├──────────────────────────────┤ tabs │113+├─────────────────────────────────┤ KEYS │
114-│56│ TIME BAND: timecode → ghost │ │114+│ TIME BAND: timecode → ghost │ tabs │
115-│px│ transport → cut readout → │ │115+│ transport → cut readout → │ │
116-│ │ contact strip → [Export] │ │116+│ contact strip → [Export] │ │
117-│ ├──────────────────────────────┤ │117+├─────────────────────────────────┤ │
118-│ │ BENCH (lanes V/A/S) │ │118+│ BENCH (lanes V/A/S) │ │
119-│ ├──────────────────────────────┤ │119+├─────────────────────────────────┤ │
120-│ │ LEDGER (project · state) │ │120+│ LEDGER (project · state · room │ │
121-└──┴──────────────────────────────┴──────┘121+│ verbs · position) │ │
122+└─────────────────────────────────┴──────┘
122 ```123 ```
123 124
124-- **Spine** (56px, left): every command as ghost glyph + chord, grouped by task frequency.
125 - **Screen**: the picture. Never covered — not by drawers, notices, drags, or menus. Two-up125 - **Screen**: the picture. Never covered — not by drawers, notices, drags, or menus. Two-up
126 OUT|IN judging renders *in* the screen at rest on a cut.126 OUT|IN judging renders *in* the screen at rest on a cut.
127 - **Time band**: timecode leads; ghost transport; cut readout (`14/37`); the **contact strip**127 - **Time band**: timecode leads; ghost transport; cut readout (`14/37`); the **contact strip**
@@ -129,10 +129,22 @@ Fixed geography; nothing moves, nothing occludes the picture:
129 jumps, drag pans); boxed **Export** at the end.129 jumps, drag pans); boxed **Export** at the end.
130 - **Bench**: lanes. Clip anatomy = ink spine (3px left edge) + real thumbnails/waveform in the130 - **Bench**: lanes. Clip anatomy = ink spine (3px left edge) + real thumbnails/waveform in the
131 source's ink + name plate + splice gaps in lamp white.131 source's ink + name plate + splice gaps in lamp white.
132-- **Ledger**: project identity (`name.edith · saved`), last action, export progress, position.132+- **Ledger**: project identity (`name.edith · saved`), last action, export progress, and at the
133- State lives here, notices rise from here.133+ right end, before the position: the **room verbs** as ghosts (`CC t · settings ^, · keys ? ·
134-- **Dock** (right, the only side panel): Sources tab (assembly: filter, usage chips, import) and134+ full f11`) — the four commands that act on the room itself and so have no thing under the
135- Clip tab (verbs: Speed / Colour / Transform / EQ as ghost verbs over param rows).135+ cursor to be right-clicked on. `ink3` + chord, hover raises to `ink2` with the room's own
136+ plate, `CC` reads `ink1` + fill while subtitles are shown. State lives here, notices rise
137+ from here.
138+- **Dock** (right, the only side panel): Sources tab (assembly: filter, usage chips, import),
139+ Clip tab (verbs: Speed / Colour / Transform / EQ as ghost verbs over param rows) and KEYS tab.
140+
141+**Amendment (2026-09-09), user decision "option C":** there is no rail. The 56px spine — every
142+command as a ghost glyph + chord down the left edge — is deleted, and the picture, time band,
143+bench and ledger take its width. Nothing on screen lists the room's commands, because **the
144+geography of a verb is the thing it acts on**: a verb reaches its target by right-click on that
145+target, by its key, and says its own name through the hover plate under the pointer. The one
146+list left is the dock's **KEYS** tab (§9), and the one exception is the ledger's room verbs
147+above — those four act on the room, which is not a thing the cursor can be over.
136 148
137 Session continuity: a room reopens exactly as left — playhead, subject cut, viewport, dock tab.149 Session continuity: a room reopens exactly as left — playhead, subject cut, viewport, dock tab.
138 150
@@ -235,10 +247,15 @@ string over ~4 words that instructs rather than reports state is a defect.
235 room would refuse right now greys to `ink4` like any refused verb (§8) rather than vanishing.247 room would refuse right now greys to `ink4` like any refused verb (§8) rather than vanishing.
236 `?` swings the dock to that tab and a second `?` (or `escape`, or a press on another tab)248 `?` swings the dock to that tab and a second `?` (or `escape`, or a press on another tab)
237 swings it back — a toggle, not a hold and not a modal: nothing about the KEYS tab owns the249 swings it back — a toggle, not a hold and not a modal: nothing about the KEYS tab owns the
238- keyboard, so the film keeps playing and every other stroke keeps meaning what the spine says it250+ keyboard, so the film keeps playing and every other stroke keeps meaning what the keymap says
239- means. The spine's `?` glyph wears no chord badge, because its chord *is* its glyph. The251+ it means. The ledger's `keys ?` ghost is the tab's pointer door and wears no second `?`,
240- ceiling above is unchanged: the 56 homeless actions still owe a geographic home, and this tab252+ because its chord *is* its own name — the rule the deleted rail's last glyph was given.
241- is what they read from until they get one.253+
254+ **Amendment (2026-09-09), user decision "option C":** the rail the fifteen chord-wearing
255+ glyphs stood on is deleted (§5). The ceiling above is unchanged in *count* but changes in
256+ *shape*: a homeless action's geographic home is now the right-click menu of the thing it acts
257+ on, its key, and the hover plate — not a widget parked on a rail. The KEYS tab is what every
258+ action still reads from.
242 259
243 ## 10. The joy layer260 ## 10. The joy layer
244 261
@@ -281,7 +298,7 @@ If a feature fails the checklist, either the feature changes or this document do
281 298
282 1. Token substrate in `crates/app/src/ui/theme.rs` (extend the 34-role system; keep the299 1. Token substrate in `crates/app/src/ui/theme.rs` (extend the 34-role system; keep the
283 `no_colour_is_written_outside_the_theme` guard green).300 `no_colour_is_written_outside_the_theme` guard green).
284-2. The stance behind a flag (spine / screen / time band / bench / ledger / dock skeleton).301+2. The stance behind a flag (screen / time band / bench / ledger / dock skeleton).
285 3. Cut machinery (`,` `.` `[` `]` `/`, two-up, readout) — before cosmetics.302 3. Cut machinery (`,` `.` `[` `]` `/`, two-up, readout) — before cosmetics.
286 4. Dock (Sources assembly + Clip verbs).303 4. Dock (Sources assembly + Clip verbs).
287 5. Ink extraction + grading pipeline; source dots; selection ink.304 5. Ink extraction + grading pipeline; source dots; selection ink.
crates/app/src/tests/cards.rsmodified+5 -7
@@ -1850,7 +1850,7 @@ fn maximizing_a_card_grows_its_box_without_moving_where_a_value_sits_in_it() {
1850 /// room each mount site is fed after the fix: [`dock_stance`]'s un-maximized1850 /// room each mount site is fed after the fix: [`dock_stance`]'s un-maximized
1851 /// mount is handed the dock's own real width (not the window's, the "480 in1851 /// mount is handed the dock's own real width (not the window's, the "480 in
1852 /// 280" shape of the width-clip bug), and a maximized card is handed1852 /// 280" shape of the width-clip bug), and a maximized card is handed
1853-/// `stance-centre`'s width -- the window minus the spine and the dock it1853+/// `stance-centre`'s width -- the window minus the dock it
1854 /// escaped -- which must come out *larger*, not smaller, than the docked1854 /// escaped -- which must come out *larger*, not smaller, than the docked
1855 /// room it replaces. A future change that re-nests the maximize mount back1855 /// room it replaces. A future change that re-nests the maximize mount back
1856 /// inside the dock, or hands it the dock's width again, fails this.1856 /// inside the dock, or hands it the dock's width again, fails this.
@@ -1859,11 +1859,9 @@ fn a_maximized_cards_room_is_bigger_than_the_docked_rooms_not_smaller() {
1859 use crate::SPLIT_W;1859 use crate::SPLIT_W;
1860 use crate::layout::{Split, split_size};1860 use crate::layout::{Split, split_size};
1861 1861
1862- // Mirrors `ui/stance.rs`'s private `SPINE_W` (56.) and `layout::SPLIT_W`1862+ // `layout::SPLIT_W` is the one divider between `stance-centre` and the
1863- // (the one divider between `stance-centre` and the dock): recomputed1863+ // dock; the 56px rail that used to eat the centre's left edge is gone
1864- // rather than imported, same as this test file's other private-constant1864+ // (2026-09-09, "option C"), so the centre is everything but the dock.
1865- // checks, so a change to either number is felt here too.
1866- const SPINE_W: f32 = 56.;
1867 1865
1868 for window_w in [960., 1280., 1920.] {1866 for window_w in [960., 1280., 1920.] {
1869 let window = size(px(window_w), px(720.));1867 let window = size(px(window_w), px(720.));
@@ -1872,7 +1870,7 @@ fn a_maximized_cards_room_is_bigger_than_the_docked_rooms_not_smaller() {
1872 // now feeds its un-maximized cards as their "room".1870 // now feeds its un-maximized cards as their "room".
1873 let dock_w = split_size(Split::Dock, None, 2, window, false);1871 let dock_w = split_size(Split::Dock, None, 2, window, false);
1874 let docked_room_w = dock_w;1872 let docked_room_w = dock_w;
1875- let maximized_room_w = window_w - SPINE_W - SPLIT_W - dock_w;1873+ let maximized_room_w = window_w - SPLIT_W - dock_w;
1876 1874
1877 assert!(1875 assert!(
1878 maximized_room_w > docked_room_w,1876 maximized_room_w > docked_room_w,
crates/app/src/tests/editing.rsmodified+10 -4
@@ -1309,10 +1309,16 @@ fn every_action_is_reachable_without_the_keyboard() {
1309 "{action:?} is reachable by keyboard only"1309 "{action:?} is reachable by keyboard only"
1310 );1310 );
1311 }1311 }
1312- // The snap has a door of its own as well as its row on the card: the1312+ // The snap's own door was the rail's `⌗` glyph, and the rail is deleted
1313- // button beside the zoom, which says which way it is set as well as1313+ // (DESIGN §5 as amended 2026-09-09, user decision "option C"). Its
1314- // setting it.1314+ // replacement -- a right-click row on the ruler it snaps against -- is
1315- assert!(element("snap"), "no snap button beside the zoom");1315+ // LANE R2's parity work, so the assertion is inverted rather than
1316+ // dropped: it names the owner and fails the moment that door lands, at
1317+ // which point this goes back to `assert!(element("snap"), ...)`.
1318+ assert!(
1319+ !element("snap"),
1320+ "LANE R2 landed a snap door -- restore this to assert!(element(\"snap\"))"
1321+ );
1316 // And the card is a door the pointer can open: the panel's own button.1322 // And the card is a door the pointer can open: the panel's own button.
1317 assert!(element("keys"), "no way to open the actions card");1323 assert!(element("keys"), "no way to open the actions card");
1318 // The card-local strokes have the same rule, and each of them is a thing1324 // The card-local strokes have the same rule, and each of them is a thing
crates/app/src/tests/layout.rsmodified+178 -84
@@ -1212,7 +1212,7 @@ fn the_subtitles_toggle_says_what_is_placed_and_never_the_picked_row() {
1212 1212
1213 /// The door this editor answers "don't make me import the film again" with,1213 /// The door this editor answers "don't make me import the film again" with,
1214 /// and it is in the dock's IMPORT section beside the other two imports1214 /// and it is in the dock's IMPORT section beside the other two imports
1215-/// (`ui/dock_stance.rs`'s own doc comment: it moved off the spine's crowded1215+/// (`ui/dock_stance.rs`'s own doc comment: it moved off the old rail's crowded
1216 /// TRACK group here): reads a file's subtitle tracks onto the open timeline1216 /// TRACK group here): reads a file's subtitle tracks onto the open timeline
1217 /// -- a release's `.mkv`, an `.srt` beside it -- while the file itself1217 /// -- a release's `.mkv`, an `.srt` beside it -- while the file itself
1218 /// joins nothing. It is the *action* and not a second implementation of it,1218 /// joins nothing. It is the *action* and not a second implementation of it,
@@ -2030,14 +2030,15 @@ fn every_seam_in_the_layout_has_a_divider_on_it() {
2030 );2030 );
2031 }2031 }
2032 2032
2033-/// DESIGN.md §12 step 2: the stance skeleton draws its six regions -- spine,2033+/// DESIGN.md §12 step 2 as amended 2026-09-09 (user decision "option C"):
2034-/// screen, time band, bench, ledger, dock -- in the order §5's diagram lays2034+/// the stance skeleton draws its five regions -- screen, time band, bench,
2035-/// them out, and `Player::render` actually reaches it when the flag is on.2035+/// ledger, dock -- in the order §5's diagram lays them out, and
2036+/// `Player::render` actually reaches it when the flag is on. The sixth, the
2037+/// 56px rail, is deleted -- the room root is centre | dock.
2036 #[test]2038 #[test]
2037-fn the_stance_renders_its_six_regions_in_the_documented_order() {2039+fn the_stance_renders_its_five_regions_in_the_documented_order() {
2038 let stance = src_text("ui/stance.rs");2040 let stance = src_text("ui/stance.rs");
2039 let order = [2041 let order = [
2040- "stance-spine",
2041 "stance-screen",2042 "stance-screen",
2042 "stance-time-band",2043 "stance-time-band",
2043 "stance-bench",2044 "stance-bench",
@@ -2054,7 +2055,7 @@ fn the_stance_renders_its_six_regions_in_the_documented_order() {
2054 .collect();2055 .collect();
2055 assert!(2056 assert!(
2056 defined.windows(2).all(|w| w[0] < w[1]),2057 defined.windows(2).all(|w| w[0] < w[1]),
2057- "the six regions are not defined in DESIGN §5's order: {defined:?}"2058+ "the five regions are not defined in DESIGN §5's order: {defined:?}"
2058 );2059 );
2059 2060
2060 // Defined in order is not composed in order -- `render()` has to call2061 // Defined in order is not composed in order -- `render()` has to call
@@ -2066,7 +2067,6 @@ fn the_stance_renders_its_six_regions_in_the_documented_order() {
2066 // regions player/window state to read, so their call sites carry2067 // regions player/window state to read, so their call sites carry
2067 // arguments now. Order is what this asserts, not arity.2068 // arguments now. Order is what this asserts, not arity.
2068 let calls = [2069 let calls = [
2069- "spine(",
2070 "screen(",2070 "screen(",
2071 "time_band(",2071 "time_band(",
2072 "bench(",2072 "bench(",
@@ -2424,7 +2424,7 @@ fn hdr_reference_rows_read_content_light_and_use_the_established_empty_state() {
2424 /// The parity class this user has reported four separate times: "some2424 /// The parity class this user has reported four separate times: "some
2425 /// options are only reachable via keyboard shortcut". A source scan (this2425 /// options are only reachable via keyboard shortcut". A source scan (this
2426 /// binary has no `TestAppContext` to click through) over every darkroom2426 /// binary has no `TestAppContext` to click through) over every darkroom
2427-/// surface -- the spine, the dock, the bench/timeband transport, the2427+/// surface -- the dock, the bench/timeband transport, the
2428 /// settings page, the maximized cards and the clip context menu2428 /// settings page, the maximized cards and the clip context menu
2429 /// (`menus.rs`'s `MENU_ITEMS`, rendered mouse-and-chord-visible by2429 /// (`menus.rs`'s `MENU_ITEMS`, rendered mouse-and-chord-visible by
2430 /// `overlays.rs`) -- for a literal `ActionId::<variant>` mention. An2430 /// `overlays.rs`) -- for a literal `ActionId::<variant>` mention. An
@@ -2447,16 +2447,7 @@ fn hdr_reference_rows_read_content_light_and_use_the_established_empty_state() {
2447 fn every_action_has_a_darkroom_widget_home_or_explicit_owner() {2447 fn every_action_has_a_darkroom_widget_home_or_explicit_owner() {
2448 use crate::ActionId;2448 use crate::ActionId;
2449 const EXPLICITLY_OWNED_ELSEWHERE: &[(ActionId, &str)] = &[2449 const EXPLICITLY_OWNED_ELSEWHERE: &[(ActionId, &str)] = &[
2450- (
2451- ActionId::RemoveVideoLane,
2452- "lane-header remove parity owns video-lane controls",
2453- ),
2454- (
2455- ActionId::RemoveAudioLane,
2456- "lane-header remove parity owns audio-lane controls",
2457- ),
2458 (ActionId::Crossfade, "fade parity owns crossfade controls"),2450 (ActionId::Crossfade, "fade parity owns crossfade controls"),
2459- (ActionId::Dissolve, "fade parity owns dissolve controls"),
2460 (2451 (
2461 ActionId::FocusPanels,2452 ActionId::FocusPanels,
2462 "keyboard-only by design: a mouse already focuses whatever it \2453 "keyboard-only by design: a mouse already focuses whatever it \
@@ -2480,6 +2471,112 @@ fn every_action_has_a_darkroom_widget_home_or_explicit_owner() {
2480 accelerator for cycling that existing selection, not a new door -- legacy had no \2471 accelerator for cycling that existing selection, not a new door -- legacy had no \
2481 toolbar button for it either",2472 toolbar button for it either",
2482 ),2473 ),
2474+ // The rail's own eighteen. Deleting the spine (DESIGN §5 as amended
2475+ // 2026-09-09, user decision "option C") took the only pointer door
2476+ // each of these had; LANE R2's right-click parity is what gives them
2477+ // a new one, on the thing each acts on. The staleness check below
2478+ // deletes the exemption the moment that lands, so this cannot become
2479+ // a permanent hole.
2480+ (
2481+ ActionId::Undo,
2482+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2483+ LANE R2 owns the right-click row on the thing each acts on",
2484+ ),
2485+ (
2486+ ActionId::Redo,
2487+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2488+ LANE R2 owns the right-click row on the thing each acts on",
2489+ ),
2490+ (
2491+ ActionId::WalkCutPrev,
2492+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2493+ LANE R2 owns the right-click row on the thing each acts on",
2494+ ),
2495+ (
2496+ ActionId::WalkCutNext,
2497+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2498+ LANE R2 owns the right-click row on the thing each acts on",
2499+ ),
2500+ (
2501+ ActionId::WalkCutNext10,
2502+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2503+ LANE R2 owns the right-click row on the thing each acts on",
2504+ ),
2505+ (
2506+ ActionId::WalkCutPrev10,
2507+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2508+ LANE R2 owns the right-click row on the thing each acts on",
2509+ ),
2510+ (
2511+ ActionId::TrimIn,
2512+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2513+ LANE R2 owns the right-click row on the thing each acts on",
2514+ ),
2515+ (
2516+ ActionId::TrimOut,
2517+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2518+ LANE R2 owns the right-click row on the thing each acts on",
2519+ ),
2520+ (
2521+ ActionId::TrimInToPlayhead,
2522+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2523+ LANE R2 owns the right-click row on the thing each acts on",
2524+ ),
2525+ (
2526+ ActionId::TrimOutToPlayhead,
2527+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2528+ LANE R2 owns the right-click row on the thing each acts on",
2529+ ),
2530+ (
2531+ ActionId::LoopTrim,
2532+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2533+ LANE R2 owns the right-click row on the thing each acts on",
2534+ ),
2535+ (
2536+ ActionId::ZoomIn,
2537+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2538+ LANE R2 owns the right-click row on the thing each acts on",
2539+ ),
2540+ (
2541+ ActionId::ZoomOut,
2542+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2543+ LANE R2 owns the right-click row on the thing each acts on",
2544+ ),
2545+ (
2546+ ActionId::ZoomFit,
2547+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2548+ LANE R2 owns the right-click row on the thing each acts on",
2549+ ),
2550+ (
2551+ ActionId::ToggleSnap,
2552+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2553+ LANE R2 owns the right-click row on the thing each acts on",
2554+ ),
2555+ (
2556+ ActionId::AddVideoLane,
2557+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2558+ LANE R2 owns the right-click row on the thing each acts on",
2559+ ),
2560+ (
2561+ ActionId::AddAudioLane,
2562+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2563+ LANE R2 owns the right-click row on the thing each acts on",
2564+ ),
2565+ (
2566+ ActionId::AddSubtitleLane,
2567+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2568+ LANE R2 owns the right-click row on the thing each acts on",
2569+ ),
2570+ (
2571+ ActionId::RemoveSubtitleLane,
2572+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2573+ LANE R2 owns the right-click row on the thing each acts on",
2574+ ),
2575+ (
2576+ ActionId::Screenshot,
2577+ "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \
2578+ LANE R2 owns the right-click row on the thing each acts on",
2579+ ),
2483 ];2580 ];
2484 let darkroom = [2581 let darkroom = [
2485 "ui/bench_stance.rs",2582 "ui/bench_stance.rs",
@@ -2487,7 +2584,6 @@ fn every_action_has_a_darkroom_widget_home_or_explicit_owner() {
2487 "ui/dock_stance.rs",2584 "ui/dock_stance.rs",
2488 "ui/overlays.rs",2585 "ui/overlays.rs",
2489 "ui/settings_stance.rs",2586 "ui/settings_stance.rs",
2490- "ui/spine_stance.rs",
2491 "ui/stance.rs",2587 "ui/stance.rs",
2492 "ui/timeband_stance.rs",2588 "ui/timeband_stance.rs",
2493 "menus.rs",2589 "menus.rs",
@@ -2500,6 +2596,14 @@ fn every_action_has_a_darkroom_widget_home_or_explicit_owner() {
2500 .find(|(owned, _)| *owned == action)2596 .find(|(owned, _)| *owned == action)
2501 {2597 {
2502 assert!(!owner.is_empty(), "ActionId::{action:?} needs an owner");2598 assert!(!owner.is_empty(), "ActionId::{action:?} needs an owner");
2599+ // An exemption is a debt, not a licence: once the owning lane
2600+ // has mounted the action, the entry has to go, or the sweep
2601+ // goes blind on an action that is covered.
2602+ assert!(
2603+ !darkroom.contains(&format!("ActionId::{action:?}")),
2604+ "ActionId::{action:?} has a darkroom home now -- delete its \
2605+ EXPLICITLY_OWNED_ELSEWHERE entry ({owner})"
2606+ );
2503 continue;2607 continue;
2504 }2608 }
2505 let name = format!("{action:?}");2609 let name = format!("{action:?}");
@@ -2654,8 +2758,8 @@ fn hitmap_names_every_darkroom_pointer_entry_surface() {
2654 2758
2655 /// An external file drag (gpui `ExternalPaths`, Wayland `text/uri-list`) has2759 /// An external file drag (gpui `ExternalPaths`, Wayland `text/uri-list`) has
2656 /// to be heard over the DOCK -- the Sources/library panel -- and not only2760 /// to be heard over the DOCK -- the Sources/library panel -- and not only
2657-/// over the centre column: the dock and the spine are the centre's flex2761+/// over the centre column: the dock is the centre's flex sibling, so the
2658-/// siblings, so the handler `stance-centre` used to carry covered none of2762+/// handler `stance-centre` used to carry covered none of
2659 /// the library panel, which is exactly the shipped "drag and drop file2763 /// the library panel, which is exactly the shipped "drag and drop file
2660 /// import is not working on library panel" defect. The listener therefore2764 /// import is not working on library panel" defect. The listener therefore
2661 /// belongs to the room root (`stance-room`), above every region, and it must2765 /// belongs to the room root (`stance-room`), above every region, and it must
@@ -2953,63 +3057,6 @@ fn a_dock_ring_never_moves_what_it_rings() {
2953 );3057 );
2954 }3058 }
2955 3059
2956-/// The spine is 56px and every pair must fit inside it. Measured at
2957-/// 1280x720 the full-size halves did not: hitmap `action.WalkCutPrev10
2958-/// x=-5 w=31`, `action.AddVideoLane x=-2 w=28` -- the `‹10` glyph was cut
2959-/// at the window's own left edge. Fixed by subtraction (13px + 1px padding
2960-/// for the paired halves, 3px row gap), so this scan is what keeps a new
2961-/// pair from being written at the full row size again.
2962-#[test]
2963-fn every_paired_spine_glyph_is_drawn_at_the_narrow_size() {
2964- let src = src_text("ui/spine_stance.rs");
2965- // Inside every `pair(...)` call, both halves come from `small`.
2966- let mut rest = src.as_str();
2967- let mut pairs = 0;
2968- while let Some(at) = rest.find("pair(") {
2969- let after = &rest[at..];
2970- // The definition and the doc comments are not call sites.
2971- if rest[..at].ends_with("fn ") || rest[..at].ends_with('`') {
2972- rest = &after[5..];
2973- continue;
2974- }
2975- let mut depth = 0i32;
2976- let mut end = after.len();
2977- for (i, c) in after.char_indices() {
2978- match c {
2979- '(' => depth += 1,
2980- ')' => {
2981- depth -= 1;
2982- if depth == 0 {
2983- end = i;
2984- break;
2985- }
2986- }
2987- _ => {}
2988- }
2989- }
2990- let body = &after[..end];
2991- assert!(
2992- !body.contains("glyph("),
2993- "a spine pair draws a full-size glyph, which lays out past the \
2994- 56px rail: {}",
2995- &body[..body.len().min(120)]
2996- );
2997- pairs += 1;
2998- rest = &after[end..];
2999- }
3000- assert!(pairs >= 8, "the spine's pairs went missing ({pairs} found)");
3001- // And `small` is the narrow one: one step down the §3 scale, 1px sides.
3002- assert!(
3003- src.contains("type_scale::CHORD_METADATA_MIN_PX")
3004- && src.contains("let pad = if paired { 1. } else { 3. };"),
3005- "the paired size/padding subtraction is gone from spine_stance"
3006- );
3007- assert!(
3008- src.contains(".gap(px(3.))\n .child(left)"),
3009- "the pair row's own gap grew again"
3010- );
3011-}
3012-
3013 /// DESIGN §9 as amended 2026-09-09: the keys list is the dock's third tab,3060 /// DESIGN §9 as amended 2026-09-09: the keys list is the dock's third tab,
3014 /// not a plate over the bench. The overlay the user asked about ("clicking3061 /// not a plate over the bench. The overlay the user asked about ("clicking
3015 /// them opens a menu ... probably location problem") is gone with its scrim,3062 /// them opens a menu ... probably location problem") is gone with its scrim,
@@ -3054,14 +3101,59 @@ fn the_keys_list_is_a_dock_tab_and_the_plate_is_gone() {
3054 );3101 );
3055 }3102 }
3056 3103
3057-/// The user's screenshot: the spine ended with `?` over `?`. A ghost whose3104+/// The user's screenshot: the old rail ended with `?` over `?`. The rule
3058-/// primary chord IS its glyph wears no badge; every other one still does.3105+/// outlived the rail -- a ledger room ghost whose primary chord IS its own
3106+/// name wears no badge; every other one still does.
3107+#[test]
3108+fn a_room_ghost_wears_no_chord_that_repeats_its_name() {
3109+ let src = src_text("ui/stance.rs");
3110+ assert!(
3111+ src.contains(".when(player.keymap.chord(action) != name, |el| {"),
3112+ "a room ghost draws its chord badge even when the badge repeats its name"
3113+ );
3114+}
3115+
3116+/// DESIGN §5 as amended 2026-09-09 (user decision "option C"): there is no
3117+/// rail. The room root is centre | dock, `spine_stance` is deleted, and the
3118+/// four verbs that act on the ROOM -- the only ones with no thing under the
3119+/// cursor to be right-clicked -- live at the ledger's right end, each
3120+/// wearing its chord, `CC` carrying the shown/hidden state the rail's glyph
3121+/// used to.
3059 #[test]3122 #[test]
3060-fn the_spine_question_mark_wears_no_second_question_mark() {3123+fn the_ledger_carries_the_rooms_four_verbs_and_no_rail_remains() {
3061 let src = src_text("ui/stance.rs");3124 let src = src_text("ui/stance.rs");
3125+ for gone in ["stance-spine", "spine_stance", "SPINE_W", "fn spine("] {
3126+ assert!(!src.contains(gone), "the rail is still in the stance: {gone}");
3127+ }
3128+ let ledger = &src[src.find("fn ledger(").expect("the ledger strip")
3129+ ..src.find("/// The dock:").expect("the dock frame")];
3130+ for (name, action) in [
3131+ ("CC", "ActionId::ToggleSubtitles"),
3132+ ("settings", "ActionId::Settings"),
3133+ ("keys", "ActionId::ShowActions"),
3134+ ("full", "ActionId::Fullscreen"),
3135+ ] {
3136+ assert!(
3137+ ledger.contains(&format!("\"{name}\",")) && ledger.contains(action),
3138+ "the ledger lost its {name} room verb"
3139+ );
3140+ }
3141+ // Before the position timecode, which stays the strip's last word.
3142+ assert!(
3143+ ledger.find("room_ghost(").expect("a room verb")
3144+ < ledger.find(".child(tc),").expect("the position"),
3145+ "the room verbs drew after the position timecode"
3146+ );
3147+ // Each wears its chord, live off the keymap (DESIGN §4), and `CC` reads
3148+ // active while subtitles are shown.
3149+ let ghost = &src[src.find("fn room_ghost(").expect("the room ghost")..];
3150+ assert!(
3151+ ghost.contains("player.keymap.chord(action)") && ghost.contains("widgets::action_hover"),
3152+ "a room verb lost its live chord or its hover plate"
3153+ );
3062 assert!(3154 assert!(
3063- src.contains(".when(player.keymap.chord(action) != glyph, |el| {"),3155+ ledger.contains("player.subs_on"),
3064- "the spine ghost draws its chord badge even when the badge repeats the glyph"3156+ "`CC` no longer shows whether subtitles are shown"
3065 );3157 );
3066 }3158 }
3067 3159
@@ -3173,7 +3265,9 @@ fn the_time_band_never_paints_outside_its_own_column() {
3173 /// rung, and the sheddable groups go in a fixed order (chords, then the3265 /// rung, and the sheddable groups go in a fixed order (chords, then the
3174 /// monitoring cluster, then sync/loop, then the range marks), never all at3266 /// monitoring cluster, then sync/loop, then the range marks), never all at
3175 /// once. Thresholds are the measured group widths; this pins their order and3267 /// once. Thresholds are the measured group widths; this pins their order and
3176-/// the 1280x720 column (939px measured, spine 56 + dock 285) landing on the3268+/// the 1280x720 column (939px measured when a 56px rail still stood left of
3269+/// it; the rail is gone since 2026-09-09, so the same window measures ~989px)
3270+/// landing on the
3177 /// marks-only rung, which is what makes Export fit there (it ended at x=9913271 /// marks-only rung, which is what makes Export fit there (it ended at x=991
3178 /// inside a column ending at 995, against x=1113 under the dock before).3272 /// inside a column ending at 995, against x=1113 under the dock before).
3179 #[test]3273 #[test]
crates/app/src/ui/mod.rsmodified+0 -1
@@ -11,7 +11,6 @@ pub mod library;
11 pub mod overlays;11 pub mod overlays;
12 pub mod preview;12 pub mod preview;
13 pub mod settings_stance;13 pub mod settings_stance;
14-pub mod spine_stance;
15 pub mod stance;14 pub mod stance;
16 pub mod theme;15 pub mod theme;
17 pub mod timeband_stance;16 pub mod timeband_stance;
crates/app/src/ui/spine_stance.rsdeleted+0 -563
@@ -1,563 +0,0 @@
1-//! The spine's own content (DESIGN.md §5, MOCK-SPEC.md "Spine"): grouped
2-//! task-frequency clusters, each row a glyph stacked over its own chord --
3-//! not the flat ungrouped list of glyph-beside-chord rows the shipped room
4-//! drew. `stance.rs::spine()` keeps the panel frame (width, surface,
5-//! border); this module owns the rows inside it.
6-
7-use crate::ui::hitmap;
8-use crate::ui::type_scale::{self, Typeset};
9-use crate::*;
10-
11-/// The glyph icon is a room verb, so it uses the label role rather than a
12-/// bespoke size: Archivo at `LABEL_ROW_PX`.
13-
14-/// A group head: uppercase Archivo 700 in `ink3`, +0.14em tracking
15-/// (DESIGN §3) -- reused as its own small fn rather than `stance::section_head`
16-/// because that one is private to its module and carries a different
17-/// vertical rhythm (a region label, not a spine group head).
18-fn group_head(label: &str) -> impl IntoElement {
19- div()
20- .flex_none()
21- .pt(px(6.))
22- .line_height(relative(1.1))
23- .type_style(type_scale::head())
24- .text_color(rgb(INK3()))
25- .child(label.to_uppercase())
26-}
27-
28-/// One command: glyph over its chord, centred (MOCK-SPEC.md "Spine" --
29-/// "Not glyph-beside-chord on one line"). The chord is read live off
30-/// [`Keymap::display`], never a literal, so a rebind can never leave the
31-/// spine showing a stroke that no longer fires it. Ghost grammar (DESIGN
32-/// §4): borderless, hover is one fill step, active is `ink1` + fill, and a
33-/// refused verb greys with its reason on hover rather than disappearing
34-/// (DESIGN §8) -- the same oracle door `dock_stance::ghost_verb` opens.
35-/// `quiet` demotes a row a whole ink step (DESIGN §2's ink-demotion rule,
36-/// applied per this task's charter to the once-a-session/once-a-project
37-/// acts -- theme, proxies, screenshot, fullscreen -- rather than to a
38-/// re-inking gesture): glyph reads `ink3` instead of `ink2`, its chord
39-/// `ink4` instead of `ink3`, so the ROOM group sits visibly quieter than
40-/// the burst-use groups above it without a second widget shape.
41-fn glyph(
42- id: &'static str,
43- glyph: &'static str,
44- action: ActionId,
45- active: bool,
46- quiet: bool,
47- player: &Player,
48- cx: &mut Context<Player>,
49-) -> impl IntoElement + use<> {
50- glyph_sized(false, id, glyph, action, active, quiet, player, cx)
51-}
52-
53-/// The paired half of [`glyph`]: same control, one step down the §3 scale
54-/// (13px, the chord size) and 1px of side padding instead of 3. Two
55-/// full-size halves plus their padding measured 66px against a 56px rail
56-/// and laid out at negative x -- `‹10` was cut at the window's own left
57-/// edge (hitmap `action.WalkCutPrev10 x=-5 w=31`). Subtraction, not a wider
58-/// spine: the pair now fits inside the column with room on both sides.
59-fn small(
60- id: &'static str,
61- glyph: &'static str,
62- action: ActionId,
63- active: bool,
64- quiet: bool,
65- player: &Player,
66- cx: &mut Context<Player>,
67-) -> impl IntoElement + use<> {
68- glyph_sized(true, id, glyph, action, active, quiet, player, cx)
69-}
70-
71-#[allow(clippy::too_many_arguments)]
72-fn glyph_sized(
73- paired: bool,
74- id: &'static str,
75- glyph: &'static str,
76- action: ActionId,
77- active: bool,
78- quiet: bool,
79- player: &Player,
80- cx: &mut Context<Player>,
81-) -> impl IntoElement + use<> {
82- let size = if paired {
83- type_scale::CHORD_METADATA_MIN_PX
84- } else {
85- type_scale::LABEL_ROW_PX
86- };
87- let pad = if paired { 1. } else { 3. };
88- let enabled = player.enable(action, None);
89- // The badge shows the primary chord only (FAULT 1: a chord badge is a
90- // compact token, not a sentence); the tooltip keeps every stroke an
91- // action answers to, and the keys overlay ([`crate::ui::stance`]) is
92- // still where the full truth lives.
93- let full = player.keymap.display(action);
94- // The room's one hover shape (`widgets::tip_line`): the name first, then
95- // the strokes -- `display`'s every stroke here rather than the compact
96- // badge, since the spine's glyph is already showing the compact one.
97- let say = crate::ui::widgets::tip_line(action.label(), &full, enabled.why());
98- let compact = player.keymap.chord(action);
99- let on = enabled.yes();
100- div()
101- .id(id)
102- .flex_none()
103- .flex()
104- .flex_col()
105- .items_center()
106- .gap(px(1.))
107- .px(px(pad))
108- .py(px(1.))
109- .rounded(px(3.))
110- .when(active, |d| d.bg(rgb(DARK_RAISED())))
111- .tooltip(move |_, cx| cx.new(|_| Tip(say.clone())).into())
112- .when(!on, |d| d.opacity(0.4).cursor_not_allowed())
113- .when(on, |d| {
114- d.cursor_pointer()
115- .hover(|s| s.bg(rgb(DARK_RAISED())).text_color(rgb(INK1())))
116- .on_click(
117- cx.listener(move |this, _: &ClickEvent, window, cx| {
118- this.act(action, window, cx)
119- }),
120- )
121- })
122- .children(hitmap::action(action, on))
123- .child(
124- div()
125- .line_height(relative(1.05))
126- // FAULT 1: the glyph is the loudest thing in its row -- BOLD,
127- // not the MEDIUM weight the chord beneath it also wears.
128- .type_style(type_scale::label(size, gpui::FontWeight::BOLD))
129- .text_color(rgb(if active {
130- INK1()
131- } else if quiet {
132- INK3()
133- } else {
134- INK2()
135- }))
136- .child(glyph),
137- )
138- .child(
139- div()
140- .line_height(relative(1.05))
141- .type_style(type_scale::mono(
142- type_scale::CHORD_METADATA_MIN_PX,
143- gpui::FontWeight::MEDIUM,
144- ))
145- .text_color(rgb(if quiet { INK4() } else { INK3() }))
146- .child(compact),
147- )
148-}
149-
150-/// The trim control (MOCK-SPEC "Spine"): one row read as ONE control with
151-/// two strokes, not two identical `±1` boxes each carrying its own `[`/`]`
152-/// chord underneath (the shipped defect this replaces). `−1`/`+1` distinguish
153-/// the two strokes visually where a doubled `±1` couldn't; the chord line
154-/// beneath is shared and shows both strokes together (`[ ]`), the way the
155-/// mock's single `±1` / `[ ]` pair reads as one thing, not two.
156-fn trim_control(active: bool, player: &Player, cx: &mut Context<Player>) -> impl IntoElement {
157- let half = |id: &'static str, txt: &'static str, action: ActionId, cx: &mut Context<Player>| {
158- let enabled = player.enable(action, None);
159- let full = player.keymap.display(action);
160- let say = crate::ui::widgets::tip_line(action.label(), &full, enabled.why());
161- let on = enabled.yes();
162- div()
163- .id(id)
164- .flex_none()
165- .px(px(1.))
166- .rounded(px(3.))
167- .tooltip(move |_, cx| cx.new(|_| Tip(say.clone())).into())
168- .when(!on, |d| d.opacity(0.4).cursor_not_allowed())
169- .when(on, |d| {
170- d.cursor_pointer()
171- .hover(|s| s.bg(rgb(DARK_RAISED())).text_color(rgb(INK1())))
172- .on_click(cx.listener(move |this, _: &ClickEvent, window, cx| {
173- this.act(action, window, cx)
174- }))
175- })
176- .children(hitmap::action(action, on))
177- .child(
178- div()
179- .line_height(relative(1.05))
180- // Paired, so the same step down the scale `small` takes.
181- .type_style(type_scale::label(
182- type_scale::CHORD_METADATA_MIN_PX,
183- gpui::FontWeight::BOLD,
184- ))
185- .text_color(rgb(if active { INK1() } else { INK2() }))
186- .child(txt),
187- )
188- };
189- div()
190- .flex_none()
191- .flex()
192- .flex_col()
193- .items_center()
194- .gap(px(1.))
195- .px(px(3.))
196- .py(px(1.))
197- .rounded(px(3.))
198- .when(active, |d| d.bg(rgb(DARK_RAISED())))
199- .child(
200- div()
201- .flex()
202- .items_center()
203- .gap(px(2.))
204- .child(half("spine-trim-in", "−1", ActionId::TrimIn, cx))
205- .child(half("spine-trim-out", "+1", ActionId::TrimOut, cx)),
206- )
207- .child(
208- div()
209- .line_height(relative(1.05))
210- .type_style(type_scale::mono(
211- type_scale::CHORD_METADATA_MIN_PX,
212- gpui::FontWeight::MEDIUM,
213- ))
214- .text_color(rgb(INK3()))
215- .child("[ ]"),
216- )
217-}
218-
219-/// A compact section: always visible (hide-until-hover for controls is a
220-/// rejected pattern -- user 2026-08-27, "simplify it not hide the things";
221-/// see DESIGN.md §8). Rare-cadence groups (CUT's tail, VIEW, TRACK, ROOM)
222-/// stay on the rail permanently, just tighter (smaller row gap, no extra
223-/// group head where they're the tail of one already named above them) so
224-/// they read quieter than EDIT/CUT's every-cut rows without disappearing.
225-fn compact_group<T: IntoElement>(id: &'static str, rows: T) -> impl IntoElement + use<T> {
226- div()
227- .id(id)
228- .flex_none()
229- .w_full()
230- .flex()
231- .flex_col()
232- .items_center()
233- .gap(px(1.))
234- .child(rows)
235-}
236-
237-/// Two commands side by side in one row -- the opposite-direction pairs
238-/// (walk cuts, no-aim trim) that share a row in the mock rather than each
239-/// eating a full row of the spine's own height.
240-fn pair(left: impl IntoElement, right: impl IntoElement) -> impl IntoElement {
241- div()
242- .flex_none()
243- .flex()
244- .w_full()
245- .items_center()
246- .justify_center()
247- // 3px, and both halves come from `small` (13px, 1px padding): two
248- // full-size halves plus 4px measured 66px against the 56px rail and
249- // laid out at negative x (hitmap `action.AddVideoLane x=-2 w=28`).
250- .gap(px(3.))
251- .child(left)
252- .child(right)
253-}
254-
255-/// The spine's rows, grouped by task frequency (DESIGN §5, §11 check 1):
256-/// EDIT (split, delete, undo -- every edit), CUT (walk/trim/loop-trim --
257-/// every cut), TRACK (add a lane -- once per project, cheapest land at the
258-/// bottom of the frequent group). `?` stays on `stance::spine`'s own frame,
259-/// not duplicated here.
260-///
261-/// Gap, named rather than shipped as a dead control: the mock's LEAN row
262-/// (`⊡` / `\`, "lean/zen mode") has no [`ActionId`] anywhere in
263-/// `keymap.rs` -- `Fullscreen` is the nearest existing action but it is a
264-/// different verb (the platform's own fullscreen, bound to `f11`, not a
265-/// zen/lean UI mode) so reusing it under the mock's glyph would be exactly
266-/// the fake-control this task's own instructions forbid. Left out; the
267-/// group and its bottom anchor do not exist here.
268-pub(crate) fn render(player: &Player, cx: &mut Context<Player>) -> impl IntoElement {
269- div()
270- .id("spine-stance-rows")
271- .flex_1()
272- .min_h(px(0.))
273- .w_full()
274- .flex()
275- .flex_col()
276- .items_center()
277- // FAULT 1: rows close under their group head, real space (the group
278- // head's own `pt`) only between one group and the next -- not one
279- // uniform gap stretching every row down the window. The gap itself
280- // is now the smallest gpui will draw (1px) rather than the 2px that
281- // still read as "spread" against the mock's tight top-third rail.
282- .gap(px(1.))
283- .overflow_y_scroll()
284- .child(group_head("edit"))
285- .child(glyph(
286- "spine-split",
287- "||",
288- ActionId::Cut,
289- false,
290- false,
291- player,
292- cx,
293- ))
294- .child(glyph(
295- "spine-delete",
296- "⊂⊃",
297- ActionId::Delete,
298- false,
299- false,
300- player,
301- cx,
302- ))
303- .child(pair(
304- small("spine-undo", "↺", ActionId::Undo, false, false, player, cx),
305- // Redo had a legacy toolbar button (`toolbar.rs:347`) but no
306- // darkroom home -- Undo got a glyph here and Redo did not.
307- // Same row, same door (`this.act`), the pair anatomy the
308- // cut-prev/cut-next row below already uses.
309- small("spine-redo", "⟳", ActionId::Redo, false, false, player, cx),
310- ))
311- .child(group_head("cut"))
312- .child(pair(
313- small(
314- "spine-cut-prev",
315- "‹",
316- ActionId::WalkCutPrev,
317- false,
318- false,
319- player,
320- cx,
321- ),
322- small(
323- "spine-cut-next",
324- "›",
325- ActionId::WalkCutNext,
326- false,
327- false,
328- player,
329- cx,
330- ),
331- ))
332- // Everything past the walk-cut pair above is CUT's low-frequency
333- // tail (stride-10 walks, ±1 trim, trim-to-playhead, loop-trim) --
334- // always visible (no hover-gating, DESIGN §8/user 2026-08-27), just
335- // `quiet`-demoted a step so it reads under the burst-use pair above
336- // it rather than competing with it for weight.
337- .child(compact_group(
338- "spine-zone-cut-more",
339- div()
340- .flex()
341- .flex_col()
342- .items_center()
343- .gap(px(1.))
344- .child(pair(
345- small(
346- "spine-cut-prev-ten",
347- "‹10",
348- ActionId::WalkCutPrev10,
349- false,
350- true,
351- player,
352- cx,
353- ),
354- small(
355- "spine-cut-next-ten",
356- "10›",
357- ActionId::WalkCutNext10,
358- false,
359- true,
360- player,
361- cx,
362- ),
363- ))
364- .child(trim_control(player.loop_trim.is_some(), player, cx))
365- .child(pair(
366- // Trim-to-playhead (debt #42): the keyboard's own version
367- // of the pointer's drag-to-a-spot trim, beside the nudge
368- // pair it shares its primitive with.
369- small(
370- "spine-trim-in-playhead",
371- "[▮",
372- ActionId::TrimInToPlayhead,
373- false,
374- true,
375- player,
376- cx,
377- ),
378- small(
379- "spine-trim-out-playhead",
380- "▮]",
381- ActionId::TrimOutToPlayhead,
382- false,
383- true,
384- player,
385- cx,
386- ),
387- ))
388- .child(glyph(
389- "spine-loop-trim",
390- "↻",
391- ActionId::LoopTrim,
392- player.loop_trim.is_some(),
393- true,
394- player,
395- cx,
396- )),
397- ))
398- // VIEW group: ZoomIn/ZoomOut/ZoomFit/ToggleSnap all read the
399- // timeline at a scale rather than cutting it -- real handlers with
400- // a darkroom home, but well under EDIT/CUT's every-cut cadence
401- // (DESIGN §6), so it gets its own plain head and `quiet` rows
402- // rather than a heavier full-size group.
403- .child(group_head("view"))
404- .child(compact_group(
405- "spine-zone-view",
406- div()
407- .flex()
408- .flex_col()
409- .items_center()
410- .gap(px(1.))
411- .child(pair(
412- small(
413- "spine-zoom-out",
414- "−",
415- ActionId::ZoomOut,
416- false,
417- true,
418- player,
419- cx,
420- ),
421- small(
422- "spine-zoom-in",
423- "+",
424- ActionId::ZoomIn,
425- false,
426- true,
427- player,
428- cx,
429- ),
430- ))
431- .child(glyph(
432- "spine-zoom-fit",
433- "⊡",
434- ActionId::ZoomFit,
435- false,
436- true,
437- player,
438- cx,
439- ))
440- // ToggleSnap: decides where a drag lands, which is what the
441- // eye reads the zoom scale against -- kept beside the zoom
442- // controls it shares this zone with. Active fill mirrors
443- // loop-trim's own on/off convention.
444- .child(glyph(
445- "snap",
446- "Sn",
447- ActionId::ToggleSnap,
448- player.snap,
449- true,
450- player,
451- cx,
452- )),
453- ))
454- // TRACK: once-per-project lane adds -- own head, `quiet` rows.
455- .child(group_head("track"))
456- .child(compact_group(
457- "spine-zone-track",
458- div()
459- .flex()
460- .flex_col()
461- .items_center()
462- .gap(px(1.))
463- .child(pair(
464- small(
465- "spine-add-video",
466- "+V",
467- ActionId::AddVideoLane,
468- false,
469- true,
470- player,
471- cx,
472- ),
473- small(
474- "spine-add-audio",
475- "+A",
476- ActionId::AddAudioLane,
477- false,
478- true,
479- player,
480- cx,
481- ),
482- ))
483- // The subtitle lane pair: add beside remove, one row, the
484- // same "+letter"/"−letter" grammar +V/+A above it already
485- // reads in. Import (`↓S`) left this rail entirely -- it is
486- // an import, so it lives in the dock's own IMPORT list
487- // beside "Add files" (`dock_stance`), where an editor
488- // already goes to bring a file into the room.
489- .child(pair(
490- small(
491- "spine-add-subtitle",
492- "+S",
493- ActionId::AddSubtitleLane,
494- false,
495- true,
496- player,
497- cx,
498- ),
499- small(
500- "spine-remove-subtitle",
501- "−S",
502- ActionId::RemoveSubtitleLane,
503- false,
504- true,
505- player,
506- cx,
507- ),
508- ))
509- .child(glyph(
510- "spine-toggle-subtitles",
511- "CC",
512- ActionId::ToggleSubtitles,
513- player.subs_on,
514- true,
515- player,
516- cx,
517- )),
518- ))
519- // ROOM: the three acts that are *acts* rather than settings (user
520- // 2026-08-21: "the spine menu is too crowded"). Theme, proxies and
521- // auto-proxies stayed off this rail entirely (settings_stance).
522- // Once-a-session/once-a-project cadence -- own head, `quiet` rows,
523- // same as VIEW/TRACK above it, always visible.
524- .child(group_head("room"))
525- .child(compact_group(
526- "spine-zone-room",
527- div()
528- .flex()
529- .flex_col()
530- .items_center()
531- .gap(px(1.))
532- .child(pair(
533- small(
534- "spine-settings",
535- "St",
536- ActionId::Settings,
537- player.settings_open,
538- true,
539- player,
540- cx,
541- ),
542- small(
543- "spine-screenshot",
544- "Sh",
545- ActionId::Screenshot,
546- false,
547- true,
548- player,
549- cx,
550- ),
551- ))
552- .child(glyph(
553- "spine-fullscreen",
554- "FS",
555- ActionId::Fullscreen,
556- false,
557- true,
558- player,
559- cx,
560- )),
561- ))
562- .child(div().flex_1())
563-}
crates/app/src/ui/stance.rsmodified+90 -59
@@ -12,7 +12,6 @@ use crate::ui::bench_stance;
12 use crate::ui::dock_stance;12 use crate::ui::dock_stance;
13 use crate::ui::hitmap;13 use crate::ui::hitmap;
14 use crate::ui::settings_stance;14 use crate::ui::settings_stance;
15-use crate::ui::spine_stance;
16 use crate::ui::timeband_stance;15 use crate::ui::timeband_stance;
17 use crate::ui::type_scale::{self, Typeset};16 use crate::ui::type_scale::{self, Typeset};
18 use crate::*;17 use crate::*;
@@ -118,8 +117,6 @@ impl Player {
118 }117 }
119 }118 }
120 119
121-/// Left rail, full height (DESIGN §5).
122-pub(crate) const SPINE_W: f32 = 56.;
123 /// Fixed strip under the screen: timecode, transport, cut readout, contact120 /// Fixed strip under the screen: timecode, transport, cut readout, contact
124 /// strip, Export -- all placeholder at this step. Kept `pub(crate)` for121 /// strip, Export -- all placeholder at this step. Kept `pub(crate)` for
125 /// `layout::split_bounds`'s bench ceiling, the same one-door reason122 /// `layout::split_bounds`'s bench ceiling, the same one-door reason
@@ -422,44 +419,47 @@ fn section_head(label: &str) -> impl IntoElement {
422 .child(label.to_uppercase())419 .child(label.to_uppercase())
423 }420 }
424 421
425-/// A ghost command (DESIGN §4): borderless glyph (`ink2`) + dim chord422+/// A room verb at the ledger's right end (DESIGN §4, §5 as amended
426-/// (`ink3`), read live off the keymap so a rebind can never leave the spine423+/// 2026-09-09 -- user decision "option C"): the name in `ink3`, its chord
427-/// showing a stroke that no longer fires it.424+/// beside it, read live off the keymap so a rebind can never leave the
428-fn ghost(425+/// strip showing a stroke that no longer fires it. Hover raises the plate
426+/// (`ink2` + `raised`) the same way every other verb in the room does;
427+/// active reads `ink1` + fill, the state the deleted rail's glyphs carried.
428+fn room_ghost(
429 player: &Player,429 player: &Player,
430- glyph: &str,430+ name: &'static str,
431 action: ActionId,431 action: ActionId,
432+ active: bool,
432 cx: &mut Context<Player>,433 cx: &mut Context<Player>,
433 ) -> impl IntoElement {434 ) -> impl IntoElement {
434 div()435 div()
435- .id("keys")436+ .id(name)
436 .flex_none()437 .flex_none()
437 .flex()438 .flex()
438- .flex_col()
439 .items_center()439 .items_center()
440- .gap(px(2.))440+ .gap(px(4.))
441- .py(px(6.))441+ .px(px(5.))
442+ .py(px(2.))
442 .rounded(px(3.))443 .rounded(px(3.))
443 .cursor_pointer()444 .cursor_pointer()
444- .hover(|s| s.bg(rgb(DARK_RAISED())).text_color(rgb(INK1())))445+ .when(active, |d| d.bg(rgb(DARK_RAISED())))
446+ .hover(|s| s.bg(rgb(DARK_RAISED())).text_color(rgb(INK2())))
445 .tooltip(crate::ui::widgets::action_hover(player, action))447 .tooltip(crate::ui::widgets::action_hover(player, action))
446 .on_click(cx.listener(move |this, _: &ClickEvent, window, cx| this.act(action, window, cx)))448 .on_click(cx.listener(move |this, _: &ClickEvent, window, cx| this.act(action, window, cx)))
447- .type_style(type_scale::label(449+ .type_style(type_scale::mono(
448- type_scale::LABEL_ROW_PX,450+ type_scale::CHORD_METADATA_MIN_PX,
449 gpui::FontWeight::MEDIUM,451 gpui::FontWeight::MEDIUM,
450 ))452 ))
451- .text_color(rgb(INK2()))453+ .text_color(rgb(if active { INK1() } else { INK3() }))
452- // The pointer's way to this glyph has to be findable by name like454+ // The pointer's way to this verb has to be findable by name -- with
453- // every other ghost's (`spine_stance`), or a hand -- and the harness455+ // the rail gone this is the hitmap entry for each of the four, and
454- // -- can only reach the KEYS tab through its dock tab.456+ // for `keys` it is the only `ShowActions` control in the room.
455 .children(hitmap::action(action, true))457 .children(hitmap::action(action, true))
456- .child(glyph.to_string())458+ .child(name)
457- // Every command wears its chord (DESIGN §4) -- except the one whose459+ // Every command wears its chord (DESIGN §4) -- except one whose name
458- // glyph already IS its stroke: `?` over `?` read as two question460+ // already IS its stroke, the `?` over `?` rule the rail's last ghost
459- // marks on the rail and the user asked why ("why two ? exists").461+ // was given ("why two ? exists").
460- // A badge that only repeats the glyph says nothing, so it is not462+ .when(player.keymap.chord(action) != name, |el| {
461- // drawn; every other ghost still wears its chord under it.
462- .when(player.keymap.chord(action) != glyph, |el| {
463 el.child(463 el.child(
464 div()464 div()
465 .type_style(type_scale::mono(465 .type_style(type_scale::mono(
@@ -467,36 +467,22 @@ fn ghost(
467 gpui::FontWeight::MEDIUM,467 gpui::FontWeight::MEDIUM,
468 ))468 ))
469 .text_color(rgb(INK3()))469 .text_color(rgb(INK3()))
470- // FAULT 1: the badge shows the primary chord, compact --
471- // same rule as every glyph in `spine_stance`.
472 .child(player.keymap.chord(action)),470 .child(player.keymap.chord(action)),
473 )471 )
474 })472 })
475 }473 }
476 474
477-/// The spine: 56px, left, full height. Frame only -- grouped rows, task475+/// The separator between two room verbs -- the ledger's own mono middot,
478-/// frequency, glyph-over-chord grammar and every click all live in476+/// the same one the project identity already reads with.
479-/// [`crate::ui::spine_stance`] now (MOCK-SPEC.md "Spine"); this fn keeps477+fn verb_dot() -> impl IntoElement {
480-/// the panel's own surface and the `?` row, which stays part of the frame
481-/// since it swings the dock to its KEYS tab right here rather than through
482-/// `act`.
483-fn spine(player: &Player, cx: &mut Context<Player>) -> impl IntoElement {
484 div()478 div()
485- .id("stance-spine")
486 .flex_none()479 .flex_none()
487- .w(px(SPINE_W))480+ .type_style(type_scale::mono(
488- .h_full()481+ type_scale::CHORD_METADATA_MIN_PX,
489- .bg(rgb(DARK_PANEL()))482+ gpui::FontWeight::MEDIUM,
490- .border_r_1()483+ ))
491- .border_color(rgba(DARK_SEAM()))484+ .text_color(rgb(INK3()))
492- .flex()485+ .child("·")
493- .flex_col()
494- .items_center()
495- .py(px(8.))
496- .gap(px(4.))
497- .child(section_head("spine"))
498- .child(spine_stance::render(player, cx))
499- .child(ghost(player, "?", ActionId::ShowActions, cx))
500 }486 }
501 487
502 /// The picture region: top of the centre column, takes the remaining space,488 /// The picture region: top of the centre column, takes the remaining space,
@@ -555,7 +541,7 @@ fn screen(
555 /// readout, the contact strip, boxed Export at the end (DESIGN §5,541 /// readout, the contact strip, boxed Export at the end (DESIGN §5,
556 /// MOCK-SPEC.md "Time band"). Frame only -- every row and the Export chip's542 /// MOCK-SPEC.md "Time band"). Frame only -- every row and the Export chip's
557 /// click live in [`crate::ui::timeband_stance`] now, the same split543 /// click live in [`crate::ui::timeband_stance`] now, the same split
558-/// `spine_stance`/`bench_stance`/`dock_stance` already make for their544+/// `bench_stance`/`dock_stance` already make for their
559 /// regions.545 /// regions.
560 fn time_band(player: &mut Player, position: f64, cx: &mut Context<Player>) -> impl IntoElement {546 fn time_band(player: &mut Player, position: f64, cx: &mut Context<Player>) -> impl IntoElement {
561 // The position comes from `render`, the same one the screen and the ledger547 // The position comes from `render`, the same one the screen and the ledger
@@ -638,7 +624,7 @@ fn bench(
638 624
639 /// Thin strip at the bottom of the centre column: project identity, last625 /// Thin strip at the bottom of the centre column: project identity, last
640 /// action, export progress, position. Notices rise from here (DESIGN §5, §8).626 /// action, export progress, position. Notices rise from here (DESIGN §5, §8).
641-fn ledger(player: &Player, position: f64) -> impl IntoElement {627+fn ledger(player: &Player, position: f64, cx: &mut Context<Player>) -> impl IntoElement {
642 let name = match player.project_path.as_os_str().is_empty() {628 let name = match player.project_path.as_os_str().is_empty() {
643 true => "untitled".to_string(),629 true => "untitled".to_string(),
644 false => file_name(&player.project_path),630 false => file_name(&player.project_path),
@@ -717,6 +703,51 @@ fn ledger(player: &Player, position: f64) -> impl IntoElement {
717 .text_color(rgb(INK2()))703 .text_color(rgb(INK2()))
718 .child(e)704 .child(e)
719 }))705 }))
706+ // The room's four verbs (DESIGN §5 as amended 2026-09-09, user
707+ // decision "option C"): with the rail deleted, nothing on screen
708+ // lists commands -- the KEYS tab is the list, every other verb is a
709+ // key or a right-click on the thing -- except these four, which act
710+ // on the room itself and so have no thing to be right-clicked on.
711+ // They sit at the strip's right end, before the position, each
712+ // wearing its chord.
713+ .child(
714+ div()
715+ .flex_none()
716+ .flex()
717+ .items_center()
718+ .gap(px(6.))
719+ .child(room_ghost(
720+ player,
721+ "CC",
722+ ActionId::ToggleSubtitles,
723+ player.subs_on,
724+ cx,
725+ ))
726+ .child(verb_dot())
727+ .child(room_ghost(
728+ player,
729+ "settings",
730+ ActionId::Settings,
731+ player.settings_open,
732+ cx,
733+ ))
734+ .child(verb_dot())
735+ .child(room_ghost(
736+ player,
737+ "keys",
738+ ActionId::ShowActions,
739+ player.keys_open,
740+ cx,
741+ ))
742+ .child(verb_dot())
743+ .child(room_ghost(
744+ player,
745+ "full",
746+ ActionId::Fullscreen,
747+ false,
748+ cx,
749+ ))
750+ )
720 .child(751 .child(
721 div()752 div()
722 .flex_none()753 .flex_none()
@@ -786,7 +817,7 @@ fn mouse_exit_listener(cx: &mut Context<Player>) -> impl IntoElement {
786 .size(px(0.))817 .size(px(0.))
787 }818 }
788 819
789-/// The whole stance: spine, screen, time band, bench, ledger, dock, in the820+/// The whole stance: screen, time band, bench, ledger, dock, in the
790 /// order DESIGN §5 draws them, over the same key handler the legacy tree821 /// order DESIGN §5 draws them, over the same key handler the legacy tree
791 /// uses (DESIGN §12 step 3): the darkroom draws its own regions but answers822 /// uses (DESIGN §12 step 3): the darkroom draws its own regions but answers
792 /// to the one keymap.823 /// to the one keymap.
@@ -852,7 +883,7 @@ pub(crate) fn render(
852 // was clicked into (`dock_stance.rs` sets `dock_filter_edit` on883 // was clicked into (`dock_stance.rs` sets `dock_filter_edit` on
853 // that click regardless of which tree is drawing the row), a884 // that click regardless of which tree is drawing the row), a
854 // letter typed anywhere else in the room keeps meaning whatever885 // letter typed anywhere else in the room keeps meaning whatever
855- // the spine says it means.886+ // the keymap says it means.
856 if this.dock_filter_edit {887 if this.dock_filter_edit {
857 if key == "escape" || key == "enter" {888 if key == "escape" || key == "enter" {
858 this.dock_filter_edit = false;889 this.dock_filter_edit = false;
@@ -971,8 +1002,8 @@ pub(crate) fn render(
971 // hearing it once a `Split::Dock`/`Split::Bench` drag has started.1002 // hearing it once a `Split::Dock`/`Split::Bench` drag has started.
972 // A file dropped from outside the window (gpui's `ExternalPaths`,1003 // A file dropped from outside the window (gpui's `ExternalPaths`,
973 // Wayland's `text/uri-list`) lands on the room itself, not on the1004 // Wayland's `text/uri-list`) lands on the room itself, not on the
974- // centre column: the dock's Sources panel and the spine are the1005+ // centre column: the dock's Sources panel is the centre's flex
975- // centre's flex siblings, so a handler mounted there heard no drop1006+ // sibling, so a handler mounted there heard no drop
976 // over the library at all -- the shipped "drag and drop import does1007 // over the library at all -- the shipped "drag and drop import does
977 // not work on the library panel" defect. Here it is the one surface1008 // not work on the library panel" defect. Here it is the one surface
978 // under every region, so a drop anywhere in the darkroom is heard.1009 // under every region, so a drop anywhere in the darkroom is heard.
@@ -995,7 +1026,6 @@ pub(crate) fn render(
995 .bg(rgb(DARK_CANVAS()))1026 .bg(rgb(DARK_CANVAS()))
996 .children(hitmap::frame())1027 .children(hitmap::frame())
997 .child(mouse_exit_listener(cx))1028 .child(mouse_exit_listener(cx))
998- .child(spine(player, cx))
999 .child(1029 .child(
1000 div()1030 div()
1001 .id("stance-centre")1031 .id("stance-centre")
@@ -1012,7 +1042,7 @@ pub(crate) fn render(
1012 .child(time_band(player, position, cx))1042 .child(time_band(player, position, cx))
1013 .child(divider(Split::Bench, player.split_drag == Some(Split::Bench), cx))1043 .child(divider(Split::Bench, player.split_drag == Some(Split::Bench), cx))
1014 .child(bench(player, bench_h, window, cx))1044 .child(bench(player, bench_h, window, cx))
1015- .child(ledger(player, position))1045+ .child(ledger(player, position, cx))
1016 .when(player.settings_open, |el| {1046 .when(player.settings_open, |el| {
1017 el.child(settings_stance::render(player, window_size, cx))1047 el.child(settings_stance::render(player, window_size, cx))
1018 })1048 })
@@ -1052,8 +1082,9 @@ pub(crate) fn render(
1052 // `stance-centre`. Their anchors are *window* coordinates -- a1082 // `stance-centre`. Their anchors are *window* coordinates -- a
1053 // `MouseDownEvent::position` -- while an absolutely placed child of1083 // `MouseDownEvent::position` -- while an absolutely placed child of
1054 // the centre column is laid out from that column's own origin and1084 // the centre column is laid out from that column's own origin and
1055- // ends where it ends: the spine shifted every clip menu right by1085+ // ends where it ends: the rail that used to stand left of the centre
1056- // `SPINE_W`, and the dock, painted after the centre, covered every1086+ // shifted every clip menu right by its own 56px, and the dock,
1087+ // painted after the centre, covered every
1057 // pixel past x = width - dock. That is the shipped "can not remove a1088 // pixel past x = width - dock. That is the shipped "can not remove a
1058 // media from library" defect (the library plate was built, placed and1089 // media from library" defect (the library plate was built, placed and
1059 // never visible) and the clip menu whose chords were cut off mid-word1090 // never visible) and the clip menu whose chords were cut off mid-word