feat: refine OT flow, reports, theming and sidebar UX
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import type { WorkOrder } from '@/lib/types'
|
||||
|
||||
export const WORK_ORDER_STATUS_LABEL: Record<WorkOrder['status'], string> = {
|
||||
quote: 'Orçamento',
|
||||
open: 'Orçamento Aprovado',
|
||||
in_progress: 'Em Curso',
|
||||
completed: 'Concluída',
|
||||
invoiced: 'Faturada',
|
||||
cancelled: 'Cancelada',
|
||||
}
|
||||
|
||||
const LIGHT_STATUS_BADGE: Record<WorkOrder['status'], string> = {
|
||||
quote: 'border-amber-400 bg-amber-100 text-slate-800',
|
||||
open: 'border-sky-400 bg-sky-100 text-slate-800',
|
||||
in_progress: 'border-indigo-400 bg-indigo-100 text-slate-800',
|
||||
completed: 'border-emerald-400 bg-emerald-100 text-slate-800',
|
||||
invoiced: 'border-teal-400 bg-teal-100 text-slate-800',
|
||||
cancelled: 'border-rose-400 bg-rose-100 text-slate-800',
|
||||
}
|
||||
|
||||
export function workOrderStatusBadgeClass(status: WorkOrder['status']) {
|
||||
return `border ${LIGHT_STATUS_BADGE[status]}`
|
||||
}
|
||||
Reference in New Issue
Block a user