Skip to content

Commit 9a10136

Browse files
authored
Update benchmark status indicators to use check and alert icons (alexjustesen#2506)
Co-authored-by: Alex Justesen <[email protected]>
1 parent 5b4ba87 commit 9a10136

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

resources/views/livewire/latest-result-stats.blade.php

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@
3737
@filled($downloadBenchmark)
3838
<x-slot name="afterHeader">
3939
<span @class([
40-
'inline-flex items-center gap-x-1.5 text-xs font-medium underline decoration-dotted decoration-1 decoration-zinc-500 underline-offset-4',
41-
'text-zinc-700 dark:text-zinc-300' => $downloadBenchmarkPassed,
40+
'inline-flex items-center gap-x-1 text-xs font-medium underline decoration-dotted decoration-1 decoration-zinc-500 underline-offset-4',
41+
'text-green-500 dark:text-green-400' => $downloadBenchmarkPassed,
4242
'text-amber-500 dark:text-amber-400' => ! $downloadBenchmarkPassed,
4343
]) title="Benchmark {{ $downloadBenchmarkPassed ? 'passed' : 'failed' }}">
44-
@if (! $downloadBenchmarkPassed)
45-
<x-tabler-alert-triangle class="size-4" />
44+
@if ($downloadBenchmarkPassed)
45+
<x-tabler-circle-check class="size-4" />
46+
@else
47+
<x-tabler-alert-circle class="size-4" />
4648
@endif
4749
{{ Arr::get($downloadBenchmark, 'value').' '.str(Arr::get($downloadBenchmark, 'unit'))->title() }}
4850
</span>
@@ -74,11 +76,13 @@
7476
@filled($uploadBenchmark)
7577
<x-slot name="afterHeader">
7678
<span @class([
77-
'inline-flex items-center gap-x-1.5 text-xs font-medium underline decoration-dotted decoration-1 decoration-zinc-500 underline-offset-4',
78-
'text-zinc-700 dark:text-zinc-300' => $uploadBenchmarkPassed,
79+
'inline-flex items-center gap-x-1 text-xs font-medium underline decoration-dotted decoration-1 decoration-zinc-500 underline-offset-4',
80+
'text-green-500 dark:text-green-400' => $uploadBenchmarkPassed,
7981
'text-amber-500 dark:text-amber-400' => ! $uploadBenchmarkPassed,
8082
]) title="Benchmark {{ $uploadBenchmarkPassed ? 'passed' : 'failed' }}">
81-
@if (! $uploadBenchmarkPassed)
83+
@if ($uploadBenchmarkPassed)
84+
<x-tabler-circle-check class="size-4" />
85+
@else
8286
<x-tabler-alert-triangle class="size-4" />
8387
@endif
8488
{{ Arr::get($uploadBenchmark, 'value').' '.str(Arr::get($uploadBenchmark, 'unit'))->title() }}
@@ -111,11 +115,13 @@
111115
@filled($pingBenchmark)
112116
<x-slot name="afterHeader">
113117
<span @class([
114-
'inline-flex items-center gap-x-1.5 text-xs font-medium underline decoration-dotted decoration-1 decoration-zinc-500 underline-offset-4',
115-
'text-zinc-700 dark:text-zinc-300' => $pingBenchmarkPassed,
118+
'inline-flex items-center gap-x-1 text-xs font-medium underline decoration-dotted decoration-1 decoration-zinc-500 underline-offset-4',
119+
'text-green-500 dark:text-green-400' => $pingBenchmarkPassed,
116120
'text-amber-500 dark:text-amber-400' => ! $pingBenchmarkPassed,
117121
]) title="Benchmark {{ $pingBenchmarkPassed ? 'passed' : 'failed' }}">
118-
@if (! $pingBenchmarkPassed)
122+
@if ($pingBenchmarkPassed)
123+
<x-tabler-circle-check class="size-4" />
124+
@else
119125
<x-tabler-alert-triangle class="size-4" />
120126
@endif
121127
{{ Arr::get($pingBenchmark, 'value').' '.str(Arr::get($pingBenchmark, 'unit')) }}

0 commit comments

Comments
 (0)