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
@@ -185,7 +185,7 @@ new class extends Component
<p class="text-sm">{{ __('inventory.counts.values', ['before' => $this->money((int) $count->valueBeforeCents), 'after' => $this->money((int) $count->valueAfterCents)]) }}</p>
@endcan
@else
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('inventory.counts.count_help') }}</p>
<p class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('inventory.counts.count_help') }}</p>
@endif
</div>
@@ -219,7 +219,7 @@ new class extends Component
<li wire:key="count-line-{{ $line->itemId }}" class="flex flex-wrap items-end justify-between gap-3 p-3">
<div class="min-w-0 flex-1 space-y-1">
<p class="font-medium break-words">{{ $line->itemName }}</p>
<p class="text-sm text-zinc-700 dark:text-zinc-300">
<p class="text-sm text-zinc-700 dark:text-zinc-200">
@if ($line->isCounted())
{{ __('inventory.counts.book', ['book' => $this->quantity((int) $line->bookMilli, $line->unit)]) }}
· <span class="font-medium">{{ __('inventory.counts.difference', ['difference' => $this->signed((int) $difference, $line->unit)]) }}</span>
@@ -240,7 +240,7 @@ new class extends Component
<p class="text-sm font-medium">{{ $line->isCounted() ? $this->quantity((int) $line->countedMilli, $line->unit) : '–' }}</p>
@else
<div class="w-36">
<label for="counted-{{ $line->itemId }}" class="block text-sm font-semibold text-zinc-700 dark:text-zinc-300">
<label for="counted-{{ $line->itemId }}" class="block text-sm font-semibold text-zinc-700 dark:text-zinc-200">
{{ __('inventory.counts.counted', ['unit' => __('inventory.units.'.$line->unit->value)]) }}
<span class="sr-only">: {{ $line->itemName }}</span>
</label>
@@ -74,7 +74,7 @@ new class extends Component
<div class="mx-auto max-w-5xl space-y-6 p-4 sm:p-6">
<div class="space-y-2">
<x-page-title icon="clipboard-document-check">{{ __('inventory.counts.title') }}</x-page-title>
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('inventory.counts.intro') }}</p>
<p class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('inventory.counts.intro') }}</p>
</div>
@can('inventory.manage-counts')
@@ -153,7 +153,7 @@ new class extends Component
<div class="mx-auto max-w-3xl space-y-6 p-4 sm:p-6">
<div class="space-y-2">
<x-page-title icon="folder">{{ __('inventory.groups.title') }}</x-page-title>
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('inventory.groups.intro') }}</p>
<p class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('inventory.groups.intro') }}</p>
<p class="text-sm"><x-link :href="route('inventory.index')" navigate>{{ __('inventory.groups.back') }}</x-link></p>
</div>
@@ -183,7 +183,7 @@ new class extends Component
@else
<div class="min-w-0 flex-1">
<p class="font-medium break-words">{{ $group->name }}</p>
<p class="text-sm text-zinc-600 dark:text-zinc-300">
<p class="text-sm text-zinc-600 dark:text-zinc-200">
{{ trans_choice('inventory.groups.items', $group->itemCount, ['count' => $group->itemCount]) }}
@unless ($group->isActive)
· {{ __('inventory.status.inactive') }}
@@ -94,7 +94,7 @@ new class extends Component
<div class="mx-auto max-w-6xl space-y-6 p-4 sm:p-6">
<div class="space-y-2">
<x-page-title icon="archive-box">{{ __('inventory.index.title') }}</x-page-title>
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('inventory.index.intro') }}</p>
<p class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('inventory.index.intro') }}</p>
@can('inventory.manage')
<div class="flex flex-wrap gap-3">
<x-button :href="route('inventory.items.create')" wire:navigate icon="plus" :text="__('inventory.index.new_item')" />
@@ -133,7 +133,7 @@ new class extends Component
@interact('column_name', $item)
<x-link :href="route('inventory.items.show', $item->id)" navigate class="whitespace-normal">{{ $item->name }}</x-link>
@if ($item->code !== null)
<span class="block text-xs text-zinc-600 dark:text-zinc-300">{{ $item->code }}</span>
<span class="block text-xs text-zinc-600 dark:text-zinc-200">{{ $item->code }}</span>
@endif
@endinteract
@@ -198,8 +198,8 @@ new class extends Component
<x-input id="item-reorder" wire:model="reorderLevel" inputmode="decimal" :label="__('inventory.form.reorder_level')" :hint="__('inventory.form.reorder_level_hint')" autocomplete="off" />
<div class="space-y-2">
<label for="item-image" class="block text-sm font-semibold text-zinc-700 dark:text-zinc-300">{{ __('inventory.form.image') }}</label>
<p id="item-image-hint" class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('inventory.form.image_hint', ['size' => $this::MAX_KILOBYTES / 1024]) }}</p>
<label for="item-image" class="block text-sm font-semibold text-zinc-700 dark:text-zinc-200">{{ __('inventory.form.image') }}</label>
<p id="item-image-hint" class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('inventory.form.image_hint', ['size' => $this::MAX_KILOBYTES / 1024]) }}</p>
@if ($hasImage && $itemId !== null)
<img src="{{ route('inventory.items.image', [$itemId, 'thumbnail']) }}" alt="{{ __('inventory.form.current_image') }}" class="size-24 rounded-md border border-zinc-300 object-cover dark:border-zinc-600" />
<x-checkbox id="remove-image" wire:model="removeImage" :label="__('inventory.form.remove_image')" />
@@ -408,7 +408,7 @@ new class extends Component
@can('inventory.manage')
<section aria-labelledby="purchase-heading" class="card space-y-3">
<h2 id="purchase-heading" class="text-lg font-semibold">{{ __('inventory.purchase.title') }}</h2>
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('inventory.purchase.intro') }}</p>
<p class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('inventory.purchase.intro') }}</p>
<form wire:submit="recordPurchase" class="space-y-4" novalidate>
<x-input id="purchase-day" wire:model="purchaseDay" type="date" :label="__('inventory.purchase.day')" required />
<x-input id="purchase-quantity" wire:model="purchaseQuantity" inputmode="decimal" :label="__('inventory.purchase.quantity', ['unit' => $unitLabel])" autocomplete="off" />
@@ -434,7 +434,7 @@ new class extends Component
@can('inventory.record-use')
<section aria-labelledby="use-heading" class="card space-y-3">
<h2 id="use-heading" class="text-lg font-semibold">{{ __('inventory.use.title') }}</h2>
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('inventory.use.intro') }}</p>
<p class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('inventory.use.intro') }}</p>
<form wire:submit="recordUse" class="space-y-4" novalidate>
<x-input id="use-quantity" wire:model="useQuantity" inputmode="decimal" :label="__('inventory.use.quantity', ['unit' => $unitLabel])" autocomplete="off" />
<x-input id="use-reason" wire:model="useReason" :label="__('inventory.use.reason')" autocomplete="off" maxlength="255" />
@@ -454,7 +454,7 @@ new class extends Component
<x-empty-state icon="archive-box">{{ __('inventory.item.history_none') }}</x-empty-state>
@else
@if (count($this->movements) >= $this::HISTORY_LIMIT)
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('inventory.item.history_limit', ['count' => $this::HISTORY_LIMIT]) }}</p>
<p class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('inventory.item.history_limit', ['count' => $this::HISTORY_LIMIT]) }}</p>
@endif
<x-table :headers="$this->headers()" :rows="$this->movements">
@@ -332,7 +332,7 @@ new class extends Component
/>
@if (mb_strlen(trim($search)) >= 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('inventory.task.results', count($this->results), ['count' => count($this->results)]) }}
</p>
<ul class="space-y-1">
@@ -345,7 +345,7 @@ new class extends Component
aria-label="{{ __('inventory.task.choose', ['item' => $result->name, 'balance' => $this->quantity($result->balanceMilli, $result->unit)]) }}"
>
<span class="font-medium">{{ $result->name }}</span>
<span class="text-zinc-700 dark:text-zinc-300">{{ $this->quantity($result->balanceMilli, $result->unit) }}</span>
<span class="text-zinc-700 dark:text-zinc-200">{{ $this->quantity($result->balanceMilli, $result->unit) }}</span>
</button>
</li>
@endforeach
@@ -356,7 +356,7 @@ new class extends Component
@endif
@if ($this->movements === [])
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('inventory.task.none') }}</p>
<p class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('inventory.task.none') }}</p>
@else
<ul class="divide-y divide-zinc-200 text-sm dark:divide-zinc-700">
@foreach ($this->movements as $movement)
@@ -364,7 +364,7 @@ new class extends Component
<span>
<span class="font-medium">{{ $movement->itemName }}</span>
{{ $this->quantity(-$movement->quantityMilli, $movement->unit) }}
<span class="text-zinc-600 dark:text-zinc-300">
<span class="text-zinc-600 dark:text-zinc-200">
· {{ __('inventory.kinds.'.$movement->kind->value) }} · {{ $movement->userName }}, {{ $this->dateLabel($movement->recordedAt) }}
@if ($movement->reversedByMovementId !== null)
· {{ __('inventory.task.undone_mark') }}