Improve dashboard data handling and visualization. Updated data fetching and chart configurations for better data display.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 705f2157-ef97-4fbd-89e4-8c7f2ecaea90
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ed01c5f-a82d-405a-b728-b2e3d127c60c/0ab49ba3-2a0b-4884-9cf6-dbdb4748e98c.jpg
This commit is contained in:
alphaeusmote
2025-04-10 00:26:14 +00:00
parent b7bfcf9fd2
commit b979cbe6b0
4 changed files with 41 additions and 31 deletions
+5 -5
View File
@@ -5090,19 +5090,19 @@ export async function registerRoutes(app: Express): Promise<Server> {
const connectionId = connections[0].id;
// Get counts from all AD objects
const usersCount = await db.select({ count: sql`count(*)` }).from(adUsers)
const usersCount = await db.select({ count: count() }).from(adUsers)
.where(eq(adUsers.connectionId, connectionId));
const computersCount = await db.select({ count: sql`count(*)` }).from(adComputers)
const computersCount = await db.select({ count: count() }).from(adComputers)
.where(eq(adComputers.connectionId, connectionId));
const groupsCount = await db.select({ count: sql`count(*)` }).from(adGroups)
const groupsCount = await db.select({ count: count() }).from(adGroups)
.where(eq(adGroups.connectionId, connectionId));
const sitesCount = await db.select({ count: sql`count(*)` }).from(adSites)
const sitesCount = await db.select({ count: count() }).from(adSites)
.where(eq(adSites.connectionId, connectionId));
const domainsCount = await db.select({ count: sql`count(*)` }).from(adDomains)
const domainsCount = await db.select({ count: count() }).from(adDomains)
.where(eq(adDomains.connectionId, connectionId));
// Return the counts