Enhance overview stats

cgen-96e5890d17774709be9ef951cd97e4a2
This commit is contained in:
Builder.io 2025-10-14 05:01:39 +00:00
parent 8e05c4bdd3
commit 57d0b6688e

View file

@ -362,10 +362,25 @@ export default function Admin() {
title: "Published posts",
value: publishedPosts ? publishedPosts.toString() : "0",
description: "Blog entries stored in Supabase content tables.",
trend: loadingPosts ? "Refreshing content…" : "Latest sync up to date",
trend: loadingPosts
? "Refreshing content…"
: blogHighlights.length
? `Latest: ${blogHighlights[0].title}`
: "Curate new stories",
icon: PenTool,
tone: "purple" as const,
},
{
title: "Blog engagement",
value: blogReach ? `${blogReach.toLocaleString()} applause` : "—",
description: "Aggregate reactions across highlighted AeThex posts.",
trend:
blogHighlights.length > 1
? `Next up: ${blogHighlights[1].title}`
: "Share a new update",
icon: Activity,
tone: "red" as const,
},
{
title: "Featured studios",
value: featuredStudios ? featuredStudios.toString() : "0",