feat: Dashboard snapshot widget, backup trend, storage breakdown (#61) #93

Merged
jmiller merged 1 commits from feat/61-dashboard-widgets into main 2026-06-23 12:22:46 +00:00
Owner

Summary

The last feature issue. Closes #61.

Dashboard widgets added

  1. Snapshot widget — latest snapshot info, content type badges, article/category/module counts, total snapshots, link to snapshots view
  2. Backup trend chart — CSS bar chart showing daily backup sizes over 30 days. Green bars for success, red for days with failures. Hover tooltips show details.
  3. Storage breakdown — horizontal bars per profile showing space used, with color coding and backup counts

Files changed

  • DashboardModel.php — 4 new methods: getLatestSnapshot(), getSnapshotCount(), getBackupTrend(), getStorageByProfile()
  • HtmlView.php — passes new data to template
  • tmpl/dashboard/default.php — three new widget sections
  • com_mokosuitebackup.ini — 7 new language strings

Test Plan

  • Dashboard loads without errors
  • Snapshot widget shows latest snapshot or "no snapshots" message
  • Trend chart shows bars for days with backups (green/red)
  • Storage breakdown shows profiles sorted by size
  • Empty state: no backups = no trend chart, no storage breakdown
## Summary The last feature issue. Closes #61. ### Dashboard widgets added 1. **Snapshot widget** — latest snapshot info, content type badges, article/category/module counts, total snapshots, link to snapshots view 2. **Backup trend chart** — CSS bar chart showing daily backup sizes over 30 days. Green bars for success, red for days with failures. Hover tooltips show details. 3. **Storage breakdown** — horizontal bars per profile showing space used, with color coding and backup counts ### Files changed - `DashboardModel.php` — 4 new methods: `getLatestSnapshot()`, `getSnapshotCount()`, `getBackupTrend()`, `getStorageByProfile()` - `HtmlView.php` — passes new data to template - `tmpl/dashboard/default.php` — three new widget sections - `com_mokosuitebackup.ini` — 7 new language strings ## Test Plan - [ ] Dashboard loads without errors - [ ] Snapshot widget shows latest snapshot or "no snapshots" message - [ ] Trend chart shows bars for days with backups (green/red) - [ ] Storage breakdown shows profiles sorted by size - [ ] Empty state: no backups = no trend chart, no storage breakdown
jmiller added the component: admin label 2026-06-23 12:22:19 +00:00
jmiller added 1 commit 2026-06-23 12:22:20 +00:00
feat: dashboard snapshot widget, backup trend chart, storage breakdown (#61)
Joomla: Extension CI / Tests (PHP 8.2) (pull_request) Blocked by required conditions
Joomla: Extension CI / Tests (PHP 8.3) (pull_request) Blocked by required conditions
Joomla: Extension CI / PHPStan Analysis (pull_request) Blocked by required conditions
Joomla: Extension CI / Build RC Pre-Release (pull_request) Blocked by required conditions
Generic: Repo Health / Scripts governance (pull_request) Blocked by required conditions
Generic: Repo Health / Repository health (pull_request) Blocked by required conditions
Generic: Repo Health / Report Issues (pull_request) Blocked by required conditions
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 2s
Joomla: Extension CI / Release Readiness Check (pull_request) Failing after 7s
Joomla: Metadata Validation / Validate Joomla Metadata (pull_request) Successful in 15s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Successful in 1s
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
Joomla: Extension CI / Lint & Validate (pull_request) Failing after 42s
Universal: Build & Release / Build & Release Pipeline (pull_request) Successful in 25s
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Failing after 3m18s
ee21f7a373
Add three new dashboard widgets:
- Snapshot widget: latest snapshot info, type badges, item counts,
  link to snapshots view, total count
- Backup trend: CSS bar chart showing daily backup sizes over 30 days,
  red bars for days with failures, tooltips with details
- Storage breakdown: horizontal bars showing space used per profile
  with color coding and backup counts

Closes #61
jmiller merged commit a7c30ad67c into main 2026-06-23 12:22:46 +00:00
jmiller deleted branch feat/61-dashboard-widgets 2026-06-23 12:22:47 +00:00
Sign in to join this conversation.
No Reviewers
Priority -
Type -
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteBackup#93