feat: add link with the service status using static icon (#7468)

This commit is contained in:
Pablo Lara
2025-04-08 12:06:21 +02:00
committed by Pepe Fagoaga
parent 163ae5d79d
commit e2dfc1f383
2 changed files with 22 additions and 4 deletions
+1
View File
@@ -13,6 +13,7 @@ All notable changes to the **Prowler UI** are documented in this file.
- Accepted invitations can no longer be edited. [(#7198)](https://github.com/prowler-cloud/prowler/pull/7198)
- Added download column in scans table to download reports for completed scans. [(#7353)](https://github.com/prowler-cloud/prowler/pull/7353)
- Show muted icon when a finding is muted. [(#7378)](https://github.com/prowler-cloud/prowler/pull/7378)
- Added static status icon with link to service status page. [(#7468)](https://github.com/prowler-cloud/prowler/pull/7468)
#### 🔄 Changed
+21 -4
View File
@@ -1,11 +1,12 @@
"use client";
import { Divider } from "@nextui-org/react";
import { Ellipsis, LogOut } from "lucide-react";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { logOut } from "@/actions/auth";
import { AddIcon } from "@/components/icons";
import { AddIcon, InfoIcon } from "@/components/icons";
import { CollapseMenuButton } from "@/components/ui/sidebar/collapse-menu-button";
import {
Tooltip,
@@ -167,9 +168,25 @@ export const Menu = ({ isOpen }: { isOpen: boolean }) => {
</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>
<div className="text-muted-foreground border-border mt-2 flex items-center justify-center gap-2 border-t pt-2 text-center text-xs">
<span>{process.env.NEXT_PUBLIC_PROWLER_RELEASE_VERSION}</span>
{process.env.NEXT_PUBLIC_IS_CLOUD_ENV === "true" && (
<>
<Divider orientation="vertical" />
<Link
href="https://status.prowler.com"
target="_blank"
rel="noopener noreferrer"
className="flex items-center gap-1"
>
<InfoIcon size={16} />
<span className="text-muted-foreground font-normal opacity-80 transition-opacity hover:font-bold hover:opacity-100">
Service Status
</span>
</Link>
</>
)}
</div>
</>
);
};