diff --git a/CHANGELOG.md b/CHANGELOG.md
index e607144c..ee58e378 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Harmonized the data providers management style of the admin control panel
+- Extended the data providers management of the admin control panel by the asset profile count
- Restricted the permissions of the demo user
- Renamed `Order` to `activities` in the `User` database schema
- Improved the language localization for Catalan (`ca`)
diff --git a/apps/client/src/app/components/admin-platform/admin-platform.component.html b/apps/client/src/app/components/admin-platform/admin-platform.component.html
index c71594e4..47fee3c8 100644
--- a/apps/client/src/app/components/admin-platform/admin-platform.component.html
+++ b/apps/client/src/app/components/admin-platform/admin-platform.component.html
@@ -1,115 +1,94 @@
-
-
-
-
-
-
-
- Name
-
-
- @if (element.url) {
-
- }
- {{ element.name }}
-
-
-
-
- Url
-
-
- {{ element.url }}
-
-
-
-
-
- Accounts
-
-
- {{ element.accountCount }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- Edit
-
-
-
- 0"
- (click)="onDeletePlatform(element.id)"
- >
-
-
- Delete
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ Name
+
+
+ @if (element.url) {
+
+ }
+ {{ element.name }}
+
+
+
+
+ Url
+
+
+ {{ element.url }}
+
+
+
+
+
+ Accounts
+
+
+ {{ element.accountCount }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Edit
+
+
+
+ 0"
+ (click)="onDeletePlatform(element.id)"
+ >
+
+
+ Delete
+
+
+
+
+
+
+
+
+
diff --git a/apps/client/src/app/components/admin-settings/admin-settings.component.html b/apps/client/src/app/components/admin-settings/admin-settings.component.html
index 997d34aa..2dcdefdd 100644
--- a/apps/client/src/app/components/admin-settings/admin-settings.component.html
+++ b/apps/client/src/app/components/admin-settings/admin-settings.component.html
@@ -38,14 +38,6 @@
}}
-
-
- {{ ghostfolioApiStatus.dailyRequests }}
- of
- {{ ghostfolioApiStatus.dailyRequestsMax }}
- daily requests
-
-
}
} @else {
{{ element.name }}
@@ -55,6 +47,40 @@
+
+
+ Asset Profiles
+
+
+ {{ element.assetProfileCount }}
+
+
+
+
+
+
+ @if (isGhostfolioDataProvider(element)) {
+ @if (isGhostfolioApiKeyValid === true) {
+
+
+ {{ ghostfolioApiStatus.dailyRequests }}
+ of
+ {{ ghostfolioApiStatus.dailyRequestsMax }}
+ daily requests
+
+ }
+ }
+
+
+
diff --git a/apps/client/src/app/components/admin-settings/admin-settings.component.scss b/apps/client/src/app/components/admin-settings/admin-settings.component.scss
index 5d4e87f3..c08ba95b 100644
--- a/apps/client/src/app/components/admin-settings/admin-settings.component.scss
+++ b/apps/client/src/app/components/admin-settings/admin-settings.component.scss
@@ -1,3 +1,15 @@
:host {
display: block;
+
+ .mat-mdc-progress-bar {
+ --mdc-linear-progress-active-indicator-height: 0.5rem;
+ --mdc-linear-progress-track-height: 0.5rem;
+ border-radius: 0.25rem;
+
+ ::ng-deep {
+ .mdc-linear-progress__buffer-bar {
+ background-color: rgb(var(--palette-background-unselected-chip));
+ }
+ }
+ }
}
diff --git a/apps/client/src/app/components/admin-settings/admin-settings.component.ts b/apps/client/src/app/components/admin-settings/admin-settings.component.ts
index f18e49d1..5c071c60 100644
--- a/apps/client/src/app/components/admin-settings/admin-settings.component.ts
+++ b/apps/client/src/app/components/admin-settings/admin-settings.component.ts
@@ -39,7 +39,7 @@ import { GhostfolioPremiumApiDialogParams } from './ghostfolio-premium-api-dialo
export class AdminSettingsComponent implements OnDestroy, OnInit {
public dataSource = new MatTableDataSource();
public defaultDateFormat: string;
- public displayedColumns = ['name', 'actions'];
+ public displayedColumns = ['name', 'assetProfileCount', 'status', 'actions'];
public ghostfolioApiStatus: DataProviderGhostfolioStatusResponse;
public isGhostfolioApiKeyValid: boolean;
public isLoading = false;
diff --git a/apps/client/src/app/components/admin-settings/admin-settings.module.ts b/apps/client/src/app/components/admin-settings/admin-settings.module.ts
index c5148f68..706f20a8 100644
--- a/apps/client/src/app/components/admin-settings/admin-settings.module.ts
+++ b/apps/client/src/app/components/admin-settings/admin-settings.module.ts
@@ -7,6 +7,7 @@ import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatMenuModule } from '@angular/material/menu';
+import { MatProgressBarModule } from '@angular/material/progress-bar';
import { MatTableModule } from '@angular/material/table';
import { RouterModule } from '@angular/router';
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
@@ -23,6 +24,7 @@ import { AdminSettingsComponent } from './admin-settings.component';
GfPremiumIndicatorComponent,
MatButtonModule,
MatMenuModule,
+ MatProgressBarModule,
MatTableModule,
NgxSkeletonLoaderModule,
RouterModule
diff --git a/apps/client/src/app/components/admin-tag/admin-tag.component.html b/apps/client/src/app/components/admin-tag/admin-tag.component.html
index f69579ab..5979d277 100644
--- a/apps/client/src/app/components/admin-tag/admin-tag.component.html
+++ b/apps/client/src/app/components/admin-tag/admin-tag.component.html
@@ -1,108 +1,87 @@
-
-
-
-
-
-
-
- Name
-
-
- {{ element.name }}
-
-
-
-
-
- User
-
-
- {{ element.userId }}
-
-
-
-
-
- Activities
-
-
- {{ element.activityCount }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- Edit
-
-
-
- 0"
- (click)="onDeleteTag(element.id)"
- >
-
-
- Delete
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ Name
+
+
+ {{ element.name }}
+
+
+
+
+
+ User
+
+
+ {{ element.userId }}
+
+
+
+
+
+ Activities
+
+
+ {{ element.activityCount }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Edit
+
+
+
+ 0"
+ (click)="onDeleteTag(element.id)"
+ >
+
+
+ Delete
+
+
+
+
+
+
+
+
+