diff --git a/frontend/src/pages/org/[id]/overview/index.tsx b/frontend/src/pages/org/[id]/overview/index.tsx
index 255a1c6994..46daf7b4e4 100644
--- a/frontend/src/pages/org/[id]/overview/index.tsx
+++ b/frontend/src/pages/org/[id]/overview/index.tsx
@@ -567,6 +567,9 @@ const OrganizationPage = withPermission(
}, []);
const isWorkspaceEmpty = !isWorkspaceLoading && orgWorkspaces?.length === 0;
+ const filteredWorkspaces = orgWorkspaces.filter((ws) =>
+ ws?.name?.toLowerCase().includes(searchFilter.toLowerCase())
+ );
const projectsGridView = (
@@ -587,33 +590,31 @@ const OrganizationPage = withPermission(
))}
- {orgWorkspaces
- .filter((ws) => ws?.name?.toLowerCase().includes(searchFilter.toLowerCase()))
- .map((workspace) => (
- // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
- {
- router.push(`/project/${workspace.id}/secrets/overview`);
- localStorage.setItem("projectData.id", workspace.id);
- }}
- key={workspace.id}
- className="min-w-72 group flex h-40 cursor-pointer flex-col justify-between rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4"
- >
-
{workspace.name}
-
- {workspace.environments?.length || 0} environments
-
-
+ {filteredWorkspaces.map((workspace) => (
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
+
{
+ router.push(`/project/${workspace.id}/secrets/overview`);
+ localStorage.setItem("projectData.id", workspace.id);
+ }}
+ key={workspace.id}
+ className="min-w-72 group flex h-40 cursor-pointer flex-col justify-between rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4"
+ >
+
{workspace.name}
+
+ {workspace.environments?.length || 0} environments
- ))}
+
+
+ ))}
);
@@ -628,32 +629,32 @@ const OrganizationPage = withPermission(
))}
- {orgWorkspaces
- .filter((ws) => ws?.name?.toLowerCase().includes(searchFilter.toLowerCase()))
- .map((workspace) => (
- // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
- {
- router.push(`/project/${workspace.id}/secrets/overview`);
- localStorage.setItem("projectData.id", workspace.id);
- }}
- key={workspace.id}
- className="min-w-72 group grid h-14 cursor-pointer grid-cols-6 border border-mineshaft-600 bg-mineshaft-800 px-6 hover:bg-mineshaft-700"
- >
-
-
-
{workspace.name}
+ {filteredWorkspaces.map((workspace, ind) => (
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
+
{
+ router.push(`/project/${workspace.id}/secrets/overview`);
+ localStorage.setItem("projectData.id", workspace.id);
+ }}
+ key={workspace.id}
+ className={`min-w-72 group grid h-14 cursor-pointer grid-cols-6 border-t border-l border-r border-mineshaft-600 bg-mineshaft-800 px-6 hover:bg-mineshaft-700 ${
+ ind === filteredWorkspaces.length - 1 && "border-b"
+ }`}
+ >
+
+
+
+ {workspace.environments?.length || 0} environments
-
-
- {workspace.environments?.length || 0} environments
-
-
- Updated {timeAgo(new Date(workspace.updatedAt), new Date())}
-
+
+ Updated {timeAgo(new Date(workspace.updatedAt), new Date())}
- ))}
+
+ ))}
);
@@ -697,7 +698,7 @@ const OrganizationPage = withPermission(
onChange={(e) => setSearchFilter(e.target.value)}
leftIcon={
}
/>
-
+
{
@@ -706,7 +707,9 @@ const OrganizationPage = withPermission(
}}
ariaLabel="grid"
size="xs"
- className={`${projectsViewMode === ProjectsViewMode.GRID ? "bg-mineshaft-500" : "bg-transparent"} hover:bg-mineshaft-600 min-w-[2.4rem] border-none`}
+ className={`${
+ projectsViewMode === ProjectsViewMode.GRID ? "bg-mineshaft-500" : "bg-transparent"
+ } min-w-[2.4rem] border-none hover:bg-mineshaft-600`}
>
@@ -718,7 +721,9 @@ const OrganizationPage = withPermission(
}}
ariaLabel="list"
size="xs"
- className={`${projectsViewMode === ProjectsViewMode.LIST ? "bg-mineshaft-500" : "bg-transparent"} hover:bg-mineshaft-600 min-w-[2.4rem] border-none`}
+ className={`${
+ projectsViewMode === ProjectsViewMode.LIST ? "bg-mineshaft-500" : "bg-transparent"
+ } min-w-[2.4rem] border-none hover:bg-mineshaft-600`}
>