feat: add filter_snapshots.xml and search tools to snapshots list view #174

Open
opened 2026-06-29 14:21:28 +00:00 by jmiller · 2 comments
Owner

Summary

The Snapshots list view (tmpl/snapshots/default.php) has no search/filter toolbar, unlike the Backups and Profiles views which both use Joomla\CMS\Layout\LayoutHelper::render('joomla.searchtools.default') with corresponding filter XML forms.

Additionally, Snapshots/HtmlView.php does not set $this->filterForm or $this->activeFilters, which means even if a filter form existed, the search tools wouldn't render.

What exists vs. what's missing

View Filter XML Search tools filterForm property
Backups filter_backups.xml Yes Yes
Profiles filter_profiles.xml Yes Yes
Snapshots Missing No No

What to do

  • Create forms/filter_snapshots.xml with search field and status filter (complete/fail)
  • Update Snapshots/HtmlView.php to set $this->filterForm and $this->activeFilters
  • Add LayoutHelper::render('joomla.searchtools.default') to tmpl/snapshots/default.php
  • Add status filter to SnapshotsModel::getListQuery() (currently only has search filter)

Why

Users with many snapshots have no way to search or filter the list. This is inconsistent with the other two list views.

## Summary The Snapshots list view (`tmpl/snapshots/default.php`) has no search/filter toolbar, unlike the Backups and Profiles views which both use `Joomla\CMS\Layout\LayoutHelper::render('joomla.searchtools.default')` with corresponding filter XML forms. Additionally, `Snapshots/HtmlView.php` does not set `$this->filterForm` or `$this->activeFilters`, which means even if a filter form existed, the search tools wouldn't render. ## What exists vs. what's missing | View | Filter XML | Search tools | filterForm property | |------|-----------|--------------|-------------------| | Backups | `filter_backups.xml` | Yes | Yes | | Profiles | `filter_profiles.xml` | Yes | Yes | | Snapshots | **Missing** | **No** | **No** | ## What to do - [ ] Create `forms/filter_snapshots.xml` with search field and status filter (complete/fail) - [ ] Update `Snapshots/HtmlView.php` to set `$this->filterForm` and `$this->activeFilters` - [ ] Add `LayoutHelper::render('joomla.searchtools.default')` to `tmpl/snapshots/default.php` - [ ] Add status filter to `SnapshotsModel::getListQuery()` (currently only has search filter) ## Why Users with many snapshots have no way to search or filter the list. This is inconsistent with the other two list views.
jmiller added the component: admin label 2026-06-29 14:21:28 +00:00
Author
Owner

Branch created: feature/174-feat-add-filter-snapshots-xml-and-search

git fetch origin
git checkout feature/174-feat-add-filter-snapshots-xml-and-search
Branch created: [`feature/174-feat-add-filter-snapshots-xml-and-search`](https://git.mokoconsulting.tech/MokoConsulting/MokoSuiteBackup/src/branch/feature/174-feat-add-filter-snapshots-xml-and-search) ```bash git fetch origin git checkout feature/174-feat-add-filter-snapshots-xml-and-search ```
Author
Owner

Confirmed still valid @ 02.56.05 — keep open (canonical snapshots filter/search issue; #190 closed as duplicate).

forms/ has filter_backups.xml and filter_profiles.xml but no filter_snapshots.xml, and tmpl/snapshots/default.php has no LayoutHelper::render('joomla.searchtools.default'). No filter/search UI on the snapshots list.

Confirmed still valid @ 02.56.05 — keep open (canonical snapshots filter/search issue; #190 closed as duplicate). `forms/` has `filter_backups.xml` and `filter_profiles.xml` but **no `filter_snapshots.xml`**, and `tmpl/snapshots/default.php` has no `LayoutHelper::render('joomla.searchtools.default')`. No filter/search UI on the snapshots list.
Sign in to join this conversation.