baktainer/app
James Paterni d68e676de3
Some checks failed
Test and Build Docker Image / test (push) Has been cancelled
Test and Build Docker Image / build (push) Has been cancelled
Enhance dashboard with next backup time, reorganized layout, and pagination
## Dashboard Improvements

### 1. Add Time to Next Backup Display
- Add new `/next-backup` endpoint with cron schedule parsing
- Display time until next backup in human-readable format (e.g., "16 hours")
- Show formatted next backup time (e.g., "07:00am")
- Add next backup info to System Health card with schedule details
- Include format_time_until helper for readable time formatting

### 2. Reorganize Dashboard Layout
- Move "Discovered Containers" section above "Recent Backups"
- Improve workflow by showing monitored containers before backup history
- Better logical flow for users checking system status

### 3. Add Pagination to Recent Backups
- Implement client-side pagination with 10 backups per page
- Add pagination controls with Previous/Next buttons and page info
- Show "Page X of Y" information when multiple pages exist
- Hide pagination when 10 or fewer backups exist
- Maintain all existing backup display functionality

### 4. Load Historical Backups on Startup
- BackupMonitor now scans existing .meta files on initialization
- Loads historical backup data from metadata files into backup history
- Estimates duration for historical backups based on file size
- Maintains chronological order and 1000-record memory limit
- Dashboard now shows complete backup history immediately

### Technical Changes
- Add loadNextBackupTime() function with auto-refresh
- Implement displayBackupsPage() with pagination logic
- Add CSS classes for pagination styling
- Update refreshAll() to include next backup time
- Remove duplicate loadRecentBackups functions
- Add proper error handling for all new endpoints

Dashboard now provides comprehensive backup monitoring with improved
user experience and complete historical data visibility.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-15 10:31:09 -04:00
..
bin Add comprehensive RSpec testing infrastructure and enhance CI/CD pipeline 2025-07-13 23:12:59 -04:00
lib Enhance dashboard with next backup time, reorganized layout, and pagination 2025-07-15 10:31:09 -04:00
spec Fix health check server by using Puma with Rack directly 2025-07-14 23:15:26 -04:00
.rspec Add comprehensive RSpec testing infrastructure and enhance CI/CD pipeline 2025-07-13 23:12:59 -04:00
app.rb Enhance dashboard with next backup time, reorganized layout, and pagination 2025-07-15 10:31:09 -04:00
Gemfile Major architectural overhaul: dependency injection, monitoring, and operational improvements 2025-07-14 22:58:26 -04:00
Gemfile.lock Major architectural overhaul: dependency injection, monitoring, and operational improvements 2025-07-14 22:58:26 -04:00
health_server.rb Fix health check server by using Puma with Rack directly 2025-07-14 23:15:26 -04:00
Rakefile Add comprehensive RSpec testing infrastructure and enhance CI/CD pipeline 2025-07-13 23:12:59 -04:00
TESTING.md Implement comprehensive security fixes and enhancements 2025-07-14 10:19:18 -04:00