From cc78b147d0b398a7b76393cface368c1ee268595 Mon Sep 17 00:00:00 2001 From: gearnode Date: Thu, 20 Feb 2025 10:06:11 +0100 Subject: [PATCH] Update people list style Signed-off-by: gearnode --- apps/console/src/pages/PeopleListPage.tsx | 191 ++++++++++------------ 1 file changed, 87 insertions(+), 104 deletions(-) diff --git a/apps/console/src/pages/PeopleListPage.tsx b/apps/console/src/pages/PeopleListPage.tsx index 61882f21c..d94015d58 100644 --- a/apps/console/src/pages/PeopleListPage.tsx +++ b/apps/console/src/pages/PeopleListPage.tsx @@ -10,7 +10,7 @@ import { import { useSearchParams } from "react-router"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { Badge } from "@/components/ui/badge"; -import { CircleUser, Globe, Shield } from "lucide-react"; +import { CircleUser, Globe, Shield, Trash2, ChevronRight } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Link } from "react-router"; import { Helmet } from "react-helmet-async"; @@ -154,21 +154,89 @@ function PeopleListContent({ const pageInfo = peoplesConnection.peoples.pageInfo; return ( -
-
-
-
-

People

-

- Manage your organization's people. -

-
-
+
+ {peoples.map((person) => ( + +
+
+ + {person?.fullName?.[0]} + +
+

{person?.fullName}

+ {person?.primaryEmailAddress && ( + <> + • +

+ {person.primaryEmailAddress} +

+ + )} +
+
+
+ + {person?.kind === "EMPLOYEE" + ? "Employee" + : person?.kind === "CONTRACTOR" + ? "Contractor" + : "Vendor"} + + + +
+
+ + ))} +
+ - -
- {peoples.map((person) => ( - -
- - {person?.fullName?.[0]} - -
-

- {person?.fullName} -

-

- {person?.primaryEmailAddress} -

-
-
-
- - {person?.kind === "EMPLOYEE" - ? "Employee" - : person?.kind === "CONTRACTOR" - ? "Contractor" - : "Vendor"} - -
- - - -
- - Not onboarded - - -
- - ))} -
- -
+
+
-
+
+
+
+
+
{[1, 2, 3].map((i) => ( -
-
-
-
-
-
-
-
-
-
-
- {[1, 2, 3].map((j) => ( -
- ))} -
-
-
-
+
))}