feat: show git commit hash in admin sidebar

Display the deployment version (git sha) under "Cannabrands Hub" in
the admin panel sidebar for easier deployment verification.
This commit is contained in:
kelly
2025-12-05 12:13:30 -07:00
parent 61fd09f6a8
commit 85d0ca2369
2 changed files with 7 additions and 0 deletions

View File

@@ -102,6 +102,10 @@ class AdminPanelProvider extends PanelProvider
->renderHook(
'panels::footer',
fn () => view('filament.footer'),
)
->renderHook(
'panels::sidebar.nav.start',
fn () => view('filament.version-badge'),
);
}
}

View File

@@ -0,0 +1,3 @@
<div class="px-6 pb-2 -mt-2 text-xs text-gray-400 dark:text-gray-500 font-mono">
sha-{{ $appCommit }}
</div>