From 0931da4646704f317a51b605b6545e04a403357e Mon Sep 17 00:00:00 2001 From: Simon Klee Date: Fri, 6 Nov 2026 23:31:33 +0100 Subject: [PATCH] feat(cli-rs): show the home prompt placeholder examples --- .../cli-rs/crates/tui/src/prompt/editor.rs | 31 ++++++++++ .../cli-rs/crates/tui/src/prompt/shell.rs | 7 ++- .../cli-rs/crates/tui/tests/all/prompt.rs | 19 +++++++ .../parity/deviations/T17-home-prompt.md | 12 ---- .../cli-rs/parity/fixtures/C.13/auto.app.json | 2 +- .../parity/fixtures/E.1/events.app.json | 8 +-- .../parity/fixtures/E.1/home-narrow.app.json | 2 +- .../cli-rs/parity/fixtures/E.1/home.app.json | 2 +- .../parity/fixtures/E.1/mcp-toast.app.json | 2 +- .../fixtures/E.1/model-invalid.app.json | 2 +- .../fixtures/E.11a/session-list.app.json | 2 +- .../fixtures/E.11b/worktree-delete.app.json | 9 --- .../parity/fixtures/E.11b/worktrees.app.json | 9 --- .../parity/fixtures/E.12/tab-strip.app.json | 2 +- .../parity/fixtures/E.14/home-footer.app.json | 2 +- .../parity/fixtures/E.14/stats.app.json | 2 +- .../parity/fixtures/E.15a/image.app.json | 2 +- .../parity/fixtures/E.15a/route.app.json | 2 +- .../parity/fixtures/E.15b/base.app.json | 2 +- .../parity/fixtures/E.15b/menu.app.json | 2 +- .../E.19a/failed-toast-other.app.json | 4 +- .../parity/fixtures/E.20/reload.app.json | 4 +- .../parity/fixtures/E.20/toggles.app.json | 56 +------------------ .../fixtures/E.20/working-directory.app.json | 6 +- .../fixtures/H.2/home-sessions.app.json | 2 +- .../cli-rs/parity/fixtures/P.1/slot.app.json | 2 +- .../cursor-dark-events.app.json | 8 +-- .../opencode2-dark-events.app.json | 8 +-- .../tokyonight-dark-events.app.json | 8 +-- .../tokyonight-light-events.app.json | 8 +-- .../cli-rs/parity/scenarios/C.13/auto.app.ts | 2 +- .../cli-rs/parity/scenarios/E.1/events.app.ts | 4 +- .../parity/scenarios/E.1/home-narrow.app.ts | 2 +- .../cli-rs/parity/scenarios/E.1/home.app.ts | 2 +- .../parity/scenarios/E.1/mcp-toast.app.ts | 4 +- .../parity/scenarios/E.1/model-invalid.app.ts | 4 +- .../scenarios/E.11a/session-list.app.ts | 2 +- .../scenarios/E.11a/session-list.sim.ts | 2 +- .../scenarios/E.11b/worktree-delete.app.ts | 9 +-- .../parity/scenarios/E.11b/worktrees.app.ts | 9 +-- .../parity/scenarios/E.12/tab-strip.app.ts | 4 +- .../parity/scenarios/E.14/home-footer.app.ts | 2 +- .../cli-rs/parity/scenarios/E.14/stats.app.ts | 2 +- .../cli-rs/parity/scenarios/E.14/stats.sim.ts | 2 +- .../parity/scenarios/E.15a/image.app.ts | 2 +- .../parity/scenarios/E.15a/route.app.ts | 2 +- .../cli-rs/parity/scenarios/E.15b/base.app.ts | 2 +- .../cli-rs/parity/scenarios/E.15b/menu.app.ts | 2 +- .../scenarios/E.19a/failed-toast-other.app.ts | 2 +- .../parity/scenarios/E.20/reload.app.ts | 2 +- .../parity/scenarios/E.20/toggles.app.ts | 23 +++----- .../scenarios/E.20/working-directory.app.ts | 5 +- .../parity/scenarios/H.2/home-sessions.app.ts | 2 +- .../scenarios/H.5/permission-reply.sim.ts | 2 +- .../cli-rs/parity/scenarios/P.1/slot.app.ts | 2 +- 55 files changed, 137 insertions(+), 186 deletions(-) delete mode 100644 packages/cli-rs/parity/deviations/T17-home-prompt.md diff --git a/packages/cli-rs/crates/tui/src/prompt/editor.rs b/packages/cli-rs/crates/tui/src/prompt/editor.rs index 40a5a8654b4..08139d0c1f8 100644 --- a/packages/cli-rs/crates/tui/src/prompt/editor.rs +++ b/packages/cli-rs/crates/tui/src/prompt/editor.rs @@ -37,6 +37,10 @@ use crate::app::Tui; const INTERRUPT_WINDOW: Duration = Duration::from_secs(5); /// Clearing a prompt keeps it in history from this many characters on (`DRAFT_RETENTION_MIN_CHARS`). const CLEAR_RETENTION_CHARS: usize = 20; +/// The home prompt's examples (`routes/home.tsx:20-23`); a session's prompt passes none. +const PLACEHOLDERS: [&str; 3] = + ["Fix a TODO in the codebase", "What is the tech stack of this project?", "Fix broken tests"]; +const SHELL_PLACEHOLDERS: [&str; 3] = ["ls -la", "git status", "pwd"]; #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum Mode { @@ -121,6 +125,8 @@ pub struct Inner { /// The scanner, only while the session runs, as `` mounts it; dropping it stops its timer. spinner: RefCell>, pub(crate) mode: Cell, + /// The random index of the placeholder example, picked again on entering shell mode. + pub(crate) placeholder: Cell, /// The `PromptInfo` being edited; `text` follows the textarea. pub(crate) prompt: RefCell, interrupt: Cell, @@ -327,6 +333,7 @@ pub fn mount(tui: &Tui, session: Option<&SessionID>) -> Prompt { busy: Cell::new(false), spinner: RefCell::new(None), mode: Cell::new(Mode::Normal), + placeholder: Cell::new(rand::random::() as usize), prompt: RefCell::new(empty_prompt()), interrupt: Cell::new(0), interrupt_timer: Cell::new(None), @@ -648,6 +655,9 @@ impl Inner { self.frame.border_color(border); self.bottom.border_color(border); self.metadata.set(&theme, mode, &display, highlight, self.app.size().0); + if self.session.is_none() { + self.textarea.placeholder(self.placeholder_text()); + } let running = self.running(tui); self.busy.set(running); @@ -694,6 +704,27 @@ impl Inner { self.app.request_redraw(); } + /// `placeholderText`: the example cut to the textarea's width (`component/prompt/index.tsx:1617-1629`). + fn placeholder_text(&self) -> String { + let (label, examples) = match self.mode.get() { + Mode::Shell => ("Run a command…", SHELL_PLACEHOLDERS), + Mode::Normal => ("Ask anything…", PLACEHOLDERS), + }; + let text = format!("{label} \"{}\"", examples[self.placeholder.get() % examples.len()]); + let width = usize::from(self.app.size().0); + let width = + if width < 44 { width.saturating_sub(5) } else { 75.min(width.saturating_sub(4)).saturating_sub(5) }; + let mut used = 0; + let cut: String = text + .chars() + .take_while(|char| { + used += unicode_width::UnicodeWidthChar::width(*char).unwrap_or(0); + used <= width.max(1) + }) + .collect(); + cut.trim_end().to_owned() + } + /// The scanner in the agent's color, `[⋯]` with animations off (`component/prompt/index.tsx:1913-1919`). It /// mounts when the session starts running and drops when it stops, so it starts at its first frame each time /// and no timer runs while idle. diff --git a/packages/cli-rs/crates/tui/src/prompt/shell.rs b/packages/cli-rs/crates/tui/src/prompt/shell.rs index 65b1a0a46a1..5bdd00629e7 100644 --- a/packages/cli-rs/crates/tui/src/prompt/shell.rs +++ b/packages/cli-rs/crates/tui/src/prompt/shell.rs @@ -18,7 +18,12 @@ pub fn layers(inner: &Rc, target: FocusId) -> Vec> { Condition::when(move || weak.upgrade().is_some_and(|prompt| check(&prompt))) }; let set = |mode: Mode| { - bind!(inner, |prompt, _: Option<&str>, _: Option<&opentui::prelude::KeyEvent>| prompt.set_mode(mode)) + bind!(inner, |prompt, _: Option<&str>, _: Option<&opentui::prelude::KeyEvent>| { + if mode == Mode::Shell { + prompt.placeholder.set(rand::random::() as usize); + } + prompt.set_mode(mode) + }) }; let inline = |key: &str, title: &str, mode: Mode| TuiCommand::inline(key, set(mode)).title(title).group("Prompt"); vec![ diff --git a/packages/cli-rs/crates/tui/tests/all/prompt.rs b/packages/cli-rs/crates/tui/tests/all/prompt.rs index 4111015311a..4453968e59f 100644 --- a/packages/cli-rs/crates/tui/tests/all/prompt.rs +++ b/packages/cli-rs/crates/tui/tests/all/prompt.rs @@ -407,6 +407,25 @@ fn home_prompt_creates_a_session_and_opens_it() { assert!(!toast, "{}", setup.app.text()); } +#[test] +fn home_prompt_shows_a_placeholder_example_and_a_shell_one_in_shell_mode() { + let setup = Setup::new(Route::Home); + setup.ready(); + let screen = setup.wait_for("Ask anything… \""); + let examples = ["Fix a TODO in the codebase", "What is the tech stack of this project?", "Fix broken tests"]; + assert!(examples.iter().any(|example| screen.contains(&format!("Ask anything… \"{example}\""))), "{screen}"); + setup.app.type_text("!"); + let screen = setup.wait_for("Run a command… \""); + assert!( + ["ls -la", "git status", "pwd"].iter().any(|example| screen.contains(&format!("\"{example}\""))), + "{screen}" + ); + // A session's prompt has none. + let setup = Setup::new(session_route()); + setup.ready(); + assert!(!setup.app.text().contains("Ask anything"), "{}", setup.app.text()); +} + #[test] fn enter_before_the_catalog_loads_submits_once_it_has() { let setup = Setup::held(Route::Home); diff --git a/packages/cli-rs/parity/deviations/T17-home-prompt.md b/packages/cli-rs/parity/deviations/T17-home-prompt.md deleted file mode 100644 index e7f1c8418a5..00000000000 --- a/packages/cli-rs/parity/deviations/T17-home-prompt.md +++ /dev/null @@ -1,12 +0,0 @@ -# T17: the home prompt draws no placeholder - -TypeScript: the home passes its placeholders to the prompt (`packages/tui/src/routes/home.tsx:20-23`), so the -empty prompt shows `Ask anything… ""` in the muted color. - -Rust: E.1 builds the home as TS does (the logo, the prompt slot of at most 75 columns, the footer with the -version), and E.2's prompt fills the slot cell for cell. The prompt has no placeholder yet, so its first row is -empty. The P-APP and P-TUI scenarios that show the home mask that row with a rectangle (the TS text is random -anyway), or its first three cells where a dialog covers the rest. - -Reason: not built yet. The prompt (E.2's `prompt/editor.rs`) takes the placeholders; then the masks keep only -the random text, and this file goes. diff --git a/packages/cli-rs/parity/fixtures/C.13/auto.app.json b/packages/cli-rs/parity/fixtures/C.13/auto.app.json index 823d224d511..6bbd0840418 100644 --- a/packages/cli-rs/parity/fixtures/C.13/auto.app.json +++ b/packages/cli-rs/parity/fixtures/C.13/auto.app.json @@ -113,7 +113,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "C.13/auto/home" diff --git a/packages/cli-rs/parity/fixtures/E.1/events.app.json b/packages/cli-rs/parity/fixtures/E.1/events.app.json index 472239c0a95..35bcde7dcca 100644 --- a/packages/cli-rs/parity/fixtures/E.1/events.app.json +++ b/packages/cli-rs/parity/fixtures/E.1/events.app.json @@ -94,7 +94,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.1/events/home" @@ -137,7 +137,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.1/events/toast" @@ -187,7 +187,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.1/events/deleted" @@ -214,7 +214,7 @@ "y": 16, "width": 3, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.1/events/command" diff --git a/packages/cli-rs/parity/fixtures/E.1/home-narrow.app.json b/packages/cli-rs/parity/fixtures/E.1/home-narrow.app.json index a8d239ef606..1aa0d8a7a6c 100644 --- a/packages/cli-rs/parity/fixtures/E.1/home-narrow.app.json +++ b/packages/cli-rs/parity/fixtures/E.1/home-narrow.app.json @@ -21,7 +21,7 @@ "y": 16, "width": 38, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.1/home-narrow/narrow" diff --git a/packages/cli-rs/parity/fixtures/E.1/home.app.json b/packages/cli-rs/parity/fixtures/E.1/home.app.json index 8fc1a12f68a..5728a3192a0 100644 --- a/packages/cli-rs/parity/fixtures/E.1/home.app.json +++ b/packages/cli-rs/parity/fixtures/E.1/home.app.json @@ -21,7 +21,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.1/home/wide" diff --git a/packages/cli-rs/parity/fixtures/E.1/mcp-toast.app.json b/packages/cli-rs/parity/fixtures/E.1/mcp-toast.app.json index f966e2489d2..f50dafe17f6 100644 --- a/packages/cli-rs/parity/fixtures/E.1/mcp-toast.app.json +++ b/packages/cli-rs/parity/fixtures/E.1/mcp-toast.app.json @@ -44,7 +44,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.1/mcp-toast/failed" diff --git a/packages/cli-rs/parity/fixtures/E.1/model-invalid.app.json b/packages/cli-rs/parity/fixtures/E.1/model-invalid.app.json index 8ee215635f7..e60575f7460 100644 --- a/packages/cli-rs/parity/fixtures/E.1/model-invalid.app.json +++ b/packages/cli-rs/parity/fixtures/E.1/model-invalid.app.json @@ -23,7 +23,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.1/model-invalid/toast" diff --git a/packages/cli-rs/parity/fixtures/E.11a/session-list.app.json b/packages/cli-rs/parity/fixtures/E.11a/session-list.app.json index 8e603d93ee4..07c338a0034 100644 --- a/packages/cli-rs/parity/fixtures/E.11a/session-list.app.json +++ b/packages/cli-rs/parity/fixtures/E.11a/session-list.app.json @@ -78,7 +78,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.11a/session-list/home" diff --git a/packages/cli-rs/parity/fixtures/E.11b/worktree-delete.app.json b/packages/cli-rs/parity/fixtures/E.11b/worktree-delete.app.json index 5fa2f6ecaca..00bdeff22f6 100644 --- a/packages/cli-rs/parity/fixtures/E.11b/worktree-delete.app.json +++ b/packages/cli-rs/parity/fixtures/E.11b/worktree-delete.app.json @@ -113,15 +113,6 @@ { "checkpoint": "changes", "until": "old.txt", - "masks": [ - { - "x": 16, - "y": 16, - "width": 3, - "height": 1, - "reason": "not drawn yet in Rust (T17-home-prompt)" - } - ], "fixture": "E.11b/worktree-delete/changes" }, { diff --git a/packages/cli-rs/parity/fixtures/E.11b/worktrees.app.json b/packages/cli-rs/parity/fixtures/E.11b/worktrees.app.json index 6f48f000586..5f9e20b7ae9 100644 --- a/packages/cli-rs/parity/fixtures/E.11b/worktrees.app.json +++ b/packages/cli-rs/parity/fixtures/E.11b/worktrees.app.json @@ -82,15 +82,6 @@ { "checkpoint": "name", "until": "Name worktree", - "masks": [ - { - "x": 16, - "y": 16, - "width": 3, - "height": 1, - "reason": "not drawn yet in Rust (T17-home-prompt)" - } - ], "fixture": "E.11b/worktrees/name" }, { diff --git a/packages/cli-rs/parity/fixtures/E.12/tab-strip.app.json b/packages/cli-rs/parity/fixtures/E.12/tab-strip.app.json index a87cb52b9d8..e1584a7c92c 100644 --- a/packages/cli-rs/parity/fixtures/E.12/tab-strip.app.json +++ b/packages/cli-rs/parity/fixtures/E.12/tab-strip.app.json @@ -228,7 +228,7 @@ "y": 17, "width": 72, "height": 1, - "reason": "the home placeholder: random in TS, not drawn in Rust (T17-home-prompt)" + "reason": "the home placeholder example: random in TS and Rust" } ], "fixture": "E.12/tab-strip/new" diff --git a/packages/cli-rs/parity/fixtures/E.14/home-footer.app.json b/packages/cli-rs/parity/fixtures/E.14/home-footer.app.json index 1a7c148d419..fcecca5e51b 100644 --- a/packages/cli-rs/parity/fixtures/E.14/home-footer.app.json +++ b/packages/cli-rs/parity/fixtures/E.14/home-footer.app.json @@ -55,7 +55,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.14/home-footer/counts" diff --git a/packages/cli-rs/parity/fixtures/E.14/stats.app.json b/packages/cli-rs/parity/fixtures/E.14/stats.app.json index cd3b5b6e662..4d97f0de511 100644 --- a/packages/cli-rs/parity/fixtures/E.14/stats.app.json +++ b/packages/cli-rs/parity/fixtures/E.14/stats.app.json @@ -75,7 +75,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.14/stats/home" diff --git a/packages/cli-rs/parity/fixtures/E.15a/image.app.json b/packages/cli-rs/parity/fixtures/E.15a/image.app.json index 85bf40f1f5a..93a60d907b7 100644 --- a/packages/cli-rs/parity/fixtures/E.15a/image.app.json +++ b/packages/cli-rs/parity/fixtures/E.15a/image.app.json @@ -69,7 +69,7 @@ "y": 16, "width": 86, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.15a/image/home" diff --git a/packages/cli-rs/parity/fixtures/E.15a/route.app.json b/packages/cli-rs/parity/fixtures/E.15a/route.app.json index ba822e4a5fe..e752bda22e3 100644 --- a/packages/cli-rs/parity/fixtures/E.15a/route.app.json +++ b/packages/cli-rs/parity/fixtures/E.15a/route.app.json @@ -176,7 +176,7 @@ "y": 16, "width": 94, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.15a/route/home" diff --git a/packages/cli-rs/parity/fixtures/E.15b/base.app.json b/packages/cli-rs/parity/fixtures/E.15b/base.app.json index 05d2cd8fe69..98935be8aa6 100644 --- a/packages/cli-rs/parity/fixtures/E.15b/base.app.json +++ b/packages/cli-rs/parity/fixtures/E.15b/base.app.json @@ -87,7 +87,7 @@ "y": 16, "width": 74, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.15b/base/home" diff --git a/packages/cli-rs/parity/fixtures/E.15b/menu.app.json b/packages/cli-rs/parity/fixtures/E.15b/menu.app.json index 1c80373d156..d1b027853c5 100644 --- a/packages/cli-rs/parity/fixtures/E.15b/menu.app.json +++ b/packages/cli-rs/parity/fixtures/E.15b/menu.app.json @@ -69,7 +69,7 @@ "y": 16, "width": 94, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.15b/menu/home" diff --git a/packages/cli-rs/parity/fixtures/E.19a/failed-toast-other.app.json b/packages/cli-rs/parity/fixtures/E.19a/failed-toast-other.app.json index 6b149eb8673..a8b5dfce03f 100644 --- a/packages/cli-rs/parity/fixtures/E.19a/failed-toast-other.app.json +++ b/packages/cli-rs/parity/fixtures/E.19a/failed-toast-other.app.json @@ -21,7 +21,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.19a/failed-toast-other/home" @@ -54,7 +54,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.19a/failed-toast-other/failed" diff --git a/packages/cli-rs/parity/fixtures/E.20/reload.app.json b/packages/cli-rs/parity/fixtures/E.20/reload.app.json index 2aaffab91d6..5ca812d1c72 100644 --- a/packages/cli-rs/parity/fixtures/E.20/reload.app.json +++ b/packages/cli-rs/parity/fixtures/E.20/reload.app.json @@ -29,7 +29,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.20/reload/home" @@ -48,7 +48,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.20/reload/reloaded" diff --git a/packages/cli-rs/parity/fixtures/E.20/toggles.app.json b/packages/cli-rs/parity/fixtures/E.20/toggles.app.json index e3a6d59d2e0..d4c86167811 100644 --- a/packages/cli-rs/parity/fixtures/E.20/toggles.app.json +++ b/packages/cli-rs/parity/fixtures/E.20/toggles.app.json @@ -29,7 +29,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.20/toggles/home" @@ -47,15 +47,6 @@ { "checkpoint": "settings", "until": "Search settings", - "masks": [ - { - "x": 16, - "y": 16, - "width": 3, - "height": 1, - "reason": "the placeholder's first word: random in TS, not drawn yet in Rust (T17-home-prompt)" - } - ], "fixture": "E.20/toggles/settings" }, { @@ -64,15 +55,6 @@ { "checkpoint": "animations", "until": "Animations", - "masks": [ - { - "x": 16, - "y": 16, - "width": 3, - "height": 1, - "reason": "the placeholder's first word: random in TS, not drawn yet in Rust (T17-home-prompt)" - } - ], "fixture": "E.20/toggles/animations" }, { @@ -95,15 +77,6 @@ { "checkpoint": "wrapping", "until": "Wrapping", - "masks": [ - { - "x": 16, - "y": 16, - "width": 3, - "height": 1, - "reason": "the placeholder's first word: random in TS, not drawn yet in Rust (T17-home-prompt)" - } - ], "fixture": "E.20/toggles/wrapping" }, { @@ -125,15 +98,6 @@ { "checkpoint": "editor", "until": "Editor context", - "masks": [ - { - "x": 16, - "y": 16, - "width": 3, - "height": 1, - "reason": "the placeholder's first word: random in TS, not drawn yet in Rust (T17-home-prompt)" - } - ], "fixture": "E.20/toggles/editor" }, { @@ -160,15 +124,6 @@ { "checkpoint": "pastes", "until": "Large pastes", - "masks": [ - { - "x": 16, - "y": 16, - "width": 3, - "height": 1, - "reason": "the placeholder's first word: random in TS, not drawn yet in Rust (T17-home-prompt)" - } - ], "fixture": "E.20/toggles/pastes" }, { @@ -193,15 +148,6 @@ { "checkpoint": "title", "until": "Window title", - "masks": [ - { - "x": 16, - "y": 16, - "width": 3, - "height": 1, - "reason": "the placeholder's first word: random in TS, not drawn yet in Rust (T17-home-prompt)" - } - ], "fixture": "E.20/toggles/title" } ], diff --git a/packages/cli-rs/parity/fixtures/E.20/working-directory.app.json b/packages/cli-rs/parity/fixtures/E.20/working-directory.app.json index 667bc6282f1..38a0828834a 100644 --- a/packages/cli-rs/parity/fixtures/E.20/working-directory.app.json +++ b/packages/cli-rs/parity/fixtures/E.20/working-directory.app.json @@ -21,7 +21,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.20/working-directory/home" @@ -41,7 +41,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.20/working-directory/dialog" @@ -59,7 +59,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "E.20/working-directory/closed" diff --git a/packages/cli-rs/parity/fixtures/H.2/home-sessions.app.json b/packages/cli-rs/parity/fixtures/H.2/home-sessions.app.json index ad406dba837..c95409d91cc 100644 --- a/packages/cli-rs/parity/fixtures/H.2/home-sessions.app.json +++ b/packages/cli-rs/parity/fixtures/H.2/home-sessions.app.json @@ -143,7 +143,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "H.2/home-sessions/home" diff --git a/packages/cli-rs/parity/fixtures/P.1/slot.app.json b/packages/cli-rs/parity/fixtures/P.1/slot.app.json index b96be268c2d..73a28394607 100644 --- a/packages/cli-rs/parity/fixtures/P.1/slot.app.json +++ b/packages/cli-rs/parity/fixtures/P.1/slot.app.json @@ -27,7 +27,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "P.1/slot/home" diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events.app.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events.app.json index 34290a4ebb4..0b08e970161 100644 --- a/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events.app.json +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/cursor-dark-events.app.json @@ -98,7 +98,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "rs-theme-colors/cursor-dark-events/home" @@ -141,7 +141,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "rs-theme-colors/cursor-dark-events/toast" @@ -191,7 +191,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "rs-theme-colors/cursor-dark-events/deleted" @@ -218,7 +218,7 @@ "y": 16, "width": 3, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "rs-theme-colors/cursor-dark-events/command" diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/opencode2-dark-events.app.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/opencode2-dark-events.app.json index 6830ad32749..67efa62a174 100644 --- a/packages/cli-rs/parity/fixtures/rs-theme-colors/opencode2-dark-events.app.json +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/opencode2-dark-events.app.json @@ -98,7 +98,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "rs-theme-colors/opencode2-dark-events/home" @@ -141,7 +141,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "rs-theme-colors/opencode2-dark-events/toast" @@ -191,7 +191,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "rs-theme-colors/opencode2-dark-events/deleted" @@ -218,7 +218,7 @@ "y": 16, "width": 3, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "rs-theme-colors/opencode2-dark-events/command" diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-dark-events.app.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-dark-events.app.json index 42fe25f4b82..4b5a73920ee 100644 --- a/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-dark-events.app.json +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-dark-events.app.json @@ -98,7 +98,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "rs-theme-colors/tokyonight-dark-events/home" @@ -141,7 +141,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "rs-theme-colors/tokyonight-dark-events/toast" @@ -191,7 +191,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "rs-theme-colors/tokyonight-dark-events/deleted" @@ -218,7 +218,7 @@ "y": 16, "width": 3, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "rs-theme-colors/tokyonight-dark-events/command" diff --git a/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events.app.json b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events.app.json index 1d898eb24cc..3a001f857c0 100644 --- a/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events.app.json +++ b/packages/cli-rs/parity/fixtures/rs-theme-colors/tokyonight-light-events.app.json @@ -98,7 +98,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "rs-theme-colors/tokyonight-light-events/home" @@ -141,7 +141,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "rs-theme-colors/tokyonight-light-events/toast" @@ -191,7 +191,7 @@ "y": 16, "width": 84, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "rs-theme-colors/tokyonight-light-events/deleted" @@ -218,7 +218,7 @@ "y": 16, "width": 3, "height": 1, - "reason": "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)" + "reason": "the placeholder example: random in TS and Rust" } ], "fixture": "rs-theme-colors/tokyonight-light-events/command" diff --git a/packages/cli-rs/parity/scenarios/C.13/auto.app.ts b/packages/cli-rs/parity/scenarios/C.13/auto.app.ts index 919f5239b21..b0187912496 100644 --- a/packages/cli-rs/parity/scenarios/C.13/auto.app.ts +++ b/packages/cli-rs/parity/scenarios/C.13/auto.app.ts @@ -15,7 +15,7 @@ export default defineApp({ y: 16, width: 84, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", }, ], }, diff --git a/packages/cli-rs/parity/scenarios/E.1/events.app.ts b/packages/cli-rs/parity/scenarios/E.1/events.app.ts index bd3d905f0af..70ebf105237 100644 --- a/packages/cli-rs/parity/scenarios/E.1/events.app.ts +++ b/packages/cli-rs/parity/scenarios/E.1/events.app.ts @@ -7,14 +7,14 @@ const here = { directory: "/tmp/opencode/packages/tui" } const event = (id: string, type: string, data: unknown, location: unknown = here) => ({ event: { id, created: 3, type, location, data }, }) -// The home prompt's placeholder row (T17-home-prompt). +// The home prompt's placeholder row: its example is random. const prompt = [ { x: 16, y: 16, width: 84, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", }, ] diff --git a/packages/cli-rs/parity/scenarios/E.1/home-narrow.app.ts b/packages/cli-rs/parity/scenarios/E.1/home-narrow.app.ts index 0963e79a907..480b5c443bc 100644 --- a/packages/cli-rs/parity/scenarios/E.1/home-narrow.app.ts +++ b/packages/cli-rs/parity/scenarios/E.1/home-narrow.app.ts @@ -14,7 +14,7 @@ export default defineApp({ y: 16, width: 38, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", }, ], }, diff --git a/packages/cli-rs/parity/scenarios/E.1/home.app.ts b/packages/cli-rs/parity/scenarios/E.1/home.app.ts index 077acfda252..67ec48a30f6 100644 --- a/packages/cli-rs/parity/scenarios/E.1/home.app.ts +++ b/packages/cli-rs/parity/scenarios/E.1/home.app.ts @@ -12,7 +12,7 @@ export default defineApp({ y: 16, width: 84, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", }, ], }, diff --git a/packages/cli-rs/parity/scenarios/E.1/mcp-toast.app.ts b/packages/cli-rs/parity/scenarios/E.1/mcp-toast.app.ts index b61cc7e1caf..27093b91c92 100644 --- a/packages/cli-rs/parity/scenarios/E.1/mcp-toast.app.ts +++ b/packages/cli-rs/parity/scenarios/E.1/mcp-toast.app.ts @@ -5,14 +5,14 @@ const location = { directory: "/tmp/opencode/packages/tui", project: { id: "proj_test", directory: "/tmp/opencode", canonical: "/tmp/opencode" }, } -// The home prompt's placeholder row (T17-home-prompt). +// The home prompt's placeholder row: its example is random. const prompt = [ { x: 16, y: 16, width: 84, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", }, ] diff --git a/packages/cli-rs/parity/scenarios/E.1/model-invalid.app.ts b/packages/cli-rs/parity/scenarios/E.1/model-invalid.app.ts index 0ae876327fb..51e746332a0 100644 --- a/packages/cli-rs/parity/scenarios/E.1/model-invalid.app.ts +++ b/packages/cli-rs/parity/scenarios/E.1/model-invalid.app.ts @@ -1,14 +1,14 @@ // `--model` without a provider (T27): a warning toast on the home. import { defineApp } from "../../lib/app" -// The home prompt's placeholder row (T17-home-prompt). +// The home prompt's placeholder row: its example is random. const prompt = [ { x: 16, y: 16, width: 84, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", }, ] diff --git a/packages/cli-rs/parity/scenarios/E.11a/session-list.app.ts b/packages/cli-rs/parity/scenarios/E.11a/session-list.app.ts index 66170592606..ff9cfdc69cf 100644 --- a/packages/cli-rs/parity/scenarios/E.11a/session-list.app.ts +++ b/packages/cli-rs/parity/scenarios/E.11a/session-list.app.ts @@ -7,7 +7,7 @@ const placeholder = { y: 16, width: 84, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", } export default defineApp({ diff --git a/packages/cli-rs/parity/scenarios/E.11a/session-list.sim.ts b/packages/cli-rs/parity/scenarios/E.11a/session-list.sim.ts index 7562a0482e9..b2f798e8b3e 100644 --- a/packages/cli-rs/parity/scenarios/E.11a/session-list.sim.ts +++ b/packages/cli-rs/parity/scenarios/E.11a/session-list.sim.ts @@ -8,7 +8,7 @@ const placeholder = { y: 16, width: 84, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", } const leader = { press: "x", modifiers: { ctrl: true } } as const const remove = { press: "d", modifiers: { ctrl: true } } as const diff --git a/packages/cli-rs/parity/scenarios/E.11b/worktree-delete.app.ts b/packages/cli-rs/parity/scenarios/E.11b/worktree-delete.app.ts index 260a3d73800..b62b1a42f54 100644 --- a/packages/cli-rs/parity/scenarios/E.11b/worktree-delete.app.ts +++ b/packages/cli-rs/parity/scenarios/E.11b/worktree-delete.app.ts @@ -3,7 +3,7 @@ // refuses that too, which shows the failure toast and the list again. import { defineApp } from "../../lib/app" -// The TS placeholder picks a random example; the Rust home prompt draws none yet (T17-home-prompt). +// The home placeholder picks a random example. const placeholder = [{ x: 16, y: 16, width: 74, height: 1, reason: "random placeholder example" }] const refused = { @@ -41,12 +41,7 @@ export default defineApp({ { keys: ["enter"] }, { checkpoint: "list", until: "opencode-spike" }, { keys: ["down", "ctrl+d", "ctrl+d"] }, - // Beside the dialog, the placeholder shows its first word. - { - checkpoint: "changes", - until: "old.txt", - masks: [{ ...placeholder[0], width: 3, reason: "not drawn yet in Rust (T17-home-prompt)" }], - }, + { checkpoint: "changes", until: "old.txt" }, { keys: ["d"] }, { checkpoint: "failed", until: "Failed to delete worktree" }, ], diff --git a/packages/cli-rs/parity/scenarios/E.11b/worktrees.app.ts b/packages/cli-rs/parity/scenarios/E.11b/worktrees.app.ts index 46a6a0ad541..5cacf526855 100644 --- a/packages/cli-rs/parity/scenarios/E.11b/worktrees.app.ts +++ b/packages/cli-rs/parity/scenarios/E.11b/worktrees.app.ts @@ -3,7 +3,7 @@ // for the first submit, which the footer shows as "(new worktree)". import { defineApp } from "../../lib/app" -// The TS placeholder picks a random example; the Rust home prompt draws none yet (T17-home-prompt). +// The home placeholder picks a random example. const placeholder = [{ x: 16, y: 16, width: 74, height: 1, reason: "random placeholder example" }] export default defineApp({ @@ -25,12 +25,7 @@ export default defineApp({ { keys: ["down", "ctrl+d"] }, { checkpoint: "marked", until: "again to confirm" }, { keys: ["down", "ctrl+a"] }, - // Beside the dialog, the placeholder shows its first word. - { - checkpoint: "name", - until: "Name worktree", - masks: [{ ...placeholder[0], width: 3, reason: "not drawn yet in Rust (T17-home-prompt)" }], - }, + { checkpoint: "name", until: "Name worktree" }, { type: "My Spike" }, { keys: ["enter"] }, { checkpoint: "staged", until: "(new worktree)", masks: placeholder }, diff --git a/packages/cli-rs/parity/scenarios/E.12/tab-strip.app.ts b/packages/cli-rs/parity/scenarios/E.12/tab-strip.app.ts index 881fd876a75..4683fca7644 100644 --- a/packages/cli-rs/parity/scenarios/E.12/tab-strip.app.ts +++ b/packages/cli-rs/parity/scenarios/E.12/tab-strip.app.ts @@ -11,9 +11,9 @@ const select = (id: string, sessionID: string) => ({ const messages = (text: string) => ({ json: { data: [assistant("msg_2", text), user("msg_1", "Why?")], cursor: {} }, }) -// The home prompt draws no placeholder (T17). +// The home placeholder's example is random. const home = [ - { x: 16, y: 17, width: 72, height: 1, reason: "the home placeholder: random in TS, not drawn in Rust (T17-home-prompt)" }, + { x: 16, y: 17, width: 72, height: 1, reason: "the home placeholder example: random in TS and Rust" }, ] // Read by the prompt as soon as the session is the open one: idle at 5, never viewed. const unread = { ...session("ses_b", "Write the docs", { updated: 2 }), time: { created: 2, updated: 5, idle: 5 } } diff --git a/packages/cli-rs/parity/scenarios/E.14/home-footer.app.ts b/packages/cli-rs/parity/scenarios/E.14/home-footer.app.ts index 66c06cfdda9..4792b753e4e 100644 --- a/packages/cli-rs/parity/scenarios/E.14/home-footer.app.ts +++ b/packages/cli-rs/parity/scenarios/E.14/home-footer.app.ts @@ -11,7 +11,7 @@ const placeholder = { y: 16, width: 84, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", } export default defineApp({ diff --git a/packages/cli-rs/parity/scenarios/E.14/stats.app.ts b/packages/cli-rs/parity/scenarios/E.14/stats.app.ts index 3038981fd1c..408d6b0289e 100644 --- a/packages/cli-rs/parity/scenarios/E.14/stats.app.ts +++ b/packages/cli-rs/parity/scenarios/E.14/stats.app.ts @@ -47,7 +47,7 @@ export default defineApp({ y: 16, width: 84, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", }, ], }, diff --git a/packages/cli-rs/parity/scenarios/E.14/stats.sim.ts b/packages/cli-rs/parity/scenarios/E.14/stats.sim.ts index f1e65f4daba..3cecde716b8 100644 --- a/packages/cli-rs/parity/scenarios/E.14/stats.sim.ts +++ b/packages/cli-rs/parity/scenarios/E.14/stats.sim.ts @@ -20,7 +20,7 @@ export default defineSim({ y: 16, width: 84, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", }, ], }, diff --git a/packages/cli-rs/parity/scenarios/E.15a/image.app.ts b/packages/cli-rs/parity/scenarios/E.15a/image.app.ts index 1eeaba90291..ce5e8f1994c 100644 --- a/packages/cli-rs/parity/scenarios/E.15a/image.app.ts +++ b/packages/cli-rs/parity/scenarios/E.15a/image.app.ts @@ -36,7 +36,7 @@ export default defineApp({ y: 16, width: 86, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", }, ], }, diff --git a/packages/cli-rs/parity/scenarios/E.15a/route.app.ts b/packages/cli-rs/parity/scenarios/E.15a/route.app.ts index 069066c26c4..b1c83613d38 100644 --- a/packages/cli-rs/parity/scenarios/E.15a/route.app.ts +++ b/packages/cli-rs/parity/scenarios/E.15a/route.app.ts @@ -70,7 +70,7 @@ export default defineApp({ y: 16, width: 94, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", }, ], }, diff --git a/packages/cli-rs/parity/scenarios/E.15b/base.app.ts b/packages/cli-rs/parity/scenarios/E.15b/base.app.ts index ac13b56c7c9..02a5616ef86 100644 --- a/packages/cli-rs/parity/scenarios/E.15b/base.app.ts +++ b/packages/cli-rs/parity/scenarios/E.15b/base.app.ts @@ -37,7 +37,7 @@ export default defineApp({ y: 16, width: 74, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", }, ], }, diff --git a/packages/cli-rs/parity/scenarios/E.15b/menu.app.ts b/packages/cli-rs/parity/scenarios/E.15b/menu.app.ts index 62726412252..a0bc347450d 100644 --- a/packages/cli-rs/parity/scenarios/E.15b/menu.app.ts +++ b/packages/cli-rs/parity/scenarios/E.15b/menu.app.ts @@ -35,7 +35,7 @@ export default defineApp({ y: 16, width: 94, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", }, ], }, diff --git a/packages/cli-rs/parity/scenarios/E.19a/failed-toast-other.app.ts b/packages/cli-rs/parity/scenarios/E.19a/failed-toast-other.app.ts index 8e03fbc1d84..1e6afc9342c 100644 --- a/packages/cli-rs/parity/scenarios/E.19a/failed-toast-other.app.ts +++ b/packages/cli-rs/parity/scenarios/E.19a/failed-toast-other.app.ts @@ -9,7 +9,7 @@ const masks = [ y: 16, width: 84, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", }, ] diff --git a/packages/cli-rs/parity/scenarios/E.20/reload.app.ts b/packages/cli-rs/parity/scenarios/E.20/reload.app.ts index 3a760ec70f4..e670051d7cd 100644 --- a/packages/cli-rs/parity/scenarios/E.20/reload.app.ts +++ b/packages/cli-rs/parity/scenarios/E.20/reload.app.ts @@ -8,7 +8,7 @@ const placeholder = { y: 16, width: 84, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", } export default defineApp({ diff --git a/packages/cli-rs/parity/scenarios/E.20/toggles.app.ts b/packages/cli-rs/parity/scenarios/E.20/toggles.app.ts index 7794e71c8f1..d46f0d19d82 100644 --- a/packages/cli-rs/parity/scenarios/E.20/toggles.app.ts +++ b/packages/cli-rs/parity/scenarios/E.20/toggles.app.ts @@ -9,17 +9,8 @@ const placeholder = { y: 16, width: 84, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", } -// Beside a dialog, the placeholder shows its first word. -const beside = { - x: 16, - y: 16, - width: 3, - height: 1, - reason: "the placeholder's first word: random in TS, not drawn yet in Rust (T17-home-prompt)", -} -const behind = { masks: [beside] } const clear = (text: string) => ({ keys: Array.from(text, () => "backspace") }) export default defineApp({ @@ -41,20 +32,20 @@ export default defineApp({ masks: [placeholder], }, { keys: ["f5", "f6", "f7", "f8", "f9", "f10"] }, - { checkpoint: "settings", until: "Search settings", ...behind }, + { checkpoint: "settings", until: "Search settings" }, { type: "animations" }, - { checkpoint: "animations", until: "Animations", ...behind }, + { checkpoint: "animations", until: "Animations" }, clear("animations"), { type: "diff wrap" }, - { checkpoint: "wrapping", until: "Wrapping", ...behind }, + { checkpoint: "wrapping", until: "Wrapping" }, clear("diff wrap"), { type: "editor context" }, - { checkpoint: "editor", until: "Editor context", ...behind }, + { checkpoint: "editor", until: "Editor context" }, clear("editor context"), { type: "large pastes" }, - { checkpoint: "pastes", until: "Large pastes", ...behind }, + { checkpoint: "pastes", until: "Large pastes" }, clear("large pastes"), { type: "window title" }, - { checkpoint: "title", until: "Window title", ...behind }, + { checkpoint: "title", until: "Window title" }, ], }) diff --git a/packages/cli-rs/parity/scenarios/E.20/working-directory.app.ts b/packages/cli-rs/parity/scenarios/E.20/working-directory.app.ts index 8acd2ce3044..d46b10d038d 100644 --- a/packages/cli-rs/parity/scenarios/E.20/working-directory.app.ts +++ b/packages/cli-rs/parity/scenarios/E.20/working-directory.app.ts @@ -3,14 +3,13 @@ // option is chosen: copying and opening reach the system, which the Rust tests cover with a sink. import { defineApp } from "../../lib/app" -// The home prompt behind the dialog: its placeholder is random in TS and not drawn in Rust yet -// (T17-home-prompt). +// The home prompt behind the dialog: its placeholder example is random. const placeholder = { x: 16, y: 16, width: 84, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", } export default defineApp({ diff --git a/packages/cli-rs/parity/scenarios/H.2/home-sessions.app.ts b/packages/cli-rs/parity/scenarios/H.2/home-sessions.app.ts index 93b2f8d6f28..8f9894cf44f 100644 --- a/packages/cli-rs/parity/scenarios/H.2/home-sessions.app.ts +++ b/packages/cli-rs/parity/scenarios/H.2/home-sessions.app.ts @@ -7,7 +7,7 @@ const placeholder = { y: 16, width: 84, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", } export default defineApp({ diff --git a/packages/cli-rs/parity/scenarios/H.5/permission-reply.sim.ts b/packages/cli-rs/parity/scenarios/H.5/permission-reply.sim.ts index b6ee9ffbc1b..85a7bf9056e 100644 --- a/packages/cli-rs/parity/scenarios/H.5/permission-reply.sim.ts +++ b/packages/cli-rs/parity/scenarios/H.5/permission-reply.sim.ts @@ -32,7 +32,7 @@ export default defineSim({ y: 16, width: 84, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", }, ], }, diff --git a/packages/cli-rs/parity/scenarios/P.1/slot.app.ts b/packages/cli-rs/parity/scenarios/P.1/slot.app.ts index 985af4262af..e03dad34c21 100644 --- a/packages/cli-rs/parity/scenarios/P.1/slot.app.ts +++ b/packages/cli-rs/parity/scenarios/P.1/slot.app.ts @@ -15,7 +15,7 @@ export default defineApp({ y: 16, width: 84, height: 1, - reason: "the placeholder: random in TS, not drawn yet in Rust (T17-home-prompt)", + reason: "the placeholder example: random in TS and Rust", }, ], },