Skip to content

Settings: click the version to check for updates - #44

Merged
MHohlios merged 4 commits into
mainfrom
wiffletree/click-the-version-to-check-for-updates
Nov 5, 2026
Merged

MHohlios merged 4 commits into
mainfrom
wiffletree/click-the-version-to-check-for-updates

Conversation

@MHohlios

@MHohlios MHohlios commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

To check for a new version, you had to open Settings → Data & sync and find "Check now". Now the version at the foot of the Settings sidebar is a button that does the same check, and the line shows the result in place. Linear: VYT-269.

Changes

  • The version is a button.
    • "MUDling 0.1.0" shows a pointer, underlines on hover and has the tooltip "Check for updates".
    • Clicking it sends the same UpdateAsk::CheckNow as Check now, so it works with the switch off and retries a release that failed before.
  • The result shows in place of "· MIT".
    • "Checking…" while the check runs.
    • "Up to date" when nothing is newer.
    • "0.1.1 is ready" with a "Restart to update" link. This is the update card's Restart, which asks first while you're connected.
    • "Couldn't check" when the check hit a problem, or a release was found but failed to go in.
    • Only the words take color; the "·" stays muted.
  • When the result shows. Only after a click from this line, and only until Settings closes. It's worked out from the existing update status plus one checked_here flag.
  • Copies that can't update. A source build or a measuring window keeps the plain line, shows why on hover and ignores clicks.
  • Accessibility.
    • The button reads "MUDling 0.1.0, check for updates".
    • The result is announced politely once you've clicked. It isn't live at rest, so opening Settings says nothing.
    • Tab goes from the sections to the version, then to Restart to update while one is ready, then to Close.
    • --ax-check has three new stops and a check of the result's value; docs/accessibility.md is updated.
  • The new link buttons are built on the sheet's control().
  • The sample status the macOS --ax-check uses is built only on macOS, so Linux lint has no dead code.

Checks

  • cargo fmt --check and cargo clippy --workspace --all-targets --release --locked -- -D warnings are clean on macOS. Linux lint runs in CI.

  • cargo test --workspace --no-fail-fast --locked passes.

  • New tests in settings/updates.rs cover:

    • a click sending CheckNow;
    • each result line from a given status;
    • no result without a click, and the result clearing when Settings reopens;
    • Restart to update;
    • a can't-update copy ignoring the click.

    None of them depend on timing.

  • Release --synthetic --ax-check passes all 109 checks.

  • The VoiceOver announcement has been confirmed against the accessibility code but not heard yet; that's for the playtest.

Reviewed with Wiffletree: 1 full review and 2 re-checks, 4 rounds (Tests, Claude, Style)

mhohlios added 4 commits November 4, 2026 23:51
…in place

The version part of the sidebar's about line becomes a button that asks for
the same check as Check now. The line then reads Checking…, Up to date, the
ready version with a Restart to update link, or Couldn't check, until
Settings closes. A copy that can't update keeps the plain line and says why
on hover. --ax-check visits the resting and result states.
…value

macOS VoiceOver announces a live node's value, so the result carries its
words as both label and value and is marked polite.
…ld on control, only the words are colored

The result is a live status with a value only once a check was asked for
from the line, so opening Settings doesn't read out the license. The
version and Restart to update links are built on control, getting its
hover cue; the version underlines through its group. The dot stays muted.
--ax-check reads the result's value at rest and after a click.
The Ready re-export and show_sample_version_check are only used by
--ax-check, so on Linux they were dead code. They carry the same
target_os = "macos" gate as the other show_sample_* helpers.
@MHohlios
MHohlios merged commit 60319ac into main Nov 5, 2026
5 checks passed
@MHohlios
MHohlios deleted the wiffletree/click-the-version-to-check-for-updates branch November 5, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant