Updates from Gitea, step 4: the Firmware page shows the project's releases

Latest release (checked on Enter, or c), Older releases (the last ten,
newest first), a release page with the tag's message, and an install
dialog; going back to an older release asks differently. A failed check
someone asked for shows a Toast. A Debug Build shows the latest release
and says it can't install it: it would take its console away.

Tried on the device: a check, the list, the release page, the dialog
(Cancel is the default; Back cancels), and the install from the screen
with its progress screen, then the restart into the release build and its
confirmation.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EhqxQ49eCju4CzKYNjZzwT
This commit is contained in:
2026-10-06 16:06:49 +02:00
co-authored by Claude Sonnet 5.5
parent 510ce42a99
commit 4ef41347ab
3 changed files with 212 additions and 5 deletions
+4 -1
View File
@@ -217,7 +217,7 @@ std::string UpdateService::failedVersion() const {
std::string UpdateService::requestInstall(const std::string& tag, bool force) {
if (phase_ != Phase::Idle || giteaBusy()) return "Busy with something else";
if (!force && release::isDebugBuild(versionString())) return "A Debug Build keeps its console: update it from your PC";
if (!force && release::isDebugBuild(runningVersion())) return "A Debug Build keeps its console: update it from your PC";
if (wifi_.state() != WifiController::State::Connected) return "No Wi-Fi";
release::Release r;
if (!gitea_.find(tag, r)) return "Look for releases first";
@@ -305,6 +305,9 @@ void UpdateService::serve() {
#endif
case Request::None: break;
}
// A check or a list someone asked for that failed says so; the daily one stays quiet.
if ((r == Request::Check || r == Request::List) && gitea_.status() == GiteaReleases::Status::Failed)
notify("Releases: " + gitea_.error(), NotificationLevel::Warning);
// IRC comes back, unless the device is about to restart into an update.
if (held_ && phase_ != Phase::Installed && holdMemory) holdMemory(false);
held_ = false;