Revamp admin dashboard analytics and UI
Refactored the admin dashboard to use tabbed navigation for analytics and management. Enhanced AdminAnalytics with Recharts visualizations, added top vendors by revenue, and improved chart tooltips. Removed unused columns from vendor table. Updated layout and notification context to exclude admin pages from dashboard-specific UI and notifications. Minor debug logging added to SystemStatusCard.
This commit is contained in:
@@ -25,6 +25,7 @@ export default function SystemStatusCard() {
|
||||
(async () => {
|
||||
try {
|
||||
const res = await fetchClient<Status>("/admin/system-status");
|
||||
console.log(`Here is your mother fuckin data: ${JSON.stringify(res)}`);
|
||||
if (mounted) setData(res);
|
||||
} catch (e: any) {
|
||||
if (mounted) setError(e?.message || "Failed to load status");
|
||||
|
||||
Reference in New Issue
Block a user