From 8acf98a0ea330f729e8645502882e16a58d371b7 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Tue, 20 Oct 2026 20:49:13 +0200 Subject: [PATCH 1/2] Include change and performance --- .../account-detail-dialog.component.ts | 32 +++++++++++++++++++ .../account-detail-dialog.html | 29 +++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.component.ts b/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.component.ts index f6fe52a8bd..8dcae8a65e 100644 --- a/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.component.ts +++ b/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.component.ts @@ -2,6 +2,7 @@ import { UserService } from '@ghostfolio/client/services/user/user.service'; import { DEFAULT_DATE_RANGE, DEFAULT_PAGE_SIZE, + NUMERICAL_PRECISION_THRESHOLD_3_FIGURES, NUMERICAL_PRECISION_THRESHOLD_4_FIGURES } from '@ghostfolio/common/config'; import { CreateAccountBalanceDto } from '@ghostfolio/common/dtos'; @@ -104,6 +105,10 @@ export class GfAccountDetailDialogComponent implements OnInit { protected isLoading = true; protected isLoadingChart: boolean; protected name: string | null; + protected netPerformancePercentageWithCurrencyEffect: number; + protected netPerformancePercentageWithCurrencyEffectPrecision = 2; + protected netPerformanceWithCurrencyEffect: number; + protected netPerformanceWithCurrencyEffectPrecision = 2; protected pageIndex = 0; protected pageSize = DEFAULT_PAGE_SIZE; protected platformName: string; @@ -358,6 +363,33 @@ export class GfAccountDetailDialogComponent implements OnInit { next: ({ accountBalances, portfolioPerformance }) => { this.accountBalances = accountBalances.balances; + const { + netPerformancePercentageWithCurrencyEffect, + netPerformanceWithCurrencyEffect + } = portfolioPerformance.performance; + + this.netPerformancePercentageWithCurrencyEffect = + netPerformancePercentageWithCurrencyEffect; + + if ( + this.data.deviceType === 'mobile' && + this.netPerformancePercentageWithCurrencyEffect >= + NUMERICAL_PRECISION_THRESHOLD_3_FIGURES + ) { + this.netPerformancePercentageWithCurrencyEffectPrecision = 0; + } + + this.netPerformanceWithCurrencyEffect = + netPerformanceWithCurrencyEffect; + + if ( + this.data.deviceType === 'mobile' && + this.netPerformanceWithCurrencyEffect >= + NUMERICAL_PRECISION_THRESHOLD_4_FIGURES + ) { + this.netPerformanceWithCurrencyEffectPrecision = 0; + } + if ( portfolioPerformance.chart && portfolioPerformance.chart.length > 0 diff --git a/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html b/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html index e4ef8fe55f..5bd3c745ad 100644 --- a/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html +++ b/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html @@ -45,6 +45,35 @@
+
+ Change +
+
+ Performance +
Date: Tue, 20 Oct 2026 20:49:31 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f011708ef3..614e3094aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Changed + +- Extended the account detail dialog to include the change and the performance + ## 3.89.0 - 2026-10-20 ### Added