Compare commits
No commits in common. "59098667a1d851b5b92b18fbf5918dd4b928ade0" and "6b93554040e8d4d04937037613e66e97841b52aa" have entirely different histories.
59098667a1
...
6b93554040
@ -177,12 +177,11 @@ class OverviewManager {
|
|||||||
// extra inset — same rhythm as the Backups/Migrate sub-tab strips) — so
|
// extra inset — same rhythm as the Backups/Migrate sub-tab strips) — so
|
||||||
// the renderers below only ever produce the body (never a heading or its
|
// the renderers below only ever produce the body (never a heading or its
|
||||||
// action buttons).
|
// action buttons).
|
||||||
|
const checkBtn = (label) => `<button class="updater-btn" data-updater-action="check">↻ ${label}</button>`;
|
||||||
const body = (html) => `<div class="ov-tab-body">${html}</div>`;
|
const body = (html) => `<div class="ov-tab-body">${html}</div>`;
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case 'overview':
|
case 'overview':
|
||||||
// No manual "Check" — scans run automatically; the hero already reports
|
pane.innerHTML = this.renderHeader(id, checkBtn('Check now')) + body(this.renderOverview());
|
||||||
// the last scan time, and the Updates/Improvements tabs carry the nudge.
|
|
||||||
pane.innerHTML = this.renderHeader(id) + body(this.renderOverview());
|
|
||||||
break;
|
break;
|
||||||
case 'updates': {
|
case 'updates': {
|
||||||
// Preserve which rows are expanded across a rebuild — a background
|
// Preserve which rows are expanded across a rebuild — a background
|
||||||
@ -201,7 +200,7 @@ class OverviewManager {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'improvements':
|
case 'improvements':
|
||||||
pane.innerHTML = this.renderHeader(id) + body(this.renderImprovements());
|
pane.innerHTML = this.renderHeader(id, checkBtn('Check')) + body(this.renderImprovements());
|
||||||
break;
|
break;
|
||||||
case 'backups': this.mountBackupCenter(pane); break;
|
case 'backups': this.mountBackupCenter(pane); break;
|
||||||
case 'migrate': this.mountMigrate(); break;
|
case 'migrate': this.mountMigrate(); break;
|
||||||
@ -359,7 +358,7 @@ class OverviewManager {
|
|||||||
sub = bits.join(' · ');
|
sub = bits.join(' · ');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
sub = 'The first automatic scan runs within a couple of minutes.';
|
sub = 'The first automatic scan runs within a couple of minutes — or hit Check now.';
|
||||||
}
|
}
|
||||||
const chip = (id, label, n) =>
|
const chip = (id, label, n) =>
|
||||||
`<button class="ov-chip${this.board === id ? ' active' : ''}" data-overview-action="board" data-board="${id}">${label}${n ? ` <span class="ov-chip-n">${n}</span>` : ''}</button>`;
|
`<button class="ov-chip${this.board === id ? ' active' : ''}" data-overview-action="board" data-board="${id}">${label}${n ? ` <span class="ov-chip-n">${n}</span>` : ''}</button>`;
|
||||||
@ -616,12 +615,9 @@ class OverviewManager {
|
|||||||
// ---- Improvements tab (reuse the updater's hotfix renderer) ---------------
|
// ---- Improvements tab (reuse the updater's hotfix renderer) ---------------
|
||||||
|
|
||||||
renderImprovements() {
|
renderImprovements() {
|
||||||
// withToolbar=false — the embedded renderer skips its own toolbar; the
|
// withToolbar=false — the fleet tab's "Check" button lives in the shared
|
||||||
// auto-check line (with its right-side Check-now nudge) leads the body
|
// header action slot, so the embedded renderer skips its own toolbar.
|
||||||
// instead, matching the Updates tab.
|
return this.updater ? this.updater.renderImprovements(false) : `<div class="updater-empty">Improvements unavailable.</div>`;
|
||||||
return this.updater
|
|
||||||
? this.updater.renderAutoCheckLine() + this.updater.renderImprovements(false)
|
|
||||||
: `<div class="updater-empty">Improvements unavailable.</div>`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---- Backups tab (fleet health glance; actions deep-link per app) ---------
|
// ---- Backups tab (fleet health glance; actions deep-link per app) ---------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user