Darken the dark canvas, add customer colours, the ongoing status and the board model

- Dark theme page background is #5a5e60; text on it is lifted to zinc-200 /
  primary-100 and TallStackUI's dark labels, hints and checkbox labels are
  lightened so everything stays at 4.5:1.
- Shared HexColor picks white or black text by the higher WCAG contrast; a
  native-dialog colour picker and a large work dialog component.
- Customers get a header colour (customers.header_color), set on the
  customer page.
- New job status Jatkuvat / Kausi (ongoing): open, never late, billed
  monthly like running jobs.
- Kanban model: board columns and views, urgent threshold, per-user board
  preferences (density, column colours and sort), card positions, tasks of
  continuing jobs pinned to the board, MoveBoardCard and board queries with
  logged hours from TimeTracking.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-30 06:11:49 +02:00
co-authored by Claude Opus 5.5
parent de168619b3
commit f4b58f6b1d
140 changed files with 2845 additions and 170 deletions
@@ -0,0 +1,55 @@
{{--
A large modal work area on the native <dialog> element (see
<x-confirm-dialog> for why not <x-modal />): focus moves in, Escape
closes it and closing returns focus to the opening button.
Slots: `header` (replaces the plain title bar, must contain an element
with id "<id>-title"), the default slot (scrolling body) and `footer`.
Open it with document.getElementById('<id>').showModal(), from Livewire
with $this->js(...). `locked` (an Alpine expression) keeps it open while
true, e.g. while a timer runs: Escape and the close button do nothing.
--}}
@props([
'id',
'title' => null,
'width' => 'max-w-5xl',
'locked' => 'false',
])
<dialog
id="{{ $id }}"
aria-labelledby="{{ $id }}-title"
wire:ignore.self
x-data="{ get isLocked() { return {{ $locked }}; } }"
x-on:cancel="if (isLocked) { $event.preventDefault(); }"
{{ $attributes->class(['m-auto w-[calc(100%-1rem)] rounded-2xl border border-neutral-300 bg-white p-0 text-neutral-900 shadow-2xl backdrop:bg-black/70 dark:border-[#3e4249] dark:bg-[#222427] dark:text-neutral-100', $width]) }}
>
<div class="flex max-h-[92vh] flex-col">
@isset($header)
{{ $header }}
@else
<div class="flex shrink-0 items-center justify-between gap-3 border-b border-neutral-200 px-5 py-3 dark:border-[#36393f]">
<h2 id="{{ $id }}-title" class="text-base font-bold">{{ $title }}</h2>
<button
type="button"
x-on:click="if (! isLocked) { $el.closest('dialog').close(); }"
x-bind:disabled="isLocked"
aria-label="{{ __('layout.close') }}"
class="inline-flex size-8 items-center justify-center rounded-lg text-neutral-600 hover:bg-neutral-100 focus-visible:outline-2 focus-visible:outline-primary-600 disabled:opacity-40 dark:text-neutral-200 dark:hover:bg-white/10 dark:focus-visible:outline-primary-300"
>
<x-icon name="x-mark" class="size-5" aria-hidden="true" />
</button>
</div>
@endisset
<div class="flex-1 overflow-y-auto">
{{ $slot }}
</div>
@isset($footer)
<div class="flex shrink-0 flex-wrap items-center justify-between gap-2 border-t border-neutral-200 bg-neutral-100 px-5 py-3 dark:border-[#36393f] dark:bg-[#18191b]">
{{ $footer }}
</div>
@endisset
</div>
</dialog>