Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
chore: add comment explaining current sidebar boolean checks
Scott Wilson1cf75354b678
diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectNav.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectNav.tsxindex 92af01266d..70d0678e1f 100644--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectNav.tsx+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectNav.tsx@@ -54,6 +54,9 @@ export const ProjectNav = () => {const projectLabel = isSubOrganization ? "Sub-Organization" : "Organization";const NavComponent = PROJECT_NAV_COMPONENT[currentProject.type];+ // scott: we currently have to use this flaky inclusion for routes/nested routes because we haven't+ // been consistent in using a route structure that reflects nested pages; once we refactor we can switch+ // to using tanstack `isActive` link propertyconst isOnAccessControl =pathname.includes("/access-management") ||Boolean(pathname.match(/\/groups\/|\/identities\/|\/members\/|\/roles\//));