From 001fffc88b6a7e6a36e8841baf16e82d20680391 Mon Sep 17 00:00:00 2001 From: Jared Schoeny Date: Sun, 21 Dec 2025 01:26:34 -1000 Subject: [PATCH] Add "Version Status Guide" info card to versions page --- src/app/hack/[slug]/versions/page.tsx | 38 ++++++++++++++- src/components/Primitives/CollapsibleCard.tsx | 47 +++++++++++++++++++ 2 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 src/components/Primitives/CollapsibleCard.tsx diff --git a/src/app/hack/[slug]/versions/page.tsx b/src/app/hack/[slug]/versions/page.tsx index f186973..190cbe0 100644 --- a/src/app/hack/[slug]/versions/page.tsx +++ b/src/app/hack/[slug]/versions/page.tsx @@ -2,8 +2,9 @@ import { notFound } from "next/navigation"; import { createClient } from "@/utils/supabase/server"; import { canEditAsCreator } from "@/utils/hack"; import VersionList from "@/components/Hack/VersionList"; +import CollapsibleCard from "@/components/Primitives/CollapsibleCard"; import Link from "next/link"; -import { FaChevronLeft, FaPlus } from "react-icons/fa6"; +import { FaChevronLeft, FaPlus, FaStar } from "react-icons/fa6"; interface VersionsPageProps { params: Promise<{ slug: string }>; @@ -87,6 +88,41 @@ export default async function VersionsPage({ params }: VersionsPageProps) { + +
+
+ + + Current + +

+ {canEdit ? + "The version that is currently active and visible to all users. This is the version users will download when pressing \"Patch Now\" on the hack page." : + "This is the version you will download when pressing \"Patch Now\" on the hack page." + } +

+
+ {canEdit && <> +
+ + Unpublished + +

+ Versions that are only visible to you, and will not appear in the public version list or changelog. +

+
+
+ + Archived + +

+ Same as unpublished, but archived versions are hidden from normal view on this page. Check "Show archived versions" to view and restore them. +

+
+ } +
+
+ + +
+
+
+ {children} +
+
+
+ + ); +} +