Repository navigation
fix(firmware): surface version check failure instead of masking as up to date (#25375) - #25532
TassioSales wants to merge 3 commits into
Conversation
|
Verdict: the production change is correct and nicely scoped — it fixes the core bug from #25375 (a failed firmware lookup rendered as "Your device is up to date"), and I verified the supporting pieces. No blockers; follow-up notes below. What I verified in app/lib/pages/home/firmware_update.dart:
Follow-ups (non-blocking):
USER IMPACT: when the firmware check fails, users now see an explicit warning with a Try Again button instead of a false "Your device is up to date" — and when genuinely up to date, they also see the latest available version for comparison. Nice first contribution — clear problem write-up and a scoped fix. Nothing blocking from my side; formal approval left to a human maintainer. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Since my last review: addressed (the sync with current main is resolved correctly — bfbc59a adopts upstream's rewritten rollback-branch logic verbatim inside Verdict: still a correct, well-scoped fix for #25375 — it survives the merge with main intact, and nothing new is blocking. What I verified on the new head:
USER IMPACT: unchanged from my earlier note — when the firmware check fails, users now see an explicit warning with a Try Again button instead of a false "Your device is up to date"; when genuinely current, they also see the latest available version for comparison. Still nice-to-have before merge (non-blocking): a widget test driving Formal approval left to a human maintainer. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Closing as superseded by main's #25757 and merged #25455 ( |
|
Hey @TassioSales 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
Summary
Fixes #25375 by ensuring firmware lookup failures and unavailable release metadata are surfaced with an explicit status message and retry action, rather than falsely displaying "Your device is up to date".
Problem
When
getLatestFirmwareVersionreturns an empty map{}(e.g. non-200 HTTP response or network failure),DeviceUtils.shouldUpdateFirmwarereturns('Latest Version Not Available', false, '').FirmwareUpdatepreviously checked only!shouldUpdateto rendercontext.l10n.yourDeviceIsUpToDatewith a green checkmark, masking the lookup failure from the user and preventing recovery.Changes
hasLatestVersion(latestFirmwareDetails.isNotEmpty && latestFirmwareDetails['version'] != null).updateMessagewithFontAwesomeIcons.circleExclamationandOmiColors.warning.context.l10n.yourDeviceIsUpToDatewithFontAwesomeIcons.circleCheckinOmiColors.successand displays both the current and latest versions._checkVersion()method.OmiButtonso the user can re-check firmware without navigating away.