diff --git a/webui2/src/routes/$repo/_issues/user/$id.tsx b/webui2/src/routes/$repo/_issues/user/$id.tsx index 2a3e26f83b0486ad9643e91fb462e0968576116e..d9542db5e878c6e8da1c3912e7688c16cca0eb33 100644 --- a/webui2/src/routes/$repo/_issues/user/$id.tsx +++ b/webui2/src/routes/$repo/_issues/user/$id.tsx @@ -7,7 +7,6 @@ import { useReadQuery } from "@apollo/client/react"; import { createFileRoute, Link } from "@tanstack/react-router"; import { formatDistanceToNow } from "date-fns"; import { - MessageSquare, CircleDot, CircleCheck, ShieldCheck, @@ -16,7 +15,8 @@ import { } from "lucide-react"; import * as v from "valibot"; -import { Status, type UserProfileQuery, UserProfileDocument } from "@/__generated__/graphql"; +import { type UserProfileQuery, UserProfileDocument } from "@/__generated__/graphql"; +import * as IssueRow from "@/components/bugs/IssueRow"; import { LabelBadge } from "@/components/bugs/LabelBadge"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { BackLink } from "@/components/ui/back-link"; @@ -170,49 +170,30 @@ function RouteComponent() {

)} - {bugs?.nodes.map((bug) => { - const isOpen = bug.status === Status.Open; - const StatusIcon = isOpen ? CircleDot : CircleCheck; - return ( -
- -
-
- - {bug.title} - - {bug.labels.map((label) => ( - - ))} -
-

- #{bug.humanId} opened{" "} - {formatDistanceToNow(new Date(bug.createdAt), { addSuffix: true })} -

-
- {bug.comments.totalCount > 0 && ( -
- - {bug.comments.totalCount} -
- )} + {bugs?.nodes.map((bug) => ( + + +
+ + + {bug.title} + + {bug.labels.map((label) => ( + + ))} + + + #{bug.humanId} opened{" "} + {formatDistanceToNow(new Date(bug.createdAt), { addSuffix: true })} +
- ); - })} + +
+ ))} {totalPages > 1 && (