From d7cbf88df5d8cb9e5b8feb563b787a3ac20816aa Mon Sep 17 00:00:00 2001 From: Gunther6070 Date: Thu, 3 Apr 2025 07:58:13 -0400 Subject: Updated statistics on dashboard --- ufund-ui/src/app/components/dashboard/dashboard.component.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ufund-ui/src/app/components/dashboard/dashboard.component.html') diff --git a/ufund-ui/src/app/components/dashboard/dashboard.component.html b/ufund-ui/src/app/components/dashboard/dashboard.component.html index 2d7b4c3..69ae66e 100644 --- a/ufund-ui/src/app/components/dashboard/dashboard.component.html +++ b/ufund-ui/src/app/components/dashboard/dashboard.component.html @@ -4,7 +4,12 @@ _ Registered users + {{count | async}} _ Needs with overflow -_ Needs in peoples baskets +_ Fulfilled needs + {{fulfilledNeeds | async}} +_ Most fulfilled needs + _ Total monetary contributions +${{totalDonations | async}} _ -- cgit v1.2.3 From 2423f4ee67e7e9079e12ecde51326472308cf22f Mon Sep 17 00:00:00 2001 From: Gunther6070 Date: Thu, 3 Apr 2025 13:00:38 -0400 Subject: Added fulfilled needs list dashboard --- ufund-ui/src/app/components/dashboard/dashboard.component.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ufund-ui/src/app/components/dashboard/dashboard.component.html') diff --git a/ufund-ui/src/app/components/dashboard/dashboard.component.html b/ufund-ui/src/app/components/dashboard/dashboard.component.html index 69ae66e..2af467c 100644 --- a/ufund-ui/src/app/components/dashboard/dashboard.component.html +++ b/ufund-ui/src/app/components/dashboard/dashboard.component.html @@ -5,9 +5,8 @@ _ Registered users {{count | async}} -_ Needs with overflow _ Fulfilled needs - {{fulfilledNeeds | async}} + _ Most fulfilled needs _ Total monetary contributions -- cgit v1.2.3 From 7c49fcd788692a898e985cb156dd9fd910c05790 Mon Sep 17 00:00:00 2001 From: sowgro Date: Fri, 4 Apr 2025 23:14:14 -0400 Subject: Add new authentication to dashboard, cleanup --- .../components/dashboard/dashboard.component.html | 31 ++++++++++++---------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'ufund-ui/src/app/components/dashboard/dashboard.component.html') diff --git a/ufund-ui/src/app/components/dashboard/dashboard.component.html b/ufund-ui/src/app/components/dashboard/dashboard.component.html index 2af467c..074ca76 100644 --- a/ufund-ui/src/app/components/dashboard/dashboard.component.html +++ b/ufund-ui/src/app/components/dashboard/dashboard.component.html @@ -1,14 +1,17 @@ - -

Admin Dashboard

- - - -_ Registered users - {{count | async}} -_ Fulfilled needs - -_ Most fulfilled needs - -_ Total monetary contributions -${{totalDonations | async}} -_ +
+ @if ((authService.getCurrentUserSubject() | async)?.type === userType.MANAGER) { +

Admin Dashboard

+ _ Registered users + {{count | async}} + _ Fulfilled needs + + _ Most fulfilled needs + + _ Total monetary contributions + ${{totalDonations | async}} + _ + } @else { +

Unauthorized

+ This page requires you to be logged in as an admin! Log In + } +
-- cgit v1.2.3 From 1d4073c04aac11226fa3394ba84a745ed427d1cd Mon Sep 17 00:00:00 2001 From: Gunther6070 Date: Sat, 5 Apr 2025 23:26:11 -0400 Subject: Updated dashboard styling --- .../components/dashboard/dashboard.component.html | 30 +++++++++++++++------- 1 file changed, 21 insertions(+), 9 deletions(-) (limited to 'ufund-ui/src/app/components/dashboard/dashboard.component.html') diff --git a/ufund-ui/src/app/components/dashboard/dashboard.component.html b/ufund-ui/src/app/components/dashboard/dashboard.component.html index 074ca76..233096a 100644 --- a/ufund-ui/src/app/components/dashboard/dashboard.component.html +++ b/ufund-ui/src/app/components/dashboard/dashboard.component.html @@ -1,15 +1,27 @@
@if ((authService.getCurrentUserSubject() | async)?.type === userType.MANAGER) {

Admin Dashboard

- _ Registered users - {{count | async}} - _ Fulfilled needs - - _ Most fulfilled needs - - _ Total monetary contributions - ${{totalDonations | async}} - _ +
+
+ Registered users +

{{count | async}}

+
+ +
+ Total monetary contributions +

${{totalDonations | async}}

+
+
+ +
+ Fulfilled needs + +
+
+ Most fulfilled needs + +
+ } @else {

Unauthorized

This page requires you to be logged in as an admin! Log In -- cgit v1.2.3