Add hybrid versioning scripts, version shown in app footer

This commit is contained in:
2026-01-16 16:55:13 +00:00
parent 966006db6a
commit 5bd9780ac0
8 changed files with 214 additions and 11 deletions

View File

@@ -19,7 +19,7 @@ import Settings from './components/settings';
import LanguageSelector from './components/language-selector';
import DisclaimerModal from './components/disclaimer-modal';
import { Button } from './components/ui/button';
import { PROJECT_REPOSITORY_URL } from './constants/defaults';
import { PROJECT_REPOSITORY_URL, APP_VERSION } from './constants/defaults';
// Custom Hooks
import { useAppState } from './hooks/useAppState';
@@ -220,15 +220,20 @@ const MedPlanAssistant = () => {
>
{t('disclaimerModalFooterLink')}
</Button>
<a
href={PROJECT_REPOSITORY_URL}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center justify-center w-8 h-8 rounded-md hover:bg-accent text-foreground hover:text-accent-foreground transition-colors"
title={t('footerProjectRepo')}
>
<GitBranch size={18} />
</a>
<div className="flex items-center gap-3">
<span className="text-xs text-muted-foreground" title={`Version: ${APP_VERSION}${APP_VERSION.endsWith('-dirty') ? ' (uncommitted changes)' : ''}`}>
v{APP_VERSION}
</span>
<a
href={PROJECT_REPOSITORY_URL}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center justify-center w-8 h-8 rounded-md hover:bg-accent text-foreground hover:text-accent-foreground transition-colors"
title={t('footerProjectRepo')}
>
<GitBranch size={18} />
</a>
</div>
</div>
</div>
</footer>