Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript đŸ€

Feature/improve indicator for delayed market data (#2862)

Thomas Kaul256c020e8877
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0e845a610e..aa8134e944 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
+- Improved the indicator for delayed market data in the client
- Prepared the portfolio calculation for exchange rate effects
## 2.37.0 - 2024-01-11
diff --git a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html
index 4431d28f30..1a931f6663 100644
--- a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html
+++ b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html
@@ -1,19 +1,15 @@
<div class="container p-0">
<div class="no-gutters row">
- <div
- class="flex-grow-1 status text-muted text-right"
- [title]="
- errors?.length > 0 && !isLoading
- ? 'Sorry! Our data provider partner is experiencing the hiccups.'
- : ''
- "
- (click)="errors?.length > 0 && onShowErrors()"
- >
- <ion-icon
- *ngIf="errors?.length > 0 && !isLoading"
- name="alert-circle-outline"
- />
- </div>
+ @if (errors?.length > 0 && !isLoading) {
+ <div
+ class="flex-grow-1 status text-muted text-right"
+ i18n-title
+ title="Oops! Our data provider partner is experiencing the hiccups."
+ (click)="onShowErrors()"
+ >
+ <ion-icon name="time-outline" />
+ </div>
+ }
<div *ngIf="isLoading" class="align-items-center d-flex">
<ngx-skeleton-loader
animation="pulse"
diff --git a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts
index 29ccf3b719..fd304cad0b 100644
--- a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts
+++ b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts
@@ -74,7 +74,7 @@ export class PortfolioPerformanceComponent implements OnChanges, OnInit {
}
public onShowErrors() {
- const errorMessageParts = ['Data Provider Errors for'];
+ const errorMessageParts = [$localize`Market data is delayed for`];
for (const error of this.errors) {
errorMessageParts.push(`${error.symbol} (${error.dataSource})`);
diff --git a/apps/client/src/locales/messages.de.xlf b/apps/client/src/locales/messages.de.xlf
index 66d17493c9..08ba870837 100644
--- a/apps/client/src/locales/messages.de.xlf
+++ b/apps/client/src/locales/messages.de.xlf
@@ -14275,6 +14275,22 @@
<context context-type="linenumber">41</context>
</context-group>
</trans-unit>
+ <trans-unit id="51dd2d6b36bb8aefdd92fb9ab25ccb1fb7685670" datatype="html">
+ <source>Oops! Our data provider partner is experiencing the hiccups.</source>
+ <target state="translated">Ups! Unser Datenprovider-Partner hat gerade ein Problem.</target>
+ <context-group purpose="location">
+ <context context-type="sourcefile">apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html</context>
+ <context context-type="linenumber">7</context>
+ </context-group>
+ </trans-unit>
+ <trans-unit id="7754789218064641822" datatype="html">
+ <source>Market data is delayed for</source>
+ <target state="translated">Die Marktdaten sind verzögert fĂŒr</target>
+ <context-group purpose="location">
+ <context context-type="sourcefile">apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts</context>
+ <context context-type="linenumber">77</context>
+ </context-group>
+ </trans-unit>
</body>
</file>
</xliff>
diff --git a/apps/client/src/locales/messages.es.xlf b/apps/client/src/locales/messages.es.xlf
index c81b11b0c1..3bcf0c05cc 100644
--- a/apps/client/src/locales/messages.es.xlf
+++ b/apps/client/src/locales/messages.es.xlf
@@ -14273,6 +14273,22 @@
<context context-type="linenumber">41</context>
</context-group>
</trans-unit>
+ <trans-unit id="51dd2d6b36bb8aefdd92fb9ab25ccb1fb7685670" datatype="html">
+ <source>Oops! Our data provider partner is experiencing the hiccups.</source>
+ <target state="new">Oops! Our data provider partner is experiencing the hiccups.</target>
+ <context-group purpose="location">
+ <context context-type="sourcefile">apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html</context>
+ <context context-type="linenumber">7</context>
+ </context-group>
+ </trans-unit>
+ <trans-unit id="7754789218064641822" datatype="html">
+ <source>Market data is delayed for</source>
+ <target state="new">Market data is delayed for</target>
+ <context-group purpose="location">
+ <context context-type="sourcefile">apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts</context>
+ <context context-type="linenumber">77</context>
+ </context-group>
+ </trans-unit>
</body>
</file>
</xliff>
diff --git a/apps/client/src/locales/messages.fr.xlf b/apps/client/src/locales/messages.fr.xlf
index 923c033367..cdaad5d575 100644
--- a/apps/client/src/locales/messages.fr.xlf
+++ b/apps/client/src/locales/messages.fr.xlf
@@ -14272,6 +14272,22 @@
<context context-type="linenumber">41</context>
</context-group>
</trans-unit>
+ <trans-unit id="51dd2d6b36bb8aefdd92fb9ab25ccb1fb7685670" datatype="html">
+ <source>Oops! Our data provider partner is experiencing the hiccups.</source>
+ <target state="new">Oops! Our data provider partner is experiencing the hiccups.</target>
+ <context-group purpose="location">
+ <context context-type="sourcefile">apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html</context>
+ <context context-type="linenumber">7</context>
+ </context-group>
+ </trans-unit>
+ <trans-unit id="7754789218064641822" datatype="html">
+ <source>Market data is delayed for</source>
+ <target state="new">Market data is delayed for</target>
+ <context-group purpose="location">
+ <context context-type="sourcefile">apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts</context>
+ <context context-type="linenumber">77</context>
+ </context-group>
+ </trans-unit>
</body>
</file>
</xliff>
diff --git a/apps/client/src/locales/messages.it.xlf b/apps/client/src/locales/messages.it.xlf
index f3c6c8844b..a3577c732b 100644
--- a/apps/client/src/locales/messages.it.xlf
+++ b/apps/client/src/locales/messages.it.xlf
@@ -14273,6 +14273,22 @@
<context context-type="linenumber">41</context>
</context-group>
</trans-unit>
+ <trans-unit id="51dd2d6b36bb8aefdd92fb9ab25ccb1fb7685670" datatype="html">
+ <source>Oops! Our data provider partner is experiencing the hiccups.</source>
+ <target state="new">Oops! Our data provider partner is experiencing the hiccups.</target>
+ <context-group purpose="location">
+ <context context-type="sourcefile">apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html</context>
+ <context context-type="linenumber">7</context>
+ </context-group>
+ </trans-unit>
+ <trans-unit id="7754789218064641822" datatype="html">
+ <source>Market data is delayed for</source>
+ <target state="new">Market data is delayed for</target>
+ <context-group purpose="location">
+ <context context-type="sourcefile">apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts</context>
+ <context context-type="linenumber">77</context>
+ </context-group>
+ </trans-unit>
</body>
</file>
</xliff>
diff --git a/apps/client/src/locales/messages.nl.xlf b/apps/client/src/locales/messages.nl.xlf
index 393e06de66..e790beb0e7 100644
--- a/apps/client/src/locales/messages.nl.xlf
+++ b/apps/client/src/locales/messages.nl.xlf
@@ -14272,6 +14272,22 @@
<context context-type="linenumber">41</context>
</context-group>
</trans-unit>
+ <trans-unit id="51dd2d6b36bb8aefdd92fb9ab25ccb1fb7685670" datatype="html">
+ <source>Oops! Our data provider partner is experiencing the hiccups.</source>
+ <target state="new">Oops! Our data provider partner is experiencing the hiccups.</target>
+ <context-group purpose="location">
+ <context context-type="sourcefile">apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html</context>
+ <context context-type="linenumber">7</context>
+ </context-group>
+ </trans-unit>
+ <trans-unit id="7754789218064641822" datatype="html">
+ <source>Market data is delayed for</source>
+ <target state="new">Market data is delayed for</target>
+ <context-group purpose="location">
+ <context context-type="sourcefile">apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts</context>
+ <context context-type="linenumber">77</context>
+ </context-group>
+ </trans-unit>
</body>
</file>
</xliff>
diff --git a/apps/client/src/locales/messages.pl.xlf b/apps/client/src/locales/messages.pl.xlf
index 9f53ddb2cf..4e16f2d958 100644
--- a/apps/client/src/locales/messages.pl.xlf
+++ b/apps/client/src/locales/messages.pl.xlf
@@ -14275,6 +14275,22 @@
<context context-type="linenumber">41</context>
</context-group>
</trans-unit>
+ <trans-unit id="51dd2d6b36bb8aefdd92fb9ab25ccb1fb7685670" datatype="html">
+ <source>Oops! Our data provider partner is experiencing the hiccups.</source>
+ <target state="new">Oops! Our data provider partner is experiencing the hiccups.</target>
+ <context-group purpose="location">
+ <context context-type="sourcefile">apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html</context>
+ <context context-type="linenumber">7</context>
+ </context-group>
+ </trans-unit>
+ <trans-unit id="7754789218064641822" datatype="html">
+ <source>Market data is delayed for</source>
+ <target state="new">Market data is delayed for</target>
+ <context-group purpose="location">
+ <context context-type="sourcefile">apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts</context>
+ <context context-type="linenumber">77</context>
+ </context-group>
+ </trans-unit>
</body>
</file>
</xliff>
diff --git a/apps/client/src/locales/messages.pt.xlf b/apps/client/src/locales/messages.pt.xlf
index 453fa24697..113fdd791b 100644
--- a/apps/client/src/locales/messages.pt.xlf
+++ b/apps/client/src/locales/messages.pt.xlf
@@ -14272,6 +14272,22 @@
<context context-type="linenumber">41</context>
</context-group>
</trans-unit>
+ <trans-unit id="51dd2d6b36bb8aefdd92fb9ab25ccb1fb7685670" datatype="html">
+ <source>Oops! Our data provider partner is experiencing the hiccups.</source>
+ <target state="new">Oops! Our data provider partner is experiencing the hiccups.</target>
+ <context-group purpose="location">
+ <context context-type="sourcefile">apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html</context>
+ <context context-type="linenumber">7</context>
+ </context-group>
+ </trans-unit>
+ <trans-unit id="7754789218064641822" datatype="html">
+ <source>Market data is delayed for</source>
+ <target state="new">Market data is delayed for</target>
+ <context-group purpose="location">
+ <context context-type="sourcefile">apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts</context>
+ <context context-type="linenumber">77</context>
+ </context-group>
+ </trans-unit>
</body>
</file>
</xliff>
diff --git a/apps/client/src/locales/messages.tr.xlf b/apps/client/src/locales/messages.tr.xlf
index 23b017db06..737bec9992 100644
--- a/apps/client/src/locales/messages.tr.xlf
+++ b/apps/client/src/locales/messages.tr.xlf
@@ -14272,6 +14272,22 @@
<context context-type="linenumber">41</context>
</context-group>
</trans-unit>
+ <trans-unit id="51dd2d6b36bb8aefdd92fb9ab25ccb1fb7685670" datatype="html">
+ <source>Oops! Our data provider partner is experiencing the hiccups.</source>
+ <target state="new">Oops! Our data provider partner is experiencing the hiccups.</target>
+ <context-group purpose="location">
+ <context context-type="sourcefile">apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html</context>
+ <context context-type="linenumber">7</context>
+ </context-group>
+ </trans-unit>
+ <trans-unit id="7754789218064641822" datatype="html">
+ <source>Market data is delayed for</source>
+ <target state="new">Market data is delayed for</target>
+ <context-group purpose="location">
+ <context context-type="sourcefile">apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts</context>
+ <context context-type="linenumber">77</context>
+ </context-group>
+ </trans-unit>
</body>
</file>
</xliff>
diff --git a/apps/client/src/locales/messages.xlf b/apps/client/src/locales/messages.xlf
index 00cf6142ee..36e5912925 100644
--- a/apps/client/src/locales/messages.xlf
+++ b/apps/client/src/locales/messages.xlf
@@ -13674,6 +13674,20 @@
<context context-type="linenumber">41</context>
</context-group>
</trans-unit>
+ <trans-unit id="51dd2d6b36bb8aefdd92fb9ab25ccb1fb7685670" datatype="html">
+ <source>Oops! Our data provider partner is experiencing the hiccups.</source>
+ <context-group purpose="location">
+ <context context-type="sourcefile">apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html</context>
+ <context context-type="linenumber">7</context>
+ </context-group>
+ </trans-unit>
+ <trans-unit id="7754789218064641822" datatype="html">
+ <source>Market data is delayed for</source>
+ <context-group purpose="location">
+ <context context-type="sourcefile">apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts</context>
+ <context context-type="linenumber">77</context>
+ </context-group>
+ </trans-unit>
</body>
</file>
</xliff>