Restructure MIs to more generic Identity

This commit is contained in:
Tuan Dang
2023-12-09 22:18:38 +07:00
parent 89d0c0e3c3
commit 50ef23e8a0
102 changed files with 3652 additions and 2981 deletions
@@ -62,9 +62,9 @@ const SINGLE_PERMISSION_LIST = [
},
{
title: "Machine identity management",
subtitle: "Add, view, update and remove machine identities from the project",
subtitle: "Add, view, update and remove (machine) identities from the project",
icon: faServer,
formName: "machine-identity"
formName: "identity"
},
{
title: "Webhooks",
@@ -33,7 +33,7 @@ export const formSchema = z.object({
.object({
secrets: z.record(multiEnvPermissionSchema).optional(),
member: generalPermissionSchema,
"machine-identity": generalPermissionSchema,
"identity": generalPermissionSchema,
role: generalPermissionSchema,
integrations: generalPermissionSchema,
webhooks: generalPermissionSchema,
@@ -23,7 +23,7 @@ type Props = {
| "tags"
| "audit-logs"
| "ip-allowlist"
| "machine-identity"
| "identity"
| ProjectPermissionSub.SecretApproval;
isNonEditable?: boolean;
setValue: UseFormSetValue<TFormSchema>;