feat: version banner UI + GET /api/v1/version backend endpoint

This commit is contained in:
Александр Зимин
2026-05-10 16:50:50 +00:00
parent 17386ba0b4
commit e8f98230f2
9 changed files with 355 additions and 0 deletions
+4
View File
@@ -3,6 +3,8 @@ import type { QueryClient } from '@tanstack/react-query'
import { useTranslation } from 'react-i18next'
import { LanguageSwitch } from '@nstart/ui'
import { AuthBadge } from '@/auth/AuthBadge'
import { UpdateBanner } from '@/components/version/UpdateBanner'
import { VersionBadge } from '@/components/version/VersionBadge'
export const Route = createRootRouteWithContext<{ queryClient: QueryClient }>()({
component: RootLayout,
@@ -17,6 +19,7 @@ function RootLayout() {
const { t, i18n } = useTranslation()
return (
<div className="min-h-full flex flex-col bg-white">
<UpdateBanner />
<header className="border-b border-regolith bg-white">
<div className="max-w-6xl mx-auto px-4 sm:px-6 py-3 sm:py-4 flex items-center flex-wrap gap-3 sm:gap-6">
<Link to="/" className="font-primary text-base sm:text-lg text-ultramarain">
@@ -74,6 +77,7 @@ function RootLayout() {
</Link>
</nav>
<div className="ml-auto flex items-center gap-3">
<VersionBadge />
<LanguageSwitch
value={i18n.language}
options={LANG_OPTIONS}