Coherence: one component per idea, one spelling per word, one truth per claim

Claude-Session: https://claude.ai/code/session_01Ms2FbjQy31TVf3CEvQhGM8
This commit is contained in:
Gabriel Brown
2026-08-25 02:21:45 -04:00
parent 06c53d6c21
commit bd2fd12de2
87 changed files with 660 additions and 766 deletions
@@ -40,7 +40,8 @@ SettingsPage {
property string expandedPackage: ""
Component.onCompleted: {
Updates.refresh();
if (!Updates.scanned)
Updates.refresh();
// A first visit with nothing cached should not show a confident "up to
// date" it has no basis for, so it goes and finds out.
if (!Updates.everChecked && !Updates.checking)
@@ -103,12 +104,9 @@ SettingsPage {
// ── What just happened ───────────────────────────────────────────────────
TextRow {
visible: Updates.lastError !== ""
ErrorRow {
label: "Updates need attention"
detail: Updates.lastError
value: ""
divider: false
message: Updates.lastError
}
TextRow {
@@ -288,17 +286,18 @@ SettingsPage {
// A check that failed is not a machine that is current. "Current" is
// only ever said about a list that was actually read.
TextRow {
NotMeasuredRow {
visible: Updates.sourceError("flatpak") !== ""
label: "Flatpak"
detail: Updates.sourceError("flatpak")
value: "Not checked"
because: Updates.sourceError("flatpak")
divider: true
}
TextRow {
visible: Updates.sourceError("flatpak") === "" && Updates.flatpak?.available === false
label: "Flatpak"
detail: "Flatpak is not installed."
detail: "Flatpak is not installed"
value: "Unavailable"
}
@@ -376,18 +375,18 @@ SettingsPage {
onTriggered: Updates.apply("flatpak")
}
TextRow {
NotMeasuredRow {
visible: Updates.sourceError("firmware") !== ""
label: "Firmware"
detail: Updates.sourceError("firmware")
value: "Not checked"
because: Updates.sourceError("firmware")
divider: false
}
TextRow {
visible: Updates.sourceError("firmware") === "" && Updates.firmware?.available === false
label: "Firmware"
detail: "Firmware updating is not available on this machine."
detail: "Firmware updating is not available on this machine"
value: "Unavailable"
divider: false
}
@@ -460,7 +459,7 @@ SettingsPage {
TextRow {
visible: Updates.historyLoaded && Updates.history.length === 0
label: "Nothing recorded"
detail: "Neither dnf nor flatpak has a transaction history here."
detail: "Neither dnf nor flatpak has a transaction history here"
value: ""
divider: false
}