Skip to content

Commit ce6e404

Browse files
committed
feat: enhance admin dashboard with new stats and logo upload functionality
1 parent 04c45a4 commit ce6e404

File tree

5 files changed

+403
-42
lines changed

5 files changed

+403
-42
lines changed

app/(app)/admin/_client.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
FlagIcon,
88
RssIcon,
99
ShieldExclamationIcon,
10-
NewspaperIcon,
1110
TagIcon,
1211
} from "@heroicons/react/24/outline";
1312
import { api } from "@/server/trpc/react";
@@ -100,13 +99,6 @@ const AdminDashboard = () => {
10099
color="green"
101100
isLoading={isLoading}
102101
/>
103-
<StatCard
104-
title="Aggregated Articles"
105-
value={stats?.aggregatedArticles}
106-
icon={NewspaperIcon}
107-
color="purple"
108-
isLoading={isLoading}
109-
/>
110102
<StatCard
111103
title="Active Feed Sources"
112104
value={stats?.activeFeedSources}
@@ -115,6 +107,14 @@ const AdminDashboard = () => {
115107
href="/admin/sources"
116108
isLoading={isLoading}
117109
/>
110+
<StatCard
111+
title="Total Reports"
112+
value={reportCounts?.total}
113+
icon={FlagIcon}
114+
color="purple"
115+
href="/admin/moderation"
116+
isLoading={isLoading}
117+
/>
118118
</div>
119119

120120
{/* Moderation Stats */}

0 commit comments

Comments
 (0)