Skip to content

Tell the user when a new version is out - #126

Merged
jeff377 merged 1 commit into
mainfrom
claude/update-notification
Dec 5, 2026
Merged

jeff377 merged 1 commit into
mainfrom
claude/update-notification

Conversation

@jeff377

@jeff377 jeff377 commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Closes #125.

Polhem MD has no server of its own, so the app learns of a new version from this repository's GitHub Releases.

  • Daily check. Once a day after start (and an hourly look while the app stays open), the app reads GET https://api.github.com/repos/polhem-dev/polhem-md/releases/latest without signing in. GitHub leaves out drafts and pre-releases. The time of the last answer is kept in the settings, so restarting does not ask again within the day. A failure says nothing and is tried again at the next hourly look.
  • Status bar. A newer version shows at the right of every window's status bar, in the accent color. Clicking it opens a window with the version's release notes (the CHANGELOG.md section that release.yml publishes), drawn with MarkdownViewer, and Download, Skip This Version and Later. Download opens the release page in the browser.
  • Check for Updates… sits in the application menu on macOS and in Help elsewhere. It checks at once, even for a skipped version or with the setting off, and says when the app is up to date or why the check failed (for example GitHub's rate limit).
  • Setting. Settings > General has Check for new versions automatically, on by default, with a note that only the latest version is asked for and nothing about the user or their documents is sent. Turning it off also removes a version already shown in the status bar.
  • Safety. The page that is opened comes from the answer's html_url only when it is an https://github.com/polhem-dev/polhem-md/releases/… address on the default port. Otherwise the list of releases opens instead.

Installing the update in place (Velopack or similar) is left for later, as the issue says.

Testing

  • dotnet build / dotnet test (Release): 629 passed, 3 skipped. New tests: AppVersionTests, ReleaseFeedTests, UpdateCheckTests. LocTests.NamesStandardAppMenuItems now counts the app's own application-menu items instead of assuming three, since the menu gains Check for Updates.
  • Checked the status bar, the update window and the General settings page in headless captures.

The app has no server of its own, so it learns of a new version from the repository's GitHub Releases, where every
version is published. Once a day it reads the latest release, without signing in, and a newer version shows at the
right of every window's status bar. Clicking it shows the version's release notes with Download, which opens the
release page in the browser, Skip This Version and Later. A release page outside this repository's releases is never
opened; the list of releases is, instead.

Check for Updates… (the application menu on macOS, Help elsewhere) checks at once, even for a skipped version or with
the daily check off, and says when the app is up to date or why the check failed. A daily check that fails says nothing
and is tried again within the hour. Settings > General turns the daily check off, and says that only the latest version
is asked for.

Closes #125
@jeff377
jeff377 enabled auto-merge (squash) December 5, 2026 09:24
@jeff377
jeff377 merged commit ad188b1 into main Dec 5, 2026
6 checks passed
@jeff377
jeff377 deleted the claude/update-notification branch December 5, 2026 09:27
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.

Tell the user when a new version is out

1 participant