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
@@ -478,7 +478,7 @@ new class extends Component
<div class="mx-auto max-w-lg space-y-6 p-4 sm:p-6">
<div class="space-y-1">
<x-page-title icon="shopping-cart">{{ __('sales.sell.title') }}</x-page-title>
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('sales.sell.intro') }}</p>
<p class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('sales.sell.intro') }}</p>
<p class="text-sm">
<x-link :href="route('sales.index')" navigate>{{ __('sales.sell.to_list') }}</x-link>
</p>
@@ -526,7 +526,7 @@ new class extends Component
@else
<section aria-labelledby="products-heading" class="card space-y-3">
<h2 id="products-heading" class="text-lg font-semibold">{{ __('sales.sell.products') }}</h2>
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('sales.sell.products_help') }}</p>
<p class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('sales.sell.products_help') }}</p>
<ul class="grid grid-cols-2 gap-2">
@foreach ($this->products as $product)
@@ -569,11 +569,11 @@ new class extends Component
<li wire:key="line-{{ $product->id }}" class="flex flex-wrap items-center gap-x-3 gap-y-2 py-2">
<div class="min-w-0 flex-1">
<p class="font-medium break-words">{{ $product->name }}</p>
<p class="text-sm text-zinc-700 dark:text-zinc-300">
<p class="text-sm text-zinc-700 dark:text-zinc-200">
{{ __('sales.sell.line', ['quantity' => $line['quantity'], 'price' => $this->money($product->grossCents), 'total' => $this->money($line['quantity'] * $product->grossCents)]) }}
</p>
@if ($product->durationQuarters > 0 && $product->workTypeId !== null)
<p class="text-xs text-zinc-600 dark:text-zinc-300">{{ __('sales.sell.line_hours', ['hours' => $this->hours($product->durationQuarters * $line['quantity'])]) }}</p>
<p class="text-xs text-zinc-600 dark:text-zinc-200">{{ __('sales.sell.line_hours', ['hours' => $this->hours($product->durationQuarters * $line['quantity'])]) }}</p>
@endif
</div>
<div class="flex items-center gap-1">
@@ -659,7 +659,7 @@ new class extends Component
/>
@if (mb_strlen(trim($customerSearch)) >= 2)
<p role="status" aria-live="polite" class="text-sm text-zinc-600 dark:text-zinc-300">
<p role="status" aria-live="polite" class="text-sm text-zinc-600 dark:text-zinc-200">
{{ trans_choice('sales.sell.customer_results', count($this->customerResults), ['count' => count($this->customerResults)]) }}
</p>