Skip to content

Commit

Permalink
feat(version): add prowler version to the sidebar (#7086)
Browse files Browse the repository at this point in the history
  • Loading branch information
paabloLC authored and cesararroba committed Mar 3, 2025
1 parent 5a9ff00 commit a48e5cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,6 @@ DJANGO_SENTRY_DSN=
# Sentry settings
SENTRY_ENVIRONMENT=local
SENTRY_RELEASE=local

#### Prowler release version ####
NEXT_PUBLIC_PROWLER_RELEASE_VERSION=v5.4.0
6 changes: 5 additions & 1 deletion ui/components/ui/sidebar/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const Menu = ({ isOpen }: { isOpen: boolean }) => {
</div>
<ScrollArea className="[&>div>div[style]]:!block">
<nav className="mt-2 h-full w-full lg:mt-6">
<ul className="flex min-h-[calc(100vh-16px-60px-40px-16px-32px-40px-32px)] flex-col items-start space-y-1 px-2 lg:min-h-[calc(100vh-16px-60px-40px-16px-64px-16px)]">
<ul className="flex min-h-[calc(100vh-16px-60px-40px-16px-32px-40px-32px-44px)] flex-col items-start space-y-1 px-2 lg:min-h-[calc(100vh-16px-60px-40px-16px-64px-16px-41px)]">
{menuList.map(({ groupLabel, menus }, index) => (
<li
className={cn(
Expand Down Expand Up @@ -166,6 +166,10 @@ export const Menu = ({ isOpen }: { isOpen: boolean }) => {
</Tooltip>
</TooltipProvider>
</div>

<span className="text-muted-foreground border-border mt-2 border-t pt-2 text-center text-xs lg:mt-4">
{process.env.NEXT_PUBLIC_PROWLER_RELEASE_VERSION}
</span>
</>
);
};

0 comments on commit a48e5cb

Please sign in to comment.