feat: add notification for admins when they are not on latest nao version#719
Open
feat: add notification for admins when they are not on latest nao version#719
Conversation
Checks the latest GitHub release and shows a warning in the sidebar bottom when the deployed version is outdated. Only visible to admins. Backend caches the check result for 1 hour. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
🚀 Preview Deployment
Preview will be automatically removed when this PR is closed. |
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 #569
Summary
system.checkUpdate) that fetches the latest nao release from GitHub and compares it with the currentAPP_VERSIONAPP_VERSION=devby default) and Docker deployments (version set via build arg)Changed files
apps/backend/src/services/version-check.service.ts— new service: fetches latest GitHub release, semver comparison with rc support, 1-hour in-memory cacheapps/backend/src/trpc/system.routes.ts— newcheckUpdateadmin-protected routeapps/frontend/src/components/sidebar-version-notice.tsx— new component: amber warning with tooltip when collapsedapps/frontend/src/components/sidebar.tsx— wires the notice into the sidebar bottom section (admin-only)Notes
The original issue also mentioned showing release notes in the admin panel — this PR ships the floating notification only. Release notes in settings can be a follow-up if useful.
Test plan
APP_VERSIONand verify the notification appears for admin usersAPP_VERSION=dev(default local development) — should show the notice🤖 Generated with Claude Code