From a9764122ba9083361b34682ec04f55288330d541 Mon Sep 17 00:00:00 2001 From: Mark Gregory Date: Wed, 17 Jun 2026 11:42:37 +0100 Subject: [PATCH] ui updates for ticket layout --- .../views/livewire/ticket-show.blade.php | 191 +++++++++++++++++- Modules/Helpdesk/changelog.yaml | 12 ++ Modules/Helpdesk/module.json | 2 +- resources/views/layouts/app.blade.php | 7 +- 4 files changed, 205 insertions(+), 7 deletions(-) diff --git a/Modules/Helpdesk/Resources/views/livewire/ticket-show.blade.php b/Modules/Helpdesk/Resources/views/livewire/ticket-show.blade.php index 49cdbab5..f466a1d1 100644 --- a/Modules/Helpdesk/Resources/views/livewire/ticket-show.blade.php +++ b/Modules/Helpdesk/Resources/views/livewire/ticket-show.blade.php @@ -1,7 +1,3 @@ -@vite([ - 'resources/css/app.css', - 'resources/js/app.js', - ]) @php $currentUser = auth()->user(); $currentCompany = $currentUser?->company; @@ -10,6 +6,191 @@ || \Illuminate\Support\Str::contains(\Illuminate\Support\Str::lower((string) ($currentCompany?->name ?? '')), 'mpba'); $visibleCommentCount = $ticket->comments->count(); @endphp + +
@@ -61,7 +242,7 @@
-
+
{!! $ticket->body !!}
diff --git a/Modules/Helpdesk/changelog.yaml b/Modules/Helpdesk/changelog.yaml index f43c7698..bfdecc0c 100644 --- a/Modules/Helpdesk/changelog.yaml +++ b/Modules/Helpdesk/changelog.yaml @@ -258,3 +258,15 @@ versions: - "Reworked the conversation header with consistent professional spacing while keeping the conversation fully collapsed by default." - "Reworked the Add reply response-document header and expanded the composer controls and rich text editor height for a less squashed professional layout." - "Kept module.json version in sync with changelog.yaml." + + +- version: 1.7.3 + date: 2026-06-17 + type: fixed + summary: "Hardened Helpdesk ticket detail rendering, removed the missing module Vite manifest failure, and applied professional unsquashed document styling." + changes: + - "Guarded the Helpdesk module Vite include so missing public/build/helpdesk/manifest.json no longer causes a 500 error on ticket pages." + - "Removed the duplicate ticket-show Vite call and kept the ticket page usable without a module-specific asset build." + - "Added page-local professional Helpdesk document styling so ticket document, conversation, and Add reply sections have balanced spacing, smaller header icons, non-squashed body areas, and readable editor controls even before module assets are rebuilt." + - "Kept the conversation collapsed by default while preserving the Lotus Notes-style document response workflow." + - "Kept module.json version in sync with changelog.yaml." diff --git a/Modules/Helpdesk/module.json b/Modules/Helpdesk/module.json index 1ae95f13..1a4ff24f 100644 --- a/Modules/Helpdesk/module.json +++ b/Modules/Helpdesk/module.json @@ -22,5 +22,5 @@ "Modules\\Helpdesk\\Providers\\HelpdeskServiceProvider" ], "files": [], - "version": "1.7.2" + "version": "1.7.3" } diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index ed74c843..18d166fc 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -1,9 +1,14 @@ -@if (request()->routeIs('helpdesk.*')) +@php + $helpdeskManifestPath = public_path('build/helpdesk/manifest.json'); +@endphp + +@if (request()->routeIs('helpdesk.*') && file_exists($helpdeskManifestPath)) @vite([ 'Resources/assets/js/app.js', 'Resources/assets/css/app.css', ], 'build/helpdesk') @endif + {{ $slot }}