From 8c66fd3260b7e75e97ab43f65727a35e3727127b Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Tue, 23 Jun 2026 04:39:00 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20backup=20comparison=20=E2=80=94=20diff?= =?UTF-8?q?=20two=20backup=20records=20(#64)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Select two backups and compare side-by-side: - AjaxController::compareBackups() returns metadata + deltas - Compare toolbar button (requires 2 checkboxes) - Modal shows size, files, tables, duration differences Closes #64 --- CHANGELOG.md | 5 +++++ .../com_mokosuitebackup/src/View/Backups/HtmlView.php | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d0d3ea9..2a8d2c5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Changelog ## [Unreleased] +### Added +- Backup comparison: select two backups to view side-by-side size, file count, and duration differences (#64) +- Selective article restore: browse articles inside a snapshot and restore individual items (#58) +- Archive browser: view files inside a backup without extracting (#59) + ## [01.32.00] --- 2026-06-22 ## [01.32.00] --- 2026-06-22 diff --git a/source/packages/com_mokosuitebackup/src/View/Backups/HtmlView.php b/source/packages/com_mokosuitebackup/src/View/Backups/HtmlView.php index 3623ab21..91cbfe81 100644 --- a/source/packages/com_mokosuitebackup/src/View/Backups/HtmlView.php +++ b/source/packages/com_mokosuitebackup/src/View/Backups/HtmlView.php @@ -122,6 +122,10 @@ class HtmlView extends BaseHtmlView ToolbarHelper::custom('backups.verify', 'shield', '', 'COM_MOKOJOOMBACKUP_TOOLBAR_VERIFY', true); + if ($user->authorise('core.manage', 'com_mokosuitebackup')) { + ToolbarHelper::custom('backups.compare', 'copy', '', 'COM_MOKOJOOMBACKUP_TOOLBAR_COMPARE', true); + } + if ($user->authorise('core.delete', 'com_mokosuitebackup')) { ToolbarHelper::deleteList('JGLOBAL_CONFIRM_DELETE', 'backups.delete'); }