From 04548c710bf4aba92b99411ac8544f5b4e3533d7 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 9 Jan 2026 15:23:42 +0000 Subject: [PATCH 1/2] Update UI to use emoji status indicators MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced textual status messages with emoji icons in `src/ui.rs`. - Enqueued: ⏳ - Started: 🏃 - Success: ✅ - Failed: ❌ - Error: 💥 - Canceled: 🚫 Updated corresponding tests in `src/ui.rs` to match the new output format. --- src/ui.rs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/ui.rs b/src/ui.rs index 6153764..56aa456 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -406,20 +406,20 @@ impl OutputBuffer { result_url_base: &str, ) -> Vec> { let status_part = match status { - // Note - cancellation is an "error" in the type system but we - // don't treat it as an error in the UI. - TestStatus::Finished(Err(TestInconclusive::Error(msg))) => { - Span::new(msg).with_class(Class::Error) - } + TestStatus::Enqueued => Span::new("⏳"), + TestStatus::Started => Span::new("🏃"), TestStatus::Finished(Ok(result)) => { if result.exit_code == 0 { - Span::new("success").with_class(Class::Success) + Span::new("✅").with_class(Class::Success) } else { - Span::new(format!("failed (status {})", result.exit_code)) - .with_class(Class::Failure) + Span::new("❌").with_class(Class::Failure) } } - _ => Span::new(status.to_string()), + TestStatus::Finished(Err(inconclusive)) => match inconclusive { + TestInconclusive::Canceled => Span::new("🚫"), + TestInconclusive::Error(_) => Span::new("💥").with_class(Class::Error), + TestInconclusive::ErrorExitCode(_) => Span::new("💥").with_class(Class::Error), + }, } .with_url(format!( "{}/{}/{}", @@ -543,9 +543,9 @@ mod tests { *strip_ansi_escapes::strip_str(str::from_utf8(buf.as_bytes()).unwrap()), eq(format!( "* {commit3} 3\n\ - | my_test1: Enqueued my_test2: success \n\ + | my_test1: ⏳ my_test2: ✅ \n\ * {commit2} 2\n\ - | my_test1: oh no my_test2: Started \n", + | my_test1: 💥 my_test2: 🏃 \n", commit3 = abbrev(&commit3), commit2 = abbrev(&commit2) )) @@ -604,13 +604,13 @@ mod tests { |\\ \\ \n\ | | | \n\ | | * {commit2} 2\n\ - | | my_test1: oh no my_test2: Started \n\ + | | my_test1: 💥 my_test2: 🏃 \n\ | * {commit1} 1\n\ | | \n\ | * {join} join\n\ | \n\ * {commit3} 3\n\ - | my_test1: Enqueued my_test2: success \n", + | my_test1: ⏳ my_test2: ✅ \n", merge = abbrev(&merge), commit3 = abbrev(&commit3), commit2 = abbrev(&commit2), From 31f779ee59eff05c89e9ae8617c4c2f0d8364c70 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 9 Jan 2026 18:41:20 +0000 Subject: [PATCH 2/2] Update UI to use emoji status indicators MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced textual status messages with emoji icons in `src/ui.rs`. - Enqueued: ⏳ - Started: 🏃 - Success: ✅ - Failed: ❌ - Error: 💥 - Canceled: 🚫 Updated corresponding tests in `src/ui.rs` to match the new output format. Ensured comment regarding cancellation handling is preserved. --- src/ui.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui.rs b/src/ui.rs index 56aa456..9f3df64 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -416,6 +416,8 @@ impl OutputBuffer { } } TestStatus::Finished(Err(inconclusive)) => match inconclusive { + // Note - cancellation is an "error" in the type system but we + // don't treat it as an error in the UI. TestInconclusive::Canceled => Span::new("🚫"), TestInconclusive::Error(_) => Span::new("💥").with_class(Class::Error), TestInconclusive::ErrorExitCode(_) => Span::new("💥").with_class(Class::Error),