Skip to content

Commit 3398cd5

Browse files
Tidied up recovery centre UI
1 parent a9406ce commit 3398cd5

3 files changed

Lines changed: 2 additions & 41 deletions

File tree

nixos/admin-app/app.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -751,11 +751,6 @@ def _recovery_status_payload() -> dict[str, Any]:
751751
}
752752
for key, value in destinations.items()
753753
],
754-
"recommended_actions": [
755-
"Create an encrypted full backup before updating or replacing the SD card.",
756-
"Keep the Spark seed phrase stored separately from device backups.",
757-
"Restore only the components you intend to replace on this box.",
758-
],
759754
"saved_backups": _recovery_backup_files(),
760755
}
761756

nixos/admin-app/static/js/dashboard-db.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@
113113
if (!status || !statusText) return;
114114
status.classList.toggle('hidden', !busy);
115115
statusText.textContent = text || 'Processing...';
116-
['recovery-download-btn', 'recovery-save-btn', 'recovery-restore-btn', 'recovery-schedule-save-btn'].forEach(function (id) {
116+
['recovery-download-btn', 'recovery-save-btn', '
117+
recovery-restore-btn', 'recovery-schedule-save-btn'].forEach(function (id) {
117118
const button = el(id);
118119
if (!button) return;
119120
button.disabled = busy;
@@ -140,15 +141,6 @@
140141
D.setText('recovery-schedule-summary', scheduleSummary(schedule));
141142
D.setText('recovery-schedule-result', schedule.last_result ? schedule.last_result.message : 'No scheduled backup has run yet.');
142143

143-
const actionList = el('recovery-actions');
144-
if (actionList) {
145-
actionList.innerHTML = '';
146-
(data.recommended_actions || []).forEach(function (item) {
147-
const li = document.createElement('li');
148-
li.textContent = item;
149-
actionList.appendChild(li);
150-
});
151-
}
152144
D.renderSavedBackups(savedBackups);
153145

154146
if (el('recovery-schedule-hours')) {

nixos/admin-app/templates/partials/cards/recovery_center.html

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,6 @@
55
</p>
66
</div>
77
<div class="bg-ln-card border border-ln-border rounded-xl p-4 sm:p-6 transition-all duration-500 recovery-center" id="recovery-card">
8-
<div class="recovery-status-strip">
9-
<div class="recovery-status-pill">
10-
<span class="recovery-status-label">Spark seed</span>
11-
<span class="recovery-status-value" id="recovery-seed-status">--</span>
12-
</div>
13-
<div class="recovery-status-pill">
14-
<span class="recovery-status-label">Last validation</span>
15-
<span class="recovery-status-value" id="recovery-validation-status">--</span>
16-
</div>
17-
<div class="recovery-status-pill">
18-
<span class="recovery-status-label">Tunnel key</span>
19-
<span class="recovery-status-value" id="recovery-tunnel-status">--</span>
20-
</div>
21-
</div>
22-
23-
<div class="recovery-guidance">
24-
<div class="recovery-guidance-title">Before you start</div>
25-
<ul class="recovery-guidance-list" id="recovery-actions">
26-
<li>Loading recovery guidance...</li>
27-
</ul>
28-
</div>
29-
308
<div id="recovery-status" class="hidden mb-4">
319
<div class="flex items-center gap-2">
3210
<div class="w-4 h-4 border-2 border-ln-pink border-t-transparent rounded-full animate-spin"></div>
@@ -69,10 +47,6 @@
6947
placeholder="Required for every backup">
7048
</label>
7149

72-
<p class="recovery-helper-text mb-3" id="recovery-destination-note">
73-
Save a protected backup on this box for later restores, or download one now to keep elsewhere.
74-
</p>
75-
7650
<div class="recovery-callout">
7751
<div class="recovery-callout-title">What is included?</div>
7852
<p class="recovery-helper-text mb-0">

0 commit comments

Comments
 (0)