Darken the dark canvas, add customer colours, the ongoing status and the board model
- Dark theme page background is #5a5e60; text on it is lifted to zinc-200 / primary-100 and TallStackUI's dark labels, hints and checkbox labels are lightened so everything stays at 4.5:1. - Shared HexColor picks white or black text by the higher WCAG contrast; a native-dialog colour picker and a large work dialog component. - Customers get a header colour (customers.header_color), set on the customer page. - New job status Jatkuvat / Kausi (ongoing): open, never late, billed monthly like running jobs. - Kanban model: board columns and views, urgent threshold, per-user board preferences (density, column colours and sort), card positions, tasks of continuing jobs pinned to the board, MoveBoardCard and board queries with logged hours from TimeTracking. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -655,7 +655,7 @@ new #[Layout('layouts.console')] class extends Component
|
||||
@if ($lateMaintenance !== [])
|
||||
<div class="space-y-1 rounded-xl border-2 border-red-700 bg-red-50 p-3 dark:border-red-400 dark:bg-red-400/10">
|
||||
@foreach ($lateMaintenance as $late)
|
||||
<p wire:key="late-{{ $late->id }}" class="flex items-center gap-2 font-semibold text-red-700 dark:text-red-400">
|
||||
<p wire:key="late-{{ $late->id }}" class="flex items-center gap-2 font-semibold text-red-700 dark:text-red-100">
|
||||
<x-icon name="exclamation-triangle" class="size-6 shrink-0" aria-hidden="true" />
|
||||
{{ __('machines.console.maintenance_late', ['name' => $late->name]) }}
|
||||
</p>
|
||||
|
||||
@@ -274,7 +274,7 @@ new class extends Component
|
||||
|
||||
<fieldset class="space-y-3">
|
||||
<legend class="text-lg font-semibold">{{ __('machines.form.counters') }}</legend>
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('machines.form.counters_hint') }}</p>
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('machines.form.counters_hint') }}</p>
|
||||
@error('counters')
|
||||
<p role="alert" class="text-sm text-red-700 dark:text-red-400">{{ $message }}</p>
|
||||
@enderror
|
||||
|
||||
@@ -87,7 +87,7 @@ new class extends Component
|
||||
<div class="mx-auto max-w-5xl space-y-6 p-4 sm:p-6">
|
||||
<div class="space-y-2">
|
||||
<x-page-title icon="cpu-chip">{{ __('machines.index.title') }}</x-page-title>
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('machines.index.intro') }}</p>
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('machines.index.intro') }}</p>
|
||||
@can('machines.manage')
|
||||
<p><x-button :href="route('machines.create')" wire:navigate icon="plus" :text="__('machines.index.new')" /></p>
|
||||
@endcan
|
||||
@@ -118,7 +118,7 @@ new class extends Component
|
||||
<p class="font-medium break-words">
|
||||
<x-link :href="route('machines.show', $machine->id)" navigate :aria-label="__('machines.index.open_named', ['name' => $machine->name])">{{ $machine->name }}</x-link>
|
||||
</p>
|
||||
<p class="text-sm text-zinc-700 dark:text-zinc-300">
|
||||
<p class="text-sm text-zinc-700 dark:text-zinc-200">
|
||||
{{ __('machines.types.'.$machine->type->value) }}
|
||||
@if ($machine->responsibleName !== null)
|
||||
· {{ __('machines.index.responsible', ['name' => $machine->responsibleName]) }}
|
||||
|
||||
@@ -194,7 +194,7 @@ new class extends Component
|
||||
|
||||
<fieldset class="space-y-3">
|
||||
<legend class="font-semibold">{{ __('machines.maintenance.counter_interval') }}</legend>
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('machines.maintenance.counter_interval_hint') }}</p>
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('machines.maintenance.counter_interval_hint') }}</p>
|
||||
@if ($this->machine->counters === [])
|
||||
<p class="text-sm">{{ __('machines.maintenance.no_counters') }}</p>
|
||||
@else
|
||||
@@ -215,7 +215,7 @@ new class extends Component
|
||||
|
||||
<fieldset class="space-y-3">
|
||||
<legend class="font-semibold">{{ __('machines.maintenance.time_interval') }}</legend>
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('machines.maintenance.time_interval_hint') }}</p>
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('machines.maintenance.time_interval_hint') }}</p>
|
||||
<div class="grid gap-4 sm:grid-cols-2">
|
||||
<x-select.native id="item-period" wire:model.live="period" :label="__('machines.maintenance.period')" :aria-label="__('machines.maintenance.period')">
|
||||
<option value="">{{ __('machines.maintenance.no_period') }}</option>
|
||||
|
||||
@@ -266,8 +266,8 @@ new class extends Component
|
||||
<x-icon :name="$this->levelIcon($item)" class="size-4" aria-hidden="true" />
|
||||
{{ $this->levelLabel($item) }}@if ($this->stateText($item) !== ''): {{ $this->stateText($item) }}@endif
|
||||
</p>
|
||||
<p class="text-sm text-zinc-700 dark:text-zinc-300">{{ __('machines.maintenance.interval_text', ['interval' => $this->intervalText($item)]) }}</p>
|
||||
<p class="text-sm text-zinc-700 dark:text-zinc-300">
|
||||
<p class="text-sm text-zinc-700 dark:text-zinc-200">{{ __('machines.maintenance.interval_text', ['interval' => $this->intervalText($item)]) }}</p>
|
||||
<p class="text-sm text-zinc-700 dark:text-zinc-200">
|
||||
@if ($item->lastPerformedAt === null)
|
||||
{{ __('machines.maintenance.never_done') }}
|
||||
@else
|
||||
|
||||
@@ -211,7 +211,7 @@ new class extends Component
|
||||
@if ($this->isAvailable())
|
||||
<section aria-labelledby="process-heading" class="card space-y-4">
|
||||
<h2 id="process-heading" class="text-xl font-semibold">{{ __('machines.process.title') }}</h2>
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('machines.process.intro') }}</p>
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('machines.process.intro') }}</p>
|
||||
|
||||
<p role="status" aria-live="polite" class="text-sm font-medium">{{ $message }}</p>
|
||||
@error('steps')
|
||||
|
||||
@@ -314,7 +314,7 @@ new class extends Component
|
||||
<p class="font-medium break-words">{{ $this->rowTitle($row) }}</p>
|
||||
@if ($task !== null)
|
||||
<p class="text-sm">{{ $task->jobNumber }} {{ $task->jobName }} · {{ $task->customerName }}</p>
|
||||
<p class="flex flex-wrap gap-x-3 gap-y-1 text-sm text-zinc-700 dark:text-zinc-300">
|
||||
<p class="flex flex-wrap gap-x-3 gap-y-1 text-sm text-zinc-700 dark:text-zinc-200">
|
||||
@if ($task->dueOn !== null)
|
||||
<span>{{ __('machines.show.due', ['date' => $this->dateLabel($task->dueOn)]) }}</span>
|
||||
@endif
|
||||
|
||||
@@ -173,7 +173,7 @@ new class extends Component
|
||||
</p>
|
||||
@endif
|
||||
@else
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('machines.task.not_on_machine') }}</p>
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('machines.task.not_on_machine') }}</p>
|
||||
@endif
|
||||
|
||||
@if ($this->canPlan())
|
||||
|
||||
Reference in New Issue
Block a user