Repository navigation
feat(update): report a newer release on an Updates page (#101) - #102
Merged
Merged
Conversation
The client reads GitHub's newest published release at startup and at most once every 24 hours, on the tokio runtime it already holds. A newer release raises one system notification and one item each in the tray menu and the macOS app menu, and all three entry points open the new Updates page: the seventh settings page, appended so the six existing indices stay put. The page is one switch with the check's answer on the same line, then, for a newer release, a "New release available" line, the notes as Markdown in a framed box that fills the height the page has left, and one line holding the release-page button and the remind control. A silenced release is stored by its version, so it stays quiet across restarts and the next release speaks. The kit draws a page as a list measured to its content, so this page cannot fill from a row; it draws its own body and says why. Nothing is downloaded or installed (ADR 0009). Failure is silence: one info line and the page's "Could not check" sentence, and the next attempt is the next interval. The one other network request changes the README's privacy promise, so it names the request and the switch there, and SPEC gains R12.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #101.
Summary
The client now asks GitHub for the newest published release at startup and at most once every 24 hours, and says so without installing anything (ADR 0009). One request, three cues: a system notification, one item each in the tray menu and the macOS app menu, and the new Updates page.
Failure is silence: a timeout, a 403, a 5xx, an unparsable body, or a tag this client cannot compare is one
infoline and the page's "Could not check" sentence; the next attempt is the next interval. A silenced release is stored as its version, so it stays quiet across restarts and the next release speaks.The kit renders a page as a list measured to its content (
gpui-component-0.8.1/src/setting/page.rs:125), so a row cannot grow with the window; the Updates page draws its own body — onea11y::namedtab panel,Row::renderfor the switch, and a framed notes box withflex_1. The comment in the code says why, and whyScrollable::overflow_y_scrollbarcannot carry the app's wheel rule (#54).Evidence
Settings › Updates, with the check's answer on the switch's line, and the release state showing the livev0.3.0notes.CONTRIBUTING.md› Screenshots, Xvfb + lavapipe):1200x900and the520x480minimum, light and dark, plus the dismissed state. The release-state frames came from the same code built as0.2.0, so the livev0.3.0release is genuinely newer; the shipped0.3.0build says "Up to date (0.3.0)." No test touches the network —FakeReleasesis behind theReleaseSourcetrait.One pre-existing failure is unrelated and reproduces on
main:log_redaction::a_real_sign_in_never_writes_a_secret_to_the_logfails when the whole binary runs in parallel ("a global default trace dispatcher has already been set") and passes alone.cargo fmt --all -- --checkclean;cargo clippy -p immich-sync --all-targetsclean apart from one pre-existingsync-corewarning. The 520 px minimum is covered by the existing narrow-window test, which now walks seven tabs and the new row.Merge Danger
Door: two-way. A new default-on switch, one outbound request, and one page; no data is migrated, changed, or deleted, and turning the switch off restores the old behaviour exactly.
Blast Radius: limited — one crate, one new module, one settings pair, one page, two menu items; the README privacy promise changes, which users read.
Skipped here: the tray and macOS menu wiring is asserted headlessly only, not on real hardware; the 24 h loop is proven at short intervals in tests.