hub: don't claim the OS "keeps itself current" on the dashboard
The welcome dashboard's updates card showed "Sovran_SystemsOS keeps
itself current" whenever no updates were pending. Nothing in the OS
auto-updates: the Hub only *checks* for updates (on load and every
30 minutes while the Hub is open); applying an update is a manual
"Update System" action followed by a reboot. The sub-line promised
behavior that does not exist.
Tie "up to date" to the last check instead ("Last check found no
updates · Click to check again"), matching the actionable phrasing
of the card's other states ("Click to review and update", "Click to
retry the update").
Also add a "Checking for updates" state for the first paint, so the
card never claims "up to date" before the first /api/updates/check
has returned.
This commit is contained in:
@@ -285,8 +285,14 @@
|
|||||||
updTitle = "Update in progress"; updSub = "Installing the new system generation"; updChip = "chip-amber";
|
updTitle = "Update in progress"; updSub = "Installing the new system generation"; updChip = "chip-amber";
|
||||||
} else if (upd && upd.available) {
|
} else if (upd && upd.available) {
|
||||||
updTitle = "Updates available"; updSub = "Click to review and update"; updChip = "chip-amber";
|
updTitle = "Updates available"; updSub = "Click to review and update"; updChip = "chip-amber";
|
||||||
|
} else if (!upd) {
|
||||||
|
/* First check hasn't returned yet — never claim "up to date" before
|
||||||
|
a check has actually completed */
|
||||||
|
updTitle = "Checking for updates"; updSub = "Comparing with the latest Sovran_SystemsOS release"; updChip = "chip-green";
|
||||||
} else {
|
} else {
|
||||||
updTitle = "System is up to date"; updSub = "Sovran_SystemsOS keeps itself current"; updChip = "chip-green";
|
/* Updates are applied by the user, not automatically — the card must
|
||||||
|
not imply the OS updates itself */
|
||||||
|
updTitle = "System is up to date"; updSub = "Last check found no updates · Click to check again"; updChip = "chip-green";
|
||||||
}
|
}
|
||||||
more +=
|
more +=
|
||||||
'<div class="widget clickable" id="w-updates" role="button" tabindex="0" title="Check for system updates">' +
|
'<div class="widget clickable" id="w-updates" role="button" tabindex="0" title="Check for system updates">' +
|
||||||
|
|||||||
Reference in New Issue
Block a user