Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Merge remote-tracking branch 'origin/main' into chore/gateway-improvements

Sheen Capadnganb102cc16995a
diff --cc frontend/src/layouts/OrganizationLayout/OrganizationLayout.tsx
index 6e75f8dc51,147673314d..f29a29ca86
--- a/frontend/src/layouts/OrganizationLayout/OrganizationLayout.tsx
+++ b/frontend/src/layouts/OrganizationLayout/OrganizationLayout.tsx
@@@ -10,8 -11,7 +11,8 @@@ import { useFetchServerStatus } from "@
import { AuditLogBanner } from "./components/AuditLogBanner";
import { InsecureConnectionBanner } from "./components/InsecureConnectionBanner";
import { Navbar } from "./components/NavBar";
+import { NetworkHealthBanner } from "./components/NetworkHealthBanner";
- import { OrgNavBar } from "./components/OrgNavBar";
+ import { OrgSidebar } from "./components/OrgSidebar";
import { RedisBanner } from "./components/RedisBanner";
import { SmtpBanner } from "./components/SmtpBanner";
@@@ -33,27 -33,28 +34,29 @@@ export const OrganizationLayout = () =
return (
<>
<Banner />
- <div
- className={`dark ${containerHeight} flex w-full flex-col overflow-x-hidden bg-bunker-800 transition-all`}
+ <SidebarProvider
+ className={`dark ${containerHeight} flex !min-h-0 w-full flex-col overflow-hidden bg-bunker-800 transition-all`}
>
<Navbar />
- <div className="flex grow flex-col overflow-y-hidden">
- <OrgNavBar isHidden={isInsideProject} />
- {!isLoading && !isInsideProject && !serverDetails?.redisConfigured && <RedisBanner />}
- {!isLoading && !isInsideProject && !serverDetails?.emailConfigured && <SmtpBanner />}
- {!isLoading && !isInsideProject && subscription.auditLogs && <AuditLogBanner />}
- {!window.isSecureContext && !isInsideProject && <InsecureConnectionBanner />}
- {!isInsideProject && <NetworkHealthBanner />}
- <main
- className={twMerge(
- "flex-1 overflow-x-hidden bg-bunker-800 px-12 pt-10 pb-4 dark:scheme-dark",
- isInsideProject ? "overflow-y-hidden p-0" : "overflow-y-auto"
- )}
- >
- <Outlet />
- </main>
+ <div className="flex min-h-0 flex-1 overflow-hidden">
+ <OrgSidebar />
+ <SidebarInset className="flex flex-col overflow-hidden">
+ {!isLoading && !isInsideProject && !serverDetails?.redisConfigured && <RedisBanner />}
+ {!isLoading && !isInsideProject && !serverDetails?.emailConfigured && <SmtpBanner />}
+ {!isLoading && !isInsideProject && subscription.auditLogs && <AuditLogBanner />}
+ {!window.isSecureContext && !isInsideProject && <InsecureConnectionBanner />}
++ {!isLoading && !isInsideProject && <NetworkHealthBanner />}
+ <div
+ className={twMerge(
+ "flex-1 overflow-x-hidden bg-bunker-800 dark:scheme-dark",
+ isInsideProject ? "overflow-y-hidden" : "overflow-y-auto px-12 pt-10 pb-4"
+ )}
+ >
+ <Outlet />
+ </div>
+ </SidebarInset>
</div>
- </div>
+ </SidebarProvider>
<CreateOrgModal
isOpen={popUp?.createOrg?.isOpen}
onClose={() => handlePopUpToggle("createOrg", false)}
diff --cc frontend/src/layouts/OrganizationLayout/components/NavBar/NotificationDropdown.tsx
index 58542cd144,a5d4aed05a..596c1d8ac9
--- a/frontend/src/layouts/OrganizationLayout/components/NavBar/NotificationDropdown.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/NavBar/NotificationDropdown.tsx
@@@ -33,29 -33,17 +34,24 @@@ export const NotificationDropdown = ()
[notifications]
);
+ const criticalCount = useMemo(
+ () => notifications?.filter((n) => !n.isRead && isCriticalNotification(n.type)).length || 0,
+ [notifications]
+ );
+
+ const hasCritical = criticalCount > 0;
+
return (
<DropdownMenu modal={false}>
- <DropdownMenuTrigger>
- <div className="relative border border-r-0 border-mineshaft-500 px-2.5 py-1 hover:bg-mineshaft-600">
- <FontAwesomeIcon icon={faBell} className="text-mineshaft-200" />
- {unreadCount > 0 && (
- <span
- className={twMerge(
- "absolute -top-1 -right-1 flex h-4 min-w-4 items-center justify-center rounded-full px-1 text-[10px]",
- hasCritical ? "bg-red-700 text-white" : "bg-yellow-400 text-black"
- )}
- >
- {unreadCount > 99 ? "99+" : unreadCount}
- </span>
- )}
- </div>
+ <DropdownMenuTrigger asChild>
+ <UnstableIconButton
+ variant="outline"
+ size="sm"
+ aria-label="Notifications"
+ className="relative"
+ >
+ {unreadCount > 0 ? <BellDotIcon className="text-warning" /> : <Bell />}
+ </UnstableIconButton>
</DropdownMenuTrigger>
<DropdownMenuContent
align="end"