refactor(admin): replace static dashboard stats with dynamic widget registry
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
import { AdminPagesLayout, AdminPagesClient } from '@zen/core/features/admin/pages';
|
||||
import { protectAdmin } from '@zen/core/features/admin';
|
||||
import { buildNavigationSections } from '@zen/core/features/admin/navigation';
|
||||
import { getDashboardStats } from '@zen/core/features/admin/actions';
|
||||
import { collectAllDashboardData } from './dashboard/serverRegistry.js';
|
||||
import { logoutAction } from '@zen/core/features/auth/actions';
|
||||
import { getAppName } from '@zen/core';
|
||||
|
||||
@@ -17,8 +17,7 @@ export default async function AdminPage({ params }) {
|
||||
const session = await protectAdmin();
|
||||
const appName = getAppName();
|
||||
|
||||
const statsResult = await getDashboardStats();
|
||||
const dashboardStats = statsResult.success ? statsResult.stats : null;
|
||||
const dashboardStats = await collectAllDashboardData();
|
||||
|
||||
const navigationSections = buildNavigationSections('/');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user