plakar
plakar copied to clipboard
Feature Request: Snapshot Page Filtering
Overview
Add advanced filtering capabilities to the Snapshot page to help users quickly find specific snapshots based on path, tags, and date ranges.
Current Behavior
The Snapshot page currently displays all snapshots in a single list with basic pagination. Users must manually scan through snapshots to find what they're looking for.
Proposed Solution
Filter Options
Add a filter bar above the snapshot list with the following filters:
1. Path Filter
- Type: Text input with autocomplete
- Functionality: Filter snapshots matching the path pattern
- Example:
/var/www- Show snapshots made in/var/wwwwww- Show snapshots with path containing/var/www
2. Tag Filter
- Type: Multi-select dropdown / Text input with autocomplete
- Functionality: Filter snapshots by tags applied during backup
- Examples:
production,database,weekly- Multiple tag selection with AND/OR logic
3. Date Range Filter
- Type: Date picker with presets
- Functionality: Filter snapshots by creation date
- Options:
- Custom date range (from/to)
- Quick presets: Today, Yesterday, Last 7 days, Last 30 days, This month, Last month
Technical Implementation
Backend API Changes
Extend the snapshots API endpoint to accept filter parameters:
GET /api/snapshots?path=/var/www&tags=production,database&date_from=2024-01-01&date_to=2024-01-31
Filter Logic
- Path filtering: Use existing Plakar path matching logic
- Tag filtering: AND logic (snapshot must have all selected tags)
- Date filtering: Inclusive range filtering on snapshot creation timestamp