Skip to content

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

feat(ui): improve machine identity template visibility (#7409)

Andrew Huang1826454daa6a
diff --git a/frontend/public/images/integrations/Alibaba Cloud.png b/frontend/public/images/integrations/Alibaba Cloud.png
new file mode 100644
index 0000000000..08e27e577c
Binary files /dev/null and b/frontend/public/images/integrations/Alibaba Cloud.png differ
diff --git a/frontend/src/components/v3/generic/Sheet/Sheet.stories.tsx b/frontend/src/components/v3/generic/Sheet/Sheet.stories.tsx
index 916fed2ef7..25696557ab 100644
--- a/frontend/src/components/v3/generic/Sheet/Sheet.stories.tsx
+++ b/frontend/src/components/v3/generic/Sheet/Sheet.stories.tsx
@@ -3,7 +3,6 @@ import type { Meta, StoryObj } from "@storybook/react-vite";
import { Button } from "../Button";
import { Input } from "../Input";
import { Label } from "../Label";
-import { Separator } from "../Separator";
import {
Sheet,
SheetClose,
@@ -67,7 +66,7 @@ export const Default: Story = {
View and update metadata for the selected secret. Changes apply on save.
</SheetDescription>
</SheetHeader>
- <div className="px-4 text-sm text-foreground">
+ <div className="p-4 text-sm text-foreground">
<p>
Place primary content here — the body grows to fill available height between the header
and footer.
@@ -104,7 +103,7 @@ export const LeftSide: Story = {
<SheetTitle>Filters</SheetTitle>
<SheetDescription>Narrow the list of secrets by tag and environment.</SheetDescription>
</SheetHeader>
- <div className="flex flex-col gap-3 px-4 text-sm text-foreground">
+ <div className="flex flex-col gap-3 p-4 text-sm text-foreground">
<div className="flex items-center justify-between">
<span>Production</span>
<span className="text-accent">12</span>
@@ -149,7 +148,7 @@ export const BottomSheet: Story = {
<SheetTitle>Quick actions</SheetTitle>
<SheetDescription>Choose an action to apply to the selected secret.</SheetDescription>
</SheetHeader>
- <div className="flex flex-col gap-2 px-4">
+ <div className="flex flex-col gap-2 p-4">
<SheetClose asChild>
<Button variant="ghost">Copy value</Button>
</SheetClose>
@@ -225,7 +224,7 @@ export const WithForm: Story = {
Update your display name and contact email. Changes apply immediately.
</SheetDescription>
</SheetHeader>
- <div className="flex flex-col gap-4 px-4">
+ <div className="flex flex-col gap-4 p-4">
<div className="flex flex-col gap-2">
<Label htmlFor="sheet-name">Name</Label>
<Input id="sheet-name" defaultValue="Scott Wilson" />
@@ -256,7 +255,7 @@ export const ScrollableContent: Story = {
docs: {
description: {
story:
- "For long bodies, anchor the header and footer while the middle scrolls — common for activity feeds, audit log details, and changelogs. Wrap the scroll region between two `Separator`s in a single flex column so the rules sit flush against the scrolling content; without the wrapper, `SheetContent`'s gap would push padding between them."
+ "For long bodies, anchor the header and footer while the middle scrolls — common for activity feeds, audit log details, and changelogs. The header's built-in bottom border frames the top of the scroll region; add `border-t` to the footer to frame the bottom."
}
}
},
@@ -270,22 +269,18 @@ export const ScrollableContent: Story = {
<SheetTitle>Recent activity</SheetTitle>
<SheetDescription>Audit events for this secret over the last 30 days.</SheetDescription>
</SheetHeader>
- <div className="flex min-h-0 flex-1 flex-col">
- <Separator />
- <div className="flex thin-scrollbar flex-1 flex-col gap-3 overflow-y-auto px-4 text-sm text-foreground">
- {Array.from({ length: 12 }).map((_, i) => (
- // eslint-disable-next-line react/no-array-index-key
- <div key={i} className="flex flex-col gap-1 border-b border-border pb-3">
- <span className="font-medium">Event {i + 1}</span>
- <span className="text-accent">
- Secret value updated by [email protected] — {i + 1}h ago.
- </span>
- </div>
- ))}
- </div>
- <Separator />
+ <div className="flex min-h-0 thin-scrollbar flex-1 flex-col gap-3 overflow-y-auto p-4 text-sm text-foreground">
+ {Array.from({ length: 12 }).map((_, i) => (
+ // eslint-disable-next-line react/no-array-index-key
+ <div key={i} className="flex flex-col gap-1 border-b border-border pb-3">
+ <span className="font-medium">Event {i + 1}</span>
+ <span className="text-accent">
+ Secret value updated by [email protected] — {i + 1}h ago.
+ </span>
+ </div>
+ ))}
</div>
- <SheetFooter>
+ <SheetFooter className="border-t">
<SheetClose asChild>
<Button variant="ghost">Close</Button>
</SheetClose>
diff --git a/frontend/src/components/v3/generic/Sheet/Sheet.tsx b/frontend/src/components/v3/generic/Sheet/Sheet.tsx
index 2fd21e61cd..dfb7b29351 100644
--- a/frontend/src/components/v3/generic/Sheet/Sheet.tsx
+++ b/frontend/src/components/v3/generic/Sheet/Sheet.tsx
@@ -61,7 +61,7 @@ function SheetContent({
onPointerDownOutside?.(e);
}}
className={cn(
- "fixed z-50 flex thin-scrollbar flex-col gap-4 border-border bg-popover text-foreground shadow-lg outline-0 transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500",
+ "fixed z-50 flex thin-scrollbar flex-col border-border bg-popover text-foreground shadow-lg outline-0 transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500",
side === "right" &&
"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-md",
side === "left" &&
@@ -88,7 +88,7 @@ function SheetHeader({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="sheet-header"
- className={cn("flex flex-col gap-1.5 border-border p-4", className)}
+ className={cn("flex flex-col gap-1.5 border-b border-border p-4", className)}
{...props}
/>
);
diff --git a/frontend/src/components/v3/generic/Tabs/Tabs.tsx b/frontend/src/components/v3/generic/Tabs/Tabs.tsx
index da03c91838..bab83fa85e 100644
--- a/frontend/src/components/v3/generic/Tabs/Tabs.tsx
+++ b/frontend/src/components/v3/generic/Tabs/Tabs.tsx
@@ -22,7 +22,7 @@ function Tabs({
}
const tabsListVariants = cva(
- "group/tabs-list inline-flex w-fit items-center justify-center rounded-md p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[style=underline]:rounded-none",
+ "group/tabs-list inline-flex w-fit items-center justify-center rounded-md pb-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[style=underline]:rounded-none",
{
variants: {
variant: {
@@ -85,7 +85,7 @@ function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPr
"[&_svg:not([class*='size-'])]:size-4",
"data-[state=active]:text-foreground",
"group-data-[style=filled]/tabs-list:data-[state=active]:border-container-hover group-data-[style=filled]/tabs-list:data-[state=active]:bg-container-hover",
- "after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0",
+ "after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:-inset-x-px",
"group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.25",
"group-data-[orientation=horizontal]/tabs:group-data-[style=underline]/tabs-list:after:bottom-[-5.6px]",
"group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-left-1",
diff --git a/frontend/src/pages/organization/AccessManagementPage/AccessManagementPage.tsx b/frontend/src/pages/organization/AccessManagementPage/AccessManagementPage.tsx
index 01b09312cd..1fc3aaa844 100644
--- a/frontend/src/pages/organization/AccessManagementPage/AccessManagementPage.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/AccessManagementPage.tsx
@@ -7,7 +7,8 @@ import { Link, useNavigate, useSearch } from "@tanstack/react-router";
import { InfoIcon } from "lucide-react";
import { OrgPermissionGuardBanner } from "@app/components/permissions/OrgPermissionCan";
-import { Button, PageHeader, Tab, TabList, TabPanel, Tabs } from "@app/components/v2";
+import { Button, PageHeader } from "@app/components/v2";
+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@app/components/v3";
import { ROUTE_PATHS } from "@app/const/routes";
import {
OrgPermissionActions,
@@ -133,24 +134,20 @@ export const AccessManagementPage = () => {
<OrgPermissionGuardBanner />
) : (
<Tabs value={activeTab} onValueChange={updateSelectedTab}>
- <TabList>
+ <TabsList variant={isSubOrganization ? "sub-org" : "org"}>
{visibleTabSections.map(({ key, label }) => (
- <Tab
- variant={isSubOrganization ? "namespace" : "org"}
- value={key}
- key={`org-access-tab-${key}`}
- >
+ <TabsTrigger value={key} key={`org-access-tab-${key}`}>
{label}
- </Tab>
+ </TabsTrigger>
))}
- </TabList>
+ </TabsList>
{isSelectedTabRestricted ? (
<OrgPermissionGuardBanner />
) : (
visibleTabSections.map(({ key, component: Component }) => (
- <TabPanel value={key} key={`org-access-tab-panel-${key}`}>
+ <TabsContent value={key} key={`org-access-tab-panel-${key}`}>
<Component />
- </TabPanel>
+ </TabsContent>
))
)}
</Tabs>
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgGroupsTab/components/OrgGroupsSection/OrgGroupsSection.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgGroupsTab/components/OrgGroupsSection/OrgGroupsSection.tsx
index c0a9a062cb..4cd2ee7bbf 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgGroupsTab/components/OrgGroupsSection/OrgGroupsSection.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgGroupsTab/components/OrgGroupsSection/OrgGroupsSection.tsx
@@ -100,9 +100,7 @@ export const OrgGroupsSection = () => {
isDisabled={!isAllowed}
>
<PlusIcon />
- {isSubOrganization
- ? "Add Group to Sub-Organization"
- : "Create Organization Group"}
+ {isSubOrganization ? "Add" : "Create"}
</Button>
)}
</OrgPermissionCan>
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/OrgIdentityTab.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/OrgIdentityTab.tsx
index f2cc98f45b..6158b11ef4 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/OrgIdentityTab.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/OrgIdentityTab.tsx
@@ -1,5 +1,10 @@
-import { IdentitySection } from "./components";
+import { IdentityAuthTemplatesSection, IdentitySection } from "./components";
export const OrgIdentityTab = () => {
- return <IdentitySection />;
+ return (
+ <div className="flex flex-col gap-4">
+ <IdentitySection />
+ <IdentityAuthTemplatesSection />
+ </div>
+ );
};
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthMethodModalContent.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthMethodModalContent.tsx
index 98304b4a53..d9cb8e1c38 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthMethodModalContent.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthMethodModalContent.tsx
@@ -1,23 +1,24 @@
-import { useCallback } from "react";
+import { type ReactNode, useCallback } from "react";
import { Controller, useForm } from "react-hook-form";
+import {
+ components as ReactSelectComponents,
+ type OptionProps,
+ type SingleValueProps
+} from "react-select";
import { zodResolver } from "@hookform/resolvers/zod";
+import {
+ BadgeCheckIcon,
+ BracesIcon,
+ CheckIcon,
+ FileKeyIcon,
+ GlobeIcon,
+ KeyIcon,
+ NetworkIcon
+} from "lucide-react";
import { z } from "zod";
import { UpgradePlanModal } from "@app/components/license/UpgradePlanModal";
-import {
- Badge,
- Field,
- FieldError,
- FieldLabel,
- Select,
- SelectContent,
- SelectItem,
- SelectTrigger,
- SelectValue,
- Tooltip,
- TooltipContent,
- TooltipTrigger
-} from "@app/components/v3";
+import { Badge, Field, FieldError, FieldLabel, FilterableSelect } from "@app/components/v3";
import { MAX_IDENTITY_ACCESS_TOKEN_TTL_FALLBACK } from "@app/helpers/identityAuthSchemas";
import { IdentityAuthMethod } from "@app/hooks/api/identities";
import { useFetchServerStatus } from "@app/hooks/api/serverDetails";
@@ -60,25 +61,137 @@ type TRevokeMethods = {
render: () => JSX.Element;
};
-const identityAuthMethods = [
- { label: "Token Auth", value: IdentityAuthMethod.TOKEN_AUTH },
- { label: "Universal Auth", value: IdentityAuthMethod.UNIVERSAL_AUTH },
- { label: "Kubernetes Auth", value: IdentityAuthMethod.KUBERNETES_AUTH },
- { label: "GCP Auth", value: IdentityAuthMethod.GCP_AUTH },
- { label: "Alibaba Cloud Auth", value: IdentityAuthMethod.ALICLOUD_AUTH },
- { label: "AWS Auth", value: IdentityAuthMethod.AWS_AUTH },
- { label: "Azure Auth", value: IdentityAuthMethod.AZURE_AUTH },
- { label: "OCI Auth", value: IdentityAuthMethod.OCI_AUTH },
- { label: "OIDC Auth", value: IdentityAuthMethod.OIDC_AUTH },
- { label: "LDAP Auth", value: IdentityAuthMethod.LDAP_AUTH },
- { label: "TLS Certificate Auth", value: IdentityAuthMethod.TLS_CERT_AUTH },
+type TIdentityAuthMethodOption = {
+ icon: ReactNode;
+ label: string;
+ value: IdentityAuthMethod;
+};
+
+type TIdentityAuthMethodSelectOption = TIdentityAuthMethodOption & {
+ isConfigured: boolean;
+ showConfiguredBadge: boolean;
+};
+
+const getProviderIcon = (fileName: string) => (
+ <img
+ src={`/images/integrations/${fileName}`}
+ alt=""
+ aria-hidden
+ className="size-4 object-contain"
+ />
+);
+
+const commonIdentityAuthMethods: TIdentityAuthMethodOption[] = [
+ {
+ icon: <GlobeIcon className="size-4 text-accent" />,
+ label: "Universal Auth",
+ value: IdentityAuthMethod.UNIVERSAL_AUTH
+ },
+ {
+ icon: <KeyIcon className="size-4 text-accent" />,
+ label: "Token Auth",
+ value: IdentityAuthMethod.TOKEN_AUTH
+ }
+];
+
+const otherIdentityAuthMethods: TIdentityAuthMethodOption[] = [
+ {
+ icon: getProviderIcon("Kubernetes.png"),
+ label: "Kubernetes Auth",
+ value: IdentityAuthMethod.KUBERNETES_AUTH
+ },
+ {
+ icon: getProviderIcon("Google Cloud Platform.png"),
+ label: "GCP Auth",
+ value: IdentityAuthMethod.GCP_AUTH
+ },
+ {
+ icon: getProviderIcon("Alibaba Cloud.png"),
+ label: "Alibaba Cloud Auth",
+ value: IdentityAuthMethod.ALICLOUD_AUTH
+ },
+ {
+ icon: getProviderIcon("Amazon Web Services.png"),
+ label: "AWS Auth",
+ value: IdentityAuthMethod.AWS_AUTH
+ },
+ {
+ icon: getProviderIcon("Microsoft Azure.png"),
+ label: "Azure Auth",
+ value: IdentityAuthMethod.AZURE_AUTH
+ },
{
+ icon: getProviderIcon("Oracle.png"),
+ label: "OCI Auth",
+ value: IdentityAuthMethod.OCI_AUTH
+ },
+ {
+ icon: <BadgeCheckIcon className="size-4 text-accent" />,
+ label: "OIDC Auth",
+ value: IdentityAuthMethod.OIDC_AUTH
+ },
+ {
+ icon: getProviderIcon("LDAP.png"),
+ label: "LDAP Auth",
+ value: IdentityAuthMethod.LDAP_AUTH
+ },
+ {
+ icon: <FileKeyIcon className="size-4 text-accent" />,
+ label: "TLS Certificate Auth",
+ value: IdentityAuthMethod.TLS_CERT_AUTH
+ },
+ {
+ icon: <BracesIcon className="size-4 text-accent" />,
label: "JWT Auth",
value: IdentityAuthMethod.JWT_AUTH
},
- { label: "SPIFFE Auth", value: IdentityAuthMethod.SPIFFE_AUTH }
+ {
+ icon: <NetworkIcon className="size-4 text-accent" />,
+ label: "SPIFFE Auth",
+ value: IdentityAuthMethod.SPIFFE_AUTH
+ }
+].sort((a, b) => a.label.localeCompare(b.label));
+
+export const identityAuthMethodOptions = [
+ ...commonIdentityAuthMethods,
+ ...otherIdentityAuthMethods
];
+const AuthMethodOption = (props: OptionProps<TIdentityAuthMethodSelectOption>) => {
+ const { data, isDisabled, isSelected } = props;
+ const option = (
+ <ReactSelectComponents.Option {...props}>
+ <div
+ className={`flex items-center justify-between gap-2 ${
+ isDisabled ? "cursor-not-allowed opacity-50" : ""
+ }`}
+ >
+ <span className="flex min-w-0 items-center gap-2">
+ {data.icon}
+ <span className="truncate">{data.label}</span>
+ {data.showConfiguredBadge && <Badge variant="info">Configured</Badge>}
+ </span>
+ {isSelected && <CheckIcon className="size-4 shrink-0" />}
+ </div>
+ </ReactSelectComponents.Option>
+ );
+
+ return option;
+};
+
+const AuthMethodSingleValue = (props: SingleValueProps<TIdentityAuthMethodSelectOption>) => {
+ const { data } = props;
+
+ return (
+ <ReactSelectComponents.SingleValue {...props}>
+ <span className="flex min-w-0 items-center gap-2">
+ {data.icon}
+ <span className="truncate">{data.label}</span>
+ </span>
+ </ReactSelectComponents.SingleValue>
+ );
+};
+
const schema = z
.object({
authMethod: z.nativeEnum(IdentityAuthMethod)
@@ -103,7 +216,7 @@ export const IdentityAuthMethodModalContent = ({
let authMethod = initialAuthMethod;
if (!authMethod) {
- const firstAuthMethodNotConfiguredAuthMethod = identityAuthMethods.find(
+ const firstAuthMethodNotConfiguredAuthMethod = identityAuthMethodOptions.find(
({ value }) => !identity?.authMethods?.includes(value)
);
@@ -322,55 +435,50 @@ export const IdentityAuthMethodModalContent = ({
control={control}
name="authMethod"
defaultValue={IdentityAuthMethod.UNIVERSAL_AUTH}
- render={({ field: { onChange, value }, fieldState: { error } }) => (
- <Field className="mb-2">
- <FieldLabel htmlFor="auth-method">Auth Method</FieldLabel>
- <Select
- value={value}
- disabled={isSelectedAuthAlreadyConfigured}
- onValueChange={(next) => {
- if (!isAlreadyConfigured(next as IdentityAuthMethod)) {
- setSelectedAuthMethod(next as IdentityAuthMethod);
- onChange(next);
- }
- }}
- >
- <SelectTrigger id="auth-method" className="w-full" isError={Boolean(error)}>
- <SelectValue placeholder="Select auth method" />
- </SelectTrigger>
- <SelectContent position="popper">
- {identityAuthMethods.map(({ label, value: methodValue }) => {
- const alreadyConfigured = isAlreadyConfigured(methodValue);
- const item = (
- <SelectItem
- key={label}
- disabled={alreadyConfigured}
- value={String(methodValue || "")}
- >
- <span className="flex items-center gap-2">
- {label}
- {alreadyConfigured && !isSelectedAuthAlreadyConfigured && (
- <Badge variant="info">Configured</Badge>
- )}
- </span>
- </SelectItem>
- );
- return alreadyConfigured ? (
- <Tooltip key={`auth-method-${methodValue}`}>
- <TooltipTrigger asChild>{item}</TooltipTrigger>
- <TooltipContent side="right">
- Authentication method already configured
- </TooltipContent>
- </Tooltip>
- ) : (
- item
- );
- })}
- </SelectContent>
- </Select>
- <FieldError>{error?.message}</FieldError>
- </Field>
- )}
+ render={({ field: { onChange, value }, fieldState: { error } }) => {
+ const authMethodOptions = identityAuthMethodOptions.map((authMethod) => {
+ const isConfigured = Boolean(isAlreadyConfigured(authMethod.value));
+
+ return {
+ ...authMethod,
+ isConfigured,
+ showConfiguredBadge: isConfigured && !isSelectedAuthAlreadyConfigured
+ };
+ });
+ const selectedAuthMethod = authMethodOptions.find(
+ ({ value: methodValue }) => methodValue === value
+ );
+
+ return (
+ <Field className="mb-2">
+ <FieldLabel htmlFor="auth-method">Auth Method</FieldLabel>
+ <FilterableSelect<TIdentityAuthMethodSelectOption>
+ inputId="auth-method"
+ value={selectedAuthMethod}
+ options={authMethodOptions}
+ isDisabled={isSelectedAuthAlreadyConfigured}
+ isError={Boolean(error)}
+ isOptionDisabled={({ isConfigured }) => isConfigured}
+ getOptionLabel={({ label }) => label}
+ getOptionValue={({ value: methodValue }) => methodValue}
+ components={{
+ Option: AuthMethodOption,
+ SingleValue: AuthMethodSingleValue
+ }}
+ placeholder="Select auth method"
+ onChange={(next) => {
+ const nextAuthMethod = next as TIdentityAuthMethodSelectOption | null;
+
+ if (nextAuthMethod && !nextAuthMethod.isConfigured) {
+ setSelectedAuthMethod(nextAuthMethod.value);
+ onChange(nextAuthMethod.value);
+ }
+ }}
+ />
+ <FieldError>{error?.message}</FieldError>
+ </Field>
+ );
+ }}
/>
{selectedMethodItem?.render ? selectedMethodItem.render() : <div />}
<UpgradePlanModal
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthTemplateModal.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthTemplateModal.tsx
index 6871dd3f3b..57180fc37c 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthTemplateModal.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthTemplateModal.tsx
@@ -1,19 +1,34 @@
-import { useEffect } from "react";
-import { Controller, useForm } from "react-hook-form";
+import { type ComponentProps, useEffect } from "react";
+import {
+ Controller,
+ type ControllerRenderProps,
+ type FieldError as ReactHookFormFieldError,
+ useForm
+} from "react-hook-form";
import { zodResolver } from "@hookform/resolvers/zod";
import { z } from "zod";
import { createNotification } from "@app/components/notifications";
import {
Button,
- FormControl,
+ Field,
+ FieldError,
+ FieldGroup,
+ FieldLabel,
Input,
- Modal,
- ModalContent,
Select,
+ SelectContent,
SelectItem,
+ SelectTrigger,
+ SelectValue,
+ Sheet,
+ SheetContent,
+ SheetDescription,
+ SheetFooter,
+ SheetHeader,
+ SheetTitle,
TextArea
-} from "@app/components/v2";
+} from "@app/components/v3";
import { useOrganization } from "@app/context";
import {
MachineIdentityAuthMethod,
@@ -48,7 +63,7 @@ type Props = {
};
export const IdentityAuthTemplateModal = ({ popUp, handlePopUpToggle }: Props) => {
- const { currentOrg } = useOrganization();
+ const { currentOrg, isSubOrganization } = useOrganization();
const orgId = currentOrg?.id || "";
const { mutateAsync: createTemplate } = useCreateIdentityAuthTemplate();
@@ -148,160 +163,169 @@ export const IdentityAuthTemplateModal = ({ popUp, handlePopUpToggle }: Props) =
reset();
};
+ const renderField = <TName extends "name" | "url" | "bindDN" | "bindPass" | "searchBase">(
+ id: string,
+ label: string,
+ field: ControllerRenderProps<FormData, TName>,
+ error: ReactHookFormFieldError | undefined,
+ inputProps?: ComponentProps<typeof Input>
+ ) => (
+ <Field data-invalid={Boolean(error)}>
+ <FieldLabel htmlFor={id}>{label}</FieldLabel>
+ <Input {...field} {...inputProps} id={id} aria-invalid={Boolean(error)} />
+ <FieldError errors={[error]} />
+ </Field>
+ );
+
return (
- <Modal
- isOpen={popUp.createTemplate.isOpen || popUp.editTemplate.isOpen}
- onOpenChange={handleClose}
+ <Sheet
+ open={popUp.createTemplate.isOpen || popUp.editTemplate.isOpen}
+ onOpenChange={(open) => {
+ if (!open) handleClose();
+ }}
>
- <ModalContent
- title={
- isEdit ? "Edit Machine Identity Auth Template" : "Create Machine Identity Auth Template"
- }
- subTitle={
- isEdit ? "Update the authentication template" : "Create a new authentication template"
- }
- >
- <form onSubmit={handleSubmit(onFormSubmit)}>
- <Controller
- control={control}
- name="name"
- render={({ field, fieldState: { error } }) => (
- <FormControl
- label="Template Name"
- isError={Boolean(error)}
- errorText={error?.message}
- isRequired
- >
- <Input {...field} placeholder="My Template" />
- </FormControl>
- )}
- />
-
- <Controller
- control={control}
- name="method"
- render={({ field, fieldState: { error } }) => (
- <FormControl
- label="Authentication Method"
- isError={Boolean(error)}
- errorText={error?.message}
- isRequired
- >
- <Select
- {...field}
- className="w-full"
- position="popper"
- placeholder="Select auth method..."
- dropdownContainerClassName="max-w-none"
- onValueChange={(value) => field.onChange(value)}
- >
- {authMethods.map(({ label, value }) => (
- <SelectItem key={value} value={value}>
- {label}
- </SelectItem>
- ))}
- </Select>
- </FormControl>
- )}
- />
+ <SheetContent className="w-full sm:max-w-lg">
+ <SheetHeader>
+ <SheetTitle>
+ {isEdit
+ ? "Edit Machine Identity Auth Template"
+ : "Create Machine Identity Auth Template"}
+ </SheetTitle>
+ <SheetDescription>
+ {isEdit ? "Update the authentication template" : "Create a new authentication template"}
+ </SheetDescription>
+ </SheetHeader>
+ <form className="flex min-h-0 flex-1 flex-col" onSubmit={handleSubmit(onFormSubmit)}>
+ <FieldGroup className="min-h-0 flex-1 overflow-y-auto p-4">
+ <Controller
+ control={control}
+ name="name"
+ render={({ field, fieldState: { error } }) =>
+ renderField("identity-auth-template-name", "Template Name", field, error, {
+ placeholder: "My Template"
+ })
+ }
+ />
- {/* LDAP Configuration Fields */}
- {selectedMethod === "ldap" && (
- <>
- <Controller
- control={control}
- name="url"
- render={({ field, fieldState: { error } }) => (
- <FormControl
- label="LDAP URL"
- isError={Boolean(error)}
- errorText={error?.message}
- isRequired
- >
- <Input {...field} placeholder="ldaps://domain-or-ip:636" type="text" />
- </FormControl>
- )}
- />
+ <Controller
+ control={control}
+ name="method"
+ render={({ field, fieldState: { error } }) => (
+ <Field data-invalid={Boolean(error)}>
+ <FieldLabel htmlFor="identity-auth-template-method">
+ Authentication Method
+ </FieldLabel>
+ <Select value={field.value} onValueChange={field.onChange}>
+ <SelectTrigger
+ id="identity-auth-template-method"
+ className="w-full"
+ isError={Boolean(error)}
+ >
+ <SelectValue placeholder="Select auth method..." />
+ </SelectTrigger>
+ <SelectContent position="popper">
+ {authMethods.map(({ label, value }) => (
+ <SelectItem key={value} value={value}>
+ {label}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ <FieldError errors={[error]} />
+ </Field>
+ )}
+ />
- <Controller
- control={control}
- name="bindDN"
- render={({ field, fieldState: { error } }) => (
- <FormControl
- label="Bind DN"
- isError={Boolean(error)}
- errorText={error?.message}
- isRequired
- >
- <Input {...field} placeholder="cn=infisical,ou=Users,dc=example,dc=com" />
- </FormControl>
- )}
- />
+ {selectedMethod === "ldap" && (
+ <>
+ <Controller
+ control={control}
+ name="url"
+ render={({ field, fieldState: { error } }) =>
+ renderField("identity-auth-template-url", "LDAP URL", field, error, {
+ placeholder: "ldaps://domain-or-ip:636"
+ })
+ }
+ />
- <Controller
- control={control}
- name="bindPass"
- render={({ field, fieldState: { error } }) => (
- <FormControl
- label="Bind Pass"
- isError={Boolean(error)}
- errorText={error?.message}
- isRequired
- >
- <Input {...field} placeholder="********" type="password" />
- </FormControl>
- )}
- />
+ <Controller
+ control={control}
+ name="bindDN"
+ render={({ field, fieldState: { error } }) =>
+ renderField("identity-auth-template-bind-dn", "Bind DN", field, error, {
+ placeholder: "cn=infisical,ou=Users,dc=example,dc=com"
+ })
+ }
+ />
- <Controller
- control={control}
- name="searchBase"
- render={({ field, fieldState: { error } }) => (
- <FormControl
- label="Search Base / DN"
- isError={Boolean(error)}
- errorText={error?.message}
- isRequired
- >
- <Input {...field} placeholder="ou=machines,dc=acme,dc=com" />
- </FormControl>
- )}
- />
+ <Controller
+ control={control}
+ name="bindPass"
+ render={({ field, fieldState: { error } }) =>
+ renderField("identity-auth-template-bind-pass", "Bind Pass", field, error, {
+ placeholder: "********",
+ type: "password"
+ })
+ }
+ />
- <Controller
- control={control}
- name="ldapCaCertificate"
- render={({ field, fieldState: { error } }) => (
- <FormControl
- label="CA Certificate"
- isOptional
- errorText={error?.message}
- isError={Boolean(error)}
- tooltipText="An optional PEM-encoded CA cert for the LDAP server. This is used by the TLS client for secure communication with the LDAP server."
- >
- <TextArea {...field} placeholder="-----BEGIN CERTIFICATE----- ..." />
- </FormControl>
- )}
- />
- </>
- )}
+ <Controller
+ control={control}
+ name="searchBase"
+ render={({ field, fieldState: { error } }) =>
+ renderField(
+ "identity-auth-template-search-base",
+ "Search Base / DN",
+ field,
+ error,
+ { placeholder: "ou=machines,dc=acme,dc=com" }
+ )
+ }
+ />
- <div className="mt-8 flex items-center">
+ <Controller
+ control={control}
+ name="ldapCaCertificate"
+ render={({ field, fieldState: { error } }) => (
+ <Field data-invalid={Boolean(error)}>
+ <FieldLabel htmlFor="identity-auth-template-ca-certificate">
+ CA Certificate (optional)
+ </FieldLabel>
+ <TextArea
+ {...field}
+ id="identity-auth-template-ca-certificate"
+ placeholder="-----BEGIN CERTIFICATE----- ..."
+ aria-invalid={Boolean(error)}
+ aria-describedby="identity-auth-template-ca-certificate-description"
+ />
+ <p
+ id="identity-auth-template-ca-certificate-description"
+ className="text-xs text-muted"
+ >
+ An optional PEM-encoded CA certificate used by the TLS client for secure
+ communication with the LDAP server.
+ </p>
+ <FieldError errors={[error]} />
+ </Field>
+ )}
+ />
+ </>
+ )}
+ </FieldGroup>
+ <SheetFooter className="border-t">
<Button
- className="mr-4"
- size="sm"
type="submit"
- isLoading={isSubmitting}
- isDisabled={isSubmitting}
+ variant={isSubOrganization ? "sub-org" : "org"}
+ isPending={isSubmitting}
>
{isEdit ? "Update Template" : "Create Template"}
</Button>
- <Button colorSchema="secondary" variant="plain" onClick={handleClose}>
+ <Button variant="ghost" onClick={handleClose}>
Cancel
</Button>
- </div>
+ </SheetFooter>
</form>
- </ModalContent>
- </Modal>
+ </SheetContent>
+ </Sheet>
);
};
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 ca73df210a..04bc14f9d1 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
@@ -1,3 +1,4 @@
+import { useEffect } from "react";
import {
ChevronDownIcon,
EditIcon,
@@ -55,6 +56,7 @@ enum TemplatesOrderBy {
}
type Props = {
+ onEmptyStateChange?: (isEmpty: boolean) => void;
handlePopUpOpen: (
popUpName: keyof UsePopUpState<
["deleteTemplate", "createTemplate", "editTemplate", "viewUsages"]
@@ -63,7 +65,7 @@ type Props = {
) => void;
};
-export const IdentityAuthTemplatesTable = ({ handlePopUpOpen }: Props) => {
+export const IdentityAuthTemplatesTable = ({ handlePopUpOpen, onEmptyStateChange }: Props) => {
const { currentOrg, isSubOrganization } = useOrganization();
const {
@@ -120,6 +122,12 @@ export const IdentityAuthTemplatesTable = ({ handlePopUpOpen }: Props) => {
};
const isFiltered = debouncedSearch.trim().length > 0;
+ const isEmpty =
+ !subscription.machineIdentityAuthTemplates || (!isPending && !isFiltered && totalCount === 0);
+
+ useEffect(() => {
+ onEmptyStateChange?.(isEmpty);
+ }, [isEmpty, onEmptyStateChange]);
const renderContent = () => {
if (!subscription.machineIdentityAuthTemplates) {
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityLdapAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityLdapAuthForm.tsx
index d8e6545fed..a208110082 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityLdapAuthForm.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityLdapAuthForm.tsx
@@ -27,15 +27,11 @@ import {
FieldGroup,
FieldLabel,
FieldTitle,
+ FilterableSelect,
IconButton,
Input,
RadioGroup,
RadioGroupItem,
- Select,
- SelectContent,
- SelectItem,
- SelectTrigger,
- SelectValue,
Tabs,
TabsContent,
TabsList,
@@ -201,6 +197,12 @@ const buildSchema = (maxAccessTokenTTL: number) =>
export type FormData = z.infer<ReturnType<typeof buildSchema>>;
+type ConfigurationOption = {
+ group: "Configuration" | "Templates";
+ label: string;
+ value: string;
+};
+
type Props = {
handlePopUpOpen: (
popUpName: keyof UsePopUpState<["upgradePlan"]>,
@@ -234,7 +236,9 @@ export const IdentityLdapAuthForm = ({
const { mutateAsync: addMutateAsync } = useAddIdentityLdapAuth();
const { mutateAsync: updateMutateAsync } = useUpdateIdentityLdapAuth();
const [tabValue, setTabValue] = useState<IdentityFormTab>(IdentityFormTab.Configuration);
- const { data: templates } = useGetAvailableTemplates(MachineIdentityAuthMethod.LDAP);
+ const { data: templates, isPending: isTemplatesPending } = useGetAvailableTemplates(
+ MachineIdentityAuthMethod.LDAP
+ );
const { permission } = useOrgPermission();
const canAttachTemplates = permission.can(
@@ -254,8 +258,9 @@ export const IdentityLdapAuthForm = ({
reset,
watch,
setValue,
+ clearErrors,
trigger,
- formState: { isSubmitting }
+ formState: { errors, isSubmitting }
} = useForm<FormData>({
resolver,
defaultValues: {
@@ -277,6 +282,27 @@ export const IdentityLdapAuthForm = ({
});
const scope = watch("scope");
+ const templateId = watch("templateId");
+
+ const configurationOptions = useMemo<ConfigurationOption[]>(
+ () => [
+ {
+ group: "Configuration",
+ label: "Custom configuration",
+ value: "custom"
+ },
+ ...(templates ?? []).map((template) => ({
+ group: "Templates" as const,
+ label: template.name,
+ value: template.id
+ }))
+ ],
+ [templates]
+ );
+
+ const selectedConfiguration = configurationOptions.find(
+ ({ value }) => value === (scope === "template" ? templateId : "custom")
+ );
const lockoutEnabledWatch = watch("lockoutEnabled");
const lockoutThresholdWatch = watch("lockoutThreshold");
@@ -503,69 +529,49 @@ export const IdentityLdapAuthForm = ({
<Controller
control={control}
name="scope"
- render={({ field: { value, onChange }, fieldState: { error } }) => (
- <Field>
- <FieldLabel htmlFor="ldap-scope">Configuration Type</FieldLabel>
- <Select
- value={value}
- onValueChange={(val) => {
- onChange(val);
- setValue("templateId", data?.templateId || "");
- setValue("url", data?.url || "");
- setValue("bindDN", data?.bindDN || "");
- setValue("bindPass", data?.bindPass || "");
- setValue("searchBase", data?.searchBase || "");
- setValue("ldapCaCertificate", data?.ldapCaCertificate || "");
- }}
- >
- <SelectTrigger id="ldap-scope" className="w-full" isError={Boolean(error)}>
- <SelectValue placeholder="Select configuration type" />
- </SelectTrigger>
- <SelectContent position="popper">
- <SelectItem value="template">Use Template</SelectItem>
- <SelectItem value="custom">Custom Configuration</SelectItem>
- </SelectContent>
- </Select>
- <FieldError>{error?.message}</FieldError>
- </Field>
- )}
- />
- )}
-
- {scope === "template" && (
- <Controller
- control={control}
- name="templateId"
- render={({ field: { value, onChange }, fieldState: { error } }) => (
+ render={({ field: { onChange }, fieldState: { error } }) => (
<Field>
- <FieldLabel htmlFor="ldap-template">Template</FieldLabel>
- <Select
- value={value}
- onValueChange={(val) => {
- onChange(val);
- const tmp = templates?.find((t) => t.id === val);
- if (!tmp) return;
- setValue("url", tmp.templateFields.url);
- setValue("bindDN", tmp.templateFields.bindDN);
- setValue("bindPass", tmp.templateFields.bindPass);
- setValue("searchBase", tmp.templateFields.searchBase);
- setValue("ldapCaCertificate", tmp.templateFields.ldapCaCertificate);
+ <FieldLabel htmlFor="ldap-configuration">Configuration</FieldLabel>
+ <FilterableSelect<ConfigurationOption>
+ inputId="ldap-configuration"
+ value={selectedConfiguration}
+ options={configurationOptions}
+ groupBy="group"
+ getOptionLabel={(option) => option.label}
+ getOptionValue={(option) => option.value}
+ placeholder="Select or search configurations..."
+ isLoading={isTemplatesPending}
+ isError={Boolean(error || errors.templateId)}
+ onChange={(option) => {
+ const selectedOption = option as ConfigurationOption | null;
+ if (!selectedOption) return;
+
+ if (selectedOption.value === "custom") {
+ onChange("custom");
+ setValue("templateId", "");
+ clearErrors("templateId");
+ setValue("url", data?.url || "");
+ setValue("bindDN", data?.bindDN || "");
+ setValue("bindPass", data?.bindPass || "");
+ setValue("searchBase", data?.searchBase || "");
+ setValue("ldapCaCertificate", data?.ldapCaCertificate || "");
+ return;
+ }
+
+ const template = templates?.find(({ id }) => id === selectedOption.value);
+ if (!template) return;
+
+ onChange("template");
+ setValue("templateId", template.id);
+ clearErrors("templateId");
+ setValue("url", template.templateFields.url);
+ setValue("bindDN", template.templateFields.bindDN);
+ setValue("bindPass", template.templateFields.bindPass);
+ setValue("searchBase", template.templateFields.searchBase);
+ setValue("ldapCaCertificate", template.templateFields.ldapCaCertificate);
}}
- >
- <SelectTrigger id="ldap-template" className="w-full" isError={Boolean(error)}>
- <SelectValue placeholder="Select a template" />
- </SelectTrigger>
- <SelectContent position="popper">
- {templates?.map((template) => {
- return (
- <SelectItem value={template.id} key={template.id}>
- {template.name}
- </SelectItem>
- );
- })}
- </SelectContent>
- </Select>
- <FieldError>{error?.message}</FieldError>
+ />
+ <FieldError>{error?.message || errors.templateId?.message}</FieldError>
</Field>
)}
/>
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySection.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySection.tsx
index b929cb6ef9..0e250a76ec 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySection.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySection.tsx
@@ -1,10 +1,18 @@
+import { useEffect, useState } from "react";
import { PlusIcon } from "lucide-react";
import { UpgradePlanModal } from "@app/components/license/UpgradePlanModal";
import { createNotification } from "@app/components/notifications";
import { OrgPermissionCan } from "@app/components/permissions";
-import { DeleteActionModal } from "@app/components/v2";
import {
+ AlertDialog,
+ AlertDialogAction,
+ AlertDialogCancel,
+ AlertDialogContent,
+ AlertDialogDescription,
+ AlertDialogFooter,
+ AlertDialogHeader,
+ AlertDialogTitle,
Button,
Card,
CardAction,
@@ -12,7 +20,10 @@ import {
CardDescription,
CardHeader,
CardTitle,
- DocumentationLinkBadge
+ DocumentationLinkBadge,
+ Field,
+ FieldLabel,
+ Input
} from "@app/components/v3";
import {
OrgPermissionIdentityActions,
@@ -34,204 +45,297 @@ import { IdentityTable } from "./IdentityTable";
import { IdentityTokenAuthTokenModal } from "./IdentityTokenAuthTokenModal";
import { MachineAuthTemplateUsagesModal } from "./MachineAuthTemplateUsagesModal";
-export const IdentitySection = withPermission(
- () => {
- const { subscription } = useSubscription();
- const { currentOrg, isSubOrganization } = useOrganization();
- const orgId = currentOrg?.id || "";
-
- const { mutateAsync: deleteMutateAsync } = useDeleteOrgIdentity();
- const { mutateAsync: deleteTemplateMutateAsync } = useDeleteIdentityAuthTemplate();
- const { popUp, handlePopUpOpen, handlePopUpClose, handlePopUpToggle } = usePopUp([
- "identity",
- "identityAuthMethod",
- "deleteIdentity",
- "universalAuthClientSecret",
- "deleteUniversalAuthClientSecret",
- "upgradePlan",
- "tokenAuthToken",
- "createTemplate",
- "editTemplate",
- "deleteTemplate",
- "viewUsages",
- "addOptions"
- ] as const);
-
- const isMoreIdentitiesAllowed = subscription?.identityLimit
- ? subscription.identitiesUsed < subscription.identityLimit
- : true;
-
- const isEnterprise = subscription?.slug === SubscriptionPlanTypes.Enterprise;
-
- const onDeleteIdentitySubmit = async (identityId: string) => {
- await deleteMutateAsync({
- identityId,
- orgId
- });
-
- createNotification({
- text: "Successfully deleted machine identity",
- type: "success"
- });
-
- handlePopUpClose("deleteIdentity");
- };
-
- const onDeleteTemplateSubmit = async (templateId: string) => {
- await deleteTemplateMutateAsync({
- templateId,
- organizationId: orgId
- });
-
- createNotification({
- text: "Successfully deleted template",
- type: "success"
- });
-
- handlePopUpClose("deleteTemplate");
- };
-
- return (
- <>
- <div className="flex flex-col gap-4">
- <Card>
- <CardHeader>
- <CardTitle>
- {isSubOrganization ? "Sub-Organization " : ""}Machine Identities
- <DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/identities/machine-identities" />
- </CardTitle>
- <CardDescription>
- All machine identities across your{" "}
- {isSubOrganization ? "sub-organization" : "organization"}, including those scoped to
- individual projects.
- </CardDescription>
- <CardAction>
- <OrgPermissionCan
- I={OrgPermissionIdentityActions.Create}
- a={OrgPermissionSubjects.Identity}
- >
- {(isAllowed) => (
- <Button
- variant={isSubOrganization ? "sub-org" : "org"}
- onClick={() => {
- if (!isMoreIdentitiesAllowed && !isEnterprise) {
- handlePopUpOpen("upgradePlan", {
- description:
- "You can add more machine identities if you upgrade your Infisical Pro plan."
- });
- return;
- }
-
- handlePopUpOpen("identity");
- }}
- isDisabled={!isAllowed}
- >
- <PlusIcon />
- {isSubOrganization
- ? "Add Machine Identity to Sub-Organization"
- : "Create Organization Machine Identity"}
- </Button>
- )}
- </OrgPermissionCan>
- </CardAction>
- </CardHeader>
- <CardContent>
- <IdentityTable handlePopUpOpen={handlePopUpOpen} />
- </CardContent>
- </Card>
- <Card>
- <CardHeader>
- <CardTitle>
- Machine Identity Auth Templates
- <DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/identities/auth-templates" />
- </CardTitle>
- <CardDescription>
- Create and manage machine identity authentication templates
- </CardDescription>
- <CardAction>
- <OrgPermissionCan
- I={OrgPermissionMachineIdentityAuthTemplateActions.CreateTemplates}
- a={OrgPermissionSubjects.MachineIdentityAuthTemplate}
- >
- {(isAllowed) => (
- <Button
- variant={isSubOrganization ? "sub-org" : "org"}
- onClick={() => {
- if (subscription && !subscription.machineIdentityAuthTemplates) {
- handlePopUpOpen("upgradePlan", {
- isEnterpriseFeature: true,
- text: "Your current plan does not include access to creating Machine Identity Auth Templates. To unlock this feature, please upgrade to Infisical Enterprise plan."
- });
- return;
- }
- handlePopUpOpen("createTemplate");
- }}
- isDisabled={!isAllowed}
- >
- <PlusIcon />
- Create Template
- </Button>
- )}
- </OrgPermissionCan>
- </CardAction>
- </CardHeader>
- <CardContent>
- <IdentityAuthTemplatesTable handlePopUpOpen={handlePopUpOpen} />
- </CardContent>
- </Card>
- </div>
- <IdentityAuthTemplateModal popUp={popUp} handlePopUpToggle={handlePopUpToggle} />
- <MachineAuthTemplateUsagesModal
- isOpen={popUp.viewUsages.isOpen}
- onClose={() => handlePopUpClose("viewUsages")}
- templateId={
- (popUp?.viewUsages?.data as { template: { id: string; name: string } })?.template?.id ||
- ""
- }
- templateName={
- (popUp?.viewUsages?.data as { template: { id: string; name: string } })?.template
- ?.name || ""
- }
- />
- <IdentityTokenAuthTokenModal popUp={popUp} handlePopUpToggle={handlePopUpToggle} />
- <CreateOrgIdentitySheet
- isOpen={popUp.identity.isOpen}
- onOpenChange={(open) => handlePopUpToggle("identity", open)}
- />
- <DeleteActionModal
- isOpen={popUp.deleteIdentity.isOpen}
- title={`Are you sure you want to delete ${
- (popUp?.deleteIdentity?.data as { name: string })?.name || ""
- }?`}
- onChange={(isOpen) => handlePopUpToggle("deleteIdentity", isOpen)}
- deleteKey="confirm"
- onDeleteApproved={() =>
- onDeleteIdentitySubmit(
- (popUp?.deleteIdentity?.data as { identityId: string })?.identityId
- )
- }
- />
- <DeleteActionModal
- isOpen={popUp.deleteTemplate.isOpen}
- title={`Are you sure you want to delete ${
- (popUp?.deleteTemplate?.data as { name: string })?.name || ""
- }?`}
- onChange={(isOpen) => handlePopUpToggle("deleteTemplate", isOpen)}
- deleteKey="confirm"
- onDeleteApproved={() =>
- onDeleteTemplateSubmit(
- (popUp?.deleteTemplate?.data as { templateId: string })?.templateId
- )
- }
- />
- <UpgradePlanModal
- isOpen={popUp.upgradePlan.isOpen}
- onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}
- text={popUp.upgradePlan.data?.text}
- isEnterpriseFeature={popUp.upgradePlan.data?.isEnterpriseFeature}
- />
- </>
- );
- },
- { action: OrgPermissionIdentityActions.Read, subject: OrgPermissionSubjects.Identity }
-);
+type Props = {
+ view?: "identities" | "templates";
+};
+
+type ConfirmDeleteDialogProps = {
+ isOpen: boolean;
+ name: string;
+ isPending: boolean;
+ onOpenChange: (isOpen: boolean) => void;
+ onConfirm: () => Promise<void>;
+};
+
+const ConfirmDeleteDialog = ({
+ isOpen,
+ name,
+ isPending,
+ onOpenChange,
+ onConfirm
+}: ConfirmDeleteDialogProps) => {
+ const [confirmation, setConfirmation] = useState("");
+
+ useEffect(() => {
+ if (!isOpen) setConfirmation("");
+ }, [isOpen]);
+
+ return (
+ <AlertDialog
+ open={isOpen}
+ onOpenChange={(open) => {
+ onOpenChange(open);
+ }}
+ >
+ <AlertDialogContent>
+ <AlertDialogHeader>
+ <AlertDialogTitle>Delete {name}?</AlertDialogTitle>
+ <AlertDialogDescription>
+ This action cannot be undone. Type &quot;confirm&quot; to continue.
+ </AlertDialogDescription>
+ </AlertDialogHeader>
+ <Field>
+ <FieldLabel htmlFor="delete-identity-resource-confirmation">
+ Type &quot;confirm&quot; to confirm
+ </FieldLabel>
+ <Input
+ id="delete-identity-resource-confirmation"
+ value={confirmation}
+ onChange={(event) => setConfirmation(event.target.value)}
+ autoComplete="off"
+ />
+ </Field>
+ <AlertDialogFooter>
+ <AlertDialogCancel isDisabled={isPending}>Cancel</AlertDialogCancel>
+ <AlertDialogAction
+ variant="danger"
+ isDisabled={confirmation !== "confirm"}
+ isPending={isPending}
+ onClick={(event) => {
+ event.preventDefault();
+ onConfirm();
+ }}
+ >
+ Delete
+ </AlertDialogAction>
+ </AlertDialogFooter>
+ </AlertDialogContent>
+ </AlertDialog>
+ );
+};
+
+const IdentitySectionContent = ({ view = "identities" }: Props) => {
+ const { subscription } = useSubscription();
+ const { currentOrg, isSubOrganization } = useOrganization();
+ const orgId = currentOrg?.id || "";
+
+ const [areAuthTemplatesEmpty, setAreAuthTemplatesEmpty] = useState(false);
+
+ const { mutateAsync: deleteMutateAsync, isPending: isDeletingIdentity } = useDeleteOrgIdentity();
+ const { mutateAsync: deleteTemplateMutateAsync, isPending: isDeletingTemplate } =
+ useDeleteIdentityAuthTemplate();
+ const { popUp, handlePopUpOpen, handlePopUpClose, handlePopUpToggle } = usePopUp([
+ "identity",
+ "identityAuthMethod",
+ "deleteIdentity",
+ "universalAuthClientSecret",
+ "deleteUniversalAuthClientSecret",
+ "upgradePlan",
+ "tokenAuthToken",
+ "createTemplate",
+ "editTemplate",
+ "deleteTemplate",
+ "viewUsages",
+ "addOptions"
+ ] as const);
+
+ const isMoreIdentitiesAllowed = subscription?.identityLimit
+ ? subscription.identitiesUsed < subscription.identityLimit
+ : true;
+
+ const isEnterprise = subscription?.slug === SubscriptionPlanTypes.Enterprise;
+
+ const onDeleteIdentitySubmit = async (identityId: string) => {
+ await deleteMutateAsync({
+ identityId,
+ orgId
+ });
+
+ createNotification({
+ text: "Successfully deleted machine identity",
+ type: "success"
+ });
+
+ handlePopUpClose("deleteIdentity");
+ };
+
+ const onDeleteTemplateSubmit = async (templateId: string) => {
+ await deleteTemplateMutateAsync({
+ templateId,
+ organizationId: orgId
+ });
+
+ createNotification({
+ text: "Successfully deleted template",
+ type: "success"
+ });
+
+ handlePopUpClose("deleteTemplate");
+ };
+
+ return (
+ <>
+ {view === "identities" && (
+ <Card>
+ <CardHeader>
+ <CardTitle>
+ {isSubOrganization ? "Sub-Organization " : ""}Machine Identities
+ <DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/identities/machine-identities" />
+ </CardTitle>
+ <CardDescription>
+ All machine identities across your{" "}
+ {isSubOrganization ? "sub-organization" : "organization"}, including those scoped to
+ individual projects.
+ </CardDescription>
+ <CardAction>
+ <OrgPermissionCan
+ I={OrgPermissionIdentityActions.Create}
+ a={OrgPermissionSubjects.Identity}
+ >
+ {(isAllowed) => (
+ <Button
+ variant={isSubOrganization ? "sub-org" : "org"}
+ onClick={() => {
+ if (!isMoreIdentitiesAllowed && !isEnterprise) {
+ handlePopUpOpen("upgradePlan", {
+ description:
+ "You can add more machine identities if you upgrade your Infisical Pro plan."
+ });
+ return;
+ }
+
+ handlePopUpOpen("identity");
+ }}
+ isDisabled={!isAllowed}
+ >
+ <PlusIcon />
+ {isSubOrganization ? "Add" : "Create"}
+ </Button>
+ )}
+ </OrgPermissionCan>
+ </CardAction>
+ </CardHeader>
+ <CardContent>
+ <IdentityTable handlePopUpOpen={handlePopUpOpen} />
+ </CardContent>
+ </Card>
+ )}
+ {view === "templates" && (
+ <Card>
+ <CardHeader>
+ <CardTitle>
+ Machine Identity Auth Templates
+ <DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/identities/auth-templates" />
+ </CardTitle>
+ <CardDescription>
+ Reuse authentication configurations across machine identities to keep settings
+ consistent and easier to manage.
+ </CardDescription>
+ <CardAction>
+ <OrgPermissionCan
+ I={OrgPermissionMachineIdentityAuthTemplateActions.CreateTemplates}
+ a={OrgPermissionSubjects.MachineIdentityAuthTemplate}
+ >
+ {(isAllowed) => (
+ <Button
+ variant={isSubOrganization ? "sub-org" : "org"}
+ onClick={() => {
+ if (subscription && !subscription.machineIdentityAuthTemplates) {
+ handlePopUpOpen("upgradePlan", {
+ isEnterpriseFeature: true,
+ text: "Your current plan does not include access to creating Machine Identity Auth Templates. To unlock this feature, please upgrade to Infisical Enterprise plan."
+ });
+ return;
+ }
+ handlePopUpOpen("createTemplate");
+ }}
+ isDisabled={!isAllowed}
+ >
+ <PlusIcon />
+ Create
+ </Button>
+ )}
+ </OrgPermissionCan>
+ </CardAction>
+ </CardHeader>
+ <OrgPermissionCan
+ I={OrgPermissionMachineIdentityAuthTemplateActions.ListTemplates}
+ a={OrgPermissionSubjects.MachineIdentityAuthTemplate}
+ >
+ {(isAllowed) =>
+ isAllowed ? (
+ <CardContent className={areAuthTemplatesEmpty ? "hidden" : undefined}>
+ <IdentityAuthTemplatesTable
+ handlePopUpOpen={handlePopUpOpen}
+ onEmptyStateChange={setAreAuthTemplatesEmpty}
+ />
+ </CardContent>
+ ) : null
+ }
+ </OrgPermissionCan>
+ </Card>
+ )}
+ {view === "templates" && (
+ <>
+ <IdentityAuthTemplateModal popUp={popUp} handlePopUpToggle={handlePopUpToggle} />
+ <MachineAuthTemplateUsagesModal
+ isOpen={popUp.viewUsages.isOpen}
+ onClose={() => handlePopUpClose("viewUsages")}
+ templateId={
+ (popUp?.viewUsages?.data as { template: { id: string; name: string } })?.template
+ ?.id || ""
+ }
+ templateName={
+ (popUp?.viewUsages?.data as { template: { id: string; name: string } })?.template
+ ?.name || ""
+ }
+ />
+ <ConfirmDeleteDialog
+ isOpen={popUp.deleteTemplate.isOpen}
+ name={(popUp?.deleteTemplate?.data as { name: string })?.name || "template"}
+ isPending={isDeletingTemplate}
+ onOpenChange={(isOpen) => handlePopUpToggle("deleteTemplate", isOpen)}
+ onConfirm={() =>
+ onDeleteTemplateSubmit(
+ (popUp?.deleteTemplate?.data as { templateId: string })?.templateId
+ )
+ }
+ />
+ </>
+ )}
+ {view === "identities" && (
+ <>
+ <IdentityTokenAuthTokenModal popUp={popUp} handlePopUpToggle={handlePopUpToggle} />
+ <CreateOrgIdentitySheet
+ isOpen={popUp.identity.isOpen}
+ onOpenChange={(open) => handlePopUpToggle("identity", open)}
+ />
+ <ConfirmDeleteDialog
+ isOpen={popUp.deleteIdentity.isOpen}
+ name={(popUp?.deleteIdentity?.data as { name: string })?.name || "machine identity"}
+ isPending={isDeletingIdentity}
+ onOpenChange={(isOpen) => handlePopUpToggle("deleteIdentity", isOpen)}
+ onConfirm={() =>
+ onDeleteIdentitySubmit(
+ (popUp?.deleteIdentity?.data as { identityId: string })?.identityId
+ )
+ }
+ />
+ </>
+ )}
+ <UpgradePlanModal
+ isOpen={popUp.upgradePlan.isOpen}
+ onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}
+ text={popUp.upgradePlan.data?.text}
+ isEnterpriseFeature={popUp.upgradePlan.data?.isEnterpriseFeature}
+ />
+ </>
+ );
+};
+
+export const IdentitySection = withPermission(() => <IdentitySectionContent />, {
+ action: OrgPermissionIdentityActions.Read,
+ subject: OrgPermissionSubjects.Identity
+});
+
+export const IdentityAuthTemplatesSection = () => <IdentitySectionContent view="templates" />;
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTable.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTable.tsx
index 497dc31db0..e57ab83eb1 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTable.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTable.tsx
@@ -483,7 +483,7 @@ export const IdentityTable = ({ handlePopUpOpen }: Props) => {
page,
setPerPage
} = usePagination<OrgIdentityOrderBy>(OrgIdentityOrderBy.Name, {
- initPerPage: getUserTablePreference("identityTable", PreferenceKey.PerPage, 20)
+ initPerPage: getUserTablePreference("identityTable", PreferenceKey.PerPage, 10)
});
const handlePerPageChange = (newPerPage: number) => {
@@ -589,7 +589,7 @@ export const IdentityTable = ({ handlePopUpOpen }: Props) => {
)}
aria-hidden
/>
- {isSubOrganization ? "Sub-Organization" : "Organization"}
+ {isSubOrganization ? "Sub-Org" : "Org"}
{renderTabCount(orgScopeCount)}
</TabsTrigger>
<TabsTrigger value="project">
@@ -600,7 +600,7 @@ export const IdentityTable = ({ handlePopUpOpen }: Props) => {
<TabsTrigger value="all">All{renderTabCount(allScopeCount)}</TabsTrigger>
</TabsList>
</Tabs>
- <InputGroup className="w-1/2">
+ <InputGroup className="w-full max-w-[480px] dashboard:w-auto dashboard:max-w-[640px] dashboard:flex-1">
<InputGroupAddon>
<SearchIcon />
</InputGroupAddon>
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTokenAuthTokenModal.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTokenAuthTokenModal.tsx
index c74acad007..e2d7fab076 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTokenAuthTokenModal.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTokenAuthTokenModal.tsx
@@ -1,7 +1,14 @@
import { ClipboardCheck, Copy } from "lucide-react";
-import { Modal, ModalContent } from "@app/components/v2";
-import { ButtonGroup, IconButton, Input } from "@app/components/v3";
+import {
+ ButtonGroup,
+ Dialog,
+ DialogContent,
+ DialogHeader,
+ DialogTitle,
+ IconButton,
+ Input
+} from "@app/components/v3";
import { useTimedReset } from "@app/hooks";
import { UsePopUpState } from "@app/hooks/usePopUp";
@@ -20,15 +27,18 @@ export const IdentityTokenAuthTokenModal = ({ popUp, handlePopUpToggle }: Props)
};
return (
- <Modal
- isOpen={popUp?.tokenAuthToken?.isOpen}
+ <Dialog
+ open={popUp?.tokenAuthToken?.isOpen}
onOpenChange={(isOpen) => {
handlePopUpToggle("tokenAuthToken", isOpen);
}}
>
- <ModalContent title="Access Token">
+ <DialogContent>
+ <DialogHeader>
+ <DialogTitle>Access Token</DialogTitle>
+ </DialogHeader>
{popUpData?.accessToken && (
- <ButtonGroup className="mb-8 w-full">
+ <ButtonGroup className="w-full">
<Input
value={popUpData.accessToken}
readOnly
@@ -47,7 +57,7 @@ export const IdentityTokenAuthTokenModal = ({ popUp, handlePopUpToggle }: Props)
</IconButton>
</ButtonGroup>
)}
- </ModalContent>
- </Modal>
+ </DialogContent>
+ </Dialog>
);
};
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/MachineAuthTemplateUsagesModal.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/MachineAuthTemplateUsagesModal.tsx
index bf6eba63ea..92d863e089 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/MachineAuthTemplateUsagesModal.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/MachineAuthTemplateUsagesModal.tsx
@@ -1,19 +1,23 @@
-import { faCertificate } from "@fortawesome/free-solid-svg-icons";
import { useNavigate } from "@tanstack/react-router";
+import { FileKeyIcon } from "lucide-react";
import {
- EmptyState,
- Modal,
- ModalContent,
+ Dialog,
+ DialogContent,
+ DialogHeader,
+ DialogTitle,
+ Empty,
+ EmptyHeader,
+ EmptyMedia,
+ EmptyTitle,
+ Skeleton,
Table,
- TableContainer,
- TableSkeleton,
- TBody,
- Td,
- Th,
- THead,
- Tr
-} from "@app/components/v2";
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow
+} from "@app/components/v3";
import { useOrganization } from "@app/context";
import { useGetTemplateUsages } from "@app/hooks/api/identityAuthTemplates";
@@ -41,51 +45,64 @@ export const MachineAuthTemplateUsagesModal = ({
});
return (
- <Modal isOpen={isOpen} onOpenChange={onClose}>
- <ModalContent title={`Usages for Identity Auth Template: ${templateName}`}>
- <div>
- <TableContainer>
- <Table>
- <THead>
- <Tr className="h-14">
- <Th>Identity Name</Th>
- <Th>Identity ID</Th>
- </Tr>
- </THead>
- <TBody>
- {isPending && <TableSkeleton columns={3} innerKey="template-usages" />}
- {!isPending &&
- usages.map((usage) => (
- <Tr
- className="h-10 cursor-pointer transition-colors duration-100 hover:bg-mineshaft-700"
- key={`usage-${usage.identityId}`}
- onClick={() =>
- navigate({
- to: "/organizations/$orgId/identities/$identityId",
- params: {
- identityId: usage.identityId,
- orgId: organizationId
- }
- })
- }
- >
- <Td>{usage.identityName}</Td>
- <Td>
- <span className="text-sm text-mineshaft-400">{usage.identityId}</span>
- </Td>
- </Tr>
- ))}
- </TBody>
- </Table>
- {!isPending && usages.length === 0 && (
- <EmptyState
- title="This template is not currently being used by any identities"
- icon={faCertificate}
- />
- )}
- </TableContainer>
- </div>
- </ModalContent>
- </Modal>
+ <Dialog
+ open={isOpen}
+ onOpenChange={(open) => {
+ if (!open) onClose();
+ }}
+ >
+ <DialogContent className="max-w-2xl">
+ <DialogHeader>
+ <DialogTitle>Usages for Identity Auth Template: {templateName}</DialogTitle>
+ </DialogHeader>
+ {isPending || usages.length > 0 ? (
+ <Table>
+ <TableHeader>
+ <TableRow>
+ <TableHead>Identity Name</TableHead>
+ <TableHead>Identity ID</TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody>
+ {isPending &&
+ Array.from({ length: 3 }, (_, index) => (
+ <TableRow key={`template-usage-skeleton-${index + 1}`}>
+ <TableCell>
+ <Skeleton className="h-4 w-32" />
+ </TableCell>
+ <TableCell>
+ <Skeleton className="h-4 w-56" />
+ </TableCell>
+ </TableRow>
+ ))}
+ {!isPending &&
+ usages.map((usage) => (
+ <TableRow
+ key={`usage-${usage.identityId}`}
+ onClick={() =>
+ navigate({
+ to: "/organizations/$orgId/identities/$identityId",
+ params: { identityId: usage.identityId, orgId: organizationId }
+ })
+ }
+ >
+ <TableCell>{usage.identityName}</TableCell>
+ <TableCell className="text-muted">{usage.identityId}</TableCell>
+ </TableRow>
+ ))}
+ </TableBody>
+ </Table>
+ ) : (
+ <Empty className="border">
+ <EmptyHeader>
+ <EmptyMedia variant="icon">
+ <FileKeyIcon />
+ </EmptyMedia>
+ <EmptyTitle>This template is not currently being used by any identities</EmptyTitle>
+ </EmptyHeader>
+ </Empty>
+ )}
+ </DialogContent>
+ </Dialog>
);
};
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/index.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/index.tsx
index f0663a6a57..bc8b10fe5e 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/index.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/index.tsx
@@ -1 +1 @@
-export { IdentitySection } from "./IdentitySection";
+export { IdentityAuthTemplatesSection, IdentitySection } from "./IdentitySection";
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/index.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/index.tsx
index f0663a6a57..bc8b10fe5e 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/index.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/index.tsx
@@ -1 +1 @@
-export { IdentitySection } from "./IdentitySection";
+export { IdentityAuthTemplatesSection, IdentitySection } from "./IdentitySection";
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/OrgMembersSection.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/OrgMembersSection.tsx
index b830f8c467..5adea4c4d9 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/OrgMembersSection.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/OrgMembersSection.tsx
@@ -155,8 +155,8 @@ export const OrgMembersSection = () => {
<>
<div
className={twMerge(
- "mb-2 h-0 shrink-0 overflow-hidden transition-all",
- selectedMemberIds.length > 0 && "h-16"
+ "h-0 shrink-0 overflow-hidden transition-all",
+ selectedMemberIds.length > 0 && "mb-2 h-16"
)}
>
<div className="mt-3.5 flex items-center rounded-md border border-border bg-card p-2 pl-4 text-foreground">
@@ -219,9 +219,7 @@ export const OrgMembersSection = () => {
isDisabled={!isAllowed}
>
<UserPlusIcon />
- {isSubOrganization
- ? "Add Users to Sub-Organization"
- : "Invite Users to Organization"}
+ {isSubOrganization ? "Add" : "Invite"}
</Button>
)}
</OrgPermissionCan>
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgRoleTabSection/OrgRoleTable.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgRoleTabSection/OrgRoleTable.tsx
index 3cb684d57f..f14807beb1 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgRoleTabSection/OrgRoleTable.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgRoleTabSection/OrgRoleTable.tsx
@@ -253,7 +253,7 @@ export const OrgRoleTable = () => {
isDisabled={!isAllowed}
>
<PlusIcon />
- Add {isSubOrganization ? "Sub-" : ""}Organization Role
+ Create
</Button>
)}
</OrgPermissionCan>
diff --git a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/PoolConnectedResourcesDrawer.tsx b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/PoolConnectedResourcesDrawer.tsx
index 9acbc80491..c5ea5ef77b 100644
--- a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/PoolConnectedResourcesDrawer.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/PoolConnectedResourcesDrawer.tsx
@@ -92,7 +92,7 @@ export const PoolConnectedResourcesDrawer = ({ isOpen, onOpenChange, poolId, poo
<SheetDescription>{poolName}</SheetDescription>
</SheetHeader>
- <div className="flex-1 px-4">
+ <div className="flex-1 p-4">
{isPending ? (
<div className="flex h-32 items-center justify-center">
<Spinner size="lg" />
diff --git a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/PoolDetailSheet.tsx b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/PoolDetailSheet.tsx
index 29e6a4375c..960890d30e 100644
--- a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/PoolDetailSheet.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/PoolDetailSheet.tsx
@@ -122,143 +122,145 @@ export const PoolDetailSheet = ({ isOpen, onOpenChange, pool }: Props) => {
<SheetTitle>{pool.name}</SheetTitle>
</SheetHeader>
- <div className="mx-4 flex items-center gap-7 rounded-md border border-border bg-container px-5 py-3">
- <div>
- <div className="text-xs text-accent">Health</div>
- <div className="mt-0.5 text-sm font-medium">
- <PoolHealthBadge pool={pool} />
+ <div className="flex flex-col gap-4 p-4">
+ <div className="flex items-center gap-7 rounded-md border border-border bg-container px-5 py-3">
+ <div>
+ <div className="text-xs text-accent">Health</div>
+ <div className="mt-0.5 text-sm font-medium">
+ <PoolHealthBadge pool={pool} />
+ </div>
+ </div>
+ <div className="h-8 w-px bg-border" />
+ <div>
+ <div className="text-xs text-accent">Total Gateways</div>
+ <div className="mt-0.5 text-sm font-medium text-foreground">{pool.memberCount}</div>
+ </div>
+ <div className="h-8 w-px bg-border" />
+ <div>
+ <div className="text-xs text-accent">Created</div>
+ <div className="mt-0.5 text-sm font-medium text-foreground">{createdDate}</div>
</div>
</div>
- <div className="h-8 w-px bg-border" />
- <div>
- <div className="text-xs text-accent">Total Gateways</div>
- <div className="mt-0.5 text-sm font-medium text-foreground">{pool.memberCount}</div>
- </div>
- <div className="h-8 w-px bg-border" />
- <div>
- <div className="text-xs text-accent">Created</div>
- <div className="mt-0.5 text-sm font-medium text-foreground">{createdDate}</div>
- </div>
- </div>
- <div className="px-4">
- <div className="mb-3 flex items-center justify-between">
- <h4 className="text-sm font-medium text-foreground">Member Gateways</h4>
- <OrgPermissionCan
- I={OrgGatewayPoolPermissionActions.EditGatewayPools}
- a={OrgPermissionSubjects.GatewayPool}
- >
- {(isAllowed: boolean) => {
- const isDisabled = !isAllowed || availableGateways.length === 0;
- return (
- <Popover open={isAddGatewayOpen} onOpenChange={setIsAddGatewayOpen} modal>
- <PopoverTrigger asChild>
- <Button
- variant="outline_bg"
- size="xs"
- leftIcon={<FontAwesomeIcon icon={faPlus} />}
- isDisabled={isDisabled}
- >
- Add Gateway
- </Button>
- </PopoverTrigger>
- <PopoverContent align="end" className="z-[60] w-56 p-0">
- <Command>
- <CommandInput placeholder="Search gateways..." />
- <CommandList>
- <CommandEmpty>No gateways available.</CommandEmpty>
- <CommandGroup>
- {availableGateways.map((gw) => (
- <CommandItem
- key={gw.id}
- value={gw.id}
- keywords={[gw.name]}
- onSelect={() => {
- setIsAddGatewayOpen(false);
- handleAdd(gw.id);
- }}
- >
- {gw.name}
- </CommandItem>
- ))}
- </CommandGroup>
- </CommandList>
- </Command>
- </PopoverContent>
- </Popover>
- );
- }}
- </OrgPermissionCan>
- </div>
+ <div>
+ <div className="mb-3 flex items-center justify-between">
+ <h4 className="text-sm font-medium text-foreground">Member Gateways</h4>
+ <OrgPermissionCan
+ I={OrgGatewayPoolPermissionActions.EditGatewayPools}
+ a={OrgPermissionSubjects.GatewayPool}
+ >
+ {(isAllowed: boolean) => {
+ const isDisabled = !isAllowed || availableGateways.length === 0;
+ return (
+ <Popover open={isAddGatewayOpen} onOpenChange={setIsAddGatewayOpen} modal>
+ <PopoverTrigger asChild>
+ <Button
+ variant="outline_bg"
+ size="xs"
+ leftIcon={<FontAwesomeIcon icon={faPlus} />}
+ isDisabled={isDisabled}
+ >
+ Add Gateway
+ </Button>
+ </PopoverTrigger>
+ <PopoverContent align="end" className="z-[60] w-56 p-0">
+ <Command>
+ <CommandInput placeholder="Search gateways..." />
+ <CommandList>
+ <CommandEmpty>No gateways available.</CommandEmpty>
+ <CommandGroup>
+ {availableGateways.map((gw) => (
+ <CommandItem
+ key={gw.id}
+ value={gw.id}
+ keywords={[gw.name]}
+ onSelect={() => {
+ setIsAddGatewayOpen(false);
+ handleAdd(gw.id);
+ }}
+ >
+ {gw.name}
+ </CommandItem>
+ ))}
+ </CommandGroup>
+ </CommandList>
+ </Command>
+ </PopoverContent>
+ </Popover>
+ );
+ }}
+ </OrgPermissionCan>
+ </div>
- <Table>
- <TableHeader>
- <TableRow>
- <TableHead>Name</TableHead>
- <TableHead>Status</TableHead>
- <TableHead className="w-5" />
- </TableRow>
- </TableHeader>
- <TableBody>
- {memberGateways.length === 0 && (
+ <Table>
+ <TableHeader>
<TableRow>
- <TableCell colSpan={3} className="text-center text-sm text-accent">
- No gateways in this pool
- </TableCell>
+ <TableHead>Name</TableHead>
+ <TableHead>Status</TableHead>
+ <TableHead className="w-5" />
</TableRow>
- )}
- {memberGateways.map((gw) => {
- const isOnline = isGatewayHealthy(gw);
-
- return (
- <TableRow key={gw.id}>
- <TableCell>
- <div className="flex items-center gap-2">
- <span>{gw.name}</span>
- <Badge variant="neutral">Gateway v{gw.isV1 ? "1" : "2"}</Badge>
- </div>
- </TableCell>
- <TableCell>
- <Badge variant={isOnline ? "success" : "danger"}>
- {isOnline ? "Healthy" : "Unreachable"}
- </Badge>
- </TableCell>
- <TableCell>
- <DropdownMenu>
- <DropdownMenuTrigger asChild>
- <IconButton
- ariaLabel="Options"
- variant="plain"
- size="sm"
- className="p-1.5"
- >
- <FontAwesomeIcon icon={faEllipsisV} />
- </IconButton>
- </DropdownMenuTrigger>
- <DropdownMenuContent align="end" className="z-[60] min-w-[180px]">
- {!gw.isV1 && (
- <DropdownMenuItem onSelect={() => handleHealthCheck(gw.id)}>
- <FontAwesomeIcon icon={faHeartPulse} />
- Trigger health check
- </DropdownMenuItem>
- )}
- <DropdownMenuItem
- variant="danger"
- onSelect={() =>
- handlePopUpOpen("removeGateway", { id: gw.id, name: gw.name })
- }
- >
- <FontAwesomeIcon icon={faTrash} />
- Remove from pool
- </DropdownMenuItem>
- </DropdownMenuContent>
- </DropdownMenu>
+ </TableHeader>
+ <TableBody>
+ {memberGateways.length === 0 && (
+ <TableRow>
+ <TableCell colSpan={3} className="text-center text-sm text-accent">
+ No gateways in this pool
</TableCell>
</TableRow>
- );
- })}
- </TableBody>
- </Table>
+ )}
+ {memberGateways.map((gw) => {
+ const isOnline = isGatewayHealthy(gw);
+
+ return (
+ <TableRow key={gw.id}>
+ <TableCell>
+ <div className="flex items-center gap-2">
+ <span>{gw.name}</span>
+ <Badge variant="neutral">Gateway v{gw.isV1 ? "1" : "2"}</Badge>
+ </div>
+ </TableCell>
+ <TableCell>
+ <Badge variant={isOnline ? "success" : "danger"}>
+ {isOnline ? "Healthy" : "Unreachable"}
+ </Badge>
+ </TableCell>
+ <TableCell>
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <IconButton
+ ariaLabel="Options"
+ variant="plain"
+ size="sm"
+ className="p-1.5"
+ >
+ <FontAwesomeIcon icon={faEllipsisV} />
+ </IconButton>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end" className="z-[60] min-w-[180px]">
+ {!gw.isV1 && (
+ <DropdownMenuItem onSelect={() => handleHealthCheck(gw.id)}>
+ <FontAwesomeIcon icon={faHeartPulse} />
+ Trigger health check
+ </DropdownMenuItem>
+ )}
+ <DropdownMenuItem
+ variant="danger"
+ onSelect={() =>
+ handlePopUpOpen("removeGateway", { id: gw.id, name: gw.name })
+ }
+ >
+ <FontAwesomeIcon icon={faTrash} />
+ Remove from pool
+ </DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </TableCell>
+ </TableRow>
+ );
+ })}
+ </TableBody>
+ </Table>
+ </div>
</div>
<DeleteActionModal
diff --git a/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/honey-token-config/HoneyTokenModal.tsx b/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/honey-token-config/HoneyTokenModal.tsx
index cb68bf031b..df69eef3cd 100644
--- a/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/honey-token-config/HoneyTokenModal.tsx
+++ b/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/honey-token-config/HoneyTokenModal.tsx
@@ -219,7 +219,7 @@ export const HoneyTokenModal = ({ isOpen, onOpenChange }: Props) => {
</SheetDescription>
</SheetHeader>
- <div className="thin-scrollbar flex-1 overflow-y-auto px-4">
+ <div className="thin-scrollbar flex-1 overflow-y-auto p-4">
<FieldGroup>
<Controller
control={control}
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/LDAPModal.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/LDAPModal.tsx
index 5676418532..c6376961b8 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/LDAPModal.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/LDAPModal.tsx
@@ -284,7 +284,7 @@ export const LDAPModal = ({ popUp, handlePopUpClose, handlePopUpToggle, hideDele
<DocumentationLinkBadge href="https://infisical.com/docs/integrations/user-authentication" />
</SheetTitle>
</SheetHeader>
- <div className="flex thin-scrollbar flex-1 flex-col overflow-y-auto px-4">
+ <div className="flex thin-scrollbar flex-1 flex-col overflow-y-auto p-4">
<FieldGroup className="mb-auto">
<Controller
control={control}
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OIDCModal.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OIDCModal.tsx
index 9f701ae518..007c7d2828 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OIDCModal.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OIDCModal.tsx
@@ -239,7 +239,7 @@ export const OIDCModal = ({ popUp, handlePopUpClose, handlePopUpToggle, hideDele
<DocumentationLinkBadge href="https://infisical.com/docs/integrations/user-authentication" />
</SheetTitle>
</SheetHeader>
- <div className="thin-scrollbar flex-1 overflow-y-auto px-4">
+ <div className="thin-scrollbar flex-1 overflow-y-auto p-4">
<FieldGroup>
<Controller
control={control}
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/SSOModal.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/SSOModal.tsx
index 80cc491ddd..f99b264d9f 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/SSOModal.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/SSOModal.tsx
@@ -274,7 +274,7 @@ export const SSOModal = ({ popUp, handlePopUpClose, handlePopUpToggle, hideDelet
<DocumentationLinkBadge href="https://infisical.com/docs/integrations/user-authentication" />
</SheetTitle>
</SheetHeader>
- <div className="thin-scrollbar flex-1 overflow-y-auto px-4">
+ <div className="thin-scrollbar flex-1 overflow-y-auto p-4">
<SSOModalHeader
providerDetails={
ssoAuthProviders.find((provider) => provider.value === authProvider)!
diff --git a/frontend/src/pages/pam/PamAccountsPage/components/CreateAccountSheet.tsx b/frontend/src/pages/pam/PamAccountsPage/components/CreateAccountSheet.tsx
index ca299309f1..ee18223179 100644
--- a/frontend/src/pages/pam/PamAccountsPage/components/CreateAccountSheet.tsx
+++ b/frontend/src/pages/pam/PamAccountsPage/components/CreateAccountSheet.tsx
@@ -279,7 +279,7 @@ export const CreateAccountSheet = ({ isOpen, onOpenChange, defaultFolderId, onCr
{step === 1 ? (
<>
- <div className="flex min-h-0 flex-1 flex-col gap-5 px-4 pt-3">
+ <div className="flex min-h-0 flex-1 flex-col gap-5 p-4">
<Controller
control={control}
name="folderId"
@@ -451,7 +451,7 @@ export const CreateAccountSheet = ({ isOpen, onOpenChange, defaultFolderId, onCr
</>
) : (
<form onSubmit={handleSubmit(onSubmit)} className="flex min-h-0 flex-1 flex-col">
- <div className="flex thin-scrollbar flex-1 flex-col gap-4 overflow-y-auto px-4 pt-3">
+ <div className="flex thin-scrollbar flex-1 flex-col gap-4 overflow-y-auto p-4">
{selectedTemplate && (
<div className="flex items-center gap-3 rounded-md border border-border bg-container p-3">
<AccountPlatformIcon accountType={selectedTemplate.type} size={28} />
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerRowEditor.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerRowEditor.tsx
index a239f41542..40da8c1b21 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerRowEditor.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerRowEditor.tsx
@@ -72,7 +72,7 @@ export const DataExplorerRowEditor = ({
<SheetHeader>
<SheetTitle>Edit Row</SheetTitle>
</SheetHeader>
- <div className="space-y-3 py-4">
+ <div className="space-y-3 p-4">
{columns.map((col) => {
const readOnly = isReadOnly(col);
const value = formValues[col.name] ?? "";
diff --git a/frontend/src/pages/pam/PamDiscoveryPage/components/AddDiscoverySourceSheet.tsx b/frontend/src/pages/pam/PamDiscoveryPage/components/AddDiscoverySourceSheet.tsx
index a4596921cc..02ce196c57 100644
--- a/frontend/src/pages/pam/PamDiscoveryPage/components/AddDiscoverySourceSheet.tsx
+++ b/frontend/src/pages/pam/PamDiscoveryPage/components/AddDiscoverySourceSheet.tsx
@@ -120,10 +120,7 @@ const FormShell = ({
footer: React.ReactNode;
}) => (
<>
- <div className="flex thin-scrollbar flex-1 flex-col gap-4 overflow-y-auto px-4">
- {children}
- <div aria-hidden className="h-4 shrink-0" />
- </div>
+ <div className="flex thin-scrollbar flex-1 flex-col gap-4 overflow-y-auto p-4">{children}</div>
<SheetFooter className="justify-end border-t">{footer}</SheetFooter>
</>
);
@@ -320,7 +317,7 @@ const TypeSelectorStep = ({
onNext: () => void;
}) => (
<>
- <div className="flex min-h-0 flex-1 flex-col px-4">
+ <div className="flex min-h-0 flex-1 flex-col p-4">
<RadioGroup
value={selectedType ?? ""}
onValueChange={(value) => onSelect(value as PamDiscoveryType)}
diff --git a/frontend/src/pages/pam/PamTemplatesPage/components/CreateTemplateModal.tsx b/frontend/src/pages/pam/PamTemplatesPage/components/CreateTemplateModal.tsx
index 50ebbf4c3b..c728bc5db8 100644
--- a/frontend/src/pages/pam/PamTemplatesPage/components/CreateTemplateModal.tsx
+++ b/frontend/src/pages/pam/PamTemplatesPage/components/CreateTemplateModal.tsx
@@ -98,7 +98,7 @@ export const CreateTemplateModal = ({ isOpen, onOpenChange, onCreated }: Props)
</SheetHeader>
<form onSubmit={handleSubmit(onSubmit)} className="flex min-h-0 flex-1 flex-col">
- <div className="flex flex-1 flex-col gap-4 px-4">
+ <div className="flex flex-1 flex-col gap-4 p-4">
<Field>
<FieldLabel htmlFor="template-name">Name</FieldLabel>
<FieldContent>
diff --git a/frontend/src/pages/project/SettingsPage/components/CrossProjectSharingSection/ShareSecretsSheet.tsx b/frontend/src/pages/project/SettingsPage/components/CrossProjectSharingSection/ShareSecretsSheet.tsx
index 7bbf2d90bb..d15bf1cb40 100644
--- a/frontend/src/pages/project/SettingsPage/components/CrossProjectSharingSection/ShareSecretsSheet.tsx
+++ b/frontend/src/pages/project/SettingsPage/components/CrossProjectSharingSection/ShareSecretsSheet.tsx
@@ -382,7 +382,7 @@ export const ShareSecretsSheet = ({
</SheetDescription>
</SheetHeader>
- <div className="thin-scrollbar flex-1 overflow-y-auto px-4">
+ <div className="thin-scrollbar flex-1 overflow-y-auto p-4">
<FieldGroup>
<div>
<p className="text-xs font-semibold tracking-widest text-muted uppercase">
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchModal.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchModal.tsx
index f48110c21f..bf58200e0b 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchModal.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchModal.tsx
@@ -442,7 +442,7 @@ const Content = ({
}
return (
- <div className="flex min-h-0 flex-1 flex-col px-4 pb-4">
+ <div className="flex min-h-0 flex-1 flex-col p-4">
<div className="flex gap-2 border-b border-border pb-4">
<DropdownMenu>
<Tooltip>
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx
index e32b1cde68..b08af61b79 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx
@@ -1876,7 +1876,6 @@ export const SecretEditTableRow = ({
<SheetTitle>Version History</SheetTitle>
<SheetDescription>Audit secret history and rollback changes</SheetDescription>
</SheetHeader>
- <Separator />
<div className="bg-container p-4 text-foreground">
<p className="truncate">{secretName}</p>
<Badge variant="neutral" className="mt-0.5">
@@ -1908,7 +1907,6 @@ export const SecretEditTableRow = ({
View and manage user, group, and machine identity access to this secret
</SheetDescription>
</SheetHeader>
- <Separator />
<div className="bg-container p-4 text-foreground">
<p className="truncate">{secretName}</p>
<Badge variant="neutral" className="mt-0.5">
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/WebhooksTab/AddWebhookForm.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/WebhooksTab/AddWebhookForm.tsx
index 8277261dc7..2135368196 100644
--- a/frontend/src/pages/secret-manager/SettingsPage/components/WebhooksTab/AddWebhookForm.tsx
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/WebhooksTab/AddWebhookForm.tsx
@@ -207,7 +207,7 @@ export const AddWebhookForm = ({
<SheetHeader>
<SheetTitle>Create a new webhook</SheetTitle>
</SheetHeader>
- <div className="flex thin-scrollbar flex-1 flex-col gap-4 overflow-y-auto px-4">
+ <div className="flex thin-scrollbar flex-1 flex-col gap-4 overflow-y-auto p-4">
<Controller
control={control}
name="type"
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/AddWorkflowIntegrationSheet.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/AddWorkflowIntegrationSheet.tsx
index fb3258299e..64b2b36f3d 100644
--- a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/AddWorkflowIntegrationSheet.tsx
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/AddWorkflowIntegrationSheet.tsx
@@ -84,7 +84,7 @@ export const AddWorkflowIntegrationSheet = ({ isOpen, onOpenChange }: Props) =>
</SheetHeader>
{!selectedPlatform && (
<>
- <div className="flex thin-scrollbar flex-1 flex-col gap-4 overflow-y-auto px-4">
+ <div className="flex thin-scrollbar flex-1 flex-col gap-4 overflow-y-auto p-4">
<div className="flex items-center gap-4">
{PLATFORM_LIST.map(({ icon, platform, title }) => (
<button
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsIntegrationForm.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsIntegrationForm.tsx
index 99286ec7fc..3aa5137127 100644
--- a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsIntegrationForm.tsx
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsIntegrationForm.tsx
@@ -300,7 +300,7 @@ export const MicrosoftTeamsIntegrationForm = ({ onClose, onBack, menuContainer }
className="flex min-h-0 flex-1 flex-col"
autoComplete="off"
>
- <div className="flex thin-scrollbar flex-1 flex-col gap-4 overflow-y-auto px-4">
+ <div className="flex thin-scrollbar flex-1 flex-col gap-4 overflow-y-auto p-4">
{!isMicrosoftTeamsIntegrationsLoading && !hasMicrosoftTeamsIntegrations ? (
<Alert>
<Info />
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackIntegrationForm.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackIntegrationForm.tsx
index ebe3cddefe..334bd4739a 100644
--- a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackIntegrationForm.tsx
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackIntegrationForm.tsx
@@ -218,7 +218,7 @@ export const SlackIntegrationForm = ({ onClose, onBack, menuContainer }: Props)
className="flex min-h-0 flex-1 flex-col"
autoComplete="off"
>
- <div className="flex thin-scrollbar flex-1 flex-col gap-4 overflow-y-auto px-4">
+ <div className="flex thin-scrollbar flex-1 flex-col gap-4 overflow-y-auto p-4">
{!isWorkflowIntegrationsLoading && !hasSlackIntegrations ? (
<Alert>
<Info />
diff --git a/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/PasskeyManagerDialog.tsx b/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/PasskeyManagerDialog.tsx
index d35d37db18..b149e983bb 100644
--- a/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/PasskeyManagerDialog.tsx
+++ b/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/PasskeyManagerDialog.tsx
@@ -83,7 +83,7 @@ export const PasskeyManagerDialog = ({ isOpen, onOpenChange }: Props) => {
</SheetDescription>
</SheetHeader>
- <div className="flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto px-4 py-5">
+ <div className="flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-4">
<div className="flex items-end gap-2">
<div className="flex-1">
<Input
diff --git a/frontend/src/views/IdentityAuthMethods/IdentityAuthMethodSheet.tsx b/frontend/src/views/IdentityAuthMethods/IdentityAuthMethodSheet.tsx
index 55ad16f221..2f2be1f1a8 100644
--- a/frontend/src/views/IdentityAuthMethods/IdentityAuthMethodSheet.tsx
+++ b/frontend/src/views/IdentityAuthMethods/IdentityAuthMethodSheet.tsx
@@ -207,7 +207,7 @@ export const IdentityAuthMethodSheet = ({
)}
</SheetTitle>
</SheetHeader>
- <div className="flex thin-scrollbar flex-1 flex-col overflow-y-auto px-4 pb-4">
+ <div className="flex thin-scrollbar flex-1 flex-col overflow-y-auto p-4">
<Content identityId={identityId} isLockedOut={isLockedOut} onMutated={onMutated} />
</div>
<SheetFooter className="justify-between border-t">
diff --git a/frontend/src/views/IdentityAuthMethods/IdentityAuthMethodsTable.tsx b/frontend/src/views/IdentityAuthMethods/IdentityAuthMethodsTable.tsx
index 8be3a6f567..80af365e4d 100644
--- a/frontend/src/views/IdentityAuthMethods/IdentityAuthMethodsTable.tsx
+++ b/frontend/src/views/IdentityAuthMethods/IdentityAuthMethodsTable.tsx
@@ -30,6 +30,7 @@ import {
import { usePopUp } from "@app/hooks";
import { IdentityAuthMethod, identityAuthToNameMap } from "@app/hooks/api";
import { IdentityAuthMethodModal } from "@app/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthMethodModal";
+import { identityAuthMethodOptions } from "@app/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthMethodModalContent";
import { IdentityAuthRevokeDialog } from "./helpers";
import { IdentityAuthMethodSheet } from "./IdentityAuthMethodSheet";
@@ -84,6 +85,10 @@ export const IdentityAuthMethodsTable = ({
<TableBody>
{authMethods.map((authMethod) => {
const isLockedOut = activeLockoutAuthMethods?.includes(authMethod);
+ const authMethodIcon = identityAuthMethodOptions.find(
+ ({ value }) => value === authMethod
+ )?.icon;
+
return (
<TableRow
key={authMethod}
@@ -92,6 +97,7 @@ export const IdentityAuthMethodsTable = ({
>
<TableCell>
<div className="flex items-center gap-2">
+ {authMethodIcon}
{identityAuthToNameMap[authMethod]}
{isLockedOut && (
<Tooltip>
diff --git a/frontend/src/views/IdentityAuthMethods/content/IdentityAliCloudAuthContent.tsx b/frontend/src/views/IdentityAuthMethods/content/IdentityAliCloudAuthContent.tsx
index 200a39a99f..412e924727 100644
--- a/frontend/src/views/IdentityAuthMethods/content/IdentityAliCloudAuthContent.tsx
+++ b/frontend/src/views/IdentityAuthMethods/content/IdentityAliCloudAuthContent.tsx
@@ -1,6 +1,13 @@
import { BanIcon } from "lucide-react";
-import { Empty, EmptyHeader, EmptyMedia, EmptyTitle, PageLoader } from "@app/components/v3";
+import {
+ DetailGroup,
+ Empty,
+ EmptyHeader,
+ EmptyMedia,
+ EmptyTitle,
+ PageLoader
+} from "@app/components/v3";
import { useGetIdentityAliCloudAuth } from "@app/hooks/api";
import { IdentityAuthAccessTokenFields, IdentityAuthFieldDisplay } from "../helpers";
@@ -27,7 +34,7 @@ export const IdentityAliCloudAuthContent = ({ identityId }: ViewAuthMethodProps)
}
return (
- <div className="grid grid-cols-2 gap-3">
+ <DetailGroup className="grid grid-cols-2 gap-x-6 gap-y-5">
<IdentityAuthAccessTokenFields
accessTokenTTL={data.accessTokenTTL}
accessTokenMaxTTL={data.accessTokenMaxTTL}
@@ -40,6 +47,6 @@ export const IdentityAliCloudAuthContent = ({ identityId }: ViewAuthMethodProps)
.map((u) => u.trim())
.join(", ")}
</IdentityAuthFieldDisplay>
- </div>
+ </DetailGroup>
);
};
diff --git a/frontend/src/views/IdentityAuthMethods/content/IdentityAwsAuthContent.tsx b/frontend/src/views/IdentityAuthMethods/content/IdentityAwsAuthContent.tsx
index ed8989059a..eab9f494c7 100644
--- a/frontend/src/views/IdentityAuthMethods/content/IdentityAwsAuthContent.tsx
+++ b/frontend/src/views/IdentityAuthMethods/content/IdentityAwsAuthContent.tsx
@@ -1,6 +1,13 @@
import { BanIcon } from "lucide-react";
-import { Empty, EmptyHeader, EmptyMedia, EmptyTitle, PageLoader } from "@app/components/v3";
+import {
+ DetailGroup,
+ Empty,
+ EmptyHeader,
+ EmptyMedia,
+ EmptyTitle,
+ PageLoader
+} from "@app/components/v3";
import { useGetIdentityAwsAuth } from "@app/hooks/api";
import { IdentityAuthAccessTokenFields, IdentityAuthFieldDisplay } from "../helpers";
@@ -27,7 +34,7 @@ export const IdentityAwsAuthContent = ({ identityId }: ViewAuthMethodProps) => {
}
return (
- <div className="grid grid-cols-2 gap-3">
+ <DetailGroup className="grid grid-cols-2 gap-x-6 gap-y-5">
<IdentityAuthAccessTokenFields
accessTokenTTL={data.accessTokenTTL}
accessTokenMaxTTL={data.accessTokenMaxTTL}
@@ -49,6 +56,6 @@ export const IdentityAwsAuthContent = ({ identityId }: ViewAuthMethodProps) => {
<IdentityAuthFieldDisplay className="col-span-2" label="STS Endpoint">
{data.stsEndpoint}
</IdentityAuthFieldDisplay>
- </div>
+ </DetailGroup>
);
};
diff --git a/frontend/src/views/IdentityAuthMethods/content/IdentityAzureAuthContent.tsx b/frontend/src/views/IdentityAuthMethods/content/IdentityAzureAuthContent.tsx
index b43c6d35fe..4b52f2e762 100644
--- a/frontend/src/views/IdentityAuthMethods/content/IdentityAzureAuthContent.tsx
+++ b/frontend/src/views/IdentityAuthMethods/content/IdentityAzureAuthContent.tsx
@@ -1,6 +1,13 @@
import { BanIcon } from "lucide-react";
-import { Empty, EmptyHeader, EmptyMedia, EmptyTitle, PageLoader } from "@app/components/v3";
+import {
+ DetailGroup,
+ Empty,
+ EmptyHeader,
+ EmptyMedia,
+ EmptyTitle,
+ PageLoader
+} from "@app/components/v3";
import { useGetIdentityAzureAuth } from "@app/hooks/api";
import { IdentityAuthAccessTokenFields, IdentityAuthFieldDisplay } from "../helpers";
@@ -27,7 +34,7 @@ export const IdentityAzureAuthContent = ({ identityId }: ViewAuthMethodProps) =>
}
return (
- <div className="grid grid-cols-2 gap-3">
+ <DetailGroup className="grid grid-cols-2 gap-x-6 gap-y-5">
<IdentityAuthAccessTokenFields
accessTokenTTL={data.accessTokenTTL}
accessTokenMaxTTL={data.accessTokenMaxTTL}
@@ -46,6 +53,6 @@ export const IdentityAzureAuthContent = ({ identityId }: ViewAuthMethodProps) =>
.map((id) => id.trim())
.join(", ")}
</IdentityAuthFieldDisplay>
- </div>
+ </DetailGroup>
);
};
diff --git a/frontend/src/views/IdentityAuthMethods/content/IdentityGcpAuthContent.tsx b/frontend/src/views/IdentityAuthMethods/content/IdentityGcpAuthContent.tsx
index b2c24ae454..d2d56bf518 100644
--- a/frontend/src/views/IdentityAuthMethods/content/IdentityGcpAuthContent.tsx
+++ b/frontend/src/views/IdentityAuthMethods/content/IdentityGcpAuthContent.tsx
@@ -1,6 +1,13 @@
import { BanIcon } from "lucide-react";
-import { Empty, EmptyHeader, EmptyMedia, EmptyTitle, PageLoader } from "@app/components/v3";
+import {
+ DetailGroup,
+ Empty,
+ EmptyHeader,
+ EmptyMedia,
+ EmptyTitle,
+ PageLoader
+} from "@app/components/v3";
import { useGetIdentityGcpAuth } from "@app/hooks/api";
import { IdentityAuthAccessTokenFields, IdentityAuthFieldDisplay } from "../helpers";
@@ -27,7 +34,7 @@ export const IdentityGcpAuthContent = ({ identityId }: ViewAuthMethodProps) => {
}
return (
- <div className="grid grid-cols-2 gap-3">
+ <DetailGroup className="grid grid-cols-2 gap-x-6 gap-y-5">
<IdentityAuthAccessTokenFields
accessTokenTTL={data.accessTokenTTL}
accessTokenMaxTTL={data.accessTokenMaxTTL}
@@ -59,6 +66,6 @@ export const IdentityGcpAuthContent = ({ identityId }: ViewAuthMethodProps) => {
</IdentityAuthFieldDisplay>
</>
)}
- </div>
+ </DetailGroup>
);
};
diff --git a/frontend/src/views/IdentityAuthMethods/content/IdentityJwtAuthContent.tsx b/frontend/src/views/IdentityAuthMethods/content/IdentityJwtAuthContent.tsx
index 89c79c616b..6a8fa78288 100644
--- a/frontend/src/views/IdentityAuthMethods/content/IdentityJwtAuthContent.tsx
+++ b/frontend/src/views/IdentityAuthMethods/content/IdentityJwtAuthContent.tsx
@@ -2,6 +2,7 @@ import { BanIcon, EyeIcon } from "lucide-react";
import {
Badge,
+ DetailGroup,
Empty,
EmptyHeader,
EmptyMedia,
@@ -38,7 +39,7 @@ export const IdentityJwtAuthContent = ({ identityId }: ViewAuthMethodProps) => {
}
return (
- <div className="grid grid-cols-2 gap-3">
+ <DetailGroup className="grid grid-cols-2 gap-x-6 gap-y-5">
<IdentityAuthAccessTokenFields
accessTokenTTL={data.accessTokenTTL}
accessTokenMaxTTL={data.accessTokenMaxTTL}
@@ -121,6 +122,6 @@ export const IdentityJwtAuthContent = ({ identityId }: ViewAuthMethodProps) => {
</Tooltip>
)}
</IdentityAuthFieldDisplay>
- </div>
+ </DetailGroup>
);
};
diff --git a/frontend/src/views/IdentityAuthMethods/content/IdentityKubernetesAuthContent.tsx b/frontend/src/views/IdentityAuthMethods/content/IdentityKubernetesAuthContent.tsx
index 87b532a134..2f08e44fe7 100644
--- a/frontend/src/views/IdentityAuthMethods/content/IdentityKubernetesAuthContent.tsx
+++ b/frontend/src/views/IdentityAuthMethods/content/IdentityKubernetesAuthContent.tsx
@@ -4,6 +4,7 @@ import { BanIcon, EyeIcon } from "lucide-react";
import {
Badge,
+ DetailGroup,
Empty,
EmptyHeader,
EmptyMedia,
@@ -45,7 +46,7 @@ export const IdentityKubernetesAuthContent = ({ identityId }: ViewAuthMethodProp
}
return (
- <div className="grid grid-cols-2 gap-3">
+ <DetailGroup className="grid grid-cols-2 gap-x-6 gap-y-5">
<IdentityAuthAccessTokenFields
accessTokenTTL={data.accessTokenTTL}
accessTokenMaxTTL={data.accessTokenMaxTTL}
@@ -108,6 +109,6 @@ export const IdentityKubernetesAuthContent = ({ identityId }: ViewAuthMethodProp
</Tooltip>
)}
</IdentityAuthFieldDisplay>
- </div>
+ </DetailGroup>
);
};
diff --git a/frontend/src/views/IdentityAuthMethods/content/IdentityLdapAuthContent.tsx b/frontend/src/views/IdentityAuthMethods/content/IdentityLdapAuthContent.tsx
index 19da0a5a71..ba1a697a3f 100644
--- a/frontend/src/views/IdentityAuthMethods/content/IdentityLdapAuthContent.tsx
+++ b/frontend/src/views/IdentityAuthMethods/content/IdentityLdapAuthContent.tsx
@@ -2,6 +2,7 @@ import { BanIcon, EyeIcon } from "lucide-react";
import {
Badge,
+ DetailGroup,
Empty,
EmptyHeader,
EmptyMedia,
@@ -45,7 +46,7 @@ export const IdentityLdapAuthContent = ({
}
return (
- <div className="grid grid-cols-2 gap-3">
+ <DetailGroup className="grid grid-cols-2 gap-x-6 gap-y-5">
<IdentityAuthAccessTokenFields
accessTokenTTL={data.accessTokenTTL}
accessTokenMaxTTL={data.accessTokenMaxTTL}
@@ -98,6 +99,6 @@ export const IdentityLdapAuthContent = ({
data={data}
/>
)}
- </div>
+ </DetailGroup>
);
};
diff --git a/frontend/src/views/IdentityAuthMethods/content/IdentityOciAuthContent.tsx b/frontend/src/views/IdentityAuthMethods/content/IdentityOciAuthContent.tsx
index c52179c1f5..32af66e654 100644
--- a/frontend/src/views/IdentityAuthMethods/content/IdentityOciAuthContent.tsx
+++ b/frontend/src/views/IdentityAuthMethods/content/IdentityOciAuthContent.tsx
@@ -1,6 +1,13 @@
import { BanIcon } from "lucide-react";
-import { Empty, EmptyHeader, EmptyMedia, EmptyTitle, PageLoader } from "@app/components/v3";
+import {
+ DetailGroup,
+ Empty,
+ EmptyHeader,
+ EmptyMedia,
+ EmptyTitle,
+ PageLoader
+} from "@app/components/v3";
import { useGetIdentityOciAuth } from "@app/hooks/api";
import { IdentityAuthAccessTokenFields, IdentityAuthFieldDisplay } from "../helpers";
@@ -27,7 +34,7 @@ export const IdentityOciAuthContent = ({ identityId }: ViewAuthMethodProps) => {
}
return (
- <div className="grid grid-cols-2 gap-3">
+ <DetailGroup className="grid grid-cols-2 gap-x-6 gap-y-5">
<IdentityAuthAccessTokenFields
accessTokenTTL={data.accessTokenTTL}
accessTokenMaxTTL={data.accessTokenMaxTTL}
@@ -43,6 +50,6 @@ export const IdentityOciAuthContent = ({ identityId }: ViewAuthMethodProps) => {
.map((u) => u.trim())
.join(", ")}
</IdentityAuthFieldDisplay>
- </div>
+ </DetailGroup>
);
};
diff --git a/frontend/src/views/IdentityAuthMethods/content/IdentityOidcAuthContent.tsx b/frontend/src/views/IdentityAuthMethods/content/IdentityOidcAuthContent.tsx
index b32c25c734..628e54bdf6 100644
--- a/frontend/src/views/IdentityAuthMethods/content/IdentityOidcAuthContent.tsx
+++ b/frontend/src/views/IdentityAuthMethods/content/IdentityOidcAuthContent.tsx
@@ -2,6 +2,7 @@ import { BanIcon, EyeIcon } from "lucide-react";
import {
Badge,
+ DetailGroup,
Empty,
EmptyHeader,
EmptyMedia,
@@ -37,7 +38,7 @@ export const IdentityOidcAuthContent = ({ identityId }: ViewAuthMethodProps) =>
}
return (
- <div className="grid grid-cols-2 gap-3">
+ <DetailGroup className="grid grid-cols-2 gap-x-6 gap-y-5">
<IdentityAuthAccessTokenFields
accessTokenTTL={data.accessTokenTTL}
accessTokenMaxTTL={data.accessTokenMaxTTL}
@@ -108,6 +109,6 @@ export const IdentityOidcAuthContent = ({ identityId }: ViewAuthMethodProps) =>
</Tooltip>
)}
</IdentityAuthFieldDisplay>
- </div>
+ </DetailGroup>
);
};
diff --git a/frontend/src/views/IdentityAuthMethods/content/IdentitySpiffeAuthContent.tsx b/frontend/src/views/IdentityAuthMethods/content/IdentitySpiffeAuthContent.tsx
index c7027581ef..a1f985250b 100644
--- a/frontend/src/views/IdentityAuthMethods/content/IdentitySpiffeAuthContent.tsx
+++ b/frontend/src/views/IdentityAuthMethods/content/IdentitySpiffeAuthContent.tsx
@@ -2,6 +2,7 @@ import { BanIcon, EyeIcon } from "lucide-react";
import {
Badge,
+ DetailGroup,
Empty,
EmptyHeader,
EmptyMedia,
@@ -45,7 +46,7 @@ export const IdentitySpiffeAuthContent = ({ identityId }: ViewAuthMethodProps) =
const { trustBundleDistribution: dist } = data;
return (
- <div className="grid grid-cols-2 gap-3">
+ <DetailGroup className="grid grid-cols-2 gap-x-6 gap-y-5">
<IdentityAuthFieldDisplay className="col-span-2" label="Trust Domain">
{data.trustDomain}
</IdentityAuthFieldDisplay>
@@ -118,6 +119,6 @@ export const IdentitySpiffeAuthContent = ({ identityId }: ViewAuthMethodProps) =
accessTokenNumUsesLimit={data.accessTokenNumUsesLimit}
accessTokenTrustedIps={data.accessTokenTrustedIps}
/>
- </div>
+ </DetailGroup>
);
};
diff --git a/frontend/src/views/IdentityAuthMethods/content/IdentityTlsCertAuthContent.tsx b/frontend/src/views/IdentityAuthMethods/content/IdentityTlsCertAuthContent.tsx
index 26dee5f135..f70a603c75 100644
--- a/frontend/src/views/IdentityAuthMethods/content/IdentityTlsCertAuthContent.tsx
+++ b/frontend/src/views/IdentityAuthMethods/content/IdentityTlsCertAuthContent.tsx
@@ -2,6 +2,7 @@ import { BanIcon, EyeIcon } from "lucide-react";
import {
Badge,
+ DetailGroup,
Empty,
EmptyHeader,
EmptyMedia,
@@ -39,7 +40,7 @@ export const IdentityTlsCertAuthContent = ({ identityId }: ViewAuthMethodProps)
}
return (
- <div className="grid grid-cols-2 gap-3">
+ <DetailGroup className="grid grid-cols-2 gap-x-6 gap-y-5">
<IdentityAuthAccessTokenFields
accessTokenTTL={data.accessTokenTTL}
accessTokenMaxTTL={data.accessTokenMaxTTL}
@@ -71,6 +72,6 @@ export const IdentityTlsCertAuthContent = ({ identityId }: ViewAuthMethodProps)
<IdentityAuthFieldDisplay className="col-span-2" label="Verify Client Certificate Chain">
{data.verifyClientCertificateChain ? "Enabled" : "Disabled"}
</IdentityAuthFieldDisplay>
- </div>
+ </DetailGroup>
);
};
diff --git a/frontend/src/views/IdentityAuthMethods/content/IdentityTokenAuthContent.tsx b/frontend/src/views/IdentityAuthMethods/content/IdentityTokenAuthContent.tsx
index 247c650ceb..d606c5e0ab 100644
--- a/frontend/src/views/IdentityAuthMethods/content/IdentityTokenAuthContent.tsx
+++ b/frontend/src/views/IdentityAuthMethods/content/IdentityTokenAuthContent.tsx
@@ -1,6 +1,13 @@
import { BanIcon } from "lucide-react";
-import { Empty, EmptyHeader, EmptyMedia, EmptyTitle, PageLoader } from "@app/components/v3";
+import {
+ DetailGroup,
+ Empty,
+ EmptyHeader,
+ EmptyMedia,
+ EmptyTitle,
+ PageLoader
+} from "@app/components/v3";
import { useGetIdentityTokenAuth, useGetIdentityTokensTokenAuth } from "@app/hooks/api";
import { IdentityAuthAccessTokenFields, IdentityTokenAuthTokensTable } from "../helpers";
@@ -28,7 +35,7 @@ export const IdentityTokenAuthContent = ({ identityId }: ViewAuthMethodProps) =>
}
return (
- <div className="grid grid-cols-2 gap-3">
+ <DetailGroup className="grid grid-cols-2 gap-x-6 gap-y-5">
<IdentityAuthAccessTokenFields
accessTokenTTL={data.accessTokenTTL}
accessTokenMaxTTL={data.accessTokenMaxTTL}
@@ -36,6 +43,6 @@ export const IdentityTokenAuthContent = ({ identityId }: ViewAuthMethodProps) =>
accessTokenTrustedIps={data.accessTokenTrustedIps}
/>
<IdentityTokenAuthTokensTable tokens={tokens} identityId={identityId} />
- </div>
+ </DetailGroup>
);
};
diff --git a/frontend/src/views/IdentityAuthMethods/content/IdentityUniversalAuthContent.tsx b/frontend/src/views/IdentityAuthMethods/content/IdentityUniversalAuthContent.tsx
index c2e7d27673..0dd3d3607f 100644
--- a/frontend/src/views/IdentityAuthMethods/content/IdentityUniversalAuthContent.tsx
+++ b/frontend/src/views/IdentityAuthMethods/content/IdentityUniversalAuthContent.tsx
@@ -1,6 +1,7 @@
import { BanIcon, CheckIcon, CopyIcon } from "lucide-react";
import {
+ DetailGroup,
Empty,
EmptyHeader,
EmptyMedia,
@@ -57,7 +58,7 @@ export const IdentityUniversalAuthContent = ({
}
return (
- <div className="grid grid-cols-2 gap-3">
+ <DetailGroup className="grid grid-cols-2 gap-x-6 gap-y-5">
<IdentityAuthAccessTokenFields
accessTokenPeriod={data.accessTokenPeriod}
accessTokenTTL={data.accessTokenTTL}
@@ -106,6 +107,6 @@ export const IdentityUniversalAuthContent = ({
clientSecrets={clientSecrets}
identityId={identityId}
/>
- </div>
+ </DetailGroup>
);
};