Skip to content

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

fix: review comments

Piyush Guptaf379217604b3
diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/components/AddGroupProjectModal.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/components/AddGroupProjectModal.tsx
index 3c4dc93d5d..c7040ec54a 100644
--- a/frontend/src/pages/organization/GroupDetailsByIDPage/components/AddGroupProjectModal.tsx
+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/components/AddGroupProjectModal.tsx
@@ -85,7 +85,7 @@ export const AddGroupProjectModal = ({ popUp, handlePopUpToggle }: Props) => {
});
createNotification({
- text: `Successfully assigned project ${projectName} to the group`,
+ text: `Successfully assigned the group to project ${projectName}`,
type: "success"
});
};
diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupProjectsSection/GroupProjectsSection.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupProjectsSection/GroupProjectsSection.tsx
index 0214020d05..d6997c6cb7 100644
--- a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupProjectsSection/GroupProjectsSection.tsx
+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupProjectsSection/GroupProjectsSection.tsx
@@ -31,7 +31,7 @@ export const GroupProjectsSection = ({ groupId, groupSlug }: Props) => {
});
createNotification({
- text: `Successfully removed group from project ${projectName}`,
+ text: `Successfully removed the group from project ${projectName}`,
type: "success"
});
diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupProjectsSection/GroupProjectsTable.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupProjectsSection/GroupProjectsTable.tsx
index 5cad23667e..688e5a6923 100644
--- a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupProjectsSection/GroupProjectsTable.tsx
+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupProjectsSection/GroupProjectsTable.tsx
@@ -149,14 +149,14 @@ export const GroupProjectsTable = ({ groupId, groupSlug, handlePopUpOpen }: Prop
{isEmpty && (
<EmptyState
title={
- groupMemberships?.projects.length
+ debouncedSearch
? "No projects match this search..."
: "This group is not a part of any projects yet"
}
- icon={groupMemberships?.projects.length ? faSearch : faFolder}
+ icon={debouncedSearch ? faSearch : faFolder}
/>
)}
- {!groupMemberships?.projects.length && (
+ {isEmpty && (
<OrgPermissionCan I={OrgPermissionGroupActions.Edit} a={OrgPermissionSubjects.Groups}>
{(isAllowed) => (
<div className="mb-4 flex items-center justify-center">