From fe0327f49d46bcd37f4ab8ec05c27461dac17d50 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Thu, 20 May 2021 21:05:43 +0200 Subject: [PATCH] Improve user table * Add index * Increase limit * Improve alignment of cell content --- apps/api/src/app/admin/admin.service.ts | 2 +- .../src/app/pages/admin/admin-page.html | 32 +++++++++++++------ 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/apps/api/src/app/admin/admin.service.ts b/apps/api/src/app/admin/admin.service.ts index 1437a0244..89af3efbc 100644 --- a/apps/api/src/app/admin/admin.service.ts +++ b/apps/api/src/app/admin/admin.service.ts @@ -108,7 +108,7 @@ export class AdminService { createdAt: true, id: true }, - take: 20, + take: 30, where: { NOT: { Analytics: null diff --git a/apps/client/src/app/pages/admin/admin-page.html b/apps/client/src/app/pages/admin/admin-page.html index ac0806faf..5fdc96666 100644 --- a/apps/client/src/app/pages/admin/admin-page.html +++ b/apps/client/src/app/pages/admin/admin-page.html @@ -73,26 +73,40 @@
# | User | -Registration Date | -Accounts | -Transactions | -Engagement | ++ Registration Date + | ++ Accounts + | ++ Transactions + | ++ Engagement + | Last Activitiy | |
---|---|---|---|---|---|---|---|---|---|---|---|
{{ i + 1 }} | {{ userItem.alias || userItem.id }} | -+ | {{ userItem.createdAt | date: defaultDateFormat }} | -{{ userItem._count?.Account }} | -{{ userItem._count?.Order }} | -+ | + {{ userItem._count?.Account }} + | ++ {{ userItem._count?.Order }} + | +{{ userItem.Analytics?.activityCount }} |