new ataxchments preview code

This commit is contained in:
Mark Gregory
2026-06-24 10:40:19 +01:00
parent a42b5787b9
commit c44b362710
17 changed files with 1071 additions and 43 deletions
+52
View File
@@ -264,3 +264,55 @@
- Hardened the attachment service to explicitly support Livewire temporary uploads as well as controller uploaded files.
- Added regression coverage for create-form upload guarding and Livewire temporary upload support.
- Preserved append-only changelog history.
- version: 1.10.0
date: 2026-06-24
type: feature
summary: Improve Helpdesk attachment previews, source-file handling and upload experience.
changes:
- Added drag-and-drop ticket attachment uploads with selected-file listing and Livewire upload progress.
- Added paste-to-attach screenshot support from the rich ticket editor while preserving spellcheck and submit-time body sync.
- Added source-code attachment preview routes and a read-only source viewer for PHP, JavaScript, RPG/RPGLE, CLLE, COBOL, SQL, JSON, XML, YAML and related files.
- Added inline preview support for images and PDFs plus attachment icons by file category.
- Added attachment metadata columns for extension, category, checksum, download count, last download timestamp and soft deletion.
- Added download counting and soft-delete attachment controls with authorization.
- Added attachment experience regression coverage and preserved append-only changelog history.
- version: 1.10.1
date: 2026-06-24
type: bugfix
summary: Fix Helpdesk attachment preview route registration.
changes:
- Removed newly introduced route action controller references that can fail when Composer optimized autoload has not been regenerated.
- Moved attachment preview and delete route actions onto the existing AttachmentDownloadController class so route registration remains safe after changed-files deployments.
- Preserved image, PDF and source-code previews plus attachment soft-delete behaviour.
- Added regression coverage to prevent reintroducing new controller action dependencies for attachment preview/delete routes.
- version: 1.10.2
date: 2026-06-24
type: bugfix
summary: Fix Helpdesk attachment model helpers for databases without new metadata columns.
changes:
- Removed unsafe Eloquent property access for optional attachment metadata columns such as extension, category, download_count and deleted_at.
- Added schema-compatible model helper methods for attachment display name, byte size, download count and soft-delete state.
- Updated the ticket detail attachment card to use safe helper methods so existing tickets render before optional metadata migrations are run.
- Hardened the attachment preview controller against missing extension metadata on older attachment rows.
- Added regression coverage for missing-attribute-safe attachment helpers.
- Preserved append-only changelog history.
- version: 1.10.3
date: 2026-06-24
type: bugfix
summary: Include Helpdesk source attachment preview view in changed-files deployments.
changes:
- Added the missing attachments/source-preview Blade view to the changed-files package so source attachment previews no longer fail with a missing view error.
- Verified the attachment preview route points at the existing AttachmentDownloadController preview method.
- Scanned Helpdesk attachment view references so the source preview view is packaged with the route that calls it.
- Preserved append-only changelog history.
- version: 1.10.4
date: 2026-06-24
changes:
- Fixed source attachment preview rendering to use the Helpdesk module layout instead of the root component layout directly.
- Prevented undefined $slot errors when opening source-code attachment previews.
- Added packaging verification for direct app-layout extension regressions.