diff --git a/src/app/(app)/issues/page.tsx b/src/app/(app)/issues/page.tsx index bd893506..2339230d 100644 --- a/src/app/(app)/issues/page.tsx +++ b/src/app/(app)/issues/page.tsx @@ -5,7 +5,7 @@ import { db } from "~/server/db"; import { issues } from "~/server/db/schema"; import { IssueFilters } from "~/components/issues/IssueFilters"; import { IssueRow } from "~/components/issues/IssueRow"; -import { AlertTriangle } from "lucide-react"; +import { CheckCircle2, Search } from "lucide-react"; import { createClient } from "~/lib/supabase/server"; import { redirect } from "next/navigation"; import type { @@ -141,15 +141,29 @@ export default async function IssuesPage({ ))} ) : ( -
-
- -
-

No issues found

-

- We couldn't find any issues matching your current filters. - Try adjusting or clearing them. -

+
+ {status !== "closed" && !severity && !priority && !machine ? ( + <> +
+ +
+

All Clear!

+

+ There are no open issues. The machines are running perfectly. +

+ + ) : ( + <> +
+ +
+

No matches found

+

+ We couldn't find any issues matching your current filters. + Try adjusting or clearing them. +

+ + )}
)}