Batch uploads were only storing files as pending without dispatching Whisper jobs; queue them immediately, add a bulk pending action, and show human-readable status labels.
22 lines
850 B
PHP
22 lines
850 B
PHP
@php
|
|
$label = $label ?? match ($status) {
|
|
'pending' => 'Queued',
|
|
'processing' => 'Transcribing',
|
|
'done' => 'Done',
|
|
'failed' => 'Failed',
|
|
'cancelled' => 'Cancelled',
|
|
default => (string) $status,
|
|
};
|
|
$classes = match ($status) {
|
|
'done' => 'bg-teal-50 text-teal-800 ring-teal-600/20',
|
|
'processing' => 'bg-amber-50 text-amber-800 ring-amber-600/20',
|
|
'pending' => 'bg-amber-50 text-amber-800 ring-amber-600/20',
|
|
'failed' => 'bg-red-50 text-red-800 ring-red-600/20',
|
|
'cancelled' => 'bg-stone-100 text-stone-700 ring-stone-500/20',
|
|
default => 'bg-stone-100 text-stone-700 ring-stone-500/20',
|
|
};
|
|
@endphp
|
|
<span class="inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium ring-1 ring-inset {{ $classes }}">
|
|
{{ $label }}
|
|
</span>
|