From 5c598d1fc6d66d7aa48582aa7e38e0b350380958 Mon Sep 17 00:00:00 2001 From: Bill Ballou Date: Fri, 13 Mar 2026 15:45:58 -0400 Subject: [PATCH] Add version number display to UI header Inject app version (v1.0.0) at build time via Vite define config and display it below the title in muted text. --- app/src/App.tsx | 3 ++- app/src/vite-env.d.ts | 3 +++ app/vite.config.ts | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 app/src/vite-env.d.ts diff --git a/app/src/App.tsx b/app/src/App.tsx index 7b6517a..3a6ec4c 100644 --- a/app/src/App.tsx +++ b/app/src/App.tsx @@ -102,9 +102,10 @@ function App() { /> )} -

+

EMBA Specialization Solver

+
v{__APP_VERSION__}
diff --git a/app/src/vite-env.d.ts b/app/src/vite-env.d.ts new file mode 100644 index 0000000..dbb4c62 --- /dev/null +++ b/app/src/vite-env.d.ts @@ -0,0 +1,3 @@ +/// + +declare const __APP_VERSION__: string; diff --git a/app/vite.config.ts b/app/vite.config.ts index 5cd70ea..55fdf45 100644 --- a/app/vite.config.ts +++ b/app/vite.config.ts @@ -5,6 +5,9 @@ import react from '@vitejs/plugin-react' // https://vite.dev/config/ export default defineConfig({ plugins: [react()], + define: { + __APP_VERSION__: JSON.stringify('1.0.0'), + }, server: { allowedHosts: ['soos'], },