Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/dashboard/web/polaris_web/web/public/white_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,21 @@

.local_icon .Polaris-Icon__Svg {
fill: #2C6ECB !important;
}

/* Agentic Security top bar */
body:has(.agentic-security-nav) .Polaris-TopBar {
background: linear-gradient(90deg, #5C11E2 40%, #804ADC 60%) !important;
}

body:has(.agentic-security-nav) .Polaris-TopBar__SecondaryMenu .Polaris-Icon svg {
fill: #ffffff !important;
}

body:has(.agentic-security-nav) .Polaris-TopBar button:hover {
background: rgba(255, 255, 255, 0.1) !important;
}

body:has(.agentic-security-nav) .logo img {
max-width: 78px !important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export default function Header() {
const dashboardCategory = PersistStore.getState().dashboardCategory;
const setDashboardCategory = PersistStore.getState().setDashboardCategory

const logoSrc = dashboardCategory === "Agentic Security" ? "/public/white_logo.svg" : "/public/akto_name_with_logo.svg";

/* Search bar */
//const allRoutes = Store((state) => state.allRoutes)
const allCollections = PersistStore((state) => state.allCollections)
Expand Down Expand Up @@ -237,7 +239,7 @@ export default function Header() {
<Box paddingInlineStart={3} paddingInlineEnd={3}>
<HorizontalStack gap={4} wrap={false}>
<div style={{ cursor: 'pointer' }} onClick={() => window.location.href = "/dashboard/observe/inventory"} className='logo'>
<img src="/public/akto_name_with_logo.svg" alt="Akto Logo" style={{ maxWidth: '78px' }} />
<img src={logoSrc} alt="Akto Logo" style={{ maxWidth: '78px' }} />
</div>

<Box minWidth='170px'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@
.Polaris-Navigation {
height: calc(100% - 70px);
overflow-y: hidden !important;
}

/* Agentic Security left nav */
body:has(.agentic-security-nav) .Polaris-Navigation {
background: #ffffff !important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ export default function LeftNav() {
}, [dashboardCategory, leftNavSelected])

const navigationMarkup = (
<div className={active}>
<div className={`${active} ${dashboardCategory === "Agentic Security" ? "agentic-security-nav" : ""}`}>
<Navigation location="/">
<Navigation.Section
items={navItems}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ import Header from "../../components/layouts/header/Headers"
import LeftNav from "../../components/layouts/leftnav/LeftNav"
import Store from "../../store";
import { Outlet } from "react-router-dom";
import PersistStore from "../../../main/PersistStore";

function HomePage() {

const leftNavCollapsed = Store(state => state.leftNavCollapsed)
const dashboardCategory = PersistStore((state) => state.dashboardCategory) || "API Security";

const logo = {
width: 78,
topBarSource:
'/public/akto_name_with_logo.svg',
dashboardCategory === "Agentic Security" ? 'White%20logo.svg' : 'akto_name_with_logo.svg',
url: '/dashboard/observe/inventory',
accessibilityLabel: 'Akto Icon',
};
Expand Down
Loading