From b6854f30e1d8ad21490d5fe01ff68ac53f896281 Mon Sep 17 00:00:00 2001 From: Kenrick Tandrian <60643640+KenTandrian@users.noreply.github.com> Date: Mon, 23 Jun 2025 20:12:46 +0700 Subject: [PATCH] Feature/add status column to data providers table (#4998) * Add status column to data providers table * Update changelog --- CHANGELOG.md | 4 ++ .../admin-settings.component.html | 69 +++++++++++-------- .../admin-settings.component.ts | 8 ++- .../admin-settings/admin-settings.module.ts | 2 + .../data-provider-status.component.html | 15 ++++ .../data-provider-status.component.ts | 51 ++++++++++++++ .../interfaces/interfaces.ts | 3 + apps/client/src/app/services/data.service.ts | 7 ++ 8 files changed, 131 insertions(+), 28 deletions(-) create mode 100644 apps/client/src/app/components/data-provider-status/data-provider-status.component.html create mode 100644 apps/client/src/app/components/data-provider-status/data-provider-status.component.ts create mode 100644 apps/client/src/app/components/data-provider-status/interfaces/interfaces.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index d87d850dc..402dab7a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Added + +- Extended the data providers management of the admin control panel by the online status + ### Changed - Migrated the `@ghostfolio/ui/value` component to control flow 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 0a301eb52..d50fa92c3 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 @@ -40,10 +40,10 @@ } - - + + + + + - - - + - + -
+ Name +
@@ -85,11 +85,25 @@
+ Status + + @if ( + !isGhostfolioDataProvider(element) || + isGhostfolioApiKeyValid === true + ) { + + } + + Asset Profiles + - - - @if (isGhostfolioDataProvider(element)) { - @if (isGhostfolioApiKeyValid === true) { - - - {{ ghostfolioApiStatus.dailyRequests }} - of - {{ ghostfolioApiStatus.dailyRequestsMax }} - daily requests - - } + + + @if ( + isGhostfolioDataProvider(element) && + isGhostfolioApiKeyValid === true + ) { + + + {{ ghostfolioApiStatus.dailyRequests }} + of + {{ ghostfolioApiStatus.dailyRequestsMax }} + daily requests + } + @if (isGhostfolioDataProvider(element)) { @if (isGhostfolioApiKeyValid === true) {