Skip to content

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

Merge remote-tracking branch 'origin/main' into agent-vault-onboarding-sample-session

Scott Wilsone21d1de7871b
diff --cc frontend/src/pages/agent-vault/AgentVaultAccessBundleDetailPage/AgentVaultAccessBundleDetailPage.tsx
index 61a99dece0,78019538f5..fb8c2ecec8
--- a/frontend/src/pages/agent-vault/AgentVaultAccessBundleDetailPage/AgentVaultAccessBundleDetailPage.tsx
+++ b/frontend/src/pages/agent-vault/AgentVaultAccessBundleDetailPage/AgentVaultAccessBundleDetailPage.tsx
@@@ -78,33 -62,35 +76,42 @@@ export const AgentVaultAccessBundleDeta
const [isDeleteOpen, setIsDeleteOpen] = useState(false);
const [isServiceSheetOpen, setIsServiceSheetOpen] = useState(false);
const [serviceToEdit, setServiceToEdit] = useState<TAgentVaultService | null>(null);
+ useAgentVaultCreateIntent(
+ () => {
+ setServiceToEdit(null);
+ setIsServiceSheetOpen(true);
+ },
+ isAdmin && Boolean(accessBundle)
+ );
- if (isPending) return <PageLoader />;
+ if (isPending)
+ return (
+ <>
+ <PageTitle title="Access Bundle" />
+ <PageLoader />
+ </>
+ );
if (!accessBundle) {
return (
- <div className="mx-auto mb-6 w-full max-w-8xl">
- <Empty className="border">
- <EmptyHeader>
- <EmptyTitle>Access bundle not found</EmptyTitle>
- <EmptyDescription>It was deleted or is no longer granted to you.</EmptyDescription>
- </EmptyHeader>
- <Button variant="av" asChild>
- <Link
- to="/organizations/$orgId/agent-vault/access-bundles"
- params={{ orgId: currentOrg.id }}
- >
- Back to Access Bundles
- </Link>
- </Button>
- </Empty>
- </div>
+ <>
+ <PageTitle title="Access Bundle" />
+ <div className="mx-auto mb-6 w-full max-w-8xl">
+ <Empty className="border">
+ <EmptyHeader>
+ <EmptyTitle>Access bundle not found</EmptyTitle>
+ <EmptyDescription>It was deleted or is no longer granted to you.</EmptyDescription>
+ </EmptyHeader>
+ <Button variant="av" asChild>
+ <Link
+ to="/organizations/$orgId/agent-vault/access-bundles"
+ params={{ orgId: currentOrg.id }}
+ >
+ Back to Access Bundles
+ </Link>
+ </Button>
+ </Empty>
+ </div>
+ </>
);
}
diff --cc frontend/src/pages/agent-vault/AgentVaultSessionsPage/AgentVaultSessionsPage.tsx
index fcb14198f4,59fb842fd9..ac762e157d
--- a/frontend/src/pages/agent-vault/AgentVaultSessionsPage/AgentVaultSessionsPage.tsx
+++ b/frontend/src/pages/agent-vault/AgentVaultSessionsPage/AgentVaultSessionsPage.tsx
@@@ -20,10 -18,7 +18,11 @@@ import
import { AgentVaultSessionLogUpgradeModal } from "@app/components/agent-vault/AgentVaultSessionLogUpgradeModal";
import { memberDisplayName, memberSubtitle } from "@app/components/agent-vault/MemberName";
+ import { PageTitle } from "@app/components/PageTitle";
+import {
+ useAgentVaultSetupProgress,
+ useOpenAgentVaultSetupStep
+} from "@app/components/agent-vault/SetupChecklist";
import {
Alert,
AlertAction,
@@@ -204,51 -178,9 +202,49 @@@ export const AgentVaultSessionsPage = (
emptyDescription = "Create a session to get a token an agent can run with.";
}
+ const emptyState = !isSampleShown ? (
+ <CardContent>
+ <Empty className="border">
+ <EmptyHeader>
+ <EmptyTitle>{emptyTitle}</EmptyTitle>
+ <EmptyDescription>{emptyDescription}</EmptyDescription>
+ </EmptyHeader>
+ {!isFiltered && !hasReachableBundles && isAdmin && (
+ <Button variant="av" asChild>
+ <Link
+ to="/organizations/$orgId/agent-vault/access-bundles"
+ params={{ orgId: currentOrg.id }}
+ >
+ Go to Access Bundles
+ </Link>
+ </Button>
+ )}
+ </Empty>
+ </CardContent>
+ ) : (
+ <>
+ <SampleSessionTable onOpen={() => setIsSampleOpen(true)} />
+ <CardContent className="flex items-center justify-between gap-4">
+ <span className="text-sm text-muted">
+ {emptyDescription} Open the sample to see what a session records.
+ </span>
+ {!hasReachableBundles && isAdmin && (
+ <Button variant="av" size="sm" asChild>
+ <Link
+ to="/organizations/$orgId/agent-vault/access-bundles"
+ params={{ orgId: currentOrg.id }}
+ >
+ Go to Access Bundles
+ </Link>
+ </Button>
+ )}
+ </CardContent>
+ </>
+ );
+
return (
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col">
- <Helmet>
- <title>{t("common.head-title", { title: "Sessions" })}</title>
- </Helmet>
+ <PageTitle title="Sessions" />
<PageHeader
scope={ProjectType.AgentVault}
icon={IdCardIcon}