Files
petriandClaude Opus 5.5 6332ff0fa9 Rebuild the Kanban board after the prototype, with the job editor and quick intake dialog
- Toolbar: whose board (own, a person, a service line, all), pipeline
  views (daily, sales, full), urgent and late filters with a live count,
  normal and compact density, and the quick intake button.
- Columns side by side with horizontal scrolling on desktop, stacked on
  phones; each user's own column colours and order, the urgent column's
  threshold menu, and the continuing jobs column.
- Cards in customer colours: job cards with their tasks checked off inside
  the card (the status select is gone), continuing job cards with the next
  period, PIN and quick add, and pinned task cards. Dragging moves and
  orders cards; the keyboard opens the job editor from the card title.
- Job editor dialog: every job detail, tasks with checklists and
  templates, quick hours (TimeTracking) and expenses (Expenses), history.
- The quick intake form also adds a contact person, initial status and
  priority, and opens as a dialog on the board.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 06:33:28 +02:00

23 lines
1.2 KiB
PHP

{{--
A Kanban card's priority badge: the text carries the meaning, the
colour only supports it; "Heti" also gets the striped dot.
--}}
@props(['priority'])
@php
$classes = match ($priority->value) {
'immediate' => 'bg-orange-100 text-red-950 border-orange-400 dark:bg-orange-950 dark:text-orange-100 dark:border-orange-700',
'urgent' => 'bg-red-100 text-red-900 border-red-300 dark:bg-red-950 dark:text-red-100 dark:border-red-800',
'first' => 'bg-amber-100 text-amber-950 border-amber-300 dark:bg-amber-950 dark:text-amber-100 dark:border-amber-800',
'waiting' => 'bg-blue-100 text-blue-900 border-blue-300 dark:bg-blue-950 dark:text-blue-100 dark:border-blue-800',
default => 'bg-emerald-100 text-emerald-900 border-emerald-300 dark:bg-emerald-950 dark:text-emerald-100 dark:border-emerald-800',
};
@endphp
<span {{ $attributes->class(['inline-flex shrink-0 items-center gap-1 rounded border px-1.5 py-0.5 text-[10px] font-bold', $classes]) }}>
@if ($priority->value === 'immediate')
<span class="size-2 rounded-full bg-[repeating-linear-gradient(-45deg,#dc2626_0_5px,#ea580c_5px_10px)]" aria-hidden="true"></span>
@endif
{{ __('jobs.priorities.'.$priority->value) }}
</span>