diff --git a/Modules/Helpdesk/Resources/views/components/html-editor.blade.php b/Modules/Helpdesk/Resources/views/components/html-editor.blade.php index d7074e6d..8a16c3a1 100644 --- a/Modules/Helpdesk/Resources/views/components/html-editor.blade.php +++ b/Modules/Helpdesk/Resources/views/components/html-editor.blade.php @@ -115,9 +115,16 @@ diff --git a/Modules/Helpdesk/Resources/views/livewire/ticket-create.blade.php b/Modules/Helpdesk/Resources/views/livewire/ticket-create.blade.php index f2330b33..51ad692c 100644 --- a/Modules/Helpdesk/Resources/views/livewire/ticket-create.blade.php +++ b/Modules/Helpdesk/Resources/views/livewire/ticket-create.blade.php @@ -66,9 +66,9 @@ Subject * - + data-dusk="ticket-subject" dusk="ticket-subject" /> @error('subject')
{{ $message }}
diff --git a/Modules/Helpdesk/Resources/views/livewire/ticket-edit.blade.php b/Modules/Helpdesk/Resources/views/livewire/ticket-edit.blade.php index e74fb070..3bba2c0d 100644 --- a/Modules/Helpdesk/Resources/views/livewire/ticket-edit.blade.php +++ b/Modules/Helpdesk/Resources/views/livewire/ticket-edit.blade.php @@ -51,9 +51,9 @@ Subject * - + data-dusk="ticket-edit-subject" dusk="ticket-edit-subject" /> @error('subject'){{ $message }}
@@ -291,8 +291,13 @@{{ $message }}
diff --git a/Modules/Helpdesk/Tests/Feature/TicketCreateEditSpellcheckFilesTest.php b/Modules/Helpdesk/Tests/Feature/TicketCreateEditSpellcheckFilesTest.php new file mode 100644 index 00000000..b21463cd --- /dev/null +++ b/Modules/Helpdesk/Tests/Feature/TicketCreateEditSpellcheckFilesTest.php @@ -0,0 +1,51 @@ +assertIsString($view); + $this->assertIsString($editor); + + $this->assertStringContainsString('id="subject" type="text" spellcheck="true" lang="en-GB" autocorrect="on" autocomplete="on" autocapitalize="sentences" inputmode="text"', $view); + $this->assertStringContainsString('model="body"', $view); + $this->assertStringContainsString('editor-dusk="ticket-body-editor"', $view); + $this->assertStringContainsString('contenteditable="true"', $editor); + $this->assertStringContainsString('spellcheck="true"', $editor); + $this->assertStringContainsString('lang="en-GB"', $editor); + $this->assertStringContainsString('autocorrect="on"', $editor); + $this->assertStringContainsString('autocomplete="on"', $editor); + $this->assertStringContainsString('autocapitalize="sentences"', $editor); + $this->assertStringContainsString('data-helpdesk-spellcheck-mirror="{{ $model }}"', $editor); + } + + /** + * Ensure the edit form subject and body editor use the same spellcheck baseline as create. + */ + public function test_edit_ticket_subject_and_body_keep_native_spellcheck_hints(): void + { + $view = file_get_contents(base_path('Modules/Helpdesk/Resources/views/livewire/ticket-edit.blade.php')); + + $this->assertIsString($view); + + $this->assertStringContainsString('id="subject" type="text" spellcheck="true" lang="en-GB" autocorrect="on" autocomplete="on" autocapitalize="sentences" inputmode="text"', $view); + $this->assertStringContainsString('model="body"', $view); + $this->assertStringContainsString('editor-dusk="ticket-edit-body-editor"', $view); + $this->assertStringNotContainsString('wire:model="body" label="Details *"', $view); + } +} diff --git a/Modules/Helpdesk/changelog.yaml b/Modules/Helpdesk/changelog.yaml index 3f33b8e9..e8ca1734 100644 --- a/Modules/Helpdesk/changelog.yaml +++ b/Modules/Helpdesk/changelog.yaml @@ -561,3 +561,26 @@ - Hardened the deletion audit migration so tombstoned_at is created before deleted_by when databases missed the Lotus replication migration state. - Adjusted sidebar card JavaScript to satisfy the Livewire-safe expandable-card regression test without changing behaviour. - Preserved append-only changelog history. + +- version: 1.10.28 + date: 2026-06-25 + type: bugfix + summary: Remove Helpdesk Kanban ticket card owner and agent N+1 queries. + changes: + - Eager-loaded ticket owner and agent relationships for Kanban board cards because the view renders both names for every visible ticket. + - Eager-loaded owner and agent after Kanban status and board moves so workflow notifications and refreshed card state do not reintroduce lazy relationship access. + - Added regression coverage that enables strict lazy-loading prevention while rendering Kanban cards with owner and agent names. + - Updated module.json to keep the Helpdesk module version aligned with changelog.yaml. + - Preserved append-only changelog history. + +- version: 1.10.29 + date: 2026-06-25 + type: bugfix + summary: Restore Helpdesk ticket create and edit spellcheck fields. + changes: + - Restored native browser spellcheck, language, autocorrect, autocomplete, sentence-capitalisation and text-input hints on ticket create and edit subject fields. + - Made the ticket edit body editor use the same explicit body model and editor dusk binding pattern as the create form. + - Kept the rich contenteditable body editor as the visible spelling surface while adding matching spellcheck hints to the hidden Livewire mirror textarea. + - Added file-level regression coverage for create and edit subject/body spellcheck wiring. + - Updated module.json to keep the Helpdesk module version aligned with changelog.yaml. + - Preserved append-only changelog history. diff --git a/Modules/Helpdesk/module.json b/Modules/Helpdesk/module.json index 6c22e711..7b129dd6 100644 --- a/Modules/Helpdesk/module.json +++ b/Modules/Helpdesk/module.json @@ -23,5 +23,5 @@ "Modules\\Helpdesk\\Providers\\HelpdeskServiceProvider" ], "files": [], - "version": "1.10.26" + "version": "1.10.29" }