fix(admin-ui): UpdateBanner none-version + tokens
This commit is contained in:
@@ -30,13 +30,17 @@ export function UpdateBanner() {
|
|||||||
|
|
||||||
if (!updateAvailable || dismissed) return null
|
if (!updateAvailable || dismissed) return null
|
||||||
|
|
||||||
const versionLabel = serverTag || serverVersion || serverCommit?.substring(0, 7) || ''
|
// serverTag === 'none' для branch builds (Spring Boot build-info default
|
||||||
|
// sentinel non-null). Не показываем "none" как версию — fallback к
|
||||||
|
// serverVersion (e.g. "0.1.0-SNAPSHOT") и потом к 7-char commit hash.
|
||||||
|
const tag = serverTag && serverTag !== 'none' ? serverTag : null
|
||||||
|
const versionLabel = tag || serverVersion || serverCommit?.substring(0, 7) || ''
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
role="status"
|
role="status"
|
||||||
aria-live="polite"
|
aria-live="polite"
|
||||||
className="bg-ultramarain text-white"
|
className="bg-accent text-on-accent"
|
||||||
>
|
>
|
||||||
<div className="max-w-6xl mx-auto px-4 sm:px-6 py-2 flex items-center gap-3 flex-wrap text-sm">
|
<div className="max-w-6xl mx-auto px-4 sm:px-6 py-2 flex items-center gap-3 flex-wrap text-sm">
|
||||||
<ArrowClockwise size={18} weight="bold" className="shrink-0" aria-hidden />
|
<ArrowClockwise size={18} weight="bold" className="shrink-0" aria-hidden />
|
||||||
|
|||||||
Reference in New Issue
Block a user