Skip to content

feat(admin): tell admins when a new PaGetto release is available - #120

Merged
letreset merged 3 commits into
mainfrom
feature/release-check
Nov 21, 2026
Merged

letreset merged 3 commits into
mainfrom
feature/release-check

Conversation

@letreset

Copy link
Copy Markdown
Owner

Tell admins when a new PaGetto release is available

  • ReleaseCheckService looks up the latest release of letreset/PaGetto on the GitHub API at startup and then once a day. While it is newer than the running version, every admin page shows a notice under its tabs with a link to the release notes. Prereleases are not offered.
  • The request sends no version, credentials or cookies, only the PaGetto user agent GitHub requires. The release notes link is built from the tag, not taken from the answer.
  • Without network access the check fails silently (a Debug log line) and keeps the release found before. UpdateCheck:Enabled (default true) turns it off; the test host turns it off so no test contacts GitHub.
  • Docs: a Release check section in the configuration docs, a sentence in the web UI and upgrading docs, the key in AGENTS.md, and check F5 in testenv/UI-TESTS.md.
  • Separate commit: the footer padded outside its 1200px box, so on wide screens it stood 24px further out than the header and the page content on each side. It now pads inside, like .bgt-main.

Tests: ReleaseCheckerTests (version comparison, nothing sent when turned off, network failures and bad answers) and WebUiReleaseNoticeTests (the admin page with a newer release, an older one, the check turned off and no network). The full suite passes locally. Checked in the browser on a 1.3.0 image against the real GitHub API: the notice and link on every admin page in light and dark mode from 320px to 1920px, no notice with the check turned off, and the footer alignment on eight pages.

Addresses #109

ReleaseCheckService looks up the latest GitHub release of
letreset/PaGetto at startup and then once a day. The admin pages show a
notice under their tabs, with a link to the release notes, while that
release is newer than the running version. Prereleases are not offered.

The request carries no version, credentials or cookies, only the user
agent GitHub requires. Without network access the check fails silently
(a debug log line) and keeps the release found before.
UpdateCheck:Enabled (default true) turns it off; the test host turns it
off so tests never contact GitHub.

Closes #109
A Release check section in the configuration docs (what is sent, how to
turn it off), the notice on the admin pages in the web UI and upgrading
docs, the UpdateCheck key in AGENTS.md and a UI check for the notice.
The footer padded outside its 1200px box while the header and the page
content pad inside it, so on wide screens the footer text stood 24px
further out on each side. Pad inside, like .bgt-main.
@letreset
letreset merged commit 60f0b45 into main Nov 21, 2026
10 checks passed
@letreset
letreset deleted the feature/release-check branch November 21, 2026 09:21
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