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:
@@ -243,7 +243,7 @@ new class extends Component
|
||||
|
||||
<div class="space-y-2">
|
||||
<p class="text-sm"><x-link :href="route('machines.index')" navigate>{{ __('machines.show.back') }}</x-link></p>
|
||||
<h1 class="text-2xl font-semibold break-words">{{ $machine->name }}</h1>
|
||||
<x-page-title icon="cpu-chip">{{ $machine->name }}</x-page-title>
|
||||
<p class="text-sm">
|
||||
{{ __('machines.types.'.$machine->type->value) }}
|
||||
· {{ __('machines.show.units', ['units' => implode(', ', $machine->serviceUnitNames)]) }}
|
||||
@@ -268,7 +268,7 @@ new class extends Component
|
||||
|
||||
<p id="work-list-status" tabindex="-1" role="status" aria-live="polite" class="text-sm font-medium focus:outline-none">{{ $message }}</p>
|
||||
|
||||
<section aria-labelledby="work-list-heading" class="space-y-4">
|
||||
<section aria-labelledby="work-list-heading" class="card space-y-4">
|
||||
<h2 id="work-list-heading" class="text-xl font-semibold">{{ __('machines.show.work_list') }}</h2>
|
||||
|
||||
<nav aria-label="{{ __('machines.show.day_navigation') }}" class="flex flex-wrap items-end gap-2">
|
||||
@@ -289,7 +289,7 @@ new class extends Component
|
||||
<button
|
||||
type="button"
|
||||
wire:click="showDate('{{ $dayLoad->day }}')"
|
||||
class="rounded-md border border-zinc-300 px-2 py-1 hover:bg-zinc-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:border-zinc-600 dark:hover:bg-zinc-700 @if ($dayLoad->day === $day) font-semibold @endif"
|
||||
class="rounded-md border border-zinc-300 px-2 py-1 hover:bg-zinc-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300 dark:border-zinc-600 dark:hover:bg-zinc-700 @if ($dayLoad->day === $day) font-semibold @endif"
|
||||
@if ($dayLoad->day === $day) aria-current="date" @endif
|
||||
>
|
||||
{{ __('machines.show.load_row', ['date' => $this->shortDay($dayLoad->day), 'rows' => trans_choice('machines.show.rows', $dayLoad->rows, ['count' => $dayLoad->rows]), 'hours' => $this->quarters($dayLoad->estimatedQuarters)]) }}
|
||||
@@ -303,7 +303,7 @@ new class extends Component
|
||||
<p class="text-sm">{{ trans_choice('machines.show.row_count', count($this->rows), ['count' => count($this->rows)]) }}</p>
|
||||
|
||||
@if ($this->rows === [])
|
||||
<p class="text-sm">{{ __('machines.show.none') }}</p>
|
||||
<x-empty-state icon="cpu-chip">{{ __('machines.show.none') }}</x-empty-state>
|
||||
@else
|
||||
<ol class="space-y-3">
|
||||
@foreach ($this->rows as $row)
|
||||
|
||||
Reference in New Issue
Block a user