Un-hide spine verb groups, simplify by subtraction not concealment
Browse files at this commit532f9ee5bc6f0ed941e2ed13465e3c0e008057f0Parent: 0cf5087- fix
- un-hide spine verb groups, simplify by subtraction not concealment
3 changed files +44 -104
- DESIGN.md +6 -0
- crates/app/src/main.rs +0 -8
- crates/app/src/ui/spine_stance.rs +38 -96
DESIGN.mdmodified+6 -0
| @@ -178,6 +178,12 @@ refuses (in menus) greys out with its reason on hover; it never disappears. A ve | |||
| 178 | clip's *media kind* can never use (a grade on sound, an equalizer on a picture) is hidden outright | 178 | clip's *media kind* can never use (a grade on sound, an equalizer on a picture) is hidden outright |
| 179 | instead — a class refusal, not a moment's answer the next click could change (user 2026-08-27). | 179 | instead — a class refusal, not a moment's answer the next click could change (user 2026-08-27). |
| 180 | 180 | ||
| 181 | +**Hide-until-hover for controls/verbs is rejected (user 2026-08-27: "simplify it not hide the | ||
| 182 | +things").** A control's visibility never gates on pointer position — hover may brighten or fill a | ||
| 183 | +control already on screen, but a verb group that needs thinning gets thinned by subtraction | ||
| 184 | +(compact rows, plain always-visible group labels, smaller type) or dropped outright, never hidden | ||
| 185 | +behind a hover/expand/collapse. | ||
| 186 | + | ||
| 181 | **No instructional copy (rejected pattern, user 2026-08-27).** The room never explains itself in | 187 | **No instructional copy (rejected pattern, user 2026-08-27).** The room never explains itself in |
| 182 | prose: no "pick a verb above", no "type to filter — name, codec, unused…", no "Import, or drop a | 188 | prose: no "pick a verb above", no "type to filter — name, codec, unused…", no "Import, or drop a |
| 183 | file on the window". Empty states are empty (or a single noun); placeholders are one word or | 189 | file on the window". Empty states are empty (or a single noun); placeholders are one word or |
crates/app/src/main.rsmodified+0 -8
| @@ -518,13 +518,6 @@ struct Player { | |||
| 518 | /// list). Cleared by [`Player::close_card`], the one reset list every | 518 | /// list). Cleared by [`Player::close_card`], the one reset list every |
| 519 | /// opener routes through. | 519 | /// opener routes through. |
| 520 | settings_open: bool, | 520 | settings_open: bool, |
| 521 | - /// Which spine section, if any, currently sits under the pointer | ||
| 522 | - /// (density reduction, user feedback 2026-08-27): the low-frequency | ||
| 523 | - /// glyphs of that section render expanded while this is `Some`, and | ||
| 524 | - /// collapse to a hairline the instant the pointer leaves | ||
| 525 | - /// ([`crate::ui::spine_stance`]). Never gates a chord -- every action | ||
| 526 | - /// still fires from the keyboard whether its section is expanded or not. | ||
| 527 | - spine_hover: Option<crate::ui::spine_stance::SpineZone>, | ||
| 528 | /// Where the actions list is scrolled to. Held here rather than left to | 521 | /// Where the actions list is scrolled to. Held here rather than left to |
| 529 | /// the wheel alone: forty actions are four times what a 360 px window | 522 | /// the wheel alone: forty actions are four times what a 360 px window |
| 530 | /// shows, and the rows past the fold have to be reachable from the | 523 | /// shows, and the rows past the fold have to be reachable from the |
| @@ -981,7 +974,6 @@ fn main() { | |||
| 981 | keymap: keymap.clone(), | 974 | keymap: keymap.clone(), |
| 982 | keys_open: false, | 975 | keys_open: false, |
| 983 | settings_open: false, | 976 | settings_open: false, |
| 984 | - spine_hover: None, | ||
| 985 | keys_scroll: ScrollHandle::new(), | 977 | keys_scroll: ScrollHandle::new(), |
| 986 | lanes_scroll: ScrollHandle::new(), | 978 | lanes_scroll: ScrollHandle::new(), |
| 987 | eq_scroll: ScrollHandle::new(), | 979 | eq_scroll: ScrollHandle::new(), |
crates/app/src/ui/spine_stance.rsmodified+38 -96
| @@ -185,51 +185,13 @@ fn trim_control(active: bool, player: &Player, cx: &mut Context<Player>) -> impl | |||
| 185 | ) | 185 | ) |
| 186 | } | 186 | } |
| 187 | 187 | ||
| 188 | -/// Which spine section is expanded under the pointer (density reduction, | 188 | +/// A compact section: always visible (hide-until-hover for controls is a |
| 189 | -/// user feedback 2026-08-27: "feels complex" against the always-visible | 189 | +/// rejected pattern -- user 2026-08-27, "simplify it not hide the things"; |
| 190 | -/// ~40-glyph rail). `CutMore` is the low-frequency tail of the CUT group | 190 | +/// see DESIGN.md §8). Rare-cadence groups (CUT's tail, VIEW, TRACK, ROOM) |
| 191 | -/// (stride-10 walks, ±1 trim, trim-to-playhead, loop-trim) sitting under | 191 | +/// stay on the rail permanently, just tighter (smaller row gap, no extra |
| 192 | -/// the burst-use walk-cut pair, which stays visible on its own; VIEW, | 192 | +/// group head where they're the tail of one already named above them) so |
| 193 | -/// TRACK and ROOM collapse whole since every row in them is once-per-scene | 193 | +/// they read quieter than EDIT/CUT's every-cut rows without disappearing. |
| 194 | -/// or rarer next to EDIT/CUT's every-cut cadence (DESIGN §6). | 194 | +fn compact_group<T: IntoElement>(id: &'static str, rows: T) -> impl IntoElement + use<T> { |
| 195 | -#[derive(Debug, Clone, Copy, PartialEq, Eq)] | ||
| 196 | -pub(crate) enum SpineZone { | ||
| 197 | - CutMore, | ||
| 198 | - View, | ||
| 199 | - Track, | ||
| 200 | - Room, | ||
| 201 | -} | ||
| 202 | - | ||
| 203 | -/// A collapsed section: one hairline, no prose, no repeated group word | ||
| 204 | -/// (DESIGN §8's rejected-instructional-copy rule applies to labels too -- | ||
| 205 | -/// a collapsed group reads as a seam in the rail, not a sentence). | ||
| 206 | -fn hairline() -> impl IntoElement { | ||
| 207 | - div() | ||
| 208 | - .flex_none() | ||
| 209 | - .w(px(20.)) | ||
| 210 | - .h(px(1.)) | ||
| 211 | - .my(px(5.)) | ||
| 212 | - .bg(rgba(DARK_SEAM())) | ||
| 213 | -} | ||
| 214 | - | ||
| 215 | -/// A section that is a hairline at rest and its full row set on hover | ||
| 216 | -/// (task: "hover the collapsed group's zone -> its glyphs expand in | ||
| 217 | -/// place; leave -> collapse"). The wrapping div is the hover target and | ||
| 218 | -/// carries the hover state onto [`Player::spine_hover`] rather than any | ||
| 219 | -/// local widget state, since gpui re-renders the whole spine on | ||
| 220 | -/// `cx.notify()` and this is the one flag the whole rail reads. Every | ||
| 221 | -/// glyph inside `rows` keeps its own `cx.listener` click handler, so a | ||
| 222 | -/// verb revealed by hover is exactly as clickable as an always-visible one | ||
| 223 | -/// once it is on screen -- collapsing only removes it from the layout, it | ||
| 224 | -/// never disables the handler. | ||
| 225 | -fn collapsible<T: IntoElement>( | ||
| 226 | - id: &'static str, | ||
| 227 | - zone: SpineZone, | ||
| 228 | - player: &Player, | ||
| 229 | - rows: T, | ||
| 230 | - cx: &mut Context<Player>, | ||
| 231 | -) -> impl IntoElement + use<T> { | ||
| 232 | - let hovered = player.spine_hover == Some(zone); | ||
| 233 | div() | 195 | div() |
| 234 | .id(id) | 196 | .id(id) |
| 235 | .flex_none() | 197 | .flex_none() |
| @@ -237,21 +199,8 @@ fn collapsible<T: IntoElement>( | |||
| 237 | .flex() | 199 | .flex() |
| 238 | .flex_col() | 200 | .flex_col() |
| 239 | .items_center() | 201 | .items_center() |
| 240 | - .on_hover(cx.listener(move |this, now_hovered: &bool, _window, cx| { | 202 | + .gap(px(1.)) |
| 241 | - this.spine_hover = if *now_hovered { | 203 | + .child(rows) |
| 242 | - Some(zone) | ||
| 243 | - } else if this.spine_hover == Some(zone) { | ||
| 244 | - None | ||
| 245 | - } else { | ||
| 246 | - this.spine_hover | ||
| 247 | - }; | ||
| 248 | - cx.notify(); | ||
| 249 | - })) | ||
| 250 | - .child(if hovered { | ||
| 251 | - rows.into_any_element() | ||
| 252 | - } else { | ||
| 253 | - hairline().into_any_element() | ||
| 254 | - }) | ||
| 255 | } | 204 | } |
| 256 | 205 | ||
| 257 | /// Two commands side by side in one row -- the opposite-direction pairs | 206 | /// Two commands side by side in one row -- the opposite-direction pairs |
| @@ -352,11 +301,11 @@ pub(crate) fn render(player: &Player, cx: &mut Context<Player>) -> impl IntoElem | |||
| 352 | )) | 301 | )) |
| 353 | // Everything past the walk-cut pair above is CUT's low-frequency | 302 | // Everything past the walk-cut pair above is CUT's low-frequency |
| 354 | // tail (stride-10 walks, ±1 trim, trim-to-playhead, loop-trim) -- | 303 | // tail (stride-10 walks, ±1 trim, trim-to-playhead, loop-trim) -- |
| 355 | - // collapsed to a hairline, revealed on hover of this zone. | 304 | + // always visible (no hover-gating, DESIGN §8/user 2026-08-27), just |
| 356 | - .child(collapsible( | 305 | + // `quiet`-demoted a step so it reads under the burst-use pair above |
| 306 | + // it rather than competing with it for weight. | ||
| 307 | + .child(compact_group( | ||
| 357 | "spine-zone-cut-more", | 308 | "spine-zone-cut-more", |
| 358 | - SpineZone::CutMore, | ||
| 359 | - player, | ||
| 360 | div() | 309 | div() |
| 361 | .flex() | 310 | .flex() |
| 362 | .flex_col() | 311 | .flex_col() |
| @@ -368,7 +317,7 @@ pub(crate) fn render(player: &Player, cx: &mut Context<Player>) -> impl IntoElem | |||
| 368 | "‹10", | 317 | "‹10", |
| 369 | ActionId::WalkCutPrev10, | 318 | ActionId::WalkCutPrev10, |
| 370 | false, | 319 | false, |
| 371 | - false, | 320 | + true, |
| 372 | player, | 321 | player, |
| 373 | cx, | 322 | cx, |
| 374 | ), | 323 | ), |
| @@ -377,7 +326,7 @@ pub(crate) fn render(player: &Player, cx: &mut Context<Player>) -> impl IntoElem | |||
| 377 | "10›", | 326 | "10›", |
| 378 | ActionId::WalkCutNext10, | 327 | ActionId::WalkCutNext10, |
| 379 | false, | 328 | false, |
| 380 | - false, | 329 | + true, |
| 381 | player, | 330 | player, |
| 382 | cx, | 331 | cx, |
| 383 | ), | 332 | ), |
| @@ -392,7 +341,7 @@ pub(crate) fn render(player: &Player, cx: &mut Context<Player>) -> impl IntoElem | |||
| 392 | "[▮", | 341 | "[▮", |
| 393 | ActionId::TrimInToPlayhead, | 342 | ActionId::TrimInToPlayhead, |
| 394 | false, | 343 | false, |
| 395 | - false, | 344 | + true, |
| 396 | player, | 345 | player, |
| 397 | cx, | 346 | cx, |
| 398 | ), | 347 | ), |
| @@ -401,7 +350,7 @@ pub(crate) fn render(player: &Player, cx: &mut Context<Player>) -> impl IntoElem | |||
| 401 | "▮]", | 350 | "▮]", |
| 402 | ActionId::TrimOutToPlayhead, | 351 | ActionId::TrimOutToPlayhead, |
| 403 | false, | 352 | false, |
| 404 | - false, | 353 | + true, |
| 405 | player, | 354 | player, |
| 406 | cx, | 355 | cx, |
| 407 | ), | 356 | ), |
| @@ -411,21 +360,19 @@ pub(crate) fn render(player: &Player, cx: &mut Context<Player>) -> impl IntoElem | |||
| 411 | "↻", | 360 | "↻", |
| 412 | ActionId::LoopTrim, | 361 | ActionId::LoopTrim, |
| 413 | player.loop_trim.is_some(), | 362 | player.loop_trim.is_some(), |
| 414 | - false, | 363 | + true, |
| 415 | player, | 364 | player, |
| 416 | cx, | 365 | cx, |
| 417 | )), | 366 | )), |
| 418 | - cx, | ||
| 419 | )) | 367 | )) |
| 420 | // VIEW group: ZoomIn/ZoomOut/ZoomFit/ToggleSnap all read the | 368 | // VIEW group: ZoomIn/ZoomOut/ZoomFit/ToggleSnap all read the |
| 421 | // timeline at a scale rather than cutting it -- real handlers with | 369 | // timeline at a scale rather than cutting it -- real handlers with |
| 422 | // a darkroom home, but well under EDIT/CUT's every-cut cadence | 370 | // a darkroom home, but well under EDIT/CUT's every-cut cadence |
| 423 | - // (DESIGN §6), so the whole group collapses under one hairline | 371 | + // (DESIGN §6), so it gets its own plain head and `quiet` rows |
| 424 | - // rather than carrying its own always-visible "view" word. | 372 | + // rather than a heavier full-size group. |
| 425 | - .child(collapsible( | 373 | + .child(group_head("view")) |
| 374 | + .child(compact_group( | ||
| 426 | "spine-zone-view", | 375 | "spine-zone-view", |
| 427 | - SpineZone::View, | ||
| 428 | - player, | ||
| 429 | div() | 376 | div() |
| 430 | .flex() | 377 | .flex() |
| 431 | .flex_col() | 378 | .flex_col() |
| @@ -437,7 +384,7 @@ pub(crate) fn render(player: &Player, cx: &mut Context<Player>) -> impl IntoElem | |||
| 437 | "−", | 384 | "−", |
| 438 | ActionId::ZoomOut, | 385 | ActionId::ZoomOut, |
| 439 | false, | 386 | false, |
| 440 | - false, | 387 | + true, |
| 441 | player, | 388 | player, |
| 442 | cx, | 389 | cx, |
| 443 | ), | 390 | ), |
| @@ -446,7 +393,7 @@ pub(crate) fn render(player: &Player, cx: &mut Context<Player>) -> impl IntoElem | |||
| 446 | "+", | 393 | "+", |
| 447 | ActionId::ZoomIn, | 394 | ActionId::ZoomIn, |
| 448 | false, | 395 | false, |
| 449 | - false, | 396 | + true, |
| 450 | player, | 397 | player, |
| 451 | cx, | 398 | cx, |
| 452 | ), | 399 | ), |
| @@ -456,7 +403,7 @@ pub(crate) fn render(player: &Player, cx: &mut Context<Player>) -> impl IntoElem | |||
| 456 | "⊡", | 403 | "⊡", |
| 457 | ActionId::ZoomFit, | 404 | ActionId::ZoomFit, |
| 458 | false, | 405 | false, |
| 459 | - false, | 406 | + true, |
| 460 | player, | 407 | player, |
| 461 | cx, | 408 | cx, |
| 462 | )) | 409 | )) |
| @@ -469,17 +416,15 @@ pub(crate) fn render(player: &Player, cx: &mut Context<Player>) -> impl IntoElem | |||
| 469 | "Sn", | 416 | "Sn", |
| 470 | ActionId::ToggleSnap, | 417 | ActionId::ToggleSnap, |
| 471 | player.snap, | 418 | player.snap, |
| 472 | - false, | 419 | + true, |
| 473 | player, | 420 | player, |
| 474 | cx, | 421 | cx, |
| 475 | )), | 422 | )), |
| 476 | - cx, | ||
| 477 | )) | 423 | )) |
| 478 | - // TRACK: once-per-project lane adds, collapsed whole. | 424 | + // TRACK: once-per-project lane adds -- own head, `quiet` rows. |
| 479 | - .child(collapsible( | 425 | + .child(group_head("track")) |
| 426 | + .child(compact_group( | ||
| 480 | "spine-zone-track", | 427 | "spine-zone-track", |
| 481 | - SpineZone::Track, | ||
| 482 | - player, | ||
| 483 | div() | 428 | div() |
| 484 | .flex() | 429 | .flex() |
| 485 | .flex_col() | 430 | .flex_col() |
| @@ -491,7 +436,7 @@ pub(crate) fn render(player: &Player, cx: &mut Context<Player>) -> impl IntoElem | |||
| 491 | "+V", | 436 | "+V", |
| 492 | ActionId::AddVideoLane, | 437 | ActionId::AddVideoLane, |
| 493 | false, | 438 | false, |
| 494 | - false, | 439 | + true, |
| 495 | player, | 440 | player, |
| 496 | cx, | 441 | cx, |
| 497 | ), | 442 | ), |
| @@ -500,7 +445,7 @@ pub(crate) fn render(player: &Player, cx: &mut Context<Player>) -> impl IntoElem | |||
| 500 | "+A", | 445 | "+A", |
| 501 | ActionId::AddAudioLane, | 446 | ActionId::AddAudioLane, |
| 502 | false, | 447 | false, |
| 503 | - false, | 448 | + true, |
| 504 | player, | 449 | player, |
| 505 | cx, | 450 | cx, |
| 506 | ), | 451 | ), |
| @@ -517,7 +462,7 @@ pub(crate) fn render(player: &Player, cx: &mut Context<Player>) -> impl IntoElem | |||
| 517 | "+S", | 462 | "+S", |
| 518 | ActionId::AddSubtitleLane, | 463 | ActionId::AddSubtitleLane, |
| 519 | false, | 464 | false, |
| 520 | - false, | 465 | + true, |
| 521 | player, | 466 | player, |
| 522 | cx, | 467 | cx, |
| 523 | ), | 468 | ), |
| @@ -526,7 +471,7 @@ pub(crate) fn render(player: &Player, cx: &mut Context<Player>) -> impl IntoElem | |||
| 526 | "−S", | 471 | "−S", |
| 527 | ActionId::RemoveSubtitleLane, | 472 | ActionId::RemoveSubtitleLane, |
| 528 | false, | 473 | false, |
| 529 | - false, | 474 | + true, |
| 530 | player, | 475 | player, |
| 531 | cx, | 476 | cx, |
| 532 | ), | 477 | ), |
| @@ -536,21 +481,19 @@ pub(crate) fn render(player: &Player, cx: &mut Context<Player>) -> impl IntoElem | |||
| 536 | "CC", | 481 | "CC", |
| 537 | ActionId::ToggleSubtitles, | 482 | ActionId::ToggleSubtitles, |
| 538 | player.subs_on, | 483 | player.subs_on, |
| 539 | - false, | 484 | + true, |
| 540 | player, | 485 | player, |
| 541 | cx, | 486 | cx, |
| 542 | )), | 487 | )), |
| 543 | - cx, | ||
| 544 | )) | 488 | )) |
| 545 | // ROOM: the three acts that are *acts* rather than settings (user | 489 | // ROOM: the three acts that are *acts* rather than settings (user |
| 546 | // 2026-08-21: "the spine menu is too crowded"). Theme, proxies and | 490 | // 2026-08-21: "the spine menu is too crowded"). Theme, proxies and |
| 547 | // auto-proxies stayed off this rail entirely (settings_stance). | 491 | // auto-proxies stayed off this rail entirely (settings_stance). |
| 548 | - // Once-a-session/once-a-project cadence -- collapsed whole, same as | 492 | + // Once-a-session/once-a-project cadence -- own head, `quiet` rows, |
| 549 | - // VIEW/TRACK above it. | 493 | + // same as VIEW/TRACK above it, always visible. |
| 550 | - .child(collapsible( | 494 | + .child(group_head("room")) |
| 495 | + .child(compact_group( | ||
| 551 | "spine-zone-room", | 496 | "spine-zone-room", |
| 552 | - SpineZone::Room, | ||
| 553 | - player, | ||
| 554 | div() | 497 | div() |
| 555 | .flex() | 498 | .flex() |
| 556 | .flex_col() | 499 | .flex_col() |
| @@ -585,7 +528,6 @@ pub(crate) fn render(player: &Player, cx: &mut Context<Player>) -> impl IntoElem | |||
| 585 | player, | 528 | player, |
| 586 | cx, | 529 | cx, |
| 587 | )), | 530 | )), |
| 588 | - cx, | ||
| 589 | )) | 531 | )) |
| 590 | .child(div().flex_1()) | 532 | .child(div().flex_1()) |
| 591 | } | 533 | } |