From 8d561c8d4bdc572aa5c2f25728064a828a68331b Mon Sep 17 00:00:00 2001 From: Sahil Lavingia Date: Fri, 27 Sep 2024 12:24:47 -0400 Subject: [PATCH] improve placeholder for no PRs found with better error message --- app/(dashboard)/dashboard/page.tsx | 20 +++++++++++++++----- app/(dashboard)/page.tsx | 2 +- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/app/(dashboard)/dashboard/page.tsx b/app/(dashboard)/dashboard/page.tsx index 39191ad3..cb0a461b 100644 --- a/app/(dashboard)/dashboard/page.tsx +++ b/app/(dashboard)/dashboard/page.tsx @@ -2,7 +2,7 @@ import { useState, useEffect } from "react"; import { Button } from "@/components/ui/button"; -import { Loader2, AlertCircle } from "lucide-react"; +import { Loader2, AlertCircle, GitPullRequest } from "lucide-react"; import { PullRequestItem } from "./pull-request"; import { PullRequest } from "./types"; import { getAssignedPullRequests } from "@/lib/github"; @@ -89,10 +89,10 @@ export default function DashboardPage() { } return ( -
-
+
+
{pullRequests.length > 0 ? ( -
    +
      {pullRequests.map((pr) => (
    • @@ -105,7 +105,17 @@ export default function DashboardPage() { ))}
    ) : ( -

    No pull requests found.

    +
    +
    + +

    + No pull requests found +

    +

    + We couldn't find any pull requests assigned to you. +

    +
    +
    )}
diff --git a/app/(dashboard)/page.tsx b/app/(dashboard)/page.tsx index ffd5821d..f4e4be68 100644 --- a/app/(dashboard)/page.tsx +++ b/app/(dashboard)/page.tsx @@ -10,7 +10,7 @@ export default function HomePage() {

- Write Your Tests + (Have AI) Write Your Tests Faster Than Ever