Anbraten 2023-12-19 06:00:56 +01:00 committed by GitHub
parent 01a955ed0e
commit ba21f29c27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 7 deletions

View file

@ -12,14 +12,17 @@
<i-teenyicons-git-solid v-else-if="name === 'repo'" class="h-8 w-8" />
<i-clarity-settings-solid v-else-if="name === 'settings'" class="w-8 h-8" />
<i-gg-trash v-else-if="name === 'trash'" class="h-6 w-6" />
<i-bi-play-circle-fill v-else-if="name === 'status-blocked'" class="h-6 w-6" />
<i-bi-stop-circle-fill v-else-if="name === 'status-declined'" class="h-6 w-6" />
<i-bi-x-circle-fill
<i-mdi-play v-else-if="name === 'status-blocked'" class="h-6 w-6" />
<i-mdi-stop v-else-if="name === 'status-declined'" class="h-6 w-6" />
<i-mdi-close-thick
v-else-if="name === 'status-failure' || name === 'status-error' || name === 'status-killed'"
class="h-6 w-6"
/>
<i-bi-circle v-else-if="name === 'status-pending'" class="h-6 w-6" />
<i-carbon-in-progress v-else-if="name === 'status-running' || name === 'status-started'" class="h-6 w-6" />
<i-mdi-radiobox-blank v-else-if="name === 'status-pending'" class="h-6 w-6" />
<i-mdi-radiobox-indeterminate-variant
v-else-if="name === 'status-running' || name === 'status-started'"
class="h-6 w-6"
/>
<i-bi-slash-circle-fill v-else-if="name === 'status-skipped'" class="h-6 w-6" />
<i-bi-check-circle-fill v-else-if="name === 'status-success'" class="h-6 w-6" />
<i-bi-exclamation-triangle-fill v-else-if="name === 'attention'" class="h-5 w-5" />

View file

@ -10,6 +10,7 @@
'text-wp-state-neutral-100': pipelineStatusColors[status] === 'gray',
'text-wp-state-ok-100': pipelineStatusColors[status] === 'green',
'text-wp-state-info-100': pipelineStatusColors[status] === 'blue',
'text-wp-state-warn-100': pipelineStatusColors[status] === 'orange',
}"
/>
</div>

View file

@ -1,12 +1,12 @@
import { PipelineStatus } from '~/lib/api/types';
export const pipelineStatusColors: Record<PipelineStatus, 'green' | 'gray' | 'red' | 'blue'> = {
export const pipelineStatusColors: Record<PipelineStatus, 'green' | 'gray' | 'red' | 'blue' | 'orange'> = {
blocked: 'gray',
declined: 'red',
error: 'red',
failure: 'red',
killed: 'gray',
pending: 'gray',
pending: 'orange',
skipped: 'gray',
running: 'blue',
started: 'blue',