feat: display app version in sidebar footer

Made-with: Cursor
This commit is contained in:
taylanbakircioglu
2026-03-29 23:12:35 +03:00
parent d653ac19dc
commit 1e1eb56185
3 changed files with 20 additions and 12 deletions
+19 -1
View File
@@ -21,6 +21,7 @@ import {
} from '@ant-design/icons';
import FlowfishLogo from '../FlowfishLogo';
import type { MenuProps } from 'antd';
import { APP_VERSION } from '../../version';
const { Sider } = Layout;
@@ -218,6 +219,8 @@ const Sidebar: React.FC<SidebarProps> = ({ collapsed }) => {
left: 0,
top: 0,
bottom: 0,
display: 'flex',
flexDirection: 'column',
}}
>
{/* Logo */}
@@ -257,9 +260,24 @@ const Sidebar: React.FC<SidebarProps> = ({ collapsed }) => {
items={menuItems}
style={{
borderRight: 0,
flex: 1,
}}
/>
<div
style={{
padding: collapsed ? '8px 0' : '8px 16px',
textAlign: 'center',
fontSize: 11,
color: 'rgba(255,255,255,0.25)',
whiteSpace: 'nowrap',
overflow: 'hidden',
flexShrink: 0,
}}
>
{collapsed ? `v${APP_VERSION}` : `Flowfish v${APP_VERSION}`}
</div>
{/* Fix for text wrapping issue on smaller screens */}
<style>{`
.ant-menu-item,
-7
View File
@@ -1,8 +1 @@
// Auto-generated version file - DO NOT EDIT MANUALLY
// Updated by CI/CD pipeline via .build-marker
export const APP_VERSION = '2.3.0';
export const BUILD_NUMBER = 1;
export const FULL_VERSION = '2.3.0-build.1';
export const BUILD_TIMESTAMP = '2026-01-07T16:45:00Z';
+1 -4
View File
@@ -1,6 +1,3 @@
{
"version": "2.3.0",
"buildNumber": 0,
"lastUpdated": "2026-01-07T00:00:00Z"
"version": "2.3.0"
}