From a83b8146566f826de789da7f254c337949764d96 Mon Sep 17 00:00:00 2001 From: busya Date: Fri, 19 Jun 2026 16:10:11 +0300 Subject: [PATCH] 034-footer: add commit hash to version display in footer - vite.config.js: append short commit hash to git tag (tag+hash) - .gitignore: add *.docx Footer now shows e.g. 'v0.3.1+e07bf46b' --- .gitignore | 3 ++- frontend/vite.config.js | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 3f2041b5..434fd2df 100755 --- a/.gitignore +++ b/.gitignore @@ -108,4 +108,5 @@ superset-tools.bundle .axiom/ # Generated audit reports -axiom-mcp-tools-audit-report.md \ No newline at end of file +axiom-mcp-tools-audit-report.md +*.docx diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 0324fc2f..f0d192b9 100755 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -7,9 +7,11 @@ const APP_VERSION = (() => { if (process.env.APP_VERSION && process.env.APP_VERSION !== '0.0.0') { return process.env.APP_VERSION; } - // 2. Fall back to latest git tag (works in local dev with .git) + // 2. Fall back to latest git tag + short commit hash (works in local dev with .git) try { - return execSync('git describe --tags --abbrev=0', { encoding: 'utf8' }).trim(); + const tag = execSync('git describe --tags --abbrev=0', { encoding: 'utf8' }).trim(); + const commit = execSync('git rev-parse --short HEAD', { encoding: 'utf8' }).trim(); + return `${tag}+${commit}`; } catch { return '0.0.0'; }