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:
@@ -211,7 +211,7 @@ new class extends Component
|
||||
<p id="maintenance-status" tabindex="-1" role="status" aria-live="polite" class="text-sm font-medium focus:outline-none">{{ $message }}</p>
|
||||
|
||||
@if ($this->machine->counters !== [])
|
||||
<section aria-labelledby="counters-heading" class="space-y-3">
|
||||
<section aria-labelledby="counters-heading" class="card space-y-3">
|
||||
<h2 id="counters-heading" class="text-xl font-semibold">{{ __('machines.maintenance.counters') }}</h2>
|
||||
<ul class="space-y-3">
|
||||
@foreach ($this->machine->counters as $counter)
|
||||
@@ -247,14 +247,14 @@ new class extends Component
|
||||
@php($hasMaintenance = $this->machine->counters !== [] || $this->items !== [])
|
||||
|
||||
@if ($hasMaintenance || auth()->user()?->can('machines.manage'))
|
||||
<section aria-labelledby="maintenance-heading" class="space-y-3">
|
||||
<section aria-labelledby="maintenance-heading" class="card space-y-3">
|
||||
<h2 id="maintenance-heading" class="text-xl font-semibold">{{ __('machines.maintenance.items') }}</h2>
|
||||
@can('machines.manage')
|
||||
<p><x-button :href="route('machines.maintenance.create', $machineId)" wire:navigate sm icon="plus" :text="__('machines.maintenance.add')" /></p>
|
||||
@endcan
|
||||
|
||||
@if ($this->items === [])
|
||||
<p class="text-sm">{{ __('machines.maintenance.none') }}</p>
|
||||
<x-empty-state icon="cpu-chip">{{ __('machines.maintenance.none') }}</x-empty-state>
|
||||
@else
|
||||
<ul class="space-y-3">
|
||||
@foreach ($this->items as $item)
|
||||
@@ -308,7 +308,7 @@ new class extends Component
|
||||
@endif
|
||||
|
||||
@if ($hasMaintenance)
|
||||
<section aria-labelledby="history-heading" class="space-y-3">
|
||||
<section aria-labelledby="history-heading" class="card space-y-3">
|
||||
<h2 id="history-heading" class="text-xl font-semibold">{{ __('machines.maintenance.history') }}</h2>
|
||||
<div class="grid gap-3 sm:grid-cols-3">
|
||||
{{-- TallStackUI's native select does not tie its label to the control, so aria-label names it. --}}
|
||||
|
||||
Reference in New Issue
Block a user