Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 24 additions & 10 deletions src/app/(app)/issues/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -141,15 +141,29 @@ export default async function IssuesPage({
))}
</div>
) : (
<div className="flex flex-col items-center justify-center py-12 text-center">
<div className="rounded-full bg-muted p-4 mb-4">
<AlertTriangle className="size-8 text-muted-foreground" />
</div>
<h3 className="text-lg font-medium">No issues found</h3>
<p className="text-muted-foreground max-w-sm mt-2">
We couldn&apos;t find any issues matching your current filters.
Try adjusting or clearing them.
</p>
<div className="flex flex-col items-center justify-center py-12 text-center animate-in fade-in zoom-in duration-300">
{status !== "closed" && !severity && !priority && !machine ? (
<>
<div className="rounded-full bg-primary/10 p-4 mb-4">
<CheckCircle2 className="size-8 text-primary" />
</div>
<h3 className="text-lg font-medium">All Clear!</h3>
<p className="text-muted-foreground max-w-sm mt-2">
There are no open issues. The machines are running perfectly.
</p>
</>
) : (
<>
<div className="rounded-full bg-muted p-4 mb-4">
<Search className="size-8 text-muted-foreground" />
</div>
<h3 className="text-lg font-medium">No matches found</h3>
<p className="text-muted-foreground max-w-sm mt-2">
We couldn&apos;t find any issues matching your current filters.
Try adjusting or clearing them.
</p>
</>
)}
Comment on lines +144 to +166
Copy link

Copilot AI Jan 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CHANGELOG.md file should be updated to document this user-facing improvement. This is a notable UX enhancement that replaces the generic empty state with two distinct, contextually appropriate states. Consider adding an entry under "Changed" or "Improved" in the Unreleased section.

Copilot uses AI. Check for mistakes.
</div>
)}
</div>
Expand Down
Loading