- 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 <noreply@anthropic.com>
The installed PHPUnit (12.x, ahead of this plugin's ^10.0 dev
constraint) no longer parses the @dataProvider PHPDoc annotation,
so both tests silently ran their data-provider method with zero
arguments and failed with ArgumentCountError.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The admin date filter can send a naive local date string for "from" but
a UTC Z-suffixed instant for "to" (sw-date-filter widens it client-side
via Date#toISOString()). Comparing those directly against dump
timestamps (parsed in PHP's default timezone) shifted the effective
cutoff by the timezone offset. Re-express both bounds in the app's
default timezone before applying the day boundary.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>