Instructional-copy sweep — DESIGN §8 rejected pattern enforced
Browse files at this commit067620be974007ca6c3c7023a2ba458536c4f67fParent: cafb588- ui
- instructional-copy sweep — DESIGN §8 rejected pattern enforced
7 changed files +22 -55
- crates/app/src/export_ui.rs +1 -1
- crates/app/src/importing.rs +3 -5
- crates/app/src/subs.rs +1 -3
- crates/app/src/tests/cards.rs +1 -1
- crates/app/src/tests/layout.rs +10 -9
- crates/app/src/ui/dock_stance.rs +2 -27
- crates/app/src/ui/widgets.rs +4 -9
crates/app/src/export_ui.rsmodified+1 -1
| @@ -175,7 +175,7 @@ impl ExportPreset { | ||
| 175 | 175 | ExportPreset::Small => "AV1 · MP4 · low quality — smallest file", |
| 176 | 176 | ExportPreset::Master => "HEVC · MP4 · high quality — intra-only, for re-editing later", |
| 177 | 177 | ExportPreset::AudioOnly => "FLAC — lossless sound, no picture", |
| 178 | - ExportPreset::Custom => "pick a codec, quality and the rest below", | |
| 178 | + ExportPreset::Custom => "no fixed codec or quality", | |
| 179 | 179 | } |
| 180 | 180 | } |
| 181 | 181 |
crates/app/src/importing.rsmodified+3 -5
| @@ -38,11 +38,9 @@ impl LibraryTab { | ||
| 38 | 38 | /// What an empty tab says instead of being a blank column. |
| 39 | 39 | pub(crate) fn empty(self) -> &'static str { |
| 40 | 40 | match self { |
| 41 | - LibraryTab::Media => "No video or stills yet — Import, or drop a file on the window", | |
| 42 | - LibraryTab::Audio => "No sound yet — Import, or drop a file on the window", | |
| 43 | - LibraryTab::Text => { | |
| 44 | - "No subtitles yet — Add subtitles from a file, or drop an .srt on the window" | |
| 45 | - } | |
| 41 | + LibraryTab::Media => "No video", | |
| 42 | + LibraryTab::Audio => "No sound", | |
| 43 | + LibraryTab::Text => "No subtitles", | |
| 46 | 44 | } |
| 47 | 45 | } |
| 48 | 46 | } |
crates/app/src/subs.rsmodified+1 -3
| @@ -347,9 +347,7 @@ pub(crate) fn subtitle_tail(session: &mut PlaybackSession, subs: Subs) -> Option | ||
| 347 | 347 | /// put words there instead. |
| 348 | 348 | pub(crate) fn subtitle_toggle_notice(on: bool, placed: usize) -> String { |
| 349 | 349 | match (on, placed) { |
| 350 | - (true, 0) => { | |
| 351 | - "SUBTITLES SHOWN — nothing placed yet: drag a track onto a subtitle track".to_string() | |
| 352 | - } | |
| 350 | + (true, 0) => "SUBTITLES SHOWN — nothing placed yet".to_string(), | |
| 353 | 351 | (true, n) => format!("SUBTITLES SHOWN — {n} caption(s) on the timeline"), |
| 354 | 352 | (false, n) => format!("SUBTITLES HIDDEN — {n} caption(s) still placed"), |
| 355 | 353 | } |
crates/app/src/tests/cards.rsmodified+1 -1
| @@ -2076,7 +2076,7 @@ fn darkroom_source_rows_keep_proxy_add_and_media_audio_text_paths() { | ||
| 2076 | 2076 | "LIBRARY_TABS.map", |
| 2077 | 2077 | "dock-source-filter", |
| 2078 | 2078 | "player.library_tab.holds(&row.path)", |
| 2079 | - "No subtitle sources yet — Import subtitles", | |
| 2079 | + "true => player.library_tab.empty().to_string(),", | |
| 2080 | 2080 | ] { |
| 2081 | 2081 | assert!( |
| 2082 | 2082 | dock.contains(needle), |
crates/app/src/tests/layout.rsmodified+10 -9
| @@ -1195,10 +1195,15 @@ fn the_subtitles_toggle_says_what_is_placed_and_never_the_picked_row() { | ||
| 1195 | 1195 | } |
| 1196 | 1196 | // Off leaves them on the lanes; that is the half a person needs told. |
| 1197 | 1197 | assert!(subtitle_toggle_notice(false, 2).contains("still placed")); |
| 1198 | - // An empty timeline says the move instead of a count that reads as broken. | |
| 1198 | + // An empty timeline says the state, not a count that reads as broken -- | |
| 1199 | + // and DESIGN §8 (2026-08-27) keeps this a state report, not a "drag it" | |
| 1200 | + // instruction. | |
| 1199 | 1201 | let none = subtitle_toggle_notice(true, 0); |
| 1200 | 1202 | assert!(!none.contains('0'), "{none} counts nothing at nothing"); |
| 1201 | - assert!(none.contains("drag"), "{none} says the next move"); | |
| 1203 | + assert!( | |
| 1204 | + none.contains("nothing placed"), | |
| 1205 | + "{none} says the state, not the move" | |
| 1206 | + ); | |
| 1202 | 1207 | } |
| 1203 | 1208 | |
| 1204 | 1209 | /// The door this editor answers "don't make me import the film again" with, |
| @@ -1238,13 +1243,9 @@ fn the_text_tab_carries_the_add_subtitles_door() { | ||
| 1238 | 1243 | dock[..at].ends_with("ghost_verb(\n "), |
| 1239 | 1244 | "the add-subtitles button is not built from the oracle-gated ghost_verb" |
| 1240 | 1245 | ); |
| 1241 | - // ...and the empty tab names that button, rather than pointing at a | |
| 1242 | - // toolbar the person is not looking at. | |
| 1243 | - assert!( | |
| 1244 | - crate::LibraryTab::Text.empty().contains("Add subtitles"), | |
| 1245 | - "{}", | |
| 1246 | - crate::LibraryTab::Text.empty() | |
| 1247 | - ); | |
| 1246 | + // ...and the empty tab stays a noun, not a sentence pointing at the | |
| 1247 | + // button (DESIGN §8, 2026-08-27: no instructional copy). | |
| 1248 | + assert_eq!(crate::LibraryTab::Text.empty(), "No subtitles"); | |
| 1248 | 1249 | } |
| 1249 | 1250 | |
| 1250 | 1251 | /// The Darkroom keeps imported subtitle tracks in the Sources dock, where a |
crates/app/src/ui/dock_stance.rsmodified+2 -27
| @@ -630,7 +630,7 @@ fn subtitle_palette(player: &Player, cx: &mut Context<Player>) -> Option<AnyElem | ||
| 630 | 630 | .into(); |
| 631 | 631 | let detail: SharedString = row |
| 632 | 632 | .refused |
| 633 | - .unwrap_or_else(|| "drag onto an S lane to place".to_string()) | |
| 633 | + .unwrap_or_else(|| "not placed".to_string()) | |
| 634 | 634 | .into(); |
| 635 | 635 | let ghost = title.clone(); |
| 636 | 636 | let hitmap_title = title.clone(); |
| @@ -903,7 +903,7 @@ fn sources_tab( | ||
| 903 | 903 | })) |
| 904 | 904 | .children(hitmap::control("dock.filter", "Filter sources", true)) |
| 905 | 905 | .child(match player.dock_filter.is_empty() { |
| 906 | - true => "⌕ type to filter — name, codec, unused…".to_string(), | |
| 906 | + true => "⌕ filter".to_string(), | |
| 907 | 907 | false => format!("⌕ {filter_text}"), |
| 908 | 908 | }) |
| 909 | 909 | }) |
| @@ -996,9 +996,6 @@ fn sources_tab( | ||
| 996 | 996 | .text_size(style.size) |
| 997 | 997 | .text_color(rgb(INK3())) |
| 998 | 998 | .child(match player.dock_filter.is_empty() { |
| 999 | - true if player.library_tab == LibraryTab::Text => { | |
| 1000 | - "No subtitle sources yet — Import subtitles".to_string() | |
| 1001 | - } | |
| 1002 | 999 | true => player.library_tab.empty().to_string(), |
| 1003 | 1000 | false => "nothing matches the filter".to_string(), |
| 1004 | 1001 | }), |
| @@ -1193,13 +1190,6 @@ fn clip_tab( | ||
| 1193 | 1190 | // and a maximized card is mounted at `ui::stance::render` instead, never |
| 1194 | 1191 | // through this `room`). |
| 1195 | 1192 | let room = Size::new(px(width), window_size.height); |
| 1196 | - let none_open = player.eq_open.is_none() | |
| 1197 | - && player.color_open.is_none() | |
| 1198 | - && player.transform_open.is_none() | |
| 1199 | - && player.speed_open.is_none() | |
| 1200 | - && player.silence_open.is_none() | |
| 1201 | - && !player.mix_open | |
| 1202 | - && !player.subtitle_style_open; | |
| 1203 | 1193 | div() |
| 1204 | 1194 | .id("dock-clip") |
| 1205 | 1195 | .track_focus(&player.focus_inspector) |
| @@ -1332,21 +1322,6 @@ fn clip_tab( | ||
| 1332 | 1322 | // like the six cards beside it until the subtitle |
| 1333 | 1323 | // lane grows the header that is its real home. |
| 1334 | 1324 | .children(player.subtitle_style_card(room, cx)) |
| 1335 | - }) | |
| 1336 | - // A plate, not bare space: DESIGN §11's "states" checklist -- | |
| 1337 | - // nothing picked reads as a hint, not as a hole in the panel. | |
| 1338 | - .when(none_open, |d| { | |
| 1339 | - let style = label(type_scale::LABEL_ROW_PX, FontWeight::MEDIUM); | |
| 1340 | - d.child( | |
| 1341 | - div() | |
| 1342 | - .rounded(px(2.)) | |
| 1343 | - .bg(rgb(DARK_CANVAS())) | |
| 1344 | - .p(px(8.)) | |
| 1345 | - .font(style.font) | |
| 1346 | - .text_size(style.size) | |
| 1347 | - .text_color(rgb(INK3())) | |
| 1348 | - .child("pick a verb above"), | |
| 1349 | - ) | |
| 1350 | 1325 | }), |
| 1351 | 1326 | ) |
| 1352 | 1327 | } |
crates/app/src/ui/widgets.rsmodified+4 -9
| @@ -409,9 +409,9 @@ impl NumberEdit { | ||
| 409 | 409 | } |
| 410 | 410 | } |
| 411 | 411 | |
| 412 | -/// What a window with no file open is waiting for. Both ways in are already | |
| 413 | -/// built -- the whole window is the drop target and the Import chooser takes a | |
| 414 | -/// project as readily as media -- so this only has to say so. | |
| 412 | +/// What a window with no file open shows: DESIGN §8 wants a noun, not a | |
| 413 | +/// sentence -- both ways in (window drop target, Import in the media list) | |
| 414 | +/// are taught by their own geography, not by this label. | |
| 415 | 415 | pub(crate) fn empty_hint() -> impl IntoElement { |
| 416 | 416 | div() |
| 417 | 417 | .flex() |
| @@ -419,10 +419,5 @@ pub(crate) fn empty_hint() -> impl IntoElement { | ||
| 419 | 419 | .items_center() |
| 420 | 420 | .gap(px(6.)) |
| 421 | 421 | .text_color(rgb(FG_SECONDARY())) |
| 422 | - .child("Drop a video or an .edith project here") | |
| 423 | - .child( | |
| 424 | - div() | |
| 425 | - .text_size(px(11.)) | |
| 426 | - .child("or click Import in the media list"), | |
| 427 | - ) | |
| 422 | + .child("No project") | |
| 428 | 423 | } |