feat: go greppy

This commit is contained in:
=
2025-10-10 00:09:48 +05:30
parent fe1bc168f6
commit 97135d9cfa
46 changed files with 150 additions and 106 deletions
+1
View File
@@ -64,6 +64,7 @@ export type OrgUser = {
inviteEmail: string;
organization: string;
role: "owner" | "admin" | "member" | "no-access" | "custom";
customRoleSlug?: string;
status: "invited" | "accepted" | "verified" | "completed";
deniedPermissions: any[];
roleId: string;
@@ -272,7 +272,7 @@ export const IdentityAuthTemplatesTable = ({ handlePopUpOpen }: Props) => {
/>
)}
{!subscription.machineIdentityAuthTemplates && (
<EmptyState title="This feature is not been activated for your license." icon={faBan} />
<EmptyState title="This feature has not been activated for your license." icon={faBan} />
)}
{!isPending && templates.length === 0 && (
<EmptyState
@@ -41,7 +41,7 @@ export const ExternalMigrationsTab = () => {
onClick={() => {
handlePopUpOpen("selectImportPlatform");
}}
isDisabled={hasOrgRole(OrgMembershipRole.Admin)}
isDisabled={!hasOrgRole(OrgMembershipRole.Admin)}
leftIcon={<FontAwesomeIcon icon={faPlus} />}
>
Import
@@ -76,7 +76,9 @@ export const UserDetailsSection = ({ membershipId, handlePopUpOpen }: Props) =>
return m.status === "invited" ? "Invited" : "Active";
};
const roleName = roles?.find((r) => r.slug === membership?.role)?.name;
const roleName = roles?.find(
(r) => r.slug === membership?.role || r.slug === membership?.customRoleSlug
)?.name;
return membership ? (
<div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">