From 53968e07d04268975f464c4806d29cb8d57cffb3 Mon Sep 17 00:00:00 2001 From: x032205 Date: Wed, 11 Jun 2025 02:59:04 -0400 Subject: [PATCH] Lint + greptile review fixes --- .../platform/identities/alicloud-auth.mdx | 4 ++-- frontend/src/hooks/api/identities/mutations.tsx | 10 +++++----- frontend/src/hooks/api/identities/queries.tsx | 2 +- .../IdentitySection/IdentityAuthMethodModalContent.tsx | 2 +- .../ViewIdentityAuthModal/ViewIdentityAuthModal.tsx | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/documentation/platform/identities/alicloud-auth.mdx b/docs/documentation/platform/identities/alicloud-auth.mdx index 443252536..5f2dae591 100644 --- a/docs/documentation/platform/identities/alicloud-auth.mdx +++ b/docs/documentation/platform/identities/alicloud-auth.mdx @@ -60,7 +60,7 @@ In order to sign requests, you must have an Alibaba Cloud user with credentials ![User Info](/images/platform/identities/alicloud/user-info.png) - After a user has been created, click on it's row to see user information. + After a user has been created, click on its row to see user information. ![User Info](/images/platform/identities/alicloud/user-row.png) @@ -173,7 +173,7 @@ const res = await fetch( "Content-Type": "application/json", }, body: JSON.stringify({ - identityId: "83f1f7b9-a1f2-4688-aecb-dec94da01c75", + identityId: "...", // Replace with your identity ID Signature: signature, ...params, }), diff --git a/frontend/src/hooks/api/identities/mutations.tsx b/frontend/src/hooks/api/identities/mutations.tsx index 1994778f6..52fe52dc2 100644 --- a/frontend/src/hooks/api/identities/mutations.tsx +++ b/frontend/src/hooks/api/identities/mutations.tsx @@ -5,13 +5,13 @@ import { apiRequest } from "@app/config/request"; import { organizationKeys } from "../organization/queries"; import { identitiesKeys } from "./queries"; import { + AddIdentityAliCloudAuthDTO, AddIdentityAwsAuthDTO, AddIdentityAzureAuthDTO, AddIdentityGcpAuthDTO, AddIdentityJwtAuthDTO, AddIdentityKubernetesAuthDTO, AddIdentityLdapAuthDTO, - AddIdentityAliCloudAuthDTO, AddIdentityOciAuthDTO, AddIdentityOidcAuthDTO, AddIdentityTokenAuthDTO, @@ -22,6 +22,7 @@ import { CreateIdentityUniversalAuthClientSecretRes, CreateTokenIdentityTokenAuthDTO, CreateTokenIdentityTokenAuthRes, + DeleteIdentityAliCloudAuthDTO, DeleteIdentityAwsAuthDTO, DeleteIdentityAzureAuthDTO, DeleteIdentityDTO, @@ -29,7 +30,6 @@ import { DeleteIdentityJwtAuthDTO, DeleteIdentityKubernetesAuthDTO, DeleteIdentityLdapAuthDTO, - DeleteIdentityALiCloudAuthDTO, DeleteIdentityOciAuthDTO, DeleteIdentityOidcAuthDTO, DeleteIdentityTokenAuthDTO, @@ -37,19 +37,20 @@ import { DeleteIdentityUniversalAuthDTO, Identity, IdentityAccessToken, + IdentityAliCloudAuth, IdentityAwsAuth, IdentityAzureAuth, IdentityGcpAuth, IdentityJwtAuth, IdentityKubernetesAuth, IdentityLdapAuth, - IdentityAliCloudAuth, IdentityOciAuth, IdentityOidcAuth, IdentityTokenAuth, IdentityUniversalAuth, RevokeTokenDTO, RevokeTokenRes, + UpdateIdentityAliCloudAuthDTO, UpdateIdentityAwsAuthDTO, UpdateIdentityAzureAuthDTO, UpdateIdentityDTO, @@ -57,7 +58,6 @@ import { UpdateIdentityJwtAuthDTO, UpdateIdentityKubernetesAuthDTO, UpdateIdentityLdapAuthDTO, - UpdateIdentityAliCloudAuthDTO, UpdateIdentityOciAuthDTO, UpdateIdentityOidcAuthDTO, UpdateIdentityTokenAuthDTO, @@ -635,7 +635,7 @@ export const useUpdateIdentityAliCloudAuth = () => { export const useDeleteIdentityAliCloudAuth = () => { const queryClient = useQueryClient(); - return useMutation({ + return useMutation({ mutationFn: async ({ identityId }) => { const { data: { identityAliCloudAuth } diff --git a/frontend/src/hooks/api/identities/queries.tsx b/frontend/src/hooks/api/identities/queries.tsx index a3b638f93..806c1f0a4 100644 --- a/frontend/src/hooks/api/identities/queries.tsx +++ b/frontend/src/hooks/api/identities/queries.tsx @@ -6,6 +6,7 @@ import { TReactQueryOptions } from "@app/types/reactQuery"; import { ClientSecretData, IdentityAccessToken, + IdentityAliCloudAuth, IdentityAwsAuth, IdentityAzureAuth, IdentityGcpAuth, @@ -14,7 +15,6 @@ import { IdentityLdapAuth, IdentityMembership, IdentityMembershipOrg, - IdentityAliCloudAuth, IdentityOciAuth, IdentityOidcAuth, IdentityTokenAuth, 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 25049e0bb..0d44bfe64 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 @@ -8,13 +8,13 @@ import { Badge, FormControl, Select, SelectItem, Tooltip } from "@app/components import { IdentityAuthMethod } from "@app/hooks/api/identities"; import { UsePopUpState } from "@app/hooks/usePopUp"; +import { IdentityAliCloudAuthForm } from "./IdentityAliCloudAuthForm"; import { IdentityAwsAuthForm } from "./IdentityAwsAuthForm"; import { IdentityAzureAuthForm } from "./IdentityAzureAuthForm"; import { IdentityGcpAuthForm } from "./IdentityGcpAuthForm"; import { IdentityJwtAuthForm } from "./IdentityJwtAuthForm"; import { IdentityKubernetesAuthForm } from "./IdentityKubernetesAuthForm"; import { IdentityLdapAuthForm } from "./IdentityLdapAuthForm"; -import { IdentityAliCloudAuthForm } from "./IdentityAliCloudAuthForm"; import { IdentityOciAuthForm } from "./IdentityOciAuthForm"; import { IdentityOidcAuthForm } from "./IdentityOidcAuthForm"; import { IdentityTokenAuthForm } from "./IdentityTokenAuthForm"; diff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/ViewIdentityAuthModal.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/ViewIdentityAuthModal.tsx index 42bd8bb85..8bfbd09b3 100644 --- a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/ViewIdentityAuthModal.tsx +++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/ViewIdentityAuthModal.tsx @@ -20,13 +20,13 @@ import { } from "@app/hooks/api"; import { ViewAuthMethodProps } from "./types"; +import { ViewIdentityAliCloudAuthContent } from "./ViewIdentityAliCloudAuthContent"; import { ViewIdentityAwsAuthContent } from "./ViewIdentityAwsAuthContent"; import { ViewIdentityAzureAuthContent } from "./ViewIdentityAzureAuthContent"; import { ViewIdentityGcpAuthContent } from "./ViewIdentityGcpAuthContent"; import { ViewIdentityJwtAuthContent } from "./ViewIdentityJwtAuthContent"; import { ViewIdentityKubernetesAuthContent } from "./ViewIdentityKubernetesAuthContent"; import { ViewIdentityLdapAuthContent } from "./ViewIdentityLdapAuthContent"; -import { ViewIdentityAliCloudAuthContent } from "./ViewIdentityAliCloudAuthContent"; import { ViewIdentityOciAuthContent } from "./ViewIdentityOciAuthContent"; import { ViewIdentityOidcAuthContent } from "./ViewIdentityOidcAuthContent"; import { ViewIdentityTokenAuthContent } from "./ViewIdentityTokenAuthContent";