From 9a9935098cbe66926b617e02f1a557c3ac355889 Mon Sep 17 00:00:00 2001 From: Petri Saarinen Date: Wed, 25 Nov 2026 06:12:15 +0200 Subject: [PATCH] Make job page task cards and change history collapsible Task cards on the job page start collapsed and show the title, assignee, due date and status; each opens on its own, so several can be open at once, and "Expand all" / "Collapse all" open or close them together with a status message. A card opens when focus moves into it. The change history is a disclosure panel with the number of changes, closed by default. Co-Authored-By: Claude Opus 5.5 --- .../Presentation/Livewire/⚡show.blade.php | 294 +++++++++++------- lang/fi/jobs.php | 5 + tests/Browser/JobsAccessibilityTest.php | 46 +++ 3 files changed, 239 insertions(+), 106 deletions(-) diff --git a/app/Modules/Jobs/Presentation/Livewire/⚡show.blade.php b/app/Modules/Jobs/Presentation/Livewire/⚡show.blade.php index 8fc9020..8c2e171 100644 --- a/app/Modules/Jobs/Presentation/Livewire/⚡show.blade.php +++ b/app/Modules/Jobs/Presentation/Livewire/⚡show.blade.php @@ -335,95 +335,161 @@ new class extends Component @php($canChangeStatus = Gate::allows('jobs.update-task-status', $job->id)) @php($canManageTasks = Gate::allows('jobs.manage-tasks', $job->id)) + {{-- + Task cards are disclosures: collapsed by default, each opened on its own, so several can be open at once. + "Expand all" and "Collapse all" send a tasks-expand window event that every card follows. A card also opens + when focus moves into it (e.g. the status select keeps focus after a re-render). + --}} +
+ + +

+
+