Give the UI an indigo look with cards, status badges and empty states

- Dark indigo header and tinted page background; the mobile main menu gets
  its own row, in the same order as the keyboard reaches it.
- Page titles with an icon chip (x-page-title, x-page, x-page-header) and
  card sections (x-panel, the card utility); x-table styled as a card with
  an indigo header row in AppServiceProvider::styleTables().
- Job and task statuses, late work, unapproved hours and stock states as
  badges with icon and text (x-status-badge, x-jobs.status,
  x-jobs.task-status), never colour alone.
- Empty lists as x-empty-state; dashboard quick link tiles, week hour bars
  and trend arrows; Kanban columns and task cards edged by status; calendar
  today column and bar accents; quick sale, reports and machine console
  restyled; signed-out pages show the app name.
- Focus rings use the primary colour in both themes (white in the header).
- Document the components in CLAUDE.md; test the status badges.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-29 10:53:10 +02:00
co-authored by Claude Opus 5.5
parent ef400054b0
commit 51b40b24fe
99 changed files with 702 additions and 388 deletions
@@ -26,7 +26,7 @@
aria-controls="profile-menu-panel"
aria-label="{{ __('layout.profile.menu', ['name' => $user->name]) }}"
data-profile-menu
class="flex items-center gap-2 rounded-md px-3 py-2 text-sm font-medium text-zinc-200 hover:bg-zinc-700 hover:text-white focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-400"
class="flex items-center gap-2 rounded-md px-3 py-2 text-sm font-medium text-zinc-200 hover:bg-white/10 hover:text-white focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
>
<x-icon name="user-circle" class="size-5" aria-hidden="true" />
<span>{{ $user->name }}</span>
@@ -37,7 +37,7 @@
id="profile-menu-panel"
x-show="open"
x-cloak
class="z-40 mt-1 w-72 max-w-[calc(100vw-2rem)] space-y-4 rounded-md border border-zinc-600 bg-zinc-800 p-4 text-sm text-zinc-100 shadow-lg sm:absolute sm:end-0"
class="z-40 mt-1 w-72 max-w-[calc(100vw-2rem)] space-y-4 rounded-md border border-white/15 bg-primary-950 p-4 text-sm text-zinc-100 shadow-lg sm:absolute sm:end-0"
>
<p>
<span class="block font-semibold">{{ $user->name }}</span>
@@ -58,9 +58,9 @@
lang="{{ $locale->value }}"
aria-pressed="{{ $isCurrent ? 'true' : 'false' }}"
@class([
'flex min-h-6 items-center gap-1 rounded-md border px-3 py-1.5 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-400',
'border-zinc-200 bg-zinc-700 font-semibold text-white' => $isCurrent,
'border-zinc-500 text-zinc-200 hover:bg-zinc-700 hover:text-white' => ! $isCurrent,
'flex min-h-6 items-center gap-1 rounded-md border px-3 py-1.5 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white',
'border-white bg-white/15 font-semibold text-white' => $isCurrent,
'border-white/40 text-zinc-200 hover:bg-white/10 hover:text-white' => ! $isCurrent,
])
>
@if ($isCurrent)
@@ -77,14 +77,14 @@
<legend class="mb-2 font-semibold">{{ __('layout.profile.theme') }}</legend>
<div class="space-y-1">
@foreach (['light' => 'theme_light', 'dark' => 'theme_dark', 'system' => 'theme_system'] as $mode => $label)
<label class="flex min-h-8 w-full cursor-pointer items-center gap-2 rounded-md px-2 py-1 hover:bg-zinc-700 has-checked:bg-zinc-700 has-checked:font-semibold">
<label class="flex min-h-8 w-full cursor-pointer items-center gap-2 rounded-md px-2 py-1 hover:bg-white/10 has-checked:bg-white/15 has-checked:font-semibold">
<input
type="radio"
name="profile-theme"
value="{{ $mode }}"
x-model="mode"
data-theme-option="{{ $mode }}"
class="size-4 border-zinc-400 bg-zinc-900 text-primary-400 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-400 focus:ring-0 focus:ring-offset-0"
class="size-4 border-white/70 bg-primary-950 text-primary-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white focus:ring-0 focus:ring-offset-0"
>
{{ __('layout.profile.'.$label) }}
</label>
@@ -94,14 +94,14 @@
@can('machines.use')
<p>
<a href="{{ route('profile.pin') }}" wire:navigate class="flex min-h-6 items-center gap-2 rounded-md px-2 py-1 text-zinc-100 underline hover:bg-zinc-700 hover:no-underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-400">
<a href="{{ route('profile.pin') }}" wire:navigate class="flex min-h-6 items-center gap-2 rounded-md px-2 py-1 text-zinc-100 underline hover:bg-white/10 hover:no-underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white">
<x-icon name="key" class="size-4" aria-hidden="true" />
{{ __('users.pin.title') }}
</a>
</p>
@endcan
<form method="POST" action="{{ route('logout') }}" class="border-t border-zinc-600 pt-3">
<form method="POST" action="{{ route('logout') }}" class="border-t border-white/15 pt-3">
@csrf
<x-button submit subtle color="black" sm icon="arrow-right-start-on-rectangle" :text="__('layout.logout')" />
</form>