Repository navigation
feat(settings): display version check status and upgrade reminder - #334
Merged
Merged
Conversation
overtrue
requested changes
Dec 4, 2026
overtrue
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed 62203284 (feat(settings): display version check status and upgrade reminder).
The feature implementation (lib/version-check.ts, hooks/use-version-check.ts, app/(dashboard)/settings/page.tsx, and tests/lib/version-check.test.ts) is well structured: normalizeVersionCheckSnapshot handles missing/malformed fields safely, ApiClient suppress403Redirect: true is wired correctly with Promise.allSettled fallback to configManager.loadConfig().release?.version, and all UI strings are keyed in the locale files.
Blocking items before approval:
- Merge conflicts (
CONFLICTING/DIRTY): Needs rebase ontomain(433917a1), which modified all 15i18n/locales/*.jsonfiles in#333. - CI gate:
0CI checks have run onfeat/version-check.
Non-blocking notes:
- In
app/(dashboard)/settings/page.tsx, theSyncbutton usesdisabled={loading || saving}and omitsversionLoading, so repeated clicks while only the version check is still pending can issue overlapping requests. - In
lib/version-check.ts,UPGRADE_DOCS_URL_ENomits the trailing/whileUPGRADE_DOCS_URL_ZHincludes it (.../upgrade/).
cxymds
force-pushed
the
feat/version-check
branch
from
December 4, 2026 03:21
6220328 to
43c1aab
Compare
Member
Author
|
Addressed all review items in
|
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.
Pull Request
Description
Add a read-only Version Check section below the Notify / Audit module switches on the System Settings page (
app/(dashboard)/settings/page.tsx) that consumes the server-sideGET /rustfs/admin/v3/version-checkendpoint. It displays the current RustFS version and the latest available version, shows alatestbadge when up to date, and renders an external upgrade reminder link (update available/升级至最新版本) pointing to the canonical locale-appropriate RustFS upgrade documentation (https://docs.rustfs.com/en/operations/upgradeorhttps://docs.rustfs.com/zh/operations/upgrade) when a newer release exists.The Console does not issue external browser requests to
version.rustfs.comand does not expose a toggle or disable control on the settings page. Version check reads run independently from module switches so older servers or unavailable checks degrade gracefully toUnavailablewithout affectingNotifyorAuditswitch reads and writes, and theSyncaction guards against overlapping refreshes while either switches or version check are loading.Type of Change
Testing
All 1,349 unit tests passed, including
tests/lib/version-check.test.tscovering payload normalization, version formatting (refs/tags/,RELEASE.,v, and@commit), display-state resolution, locale-specific upgrade documentation URLs, placement belowAudit,Syncdisabled state duringversionLoading, and Settings page contract assertions. Headless Chrome verified the static production build against a local HTTP fixture server across desktop (English update available, Chinese update available, English latest) and mobile (390x844, zero horizontal overflow).Checklist
Related Issues
Related to
rustfs/backlog#3400Screenshots (if applicable)
Captured locally from the production static build (
out/rustfs/console) backed by a local HTTP fixture server to exercise each state deterministically.Additional Notes
Requires the companion
rustfsbackend PR that caches the server-side update check result and exposesGET /rustfs/admin/v3/version-check. Against older RustFS servers without that route, the section still shows the current version from/rustfs/console/versionand marks latest status asUnavailable.