Mirror of @tangled.org/core. Running on a Raspberry Pi Zero 2 (Please be gentle).
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

appview/pages: show timeout status

Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>

+18 -7
+15 -7
appview/pages/templates/repo/pipelines/fragments/pipelineSymbol.html
··· 5 5 {{ $total := len $statuses }} 6 6 {{ $success := index $c "success" }} 7 7 {{ $fail := index $c "failed" }} 8 + {{ $timeout := index $c "timeout" }} 8 9 {{ $empty := eq $total 0 }} 9 10 {{ $allPass := eq $success $total }} 10 11 {{ $allFail := eq $fail $total }} 12 + {{ $allTimeout := eq $timeout $total }} 11 13 12 14 {{ if $empty }} 13 15 <div class="flex gap-1 items-center"> ··· 18 16 </div> 19 17 {{ else if $allPass }} 20 18 <div class="flex gap-1 items-center"> 21 - {{ i "check" "size-4 text-green-600" }} 19 + {{ i "check" "size-4 text-green-600" }} 22 20 <span>{{ $total }}/{{ $total }}</span> 23 21 </div> 24 22 {{ else if $allFail }} 25 23 <div class="flex gap-1 items-center"> 26 - {{ i "x" "size-4 text-red-600" }} 24 + {{ i "x" "size-4 text-red-600" }} 25 + <span>0/{{ $total }}</span> 26 + </div> 27 + {{ else if $allTimeout }} 28 + <div class="flex gap-1 items-center"> 29 + {{ i "clock-alert" "size-4 text-orange-400" }} 27 30 <span>0/{{ $total }}</span> 28 31 </div> 29 32 {{ else }} ··· 42 35 {{ range $kind, $count := $c }} 43 36 {{ $color := "" }} 44 37 {{ if or (eq $kind "pending") (eq $kind "running") }} 45 - {{ $color = "#eab308" }} 38 + {{ $color = "#eab308" }} {{/* amber-500 */}} 46 39 {{ else if eq $kind "success" }} 47 - {{ $color = "#10b981" }} 40 + {{ $color = "#10b981" }} {{/* green-500 */}} 48 41 {{ else if eq $kind "cancelled" }} 49 - {{ $color = "#6b7280" }} 42 + {{ $color = "#6b7280" }} {{/* gray-500 */}} 43 + {{ else if eq $kind "timeout" }} 44 + {{ $color = "#fb923c" }} {{/* orange-400 */}} 50 45 {{ else }} 51 - {{ $color = "#ef4444" }} 46 + {{ $color = "#ef4444" }} {{/* red-500 for failed or unknown */}} 52 47 {{ end }} 53 48 54 49 {{ $percent := divf64 (f64 $count) (f64 $total) }} ··· 72 63 {{ end }} 73 64 </div> 74 65 {{ end }} 75 -
+3
appview/pages/templates/repo/pipelines/fragments/workflowSymbol.html
··· 17 17 {{ else if eq $kind "cancelled" }} 18 18 {{ $icon = "circle-slash" }} 19 19 {{ $color = "text-gray-600 dark:text-gray-500" }} 20 + {{ else if eq $kind "timeout" }} 21 + {{ $icon = "clock-alert" }} 22 + {{ $color = "text-orange-400 dark:text-orange-300" }} 20 23 {{ else }} 21 24 {{ $icon = "x" }} 22 25 {{ $color = "text-red-600 dark:text-red-500" }}