Skip to content

Commit 8530cf9

Browse files
branchseerclaude
andcommitted
style: use light gray for task labels and group headers
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fa93a3e commit 8530cf9

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

crates/vite_task/src/session/reporter/grouped/mod.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
33
use std::{cell::RefCell, io::Write, process::ExitStatus as StdExitStatus, rc::Rc, sync::Arc};
44

5+
use owo_colors::Style;
56
use vite_path::AbsolutePath;
67
use vite_task_plan::{ExecutionItemDisplay, LeafExecutionKind};
78

89
use super::{
9-
ExitStatus, GraphExecutionReporter, GraphExecutionReporterBuilder, LeafExecutionReporter,
10-
StdioConfig, StdioSuggestion, format_command_with_cache_status, format_task_label,
11-
write_leaf_trailing_output,
10+
ColorizeExt, ExitStatus, GraphExecutionReporter, GraphExecutionReporterBuilder,
11+
LeafExecutionReporter, StdioConfig, StdioSuggestion, format_command_with_cache_status,
12+
format_task_label, write_leaf_trailing_output,
1213
};
1314
use crate::session::event::{CacheStatus, CacheUpdateStatus, ExecutionError};
1415

@@ -109,7 +110,12 @@ impl LeafExecutionReporter for GroupedLeafReporter {
109110
if let Some(ref grouped_buffer) = self.grouped_buffer {
110111
let content = grouped_buffer.borrow();
111112
if !content.is_empty() {
112-
let header = vite_str::format!("── {} ──\n", self.label);
113+
let header = vite_str::format!(
114+
"{} {} {}\n",
115+
"──".style(Style::new().bright_black()),
116+
self.label,
117+
"──".style(Style::new().bright_black())
118+
);
113119
extra.extend_from_slice(header.as_bytes());
114120
extra.extend_from_slice(&content);
115121
}

crates/vite_task/src/session/reporter/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,10 @@ fn format_cwd_relative(display: &ExecutionItemDisplay, workspace_path: &Absolute
208208

209209
/// Format the task label for labeled/grouped modes (e.g., `[pkg#task]`).
210210
fn format_task_label(display: &ExecutionItemDisplay) -> Str {
211-
vite_str::format!("[{}]", display.task_display)
211+
vite_str::format!(
212+
"{}",
213+
vite_str::format!("[{}]", display.task_display).style(Style::new().bright_black())
214+
)
212215
}
213216

214217
/// Format the command string with cwd prefix for display (e.g., `~/packages/lib$ vitest run`).

0 commit comments

Comments
 (0)