Skip to content

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

improvement: add enable identity auth feature display

Scott Wilson3f91ac1b24df
diff --git a/frontend/src/components/v3/generic/Empty/Empty.tsx b/frontend/src/components/v3/generic/Empty/Empty.tsx
index d450726017..e861bb5a4a 100644
--- a/frontend/src/components/v3/generic/Empty/Empty.tsx
+++ b/frontend/src/components/v3/generic/Empty/Empty.tsx
@@ -19,7 +19,7 @@ function UnstableEmptyHeader({ className, ...props }: React.ComponentProps<"div"
return (
<div
data-slot="empty-header"
- className={cn("flex max-w-sm flex-col items-center gap-2 text-center", className)}
+ className={cn("flex max-w-md flex-col items-center gap-2 text-center", className)}
{...props}
/>
);
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthTemplatesTable.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthTemplatesTable.tsx
index e26655bc54..12ec99cdf8 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthTemplatesTable.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthTemplatesTable.tsx
@@ -10,6 +10,7 @@ import { twMerge } from "tailwind-merge";
import { OrgPermissionCan } from "@app/components/permissions";
import {
+ Button,
InputGroup,
InputGroupAddon,
InputGroupInput,
@@ -19,6 +20,7 @@ import {
UnstableDropdownMenuItem,
UnstableDropdownMenuTrigger,
UnstableEmpty,
+ UnstableEmptyContent,
UnstableEmptyDescription,
UnstableEmptyHeader,
UnstableEmptyTitle,
@@ -61,7 +63,7 @@ type Props = {
};
export const IdentityAuthTemplatesTable = ({ handlePopUpOpen }: Props) => {
- const { currentOrg } = useOrganization();
+ const { currentOrg, isSubOrganization } = useOrganization();
const {
offset,
@@ -133,7 +135,23 @@ export const IdentityAuthTemplatesTable = ({ handlePopUpOpen }: Props) => {
</InputGroup>
</div>
{/* eslint-disable-next-line no-nested-ternary */}
- {(!isPending || !subscription.machineIdentityAuthTemplates) && !templates.length ? (
+ {!subscription.machineIdentityAuthTemplates ? (
+ <UnstableEmpty className="border">
+ <UnstableEmptyHeader>
+ <UnstableEmptyTitle>
+ This feature has not been activated for your license.
+ </UnstableEmptyTitle>
+ <UnstableEmptyDescription>Contact us to learn more.</UnstableEmptyDescription>
+ </UnstableEmptyHeader>
+ <UnstableEmptyContent>
+ <Button variant={isSubOrganization ? "sub-org" : "org"} asChild>
+ <a href="https://infisical.com/talk-to-us" target="_blank" rel="noopener noreferrer">
+ Talk to Us
+ </a>
+ </Button>
+ </UnstableEmptyContent>
+ </UnstableEmpty>
+ ) : !isPending && !templates.length ? (
<UnstableEmpty className="border">
<UnstableEmptyHeader>
<UnstableEmptyTitle>