Add customer job Kanban board

Phase 1, item 6:
- New page /jobs/board: one column per Kanban status (archived left
  out), one card per job with number, name, customer, priority and due
  date. Filters for my jobs (default), priority and service unit;
  subcontractors see only their own cards and cannot move them.
- Cards move by dragging (Livewire wire:sort across column groups) or
  with each card's status select, which works with the keyboard. Moves
  go through ChangeJobStatus, so they are recorded in the job history;
  the result is announced and focus returns to the moved card.
- Billing statuses only for management and the job's biller: the
  jobs.set-billing-status gate now takes the biller's user id.
- Column links with counts at the top; columns wrap with the screen
  width, so there is no sideways scrolling.
- CustomerJobQueries::board() and the biller on job summaries.
- Menu link and a link from the job list; spec and CLAUDE.md updated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-23 19:15:54 +02:00
co-authored by Claude Opus 5.5
parent b3d8e66477
commit 7f3b6dff78
15 changed files with 484 additions and 11 deletions
+13
View File
@@ -14,6 +14,19 @@ return [
'late' => 'Myöhässä',
'opens_in_new_tab' => 'avautuu uuteen välilehteen',
'board' => [
'title' => 'Kanban',
'link' => 'Näytä Kanban-näkymänä',
'show_list' => 'Näytä listana',
'columns' => 'Kanban-sarakkeet',
'count' => '{0} ei töitä|{1} :count työ|[2,*] :count työtä',
'empty' => 'Ei töitä tässä tilassa.',
'status_of' => 'Tila: :job',
'moved' => 'Työ :job siirretty tilaan :status.',
'not_moved' => 'Työtä ei siirretty. Päivitä sivu ja yritä uudelleen.',
'billing_not_allowed' => 'Työtä :job ei siirretty: tilan :status voi asettaa vain johto tai työn laskuttaja.',
],
'quick' => [
'title' => 'Pikavastaanotto',
'intro' => 'Kirjaa uusi työ nopeasti. Muut tiedot voi täydentää myöhemmin työn sivulla.',
+1
View File
@@ -6,6 +6,7 @@ return [
'home' => 'Etusivu',
'jobs' => 'Asiakastyöt',
'quick_intake' => 'Pikavastaanotto',
'board' => 'Kanban',
'customers' => 'Asiakkaat',
'users' => 'Käyttäjät',
'catalog' => 'Pohjatiedot',