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
@@ -153,14 +153,12 @@ new class extends Component
@php($canMove = Gate::allows('jobs.manage'))
<div class="mx-auto max-w-[120rem] space-y-6 p-4 sm:p-6">
<div class="flex flex-wrap items-center justify-between gap-4">
<h1 class="text-2xl font-semibold">{{ __('jobs.board.title') }}</h1>
<x-page width="full">
<x-page-header :title="__('jobs.board.title')" icon="view-columns">
<x-link :href="route('jobs.index')" navigate class="text-sm">{{ __('jobs.board.show_list') }}</x-link>
</x-page-header>
<x-link :href="route('jobs.index')" navigate>{{ __('jobs.board.show_list') }}</x-link>
</div>
<div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
<div class="grid gap-4 rounded-xl border border-zinc-200 bg-white p-4 shadow-sm sm:grid-cols-2 lg:grid-cols-3 dark:border-zinc-700 dark:bg-zinc-900">
{{-- TallStackUI's native select does not tie its label to the control, so aria-label names it. --}}
<x-select.native wire:model.live="priority" :label="__('jobs.fields.priority')" :aria-label="__('jobs.fields.priority')">
<option value="">{{ __('jobs.list.all_priorities') }}</option>
@@ -205,11 +203,18 @@ new class extends Component
id="column-{{ $status }}"
wire:key="column-{{ $status }}"
aria-labelledby="column-{{ $status }}-heading"
class="flex min-w-0 flex-col rounded-lg border border-zinc-300 bg-zinc-200 p-3 dark:border-zinc-700 dark:bg-zinc-950"
@class(['flex min-w-0 flex-col rounded-xl border border-t-4 border-zinc-200 bg-zinc-100 p-3 dark:border-zinc-700 dark:bg-zinc-900/60', match ($status) {
'quote_request' => 'border-t-violet-500',
'order', 'invoiced' => 'border-t-sky-500',
'in_production' => 'border-t-primary-500',
'on_hold' => 'border-t-amber-500',
'done', 'billed' => 'border-t-emerald-500',
default => 'border-t-zinc-400',
}])
>
<h2 id="column-{{ $status }}-heading" class="mb-3 flex items-baseline justify-between gap-2 text-base font-semibold">
{{ __('jobs.statuses.'.$status) }}
<span class="text-sm font-normal">{{ trans_choice('jobs.board.count', count($jobs), ['count' => count($jobs)]) }}</span>
<h2 id="column-{{ $status }}-heading" class="mb-3 flex flex-wrap items-center justify-between gap-2 text-base font-semibold">
<x-jobs.status :status="$status" class="px-2.5 py-1 text-sm" />
<span class="text-sm font-normal text-zinc-700 dark:text-zinc-200">{{ trans_choice('jobs.board.count', count($jobs), ['count' => count($jobs)]) }}</span>
</h2>
<ul
@@ -224,7 +229,7 @@ new class extends Component
<li wire:key="job-card-{{ $job->id }}" @if ($canMove) wire:sort:item="{{ $job->id }}" @endif>
<article
aria-labelledby="job-card-{{ $job->id }}-title"
class="relative space-y-2 rounded-md border border-zinc-200 bg-white p-3 text-sm shadow-sm dark:border-zinc-600 dark:bg-zinc-900"
@class(['relative space-y-2 rounded-lg border border-zinc-200 bg-white p-3 text-sm shadow-sm transition hover:shadow-md dark:border-zinc-600 dark:bg-zinc-800', 'border-l-4 border-l-red-600 dark:border-l-red-400' => in_array($job->priority->value, ['urgent', 'immediate'], true)])
>
@if ($canMove)
<x-icon name="bars-3" class="absolute top-3 right-3 size-5 cursor-grab text-zinc-500 dark:text-zinc-400" aria-hidden="true" />
@@ -264,10 +269,10 @@ new class extends Component
</article>
</li>
@empty
<li wire:key="empty-{{ $status }}" class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('jobs.board.empty') }}</li>
<li wire:key="empty-{{ $status }}" class="rounded-lg border border-dashed border-zinc-300 p-3 text-center text-sm text-zinc-700 dark:border-zinc-600 dark:text-zinc-200">{{ __('jobs.board.empty') }}</li>
@endforelse
</ul>
</section>
@endforeach
</div>
</div>
</x-page>
@@ -508,11 +508,11 @@ new class extends Component
<div class="mx-auto max-w-[120rem] space-y-6 p-4 sm:p-6">
<div class="space-y-1">
<h1 class="text-2xl font-semibold">{{ __('jobs.calendar.title') }}</h1>
<x-page-title icon="calendar-days">{{ __('jobs.calendar.title') }}</x-page-title>
<p class="max-w-3xl text-sm text-zinc-600 dark:text-zinc-300">{{ __('jobs.calendar.intro') }}</p>
</div>
<div class="flex flex-wrap items-end gap-4">
<div class="card flex flex-wrap items-end gap-4">
<div class="flex flex-wrap gap-2">
<x-button subtle color="black" icon="chevron-left" wire:click="showPrevious" :text="__('jobs.calendar.previous')" />
<x-button subtle color="black" wire:click="showToday" :text="__('jobs.calendar.today')" />
@@ -540,7 +540,7 @@ new class extends Component
<p role="status" aria-live="polite" class="min-h-5 text-sm font-medium">{{ $statusMessage }}</p>
<section aria-labelledby="calendar-range-heading" class="space-y-3">
<section aria-labelledby="calendar-range-heading" class="card space-y-3">
<h2 id="calendar-range-heading" class="text-lg font-semibold">
{{ __('jobs.calendar.range', ['from' => $this->shortDate($days[0]), 'to' => $this->shortDate($days[count($days) - 1])]) }}
</h2>
@@ -563,6 +563,7 @@ new class extends Component
@class([
'border-l border-zinc-200 px-1 py-2 text-center dark:border-zinc-700',
'bg-zinc-200 dark:bg-zinc-950' => $this->isDayOff($day),
'border-b-4 border-b-primary-600 bg-primary-50 text-primary-900 dark:border-b-primary-300 dark:bg-primary-950 dark:text-primary-100' => $day === now()->format('Y-m-d'),
])
>
<div @class(['font-semibold' => $day === now()->format('Y-m-d')])>{{ $this->dayLabel($day) }}</div>
@@ -606,7 +607,7 @@ new class extends Component
wire:key="cell-{{ $rowKey }}-{{ $day }}"
data-calendar-day="{{ $day }}"
data-calendar-user="{{ $row->userId ?? '' }}"
x-bind:class="isTarget('{{ $day }}', '{{ $row->userId ?? '' }}') && 'outline-2 -outline-offset-2 outline-blue-700 dark:outline-blue-300'"
x-bind:class="isTarget('{{ $day }}', '{{ $row->userId ?? '' }}') && 'outline-2 -outline-offset-2 outline-primary-600 dark:outline-primary-300'"
@class([
'min-h-12 border-l border-zinc-200 dark:border-zinc-700',
'bg-amber-100 dark:bg-amber-950' => $overloaded,
@@ -651,10 +652,10 @@ new class extends Component
x-on:pointerdown="begin($event, 'move', @js(['task' => $bar->task->taskId, 'job' => $bar->task->jobId, 'user' => $bar->userId, 'from' => $bar->from, 'to' => $bar->to]))"
x-on:click="clickBar($el, 'bar-info-{{ $bar->key() }}', () => $wire.openDialog({{ $bar->task->taskId }}, {{ $bar->userId ?? 'null' }}))"
@class([
'relative z-10 mx-0.5 my-1 flex min-w-0 touch-none flex-col justify-center overflow-hidden border px-2 text-left text-xs leading-tight select-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:focus-visible:outline-blue-300',
'relative z-10 mx-0.5 my-1 flex min-w-0 touch-none flex-col justify-center overflow-hidden border px-2 text-left text-xs leading-tight select-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300',
'cursor-grab' => $canManage,
'border-primary-300 bg-primary-100 text-primary-950 dark:border-primary-600 dark:bg-primary-900 dark:text-white' => $bar->task->status !== TaskStatus::Done && ! $bar->late,
'border-red-600 bg-red-100 text-red-950 dark:border-red-400 dark:bg-red-950 dark:text-white' => $bar->late,
'border-primary-300 border-l-4 border-l-primary-600 bg-primary-100 text-primary-950 shadow-sm dark:border-primary-600 dark:border-l-primary-300 dark:bg-primary-900 dark:text-white' => $bar->task->status !== TaskStatus::Done && ! $bar->late,
'border-red-600 border-l-4 bg-red-100 text-red-950 shadow-sm dark:border-red-400 dark:bg-red-950 dark:text-white' => $bar->late,
'border-zinc-300 bg-zinc-100 text-zinc-800 dark:border-zinc-600 dark:bg-zinc-700 dark:text-zinc-100' => $bar->task->status === TaskStatus::Done,
'rounded-l-md' => $bar->from >= $days[0],
'rounded-r-md' => $bar->to <= $days[count($days) - 1],
@@ -760,7 +761,7 @@ new class extends Component
id="agenda-bar-{{ $bar->key() }}"
wire:click="openDialog({{ $bar->task->taskId }}, {{ $bar->userId ?? 'null' }})"
@class([
'flex w-full flex-col gap-1 rounded-md border p-2 text-left text-sm focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:focus-visible:outline-blue-300',
'flex w-full flex-col gap-1 rounded-md border p-2 text-left text-sm focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300',
'border-zinc-300 dark:border-zinc-600' => ! $bar->late,
'border-red-600 border-l-4 bg-red-50 dark:border-red-400 dark:bg-red-950' => $bar->late,
])
@@ -786,11 +787,11 @@ new class extends Component
</div>
</section>
<section aria-labelledby="unscheduled-heading" class="space-y-3" x-data>
<section aria-labelledby="unscheduled-heading" class="card space-y-3" x-data>
<h2 id="unscheduled-heading" class="text-lg font-semibold">{{ __('jobs.calendar.unscheduled') }}</h2>
@if ($this->unscheduled === [])
<p class="text-sm">{{ __('jobs.calendar.unscheduled_none') }}</p>
<x-empty-state icon="calendar-days">{{ __('jobs.calendar.unscheduled_none') }}</x-empty-state>
@else
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('jobs.calendar.unscheduled_intro') }}</p>
@@ -282,11 +282,11 @@ new class extends Component
@endphp
<div class="mx-auto max-w-3xl space-y-6 p-4 sm:p-6">
<h1 class="text-2xl font-semibold">{{ $this->heading() }}</h1>
<x-page-title icon="briefcase">{{ $this->heading() }}</x-page-title>
<p role="status" aria-live="polite" class="text-sm">{{ $statusMessage }}</p>
<form wire:submit="save" class="space-y-8" novalidate>
<form wire:submit="save" class="card space-y-8" novalidate>
<fieldset class="space-y-6">
<legend class="text-lg font-semibold">{{ __('jobs.sections.basics') }}</legend>
@@ -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>
@@ -103,7 +103,7 @@ new class extends Component
<div class="mx-auto max-w-lg space-y-6 p-4 sm:p-6">
<div class="space-y-1">
<h1 class="text-2xl font-semibold">{{ __('jobs.quick.title') }}</h1>
<x-page-title icon="bolt">{{ __('jobs.quick.title') }}</x-page-title>
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('jobs.quick.intro') }}</p>
</div>
@@ -124,7 +124,7 @@ new class extends Component
<p role="status" aria-live="polite" class="text-sm">{{ $statusMessage }}</p>
<form wire:submit="save" class="space-y-6" novalidate>
<form wire:submit="save" class="card space-y-6" novalidate>
<x-jobs.customer-picker
:customer-id="$form->customer_id"
:customer-name="$customerName"
@@ -205,15 +205,20 @@ new class extends Component
@php($job = $this->job)
<div class="mx-auto max-w-5xl space-y-8 p-4 sm:p-6">
<x-page>
<div class="space-y-4">
<div class="flex flex-wrap items-start justify-between gap-4">
<h1 class="text-2xl font-semibold break-words">
<span class="whitespace-nowrap">{{ $job->number }}</span> {{ $job->name }}
</h1>
<div class="min-w-0 flex-1 space-y-1">
<a href="{{ route('jobs.index') }}" wire:navigate class="inline-flex min-h-6 items-center gap-1 rounded-md text-sm font-medium text-primary-700 underline-offset-4 hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:text-primary-300 dark:focus-visible:outline-primary-300">
<x-icon name="arrow-left" class="size-4" aria-hidden="true" />{{ __('jobs.title') }}
</a>
<h1 class="text-2xl font-semibold break-words">
<span class="whitespace-nowrap text-primary-700 dark:text-primary-300">{{ $job->number }}</span> {{ $job->name }}
</h1>
</div>
@can('jobs.manage')
<x-button :href="route('jobs.edit', $job->id)" wire:navigate subtle color="black" icon="pencil" :text="__('jobs.edit')" />
<x-button :href="route('jobs.edit', $job->id)" wire:navigate icon="pencil" :text="__('jobs.edit')" />
@endcan
</div>
@@ -221,14 +226,14 @@ new class extends Component
<x-alert role="status" color="green" light icon="check-circle" :text="session('status')" />
@endif
<dl class="flex flex-wrap gap-x-8 gap-y-2 text-sm">
<div class="flex gap-2"><dt class="font-medium">{{ __('jobs.fields.status') }}:</dt><dd>{{ __('jobs.statuses.'.$job->status->value) }}</dd></div>
<dl class="card flex flex-wrap items-center gap-x-8 gap-y-2 py-3 text-sm sm:py-3">
<div class="flex items-center gap-2"><dt class="font-medium">{{ __('jobs.fields.status') }}:</dt><dd><x-jobs.status :status="$job->status" class="text-sm" /></dd></div>
<div class="flex gap-2"><dt class="font-medium">{{ __('jobs.fields.priority') }}:</dt><dd><x-jobs.priority :priority="$job->priority" /></dd></div>
<div class="flex gap-2"><dt class="font-medium">{{ __('jobs.fields.due_on') }}:</dt><dd><x-jobs.due-date :date="$job->dueOn" :status="$job->status" /></dd></div>
</dl>
</div>
<section aria-labelledby="basics-heading" class="space-y-3">
<section aria-labelledby="basics-heading" class="card space-y-3">
<h2 id="basics-heading" class="text-xl font-semibold">{{ __('jobs.sections.basics') }}</h2>
<dl class="grid gap-x-6 gap-y-2 text-sm sm:grid-cols-[max-content_1fr]">
@@ -291,7 +296,8 @@ new class extends Component
@endif
</section>
<section aria-labelledby="schedule-heading" class="space-y-3">
<div class="grid gap-6 md:grid-cols-2">
<section aria-labelledby="schedule-heading" class="card space-y-3">
<h2 id="schedule-heading" class="text-xl font-semibold">{{ __('jobs.sections.schedule') }}</h2>
<dl class="grid gap-x-6 gap-y-2 text-sm sm:grid-cols-[max-content_1fr]">
@@ -306,7 +312,7 @@ new class extends Component
</dl>
</section>
<section aria-labelledby="members-heading" class="space-y-3">
<section aria-labelledby="members-heading" class="card space-y-3">
<h2 id="members-heading" class="text-xl font-semibold">{{ __('jobs.sections.members') }}</h2>
<dl class="grid gap-x-6 gap-y-2 text-sm sm:grid-cols-[max-content_1fr]">
@@ -325,6 +331,8 @@ new class extends Component
</dl>
</section>
</div>
<section id="tasks" aria-labelledby="tasks-heading" class="space-y-4">
<div class="flex flex-wrap items-center justify-between gap-4">
<h2 id="tasks-heading" tabindex="-1" class="text-xl font-semibold focus:outline-none">{{ __('jobs.tasks.title') }}</h2>
@@ -348,7 +356,7 @@ new class extends Component
<p role="status" aria-live="polite" class="text-sm">{{ $taskStatusMessage }}</p>
@if ($this->tasks === [])
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('jobs.tasks.empty') }}</p>
<x-empty-state icon="clipboard-document-list">{{ __('jobs.tasks.empty') }}</x-empty-state>
@else
@php($canChangeStatus = Gate::allows('jobs.update-task-status', $job->id))
@php($canManageTasks = Gate::allows('jobs.manage-tasks', $job->id))
@@ -395,7 +403,7 @@ new class extends Component
x-on:tasks-expand.window="open = $event.detail"
x-on:focusin="if ($event.target.closest('[data-task-details]')) open = true"
>
<article aria-labelledby="task-{{ $task->id }}-title" class="rounded-lg border border-zinc-200 bg-white text-sm dark:border-zinc-700 dark:bg-zinc-900">
<article aria-labelledby="task-{{ $task->id }}-title" @class(['rounded-xl border border-l-4 border-zinc-200 bg-white text-sm shadow-sm dark:border-zinc-700 dark:bg-zinc-900', match ($task->status->value) { 'in_progress' => 'border-l-primary-500', 'in_review' => 'border-l-amber-500', 'done' => 'border-l-emerald-500', default => 'border-l-zinc-400' }])>
<div class="flex flex-col gap-2 p-3 sm:flex-row sm:flex-wrap sm:items-center sm:gap-x-6">
<h3 id="task-{{ $task->id }}-title" class="min-w-0 text-base font-medium sm:flex-1">
<button
@@ -405,7 +413,7 @@ new class extends Component
x-bind:aria-expanded="open.toString()"
aria-expanded="false"
aria-controls="task-{{ $task->id }}-details"
class="flex min-h-6 w-full items-start gap-2 rounded-md text-left focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:focus-visible:outline-blue-400"
class="flex min-h-6 w-full items-start gap-2 rounded-md text-left focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300"
>
<x-icon name="chevron-right" class="mt-0.5 size-5 shrink-0 transition-transform" x-bind:class="{ 'rotate-90': open }" aria-hidden="true" />
<span class="min-w-0 break-words">{{ $task->title }}</span>
@@ -423,7 +431,7 @@ new class extends Component
</div>
<div class="flex flex-wrap gap-x-1">
<dt class="font-medium">{{ __('jobs.tasks.fields.status') }}:</dt>
<dd>{{ __('jobs.tasks.statuses.'.$task->status->value) }}</dd>
<dd><x-jobs.task-status :status="$task->status" /></dd>
</div>
@if ($task->commentCount > 0)
<div class="flex flex-wrap gap-x-1">
@@ -570,13 +578,13 @@ new class extends Component
</section>
@can('expenses.record')
<section aria-labelledby="expenses-heading" class="space-y-3">
<section aria-labelledby="expenses-heading" class="card space-y-3">
<h2 id="expenses-heading" class="text-xl font-semibold">{{ __('jobs.sections.expenses') }}</h2>
<x-link :href="route('expenses.job', $job->id)" navigate>{{ __('expenses.job_page.link') }}</x-link>
</section>
@endcan
<section aria-labelledby="links-heading" class="space-y-3">
<section aria-labelledby="links-heading" class="card space-y-3">
<h2 id="links-heading" class="text-xl font-semibold">{{ __('jobs.sections.links') }}</h2>
@if ($job->links === [])
@@ -594,12 +602,12 @@ new class extends Component
@endif
</section>
<section aria-labelledby="instructions-heading" class="space-y-3">
<section aria-labelledby="instructions-heading" class="card space-y-3">
<h2 id="instructions-heading" class="text-xl font-semibold">{{ __('jobs.sections.instructions') }}</h2>
<p class="whitespace-pre-line text-sm">{{ $job->instructions ?? __('jobs.not_set') }}</p>
</section>
<section aria-labelledby="history-heading" class="space-y-3" x-data="{ open: false }">
<section aria-labelledby="history-heading" class="card space-y-3" x-data="{ open: false }">
<h2 id="history-heading" class="text-xl font-semibold">
<button
type="button"
@@ -608,7 +616,7 @@ new class extends Component
x-bind:aria-expanded="open.toString()"
aria-expanded="false"
aria-controls="history-panel"
class="flex min-h-6 items-center gap-2 rounded-md text-left focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:focus-visible:outline-blue-400"
class="flex min-h-6 items-center gap-2 rounded-md text-left focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300"
>
<x-icon name="chevron-right" class="size-5 shrink-0 transition-transform" x-bind:class="{ 'rotate-90': open }" aria-hidden="true" />
{{ __('jobs.sections.history') }}
@@ -644,4 +652,4 @@ new class extends Component
@endif
</div>
</section>
</div>
</x-page>
@@ -297,7 +297,7 @@ new class extends Component
id="checklist-item-{{ $item->id }}"
wire:change="check({{ $item->id }}, $event.target.checked)"
@checked($item->done)
class="mt-0.5 size-4 shrink-0 rounded border-zinc-400 text-primary-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:border-zinc-500 dark:bg-zinc-800"
class="mt-0.5 size-4 shrink-0 rounded border-zinc-400 text-primary-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300 dark:border-zinc-500 dark:bg-zinc-800"
/>
<span @class(['line-through' => $item->done])>{{ $item->text }}</span>
</label>
@@ -171,14 +171,14 @@ new class extends Component
<div class="mx-auto max-w-2xl space-y-6 p-4 sm:p-6">
<div class="space-y-1">
<h1 class="text-2xl font-semibold">{{ $this->heading() }}</h1>
<x-page-title icon="clipboard-document-list">{{ $this->heading() }}</x-page-title>
<p class="text-sm text-zinc-600 dark:text-zinc-300">
{{ __('jobs.tasks.job_label') }}:
<x-link :href="route('jobs.show', $jobId)" navigate>{{ $jobTitle }}</x-link>
</p>
</div>
<form wire:submit="save" class="space-y-6" novalidate>
<form wire:submit="save" class="card space-y-6" novalidate>
<x-input wire:model="form.title" :label="__('jobs.tasks.fields.title')" autocomplete="off" required />
{{-- TallStackUI's native select does not tie its label to the control, so aria-label names it. --}}
@@ -351,7 +351,7 @@ new class extends Component
href="{{ $fullUrl }}"
target="_blank"
rel="noopener"
class="block rounded-md focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:focus-visible:outline-blue-400"
class="block rounded-md focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300"
>
<img
src="{{ route('jobs.tasks.images.show', [$jobId, $taskId, $image->id, 'thumbnail']) }}"
@@ -386,7 +386,7 @@ new class extends Component
<a
href="{{ $fullUrl }}?download=1"
aria-label="{{ __('jobs.tasks.images.download_named', ['image' => $alt]) }}"
class="inline-flex min-h-6 items-center rounded-md px-2 py-1 text-sm font-medium text-zinc-900 underline hover:no-underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:text-zinc-100 dark:focus-visible:outline-blue-400"
class="inline-flex min-h-6 items-center rounded-md px-2 py-1 text-sm font-medium text-zinc-900 underline hover:no-underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300 dark:text-zinc-100"
>{{ __('jobs.tasks.images.download') }}</a>
@if ($canUpload && $this->isOwn($image))
@@ -431,7 +431,7 @@ new class extends Component
accept="image/jpeg,image/png,image/webp,image/gif"
aria-describedby="image-new-{{ $taskId }}-hint @error('photo') image-new-{{ $taskId }}-error @enderror"
@error('photo') aria-invalid="true" @enderror
class="block w-full max-w-md rounded-md text-sm text-zinc-900 file:me-3 file:min-h-9 file:cursor-pointer file:rounded-md file:border-0 file:bg-zinc-200 file:px-3 file:py-2 file:font-medium file:text-zinc-900 hover:file:bg-zinc-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:text-zinc-100 dark:file:bg-zinc-700 dark:file:text-zinc-100 dark:hover:file:bg-zinc-600 dark:focus-visible:outline-blue-400"
class="block w-full max-w-md rounded-md text-sm text-zinc-900 file:me-3 file:min-h-9 file:cursor-pointer file:rounded-md file:border-0 file:bg-zinc-200 file:px-3 file:py-2 file:font-medium file:text-zinc-900 hover:file:bg-zinc-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300 dark:text-zinc-100 dark:file:bg-zinc-700 dark:file:text-zinc-100 dark:hover:file:bg-zinc-600"
/>
@error('photo')
<p id="image-new-{{ $taskId }}-error" class="text-sm text-red-700 dark:text-red-400">{{ $message }}</p>
@@ -214,7 +214,7 @@ new class extends Component
<div class="mx-auto max-w-2xl space-y-6 p-4 sm:p-6">
<div class="space-y-1">
<h1 class="text-2xl font-semibold">{{ __('jobs.tasks.from_template.title') }}</h1>
<x-page-title icon="queue-list">{{ __('jobs.tasks.from_template.title') }}</x-page-title>
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('jobs.tasks.job_label') }}: {{ $jobTitle }}</p>
</div>
@@ -225,7 +225,7 @@ new class extends Component
<p role="alert" class="text-sm text-red-700 dark:text-red-400">{{ $message }}</p>
@enderror
<p>{{ __('jobs.tasks.from_template.none') }}</p>
<x-empty-state icon="queue-list">{{ __('jobs.tasks.from_template.none') }}</x-empty-state>
<x-button :href="route('jobs.show', $jobId)" wire:navigate subtle color="black" :text="__('jobs.tasks.from_template.back')" />
@else