From 5a482b49bbd926a77962616b9d7f9d6fc143acd2 Mon Sep 17 00:00:00 2001 From: Haylan Date: Thu, 17 Sep 2026 12:39:23 +0200 Subject: [PATCH] feat(dump): add date-range filter, sortable columns, and native date formatting to admin list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Wires the backend from/to filter into the UI via sw-filter-panel with a hand-built date-filter config (no DAL entity needed — sw-filter-panel's only external dependency, filterService, persists through the generic user_config entity, not one for the filtered resource). - Makes the datetime and sizeBytes columns sortable (ascending/descending) using the same Mixin.getByName('listing') core list pages use, which also persists sort state in the URL query string. - Replaces the ad hoc `new Date(value).toLocaleString()` with Shopware.Utils.format.date, matching the existing fileSize formatting and respecting the admin's locale/timezone. Co-Authored-By: Claude Sonnet 5 --- CHANGELOG.md | 3 + .../aeon-dump-manager-list.html.twig | 12 ++- .../page/aeon-dump-manager-list/index.ts | 100 +++++++++++++++--- .../aeon-dump-manager/snippet/de-DE.json | 4 + .../aeon-dump-manager/snippet/en-GB.json | 4 + .../src/service/dump-api.service.ts | 7 +- 6 files changed, 114 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aeb34e0..04182c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,3 +20,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 creation runs synchronously. - ACL-gated (`aeon_dump_manager.viewer`/`.creator`/`.deleter`), enforced both client-side and server-side. +- Filter the dump list by a from/to date range, and sort the `datetime`/`sizeBytes` columns + ascending or descending. Dates are formatted with Shopware's locale/timezone-aware + `Shopware.Utils.format.date`, matching the existing `fileSize` formatting. diff --git a/src/Resources/app/administration/src/module/aeon-dump-manager/page/aeon-dump-manager-list/aeon-dump-manager-list.html.twig b/src/Resources/app/administration/src/module/aeon-dump-manager/page/aeon-dump-manager-list/aeon-dump-manager-list.html.twig index 2d00b1a..5e03557 100644 --- a/src/Resources/app/administration/src/module/aeon-dump-manager/page/aeon-dump-manager-list/aeon-dump-manager-list.html.twig +++ b/src/Resources/app/administration/src/module/aeon-dump-manager/page/aeon-dump-manager-list/aeon-dump-manager-list.html.twig @@ -14,14 +14,24 @@