Add hybrid versioning scripts, version shown in app footer
This commit is contained in:
25
src/App.tsx
25
src/App.tsx
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user