fix(ui): replace hardcoded v9.5 in sidebar with dynamic APP_VERSION
Sidebar was still showing v9.5. Now imports APP_VERSION from @/lib/version.ts like Settings and About pages. Also ignore stale fleet-dashboard.png screenshot. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -50,3 +50,4 @@ docs/comparison-*.md
|
|||||||
|
|
||||||
# Local dev tools (mock servers, screenshot automation)
|
# Local dev tools (mock servers, screenshot automation)
|
||||||
tools/dev/
|
tools/dev/
|
||||||
|
fleet-dashboard.png
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { useEffect, useRef } from 'react'
|
import { useEffect, useRef } from 'react'
|
||||||
|
import { APP_VERSION } from '@/lib/version'
|
||||||
import { Link, useRouterState } from '@tanstack/react-router'
|
import { Link, useRouterState } from '@tanstack/react-router'
|
||||||
import {
|
import {
|
||||||
Monitor,
|
Monitor,
|
||||||
@@ -270,7 +271,7 @@ export function Sidebar() {
|
|||||||
{/* Version identifier */}
|
{/* Version identifier */}
|
||||||
{!showCollapsed && (
|
{!showCollapsed && (
|
||||||
<div className="px-3 py-1 text-center">
|
<div className="px-3 py-1 text-center">
|
||||||
<span className="font-mono text-[9px] text-text-muted">TOD v9.5</span>
|
<span className="font-mono text-[9px] text-text-muted">TOD {APP_VERSION}</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user