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
Merge origin/main into andrew/platfor-679-migrate-project-environments-settings-to-v3
Andrew Huang538db2949eb0
diff --cc frontend/src/components/v3/platform/LookingForOrgPageLink/LookingForOrgPageLink.tsxindex d63888f6ea,0000000000..4fb6b930afmode 100644,000000..100644--- a/frontend/src/components/v3/platform/LookingForOrgPageLink/LookingForOrgPageLink.tsx+++ b/frontend/src/components/v3/platform/LookingForOrgPageLink/LookingForOrgPageLink.tsx@@@ -1,55 -1,0 +1,54 @@@+import { Link } from "@tanstack/react-router";+import { ChevronRightIcon } from "lucide-react";++import { useOrganization } from "@app/context";++import { Button } from "../../generic";+import { cn } from "../../utils";++const ORG_PAGE_CONFIG = {+ settings: {+ to: "/organizations/$orgId/settings",+ label: "settings"+ },+ accessControl: {+ to: "/organizations/$orgId/access-management",+ label: "access control"+ },+ auditLogs: {+ to: "/organizations/$orgId/audit-logs",+ label: "audit logs"+ }+} as const;++export type TLookingForOrgPageLinkProps = {+ page: keyof typeof ORG_PAGE_CONFIG;+ target?: "current" | "root";+ className?: string;+};++export const LookingForOrgPageLink = ({+ page,+ target = "current",+ className+}: TLookingForOrgPageLinkProps) => {+ const { currentOrg, isSubOrganization } = useOrganization();+ const { to, label } = ORG_PAGE_CONFIG[page];++ if (target === "root" && !isSubOrganization) {+ return null;+ }++ const orgId = target === "root" ? (currentOrg.rootOrgId ?? "") : currentOrg.id;- const scopeLabel =- target === "root" ? "root org" : `${isSubOrganization ? "sub-" : ""}org`;++ const scopeLabel = target === "root" ? "root org" : `${isSubOrganization ? "sub-" : ""}org`;+ const text = `${scopeLabel} ${label}`;++ return (+ <Button variant="ghost" size="sm" asChild className={cn("text-muted", className)}>+ <Link to={to} params={{ orgId }}>+ {text.charAt(0).toUpperCase() + text.slice(1)}+ <ChevronRightIcon aria-hidden />+ </Link>+ </Button>+ );+};diff --cc frontend/src/pages/organization/SettingsPage/components/OrgTabGroup/OrgTabGroup.tsxindex de29b6677e,f95331c3f0..f6f9432e82--- a/frontend/src/pages/organization/SettingsPage/components/OrgTabGroup/OrgTabGroup.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/OrgTabGroup/OrgTabGroup.tsx@@@ -4,7 -4,7 +4,12 @@@ import { Link, useSearch } from "@tanstimport { InfoIcon } from "lucide-react";import { PageHeader, TabPanel, Tabs } from "@app/components/v2";- import { Alert, AlertDescription, AlertTitle, LookingForOrgPageLink } from "@app/components/v3";-import { AlertDescription, AlertTitle, DismissableAlert } from "@app/components/v3";++import {++ AlertDescription,++ AlertTitle,++ DismissableAlert,++ LookingForOrgPageLink++} from "@app/components/v3";import { ROUTE_PATHS } from "@app/const/routes";import { useOrganization, useSubscription } from "@app/context";@@@ -97,10 -97,24 +102,14 @@@ export const OrgTabGroup = () =>}title={selectedTabName ?? settingsTitle}>- {isSubOrganization && (- <Link- to="/organizations/$orgId/settings"- params={{- orgId: currentOrg.rootOrgId ?? ""- }}- className="flex items-center gap-x-1.5 text-xs whitespace-nowrap text-neutral hover:underline"- >- <InfoIcon size={12} /> Looking for root organization settings?- </Link>- )}+ <LookingForOrgPageLink page="settings" target="root" /></PageHeader>{selectedTab === "tab-org-general" && (- <Alert variant="info" className="mb-6">+ <DismissableAlert+ variant="info"+ className="mb-6"+ actionKey="org_general_settings_moved_banner_dismissed"+ ><InfoIcon /><AlertTitle>Some Settings Have Moved</AlertTitle><AlertDescription>diff --cc frontend/vite.config.tsindex 4b85595566,bd376af6a7..401df2901e--- a/frontend/vite.config.ts+++ b/frontend/vite.config.ts@@@ -69,7 -85,7 +85,7 @@@ export default defineConfig(({ mode })experimental: {renderBuiltUrl(filename, { hostType }) {if (hostType === "js") {-- const fallback = `function(f){ return "/" + f; }`;++ const fallback = 'function(f){ return "/" + f; }';const fn = `(typeof window.__toCdnUrl === "function" ? window.__toCdnUrl : ${fallback})`;return { runtime: `${fn}(${JSON.stringify(filename)})` };}