Skip to content

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

misc: patch

Sheen Capadnganc0e572501c81
diff --git a/frontend/src/components/v3/generic/Select/Select.tsx b/frontend/src/components/v3/generic/Select/Select.tsx
index e769747fde..9da84f3051 100644
--- a/frontend/src/components/v3/generic/Select/Select.tsx
+++ b/frontend/src/components/v3/generic/Select/Select.tsx
@@ -141,8 +141,12 @@ function SelectItem({
className,
children,
checkIconClassName,
+ description,
...props
-}: React.ComponentProps<typeof SelectPrimitive.Item> & { checkIconClassName?: string }) {
+}: React.ComponentProps<typeof SelectPrimitive.Item> & {
+ checkIconClassName?: string;
+ description?: React.ReactNode;
+}) {
return (
<SelectPrimitive.Item
data-slot="select-item"
@@ -162,7 +166,10 @@ function SelectItem({
<CheckIcon className="pointer-events-none" />
</SelectPrimitive.ItemIndicator>
</span>
- <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
+ <div className="flex flex-col">
+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
+ {description && <span className="text-xs font-normal text-accent">{description}</span>}
+ </div>
</SelectPrimitive.Item>
);
}
diff --git a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationMembersTab.tsx b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationMembersTab.tsx
index fc3581783f..82d7e73207 100644
--- a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationMembersTab.tsx
+++ b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationMembersTab.tsx
@@ -166,9 +166,24 @@ export const ApplicationMembersTab = ({ members, applicationId }: Props) => {
<SelectValue />
</SelectTrigger>
<SelectContent>
- <SelectItem value="admin">Admin</SelectItem>
- <SelectItem value="operator">Operator</SelectItem>
- <SelectItem value="auditor">Auditor</SelectItem>
+ <SelectItem
+ value="admin"
+ description="Manage members, profiles, and policies"
+ >
+ Admin
+ </SelectItem>
+ <SelectItem
+ value="operator"
+ description="Issue certificates and submit requests"
+ >
+ Operator
+ </SelectItem>
+ <SelectItem
+ value="auditor"
+ description="View certificates and activity"
+ >
+ Auditor
+ </SelectItem>
</SelectContent>
</Select>
</TableCell>
diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleDetailsSection.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleDetailsSection.tsx
index 31c0088f69..404e1c336f 100644
--- a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleDetailsSection.tsx
+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleDetailsSection.tsx
@@ -95,6 +95,7 @@ export const IdentityRoleDetailsSection = ({
const updatedRoles = identityMembershipDetails?.roles?.filter((el) => el.id !== id);
await updateIdentityProjectMembership({
projectId: currentProject?.id || "",
+ projectType: currentProject?.type,
identityId: identityMembershipDetails.identity.id,
roles: updatedRoles.map(
({
diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleModify.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleModify.tsx
index 9ced327138..70b3ed621d 100644
--- a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleModify.tsx
+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleModify.tsx
@@ -71,7 +71,7 @@ type Props = {
};
export const IdentityRoleModify = ({ identityProjectMembership }: Props) => {
- const { projectId } = useProject();
+ const { projectId, currentProject } = useProject();
const { subscription } = useSubscription();
const { data: projectRoles, isPending: isRolesLoading } = useGetProjectRoles(projectId);
const { permission } = useProjectPermission();
@@ -181,6 +181,7 @@ export const IdentityRoleModify = ({ identityProjectMembership }: Props) => {
await updateProjectIdentityMembership.mutateAsync({
projectId,
+ projectType: currentProject?.type,
identityId: identityProjectMembership.identity.id,
roles: sanitizedRoles
});