From f16ad3c15b84277f8115f3ae305eb7af5661e3d3 Mon Sep 17 00:00:00 2001 From: Petri Saarinen Date: Mon, 30 Nov 2026 19:42:02 +0200 Subject: [PATCH] Show the Kanban columns as a carousel on phones, enlarge time sheet text Below lg the board's columns form a snapping carousel with a strip of the neighbouring columns on both sides, previous/next stage buttons and a "Vaihe 2/7" status. A card dragged to the carousel's edge turns it to the next column in that direction, and on while held there; Sortable's own auto-scroll stays on only on desktop. In the weekly time sheet the hour fields use a 14 px normal-weight font and customer names are text-sm instead of text-xs. Co-Authored-By: Claude Opus 5.5 --- .../Presentation/Livewire/⚡board.blade.php | 107 +++++++++++++++++- .../Presentation/Livewire/⚡week.blade.php | 2 +- lang/en/jobs.php | 3 + lang/fi/jobs.php | 3 + .../components/time/sheet-section.blade.php | 10 +- tests/Browser/JobsAccessibilityTest.php | 32 ++++++ 6 files changed, 147 insertions(+), 10 deletions(-) diff --git a/app/Modules/Jobs/Presentation/Livewire/⚡board.blade.php b/app/Modules/Jobs/Presentation/Livewire/⚡board.blade.php index 3219416..98a8239 100644 --- a/app/Modules/Jobs/Presentation/Livewire/⚡board.blade.php +++ b/app/Modules/Jobs/Presentation/Livewire/⚡board.blade.php @@ -689,14 +689,111 @@ new class extends Component

{{ $statusMessage }}

- {{-- Columns: side by side from lg up (horizontal scroll), stacked on phones --}} + {{-- + Columns side by side. From lg up the board scrolls sideways; below lg + it is a carousel: one column at a time snapped to the centre, with a + strip of the neighbours on both sides. A card dragged by its handle + to the carousel's edge scrolls it (Sortable's auto-scroll), and the + previous/next buttons move between columns with the keyboard. + --}} +
+
+ +

+ +
+
-
+
@foreach ($this->columns as $columnValue => $cards) @php $column = BoardColumn::from($columnValue); @@ -710,7 +807,7 @@ new class extends Component wire:key="column-{{ $columnValue }}" aria-labelledby="column-{{ $columnValue }}-heading" style="--col-body: {{ $style['body'] }}; --col-body-dark: {{ $style['bodyDark'] }}; --col-border: {{ $style['border'] }}; --col-border-dark: {{ $style['borderDark'] }}" - class="relative flex w-full shrink-0 flex-col rounded-xl border border-(--col-border) bg-(--col-body) shadow-md transition-colors dark:border-(--col-border-dark) dark:bg-(--col-body-dark) {{ $width }}" + class="relative flex w-[85vw] shrink-0 snap-center flex-col rounded-xl sm:w-[320px] border border-(--col-border) bg-(--col-body) shadow-md transition-colors dark:border-(--col-border-dark) dark:bg-(--col-body-dark) {{ $width }}" >
$compact, 'gap-2 p-2' => ! $compact]) > @@ -815,6 +913,7 @@ new class extends Component @endforeach
+
diff --git a/app/Modules/TimeTracking/Presentation/Livewire/⚡week.blade.php b/app/Modules/TimeTracking/Presentation/Livewire/⚡week.blade.php index b15b07f..305cc7f 100644 --- a/app/Modules/TimeTracking/Presentation/Livewire/⚡week.blade.php +++ b/app/Modules/TimeTracking/Presentation/Livewire/⚡week.blade.php @@ -924,7 +924,7 @@ new class extends Component $color = new \App\Modules\Shared\Domain\ValueObjects\HexColor($customer->headerColor ?? '#374151'); @endphp
-

{{ $customer->name }}

+

{{ $customer->name }}

    @foreach ($customer->jobs as $job) @foreach ($job->rows as $row) diff --git a/lang/en/jobs.php b/lang/en/jobs.php index 8cf374e..ba19b45 100644 --- a/lang/en/jobs.php +++ b/lang/en/jobs.php @@ -204,6 +204,9 @@ return [ 'link' => 'Show as a board', 'show_list' => 'Show as a list', 'columns' => 'Kanban columns', + 'prev_column' => 'Previous stage', + 'next_column' => 'Next stage', + 'column_position' => 'Stage :current/:total: :name', 'count' => '{0} no jobs|{1} :count job|[2,*] :count jobs', 'card_count' => '{0} no cards|{1} :count card|[2,*] :count cards', 'empty' => 'No cards', diff --git a/lang/fi/jobs.php b/lang/fi/jobs.php index f31676d..90d1e2a 100644 --- a/lang/fi/jobs.php +++ b/lang/fi/jobs.php @@ -204,6 +204,9 @@ return [ 'link' => 'Näytä Kanban-näkymänä', 'show_list' => 'Näytä listana', 'columns' => 'Kanban-sarakkeet', + 'prev_column' => 'Edellinen vaihe', + 'next_column' => 'Seuraava vaihe', + 'column_position' => 'Vaihe :current/:total: :name', 'count' => '{0} ei töitä|{1} :count työ|[2,*] :count työtä', 'card_count' => '{0} ei kortteja|{1} :count kortti|[2,*] :count korttia', 'empty' => 'Ei kortteja', diff --git a/resources/views/components/time/sheet-section.blade.php b/resources/views/components/time/sheet-section.blade.php index cb80ca7..3550306 100644 --- a/resources/views/components/time/sheet-section.blade.php +++ b/resources/views/components/time/sheet-section.blade.php @@ -131,8 +131,8 @@
    - -