Skip to content

feat(app): check for updates and settings in the OneCorp menu - #44

Merged
lucasnevespereira merged 1 commit into
mainfrom
feat/check-updates
Nov 11, 2026
Merged

lucasnevespereira merged 1 commit into
mainfrom
feat/check-updates

Conversation

@lucasnevespereira

Copy link
Copy Markdown
Member

Summary

Updates only ran at launch and every 6 hours, silently. You couldn't ask for a new release now, or check you already have it. The OneCorp menu now has the two items Mac apps keep under About.

 OneCorp
   About OneCorp
+  Check for Updates…
+  ───
+  Settings…            ⌘,
   ───
   Services             ›
menu click (Rust)
  show + focus the window   ← it may be closed to the menu bar
  emit "menu" → "check-updates" | "settings"
app.ts listens
  check-updates → checkForUpdate(asked = true)
  settings      → openSettings()

checkForUpdate(asked) is the same check the background uses, but asked it reports how it went:

Case Toast
Up to date You're up to date. OneCorp 0.1.8 is the latest.
New version Downloading OneCorp 0.1.9…, then "ready, restart from the sidebar"
Already downloaded OneCorp 0.1.9 is ready. Restart to update, in the sidebar.
Offline Couldn't check for updates. Try again in a moment.
Dev build Dev builds don't update.

The background check stays silent. A manual check also resets the 6 hour timer, so the two never stack.

Evidence

  • cargo build, clippy -D warnings, tsc, ui-smoke.js and onboarding.mjs pass.
  • Not clicked through in a running app yet. make dev shows the menu. A dev build takes the "Dev builds don't update" path, so the real check needs a release build.

Merge Danger

Door: two-way

Blast Radius: small

Menu items and one event. ⌘, now goes through the menu instead of the window's key handler, and both open Settings.

@lucasnevespereira
lucasnevespereira merged commit 89a4394 into main Nov 11, 2026
4 checks passed
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