From aca2fe1654dc1008b92df732c81e7fe07de2940a Mon Sep 17 00:00:00 2001 From: csehatt741 <77381875+csehatt741@users.noreply.github.com> Date: Mon, 30 Jun 2025 20:08:40 +0200 Subject: [PATCH] Feature/restructure holding detail dialog (#5058) * Restructure holding detail dialog * Update changelog --- CHANGELOG.md | 1 + .../holding-detail-dialog.html | 554 +++++++++--------- 2 files changed, 286 insertions(+), 269 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14053f86a..9b8789644 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Moved the main content of the holding detail dialog to a new overview tab - Introduced fuzzy search for the holdings of the assistant - Introduced fuzzy search for the quick links of the assistant - Improved the search results of the assistant to only display categories with content diff --git a/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html b/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html index 0f6c46a80..d288a8953 100644 --- a/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html +++ b/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html @@ -35,284 +35,300 @@ [symbol]="data.symbol" /> -
-
- - @if ( - SymbolProfile?.currency && - data.baseCurrency !== SymbolProfile?.currency - ) { - Change with currency effect - } @else { - Change - } - -
-
- - @if ( - SymbolProfile?.currency && - data.baseCurrency !== SymbolProfile?.currency - ) { - Performance with currency effect - } @else { - Performance - } - -
-
- Average Unit Price -
-
- Market Price -
-
- Minimum Price -
-
- Maximum Price -
-
- Quantity -
-
- Investment -
- @if (dividendInBaseCurrency && user?.settings?.isExperimentalFeatures) { -
- Dividend -
-
- Dividend Yield -
- } -
- Fees -
-
- First Activity -
-
- - @if (transactionCount === 1) { - Activity - } @else { - Activities - } - -
-
-
- Asset Class -
-
- Asset Sub Class -
- @if ( - SymbolProfile?.countries?.length > 0 || - SymbolProfile?.sectors?.length > 0 - ) { - @if ( - SymbolProfile?.countries?.length === 1 && - SymbolProfile?.sectors?.length === 1 - ) { -
- Sector -
- @if (SymbolProfile?.countries?.length === 1) { + + + + +
Overview
+
+
+
Country + @if ( + SymbolProfile?.currency && + data.baseCurrency !== SymbolProfile?.currency + ) { + Change with currency effect + } @else { + Change + } + +
+
+ + @if ( + SymbolProfile?.currency && + data.baseCurrency !== SymbolProfile?.currency + ) { + Performance with currency effect + } @else { + Performance + } + +
+
+ Average Unit Price +
+
+ Market Price +
+
+ Minimum Price +
+
+ Maximum Price +
+
+ Quantity +
+
+ Investment +
+ @if ( + dividendInBaseCurrency && user?.settings?.isExperimentalFeatures + ) { +
+ Dividend +
+
+ Dividend Yield +
+ } +
+ Fees +
+
+ First Activity +
+
+ + @if (transactionCount === 1) { + Activity + } @else { + Activities + } + +
+
+
+ Asset Class +
+
+ Asset Sub Class +
+ @if ( + SymbolProfile?.countries?.length > 0 || + SymbolProfile?.sectors?.length > 0 + ) { + @if ( + SymbolProfile?.countries?.length === 1 && + SymbolProfile?.sectors?.length === 1 + ) { +
+ Sector +
+ @if (SymbolProfile?.countries?.length === 1) { +
+ Country +
+ } + } @else { +
+
Sectors
+ +
+
+
Countries
+ +
+ } + } +
+ Symbol +
+
+ ISIN
- } - } @else { -
-
Sectors
- -
-
-
Countries
- -
- } - } -
- Symbol -
-
- ISIN -
- @if (dataProviderInfo) { -
-
- -
+ @if (dataProviderInfo) { +
+
+ +
+
+ } +
- } -
- - +