From 57d0b6688e60d9f9e079e457da6ae7b370da1819 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Tue, 14 Oct 2025 05:01:39 +0000 Subject: [PATCH] Enhance overview stats cgen-96e5890d17774709be9ef951cd97e4a2 --- client/pages/Admin.tsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/client/pages/Admin.tsx b/client/pages/Admin.tsx index d57884ae..94cc2b15 100644 --- a/client/pages/Admin.tsx +++ b/client/pages/Admin.tsx @@ -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",