Skip to content

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

fix(insights): open the access sheet on the graph and theme the graph's attribution

Dimitris Staratzis90aaed380929
diff --git a/frontend/src/components/secrets/SecretAccessGraph/SecretAccessGraph.tsx b/frontend/src/components/secrets/SecretAccessGraph/SecretAccessGraph.tsx
index a671def45d..71748cf35c 100644
--- a/frontend/src/components/secrets/SecretAccessGraph/SecretAccessGraph.tsx
+++ b/frontend/src/components/secrets/SecretAccessGraph/SecretAccessGraph.tsx
@@ -15,6 +15,7 @@ import { format } from "date-fns";
import { MaximizeIcon, MinusIcon, PlusIcon } from "lucide-react";
import { IconButton } from "@app/components/v3";
+import { useTheme } from "@app/components/v3/platform/ThemeProvider";
import { buildAccessGraph, TAccessGraphInput } from "./buildAccessGraph";
import { BandLabelNode, LaneEdge, ReaderNode, SecretNode } from "./nodes";
@@ -51,6 +52,7 @@ const connectedTo = (nodeId: string, edges: Edge[]) => {
};
const SecretAccessGraphContent = ({ input }: Props) => {
+ const { resolvedTheme } = useTheme();
const {
nodes: builtNodes,
edges: builtEdges,
@@ -118,6 +120,8 @@ const SecretAccessGraphContent = ({ input }: Props) => {
onEdgesChange={onEdgesChange}
onNodeClick={onNodeClick}
onPaneClick={() => setFocusedId(undefined)}
+ // Themes React Flow's own chrome, the attribution included, to match the app.
+ colorMode={resolvedTheme}
nodeTypes={NODE_TYPES}
edgeTypes={EDGE_TYPES}
proOptions={{ hideAttribution: false }}
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsx
index 07d28188cb..26d77ff72f 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsx
@@ -431,7 +431,7 @@ export function SecretAccessInsights({
secretKey,
environment,
secretPath,
- defaultView = "table"
+ defaultView = "graph"
}: Props) {
const { currentOrg } = useOrganization();
const { currentProject } = useProject();