fix(run): use 16px test status icons and the shared running indicator (#2487)

Run and Services test trees now use 16px status and filter icons and the shared eight-spoke running indicator. The fixed 11/13px glyphs made columns uneven, and a status change shifted the name; the running indicator now follows the tree's icon size.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-10 23:41:22 +08:00
1 джерело 9153c66849
коміт 839123caf2
12 files changed
+181 -12

No files matched your search

+4 -3
Переглянути файл
@@ -222,6 +222,10 @@
min-width: 0;
flex: 1;
}
.testRow .testStatus {
width: var(--oi-tree-icon-size, 16px);
height: var(--oi-tree-icon-size, 16px);
}
.testName {
flex: 1;
min-width: 0;
@@ -242,9 +246,6 @@
font-size: var(--fs-ui);
}
.passed {
color: var(--success);
}
.failed {
color: var(--danger);
}
+9 -9
Переглянути файл
@@ -72,15 +72,15 @@ function totalDuration(node: TestNode): number | undefined {
export function StatusIcon({ status }: { status: TestStatus | null }) {
switch (status) {
case "passed":
return <Icon name="check" size={13} className={styles.passed} label="Passed" />;
return <Icon name="test-passed" className={styles.testStatus} label="Passed" />;
case "failed":
return <Icon name="close" size={13} className={styles.failed} label="Failed" />;
return <Icon name="test-failed" className={styles.testStatus} label="Failed" />;
case "skipped":
return <Icon name="minus" size={13} className={styles.skipped} label="Ignored" />;
return <Icon name="test-ignored" className={styles.testStatus} label="Ignored" />;
case "running":
return <Spinner size={11} />;
return <Spinner size={16} variant="spokes" className={styles.testStatus} />;
default:
return <Icon name="clock" size={13} className={styles.skipped} label="Pending" />;
return <Icon name="test-pending" className={styles.testStatus} label="Pending" />;
}
}
@@ -225,17 +225,17 @@ export function TestTreeView({
</span>
<span className={styles.spacer} />
<IconButton
icon="check"
icon="test-show-passed"
size="small"
iconSize={13}
iconSize={16}
title="Show Passed"
pressed={showPassed}
onClick={() => toggle("showPassed")}
/>
<IconButton
icon="minus"
icon="test-show-ignored"
size="small"
iconSize={13}
iconSize={16}
title="Show Ignored"
pressed={showIgnored}
onClick={() => toggle("showIgnored")}
+4
Переглянути файл
@@ -0,0 +1,4 @@
<!-- Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M2.5 8.25L6 11.75L13.5 4.25" stroke="#6C707E" stroke-width="1.5" stroke-linecap="round"/>
</svg>

Після

Ширина:  |  Висота:  |  Розмір: 329 B

+4
Переглянути файл
@@ -0,0 +1,4 @@
<!-- Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M2.5 8.25L6 11.75L13.5 4.25" stroke="#CED0D6" stroke-width="1.5" stroke-linecap="round"/>
</svg>

Після

Ширина:  |  Висота:  |  Розмір: 329 B

+4
Переглянути файл
@@ -0,0 +1,4 @@
<!-- Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15ZM5.81588 4.68431C5.50346 4.37189 4.99693 4.37189 4.68451 4.68431C4.37209 4.99673 4.37209 5.50326 4.68451 5.81568L6.86882 8L4.68451 10.1843C4.37209 10.4967 4.37209 11.0033 4.68451 11.3157C4.99693 11.6281 5.50347 11.6281 5.81588 11.3157L8.0002 9.13137L10.1845 11.3157C10.4969 11.6281 11.0035 11.6281 11.3159 11.3157C11.6283 11.0033 11.6283 10.4967 11.3159 10.1843L9.13157 8L11.3159 5.81568C11.6283 5.50326 11.6283 4.99673 11.3159 4.68431C11.0035 4.37189 10.4969 4.37189 10.1845 4.68431L8.0002 6.86863L5.81588 4.68431Z" fill="#FFAF0F"/>
</svg>

Після

Ширина:  |  Висота:  |  Розмір: 917 B

+4
Переглянути файл
@@ -0,0 +1,4 @@
<!-- Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15ZM5.81588 4.68431C5.50346 4.37189 4.99693 4.37189 4.68451 4.68431C4.37209 4.99673 4.37209 5.50326 4.68451 5.81568L6.86882 8L4.68451 10.1843C4.37209 10.4967 4.37209 11.0033 4.68451 11.3157C4.99693 11.6281 5.50347 11.6281 5.81588 11.3157L8.0002 9.13137L10.1845 11.3157C10.4969 11.6281 11.0035 11.6281 11.3159 11.3157C11.6283 11.0033 11.6283 10.4967 11.3159 10.1843L9.13157 8L11.3159 5.81568C11.6283 5.50326 11.6283 4.99673 11.3159 4.68431C11.0035 4.37189 10.4969 4.37189 10.1845 4.68431L8.0002 6.86863L5.81588 4.68431Z" fill="#F2C55C"/>
</svg>

Після

Ширина:  |  Висота:  |  Розмір: 917 B

+5
Переглянути файл
@@ -0,0 +1,5 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="8" cy="8" r="6.25" stroke="#818594" stroke-width="1.5"/>
<path d="M3.5 12.5L12.5 3.5" stroke="#818594" stroke-width="1.5"/>
</svg>

Після

Ширина:  |  Висота:  |  Розмір: 366 B

+5
Переглянути файл
@@ -0,0 +1,5 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="8" cy="8" r="6.25" stroke="#CED0D6" stroke-width="1.5"/>
<path d="M3.5 12.5L12.5 3.5" stroke="#CED0D6" stroke-width="1.5"/>
</svg>

Після

Ширина:  |  Висота:  |  Розмір: 366 B

+4
Переглянути файл
@@ -0,0 +1,4 @@
<!-- Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3 8.5L6 11.5L12.5 5" stroke="#55A76A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

Після

Ширина:  |  Висота:  |  Розмір: 344 B

+4
Переглянути файл
@@ -0,0 +1,4 @@
<!-- Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3 8.5L6 11.5L12.5 5" stroke="#57965C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

Після

Ширина:  |  Висота:  |  Розмір: 344 B

+6
Переглянути файл
@@ -373,6 +373,12 @@ const ICONS = {
success: "status/success",
// Run / debug
run: "run/run",
"test-passed": "run/testPassed",
"test-failed": "run/testFailed",
"test-ignored": "run/testIgnored",
"test-pending": "run/testNotRunYet",
"test-show-passed": "run/showPassed",
"test-show-ignored": "run/showIgnored",
debug: "run/debug",
"run-coverage": "run/runWithCoverage",
profile: "run/profile",