Phase 3 complete: per-app backup toggles, restore, storage overview
- Storage overview on backup page (SSD/HDD bars, repo stats) - Restic password visibility + hub sync for disaster recovery - App data discovery (HDD bind mounts, Docker volumes) - Per-app backup toggle checkboxes with settings persistence - Dynamic backup paths: enabled app HDD data included in restic snapshots - Limited app restore from snapshots (self-service recovery) - Snapshots API endpoint for restore dropdown - Version bump to 0.8.0 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1769,6 +1769,213 @@ a.stat-card:hover {
|
||||
border-left: 3px solid var(--accent-blue);
|
||||
}
|
||||
|
||||
/* --- Backup page: Storage overview grid --- */
|
||||
.storage-overview-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 1.5rem;
|
||||
align-items: start;
|
||||
}
|
||||
.storage-stats {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: .5rem;
|
||||
}
|
||||
.storage-stat-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: .3rem 0;
|
||||
font-size: .85rem;
|
||||
}
|
||||
.storage-stat-label {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.storage-stat-value {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
/* --- Backup page: App backup toggles --- */
|
||||
.backup-section-desc {
|
||||
color: var(--text-secondary);
|
||||
font-size: .85rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.app-backup-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: .5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.app-backup-item {
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
padding: .75rem 1rem;
|
||||
}
|
||||
.app-backup-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: .25rem;
|
||||
}
|
||||
.app-backup-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .5rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
.app-backup-toggle input[type="checkbox"] {
|
||||
accent-color: var(--accent-blue);
|
||||
}
|
||||
.app-backup-name {
|
||||
font-weight: 500;
|
||||
font-size: .9rem;
|
||||
}
|
||||
.app-backup-disabled-icon {
|
||||
color: var(--text-muted);
|
||||
font-size: .9rem;
|
||||
width: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
.app-backup-size {
|
||||
font-size: .8rem;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.app-backup-details {
|
||||
padding-left: 1.5rem;
|
||||
}
|
||||
.app-backup-path {
|
||||
font-size: .8rem;
|
||||
color: var(--text-secondary);
|
||||
padding: .1rem 0;
|
||||
}
|
||||
.app-backup-volume {
|
||||
font-size: .8rem;
|
||||
color: var(--text-muted);
|
||||
padding: .1rem 0;
|
||||
}
|
||||
.app-backup-dbinfo {
|
||||
font-size: .8rem;
|
||||
color: var(--text-muted);
|
||||
padding: .1rem 0;
|
||||
}
|
||||
.app-backup-actions {
|
||||
margin-top: .75rem;
|
||||
}
|
||||
.app-backup-notice {
|
||||
margin-top: .75rem;
|
||||
font-size: .8rem;
|
||||
}
|
||||
|
||||
/* --- Backup page: Encryption key --- */
|
||||
.repo-encryption {
|
||||
border-top: 1px solid var(--border-color);
|
||||
padding-top: .75rem;
|
||||
margin-bottom: .75rem;
|
||||
}
|
||||
.repo-encryption-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .5rem;
|
||||
margin-top: .5rem;
|
||||
margin-bottom: .5rem;
|
||||
}
|
||||
.restic-pw-field {
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
padding: .4rem .6rem;
|
||||
color: var(--text-primary);
|
||||
font-size: .85rem;
|
||||
width: 340px;
|
||||
max-width: 100%;
|
||||
}
|
||||
.repo-encryption-warn {
|
||||
font-size: .8rem;
|
||||
color: var(--yellow);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
/* --- Backup page: Restore section --- */
|
||||
.restore-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: .75rem;
|
||||
}
|
||||
.restore-form-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .75rem;
|
||||
}
|
||||
.restore-label {
|
||||
font-size: .85rem;
|
||||
color: var(--text-secondary);
|
||||
min-width: 110px;
|
||||
}
|
||||
.restore-select {
|
||||
flex: 1;
|
||||
max-width: 400px;
|
||||
padding: .4rem .6rem;
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
color: var(--text-primary);
|
||||
font-size: .85rem;
|
||||
font-family: inherit;
|
||||
}
|
||||
.restore-select option {
|
||||
background: var(--bg-secondary);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.restore-paths {
|
||||
padding: .5rem 0;
|
||||
}
|
||||
.restore-warning {
|
||||
background: var(--red-bg);
|
||||
border: 1px solid rgba(218, 54, 51, 0.3);
|
||||
border-radius: 8px;
|
||||
padding: .75rem 1rem;
|
||||
font-size: .85rem;
|
||||
color: var(--red);
|
||||
line-height: 1.5;
|
||||
}
|
||||
.restore-confirm {
|
||||
font-size: .85rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.restore-confirm label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .5rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
.restore-confirm input[type="checkbox"] {
|
||||
accent-color: var(--red);
|
||||
}
|
||||
.restore-actions {
|
||||
padding-top: .25rem;
|
||||
}
|
||||
|
||||
/* --- Flash messages --- */
|
||||
.flash {
|
||||
padding: .75rem 1rem;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 1rem;
|
||||
font-size: .85rem;
|
||||
border: 1px solid;
|
||||
}
|
||||
.flash-success {
|
||||
background: var(--green-bg);
|
||||
color: var(--green);
|
||||
border-color: rgba(35, 134, 54, 0.3);
|
||||
}
|
||||
.flash-error {
|
||||
background: var(--red-bg);
|
||||
color: var(--red);
|
||||
border-color: rgba(218, 54, 51, 0.3);
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media(max-width: 768px) {
|
||||
.sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--border-color); }
|
||||
@@ -1786,4 +1993,8 @@ a.stat-card:hover {
|
||||
.charts-grid { grid-template-columns: 1fr; }
|
||||
.container-charts-row { flex-direction: column; }
|
||||
.sysinfo-grid { grid-template-columns: 1fr; }
|
||||
.storage-overview-grid { grid-template-columns: 1fr; }
|
||||
.restore-form-row { flex-direction: column; align-items: stretch; }
|
||||
.restore-label { min-width: auto; }
|
||||
.restore-select { max-width: 100%; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user