From bd22894475f3e0308c4c492937b9868adde43f69 Mon Sep 17 00:00:00 2001 From: Jared Schoeny Date: Wed, 17 Dec 2025 20:43:21 -1000 Subject: [PATCH] Differentiate pending hacks missing patch --- src/app/dashboard/page.tsx | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx index a513eda..7c2cb17 100644 --- a/src/app/dashboard/page.tsx +++ b/src/app/dashboard/page.tsx @@ -1,7 +1,7 @@ import { createClient } from "@/utils/supabase/server"; import Link from "next/link"; import { redirect } from "next/navigation"; -import { FiExternalLink } from "react-icons/fi"; +import { FiAlertTriangle, FiExternalLink } from "react-icons/fi"; import DashboardClient from "@/components/Dashboard/DashboardClient"; import ArchiverManagement from "@/components/Dashboard/ArchiverManagement"; import { getDownloadsSeriesAll } from "./actions"; @@ -85,7 +85,6 @@ export default async function DashboardPage() {
{pendingHacks.map((h) => { - console.log(h.created_at); const createdDate = h.created_at ? new Date(h.created_at).toLocaleTimeString(undefined, { year: "numeric", @@ -96,20 +95,32 @@ export default async function DashboardPage() { }) : "Unknown"; const creator = h.creator_username ? `@${h.creator_username}` : "Unknown"; + const hasMissingPatch = h.current_patch === null; + const bgClasses = hasMissingPatch + ? "bg-amber-50/5 dark:bg-amber-900/5 hover:bg-amber-400/10 dark:hover:bg-amber-600/10" + : "bg-amber-500/5 hover:bg-amber-500/10"; return ( {/* Desktop row */}
-
{h.title}
+
+
{h.title}
+ {hasMissingPatch && ( +
+ + Missing Patch +
+ )} +
/{h.slug}
@@ -126,7 +137,15 @@ export default async function DashboardPage() {
-
{h.title}
+
+
{h.title}
+ {hasMissingPatch && ( +
+ + Missing Patch +
+ )} +
/{h.slug}
{creator}