Skip to content

Commit c279b6e

Browse files
branchseerclaude
andcommitted
fix: use same-sized circle for cache miss indicator
Replace 〇 (U+3007, CJK ideographic number zero) with ○ (U+25CB, white circle) so the cache miss symbol matches the size of the cache hit ◉ (U+25C9, fisheye) — both are now from the same geometric shapes block. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7e8fb3d commit c279b6e

34 files changed

Lines changed: 41 additions & 41 deletions

File tree

crates/vite_task/src/session/cache/display.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ pub fn format_cache_status_inline(cache_status: &CacheStatus) -> Option<Str> {
176176
FingerprintMismatch::InputConfig => "input configuration changed",
177177
FingerprintMismatch::InputChanged { kind, path } => {
178178
let desc = format_input_change_str(*kind, path.as_str());
179-
return Some(vite_str::format!(" cache miss: {desc}, executing"));
179+
return Some(vite_str::format!(" cache miss: {desc}, executing"));
180180
}
181181
};
182-
Some(vite_str::format!(" cache miss: {reason}, executing"))
182+
Some(vite_str::format!(" cache miss: {reason}, executing"))
183183
}
184184
CacheStatus::Disabled(_) => Some(Str::from("⊘ cache disabled")),
185185
}

crates/vite_task_bin/tests/e2e_snapshots/fixtures/associate-existing-cache/snapshots/associate existing cache.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ vt run: cache hit, <duration> saved.
1414
> json-edit package.json '_.scripts.script2 = "print world"' # change script2
1515

1616
> vt run script2 # cache miss
17-
$ print world cache miss: args changed, executing
17+
$ print world cache miss: args changed, executing
1818
world

crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-different-cwd/snapshots/builtin different cwd.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ vt run: cache hit, <duration> saved.
4646
> echo 'console.log(1);' > folder2/a.js # modify folder2
4747

4848
> cd folder1 && vt run lint # cache hit
49-
$ vt lint cache miss: 'folder2/a.js' modified, executing
49+
$ vt lint cache miss: 'folder2/a.js' modified, executing
5050

5151
! eslint-plugin-unicorn(no-empty-file): Empty files are not allowed.
5252
,-[folder1/a.js:1:1]

crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-command-change/snapshots/cache miss command change.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ vt run: 0/2 cache hit (0%). (Run `vt run --last-details` for full details)
1414
> json-edit package.json '_.scripts.task = "print baz && print bar"' # change first subtask
1515

1616
> vt run task # first: cache miss, second: cache hit
17-
$ print baz cache miss: args changed, executing
17+
$ print baz cache miss: args changed, executing
1818
baz
1919

2020
$ print barcache hit, replaying

crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/cwd changed.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ initial content
1212
> json-edit vite-task.json "_.tasks.test.cwd = 'subfolder'" # change cwd
1313

1414
> vt run test # cache miss: cwd changed
15-
~/subfolder$ print-file test.txt cache miss: working directory changed, executing
15+
~/subfolder$ print-file test.txt cache miss: working directory changed, executing
1616
initial content

crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/env added.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ expression: e2e_outputs
66
$ print-file test.txt
77
initial content
88
> cross-env MY_ENV=1 vt run test # cache miss: env added
9-
$ print-file test.txt cache miss: envs changed, executing
9+
$ print-file test.txt cache miss: envs changed, executing
1010
initial content

crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/env removed.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ expression: e2e_outputs
66
$ print-file test.txt
77
initial content
88
> vt run test # cache miss: env removed
9-
$ print-file test.txt cache miss: envs changed, executing
9+
$ print-file test.txt cache miss: envs changed, executing
1010
initial content

crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/env value changed.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ expression: e2e_outputs
66
$ print-file test.txt
77
initial content
88
> cross-env MY_ENV=2 vt run test # cache miss: env value changed
9-
$ print-file test.txt cache miss: envs changed, executing
9+
$ print-file test.txt cache miss: envs changed, executing
1010
initial content

crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/glob input changes.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ glob-test
88
> replace-file-content test.txt initial modified # modify glob input
99

1010
> vt run glob-test # cache miss: input modified
11-
$ print glob-test cache miss: 'test.txt' modified, executing
11+
$ print glob-test cache miss: 'test.txt' modified, executing
1212
glob-test
1313
> echo new content > new.txt # add a new .txt file
1414

1515
> vt run glob-test # cache miss: input added
16-
$ print glob-test cache miss: 'new.txt' added in workspace root, executing
16+
$ print glob-test cache miss: 'new.txt' added in workspace root, executing
1717
glob-test
1818
> rm extra.txt # remove a .txt file
1919

2020
> vt run glob-test # cache miss: input removed
21-
$ print glob-test cache miss: 'extra.txt' removed from workspace root, executing
21+
$ print glob-test cache miss: 'extra.txt' removed from workspace root, executing
2222
glob-test

crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/inferred input changes.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ initial content
88
> replace-file-content test.txt initial modified # modify input
99

1010
> vt run test # cache miss: input modified
11-
$ print-file test.txt cache miss: 'test.txt' modified, executing
11+
$ print-file test.txt cache miss: 'test.txt' modified, executing
1212
modified content
1313
> rm test.txt # remove tracked input
1414

1515
> vt run test # cache miss: input removed
16-
$ print-file test.txt cache miss: 'test.txt' removed from workspace root, executing
16+
$ print-file test.txt cache miss: 'test.txt' removed from workspace root, executing
1717
test.txt: not found
1818
> echo new content > test.txt # recreate previously removed file
1919

2020
> vt run test # cache miss: input added
21-
$ print-file test.txt cache miss: 'test.txt' added in workspace root, executing
21+
$ print-file test.txt cache miss: 'test.txt' added in workspace root, executing
2222
new content

0 commit comments

Comments
 (0)