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:
@@ -346,10 +346,10 @@ new class extends Component
|
||||
<div class="space-y-2">
|
||||
<x-page-title icon="clock">{{ $this->heading() }}</x-page-title>
|
||||
@if ($this->isReadOnly())
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('time.other_intro') }}</p>
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('time.other_intro') }}</p>
|
||||
<x-link :href="route('time.approvals')" navigate class="text-sm">{{ __('time.approval.back_to_list') }}</x-link>
|
||||
@else
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('time.intro') }}</p>
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-200">{{ __('time.intro') }}</p>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@@ -386,9 +386,9 @@ new class extends Component
|
||||
<tr wire:key="row-{{ $row->task->taskId }}" class="border-b border-zinc-200 align-top dark:border-zinc-700">
|
||||
<th scope="row" class="py-2 pr-3 text-left font-normal">
|
||||
<x-link :href="route('time.task', $row->task->taskId)" navigate class="font-medium">{{ $row->task->label() }}</x-link>
|
||||
<span class="block text-zinc-600 dark:text-zinc-300">{{ $row->task->workTypeName }}</span>
|
||||
<span class="block text-zinc-600 dark:text-zinc-200">{{ $row->task->workTypeName }}</span>
|
||||
@if ($row->task->isLocked())
|
||||
<span class="mt-1 inline-flex items-center gap-1 text-zinc-700 dark:text-zinc-300">
|
||||
<span class="mt-1 inline-flex items-center gap-1 text-zinc-700 dark:text-zinc-200">
|
||||
<x-icon name="lock-closed" class="size-4" aria-hidden="true" /> {{ __('time.locked') }}
|
||||
</span>
|
||||
@endif
|
||||
@@ -462,7 +462,7 @@ new class extends Component
|
||||
@foreach ($sheet->rows as $row)
|
||||
<li wire:key="mrow-{{ $row->task->taskId }}" class="rounded-xl border border-zinc-200 bg-white p-3 text-sm shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||
<x-link :href="route('time.task', $row->task->taskId)" navigate class="font-medium break-words">{{ $row->task->label() }}</x-link>
|
||||
<span class="block text-zinc-600 dark:text-zinc-300">{{ $row->task->workTypeName }}</span>
|
||||
<span class="block text-zinc-600 dark:text-zinc-200">{{ $row->task->workTypeName }}</span>
|
||||
|
||||
@if ($row->isApprovedOn($selectedDay))
|
||||
<p class="mt-2 inline-flex items-center gap-1">
|
||||
@@ -561,7 +561,7 @@ new class extends Component
|
||||
/>
|
||||
|
||||
@if (mb_strlen(trim($taskSearch)) >= 2)
|
||||
<p role="status" aria-live="polite" class="text-sm text-zinc-600 dark:text-zinc-300">
|
||||
<p role="status" aria-live="polite" class="text-sm text-zinc-600 dark:text-zinc-200">
|
||||
{{ trans_choice('time.add.results', count($this->searchResults), ['count' => count($this->searchResults)]) }}
|
||||
</p>
|
||||
<ul class="space-y-1">
|
||||
@@ -574,7 +574,7 @@ new class extends Component
|
||||
class="w-full rounded-md px-3 py-2 text-left text-sm 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:hover:bg-zinc-700"
|
||||
>
|
||||
<span class="font-medium">{{ $task->label() }}</span>
|
||||
<span class="text-zinc-600 dark:text-zinc-300">{{ $task->workTypeName }}</span>
|
||||
<span class="text-zinc-600 dark:text-zinc-200">{{ $task->workTypeName }}</span>
|
||||
</button>
|
||||
</li>
|
||||
@endforeach
|
||||
|
||||
Reference in New Issue
Block a user