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:
@@ -97,20 +97,17 @@ new class extends Component
|
||||
};
|
||||
?>
|
||||
|
||||
<div class="mx-auto max-w-7xl space-y-6 p-4 sm:p-6">
|
||||
<div class="flex flex-wrap items-center justify-between gap-4">
|
||||
<div class="flex flex-wrap items-baseline gap-x-4 gap-y-1">
|
||||
<h1 class="text-2xl font-semibold">{{ __('jobs.title') }}</h1>
|
||||
<x-link :href="route('jobs.board')" navigate>{{ __('jobs.board.link') }}</x-link>
|
||||
</div>
|
||||
<x-page width="wide">
|
||||
<x-page-header :title="__('jobs.title')" icon="briefcase">
|
||||
<x-link :href="route('jobs.board')" navigate class="text-sm">{{ __('jobs.board.link') }}</x-link>
|
||||
|
||||
@can('jobs.manage')
|
||||
<div class="flex flex-wrap gap-2">
|
||||
<x-slot:actions>
|
||||
<x-button :href="route('jobs.quick')" wire:navigate subtle color="black" icon="bolt" :text="__('jobs.quick.link')" />
|
||||
<x-button :href="route('jobs.create')" wire:navigate icon="plus" :text="__('jobs.new')" />
|
||||
</div>
|
||||
</x-slot:actions>
|
||||
@endcan
|
||||
</div>
|
||||
</x-page-header>
|
||||
|
||||
@if (session('status'))
|
||||
<x-alert role="status" color="green" light icon="check-circle" :text="session('status')" />
|
||||
@@ -120,7 +117,7 @@ new class extends Component
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('jobs.list.subcontractor_note') }}</p>
|
||||
@endif
|
||||
|
||||
<div class="grid gap-4 md:grid-cols-2 xl:grid-cols-4">
|
||||
<div class="grid gap-4 rounded-xl border border-zinc-200 bg-white p-4 shadow-sm md:grid-cols-2 xl:grid-cols-4 dark:border-zinc-700 dark:bg-zinc-900">
|
||||
<div class="md:col-span-2 xl:col-span-4">
|
||||
<x-input
|
||||
wire:model.live.debounce.300ms="search"
|
||||
@@ -169,7 +166,7 @@ new class extends Component
|
||||
</p>
|
||||
|
||||
@if ($this->jobs->total() === 0)
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('jobs.list.empty') }}</p>
|
||||
<x-empty-state icon="briefcase">{{ __('jobs.list.empty') }}</x-empty-state>
|
||||
@else
|
||||
<x-table :headers="$this->headers()" :rows="$this->jobs" paginate>
|
||||
@interact('column_number', $job)
|
||||
@@ -181,7 +178,7 @@ new class extends Component
|
||||
@endinteract
|
||||
|
||||
@interact('column_status', $job)
|
||||
{{ __('jobs.statuses.'.$job->status->value) }}
|
||||
<x-jobs.status :status="$job->status" />
|
||||
@endinteract
|
||||
|
||||
@interact('column_priority', $job)
|
||||
@@ -193,4 +190,4 @@ new class extends Component
|
||||
@endinteract
|
||||
</x-table>
|
||||
@endif
|
||||
</div>
|
||||
</x-page>
|
||||
|
||||
Reference in New Issue
Block a user