Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🀍

Feature/add hint for twr to portfolio summary (#2824)

Thomas Kaul6a048cee851b
diff --git a/.prettierignore b/.prettierignore
index 47a053eee3..d086b6ff44 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -1,3 +1,7 @@
/.nx/cache
+
+# Issue: https://github.com/prettier/prettier/issues/15650
+/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html
+
/dist
/test/import
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 10761c797b..0ccfda047c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
+- Added a hint for _Time-Weighted Rate of Return_ (TWR) to the portfolio summary tab on the home page
- Added support for REST APIs (`JSON`) via the scraper configuration
- Enabled the _Redis_ authentication in the `docker-compose` files
diff --git a/README.md b/README.md
index dc5f2d25fa..0ea5eef22c 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@ Ghostfolio is for you if you are...
- βœ… Create, update and delete transactions
- βœ… Multi account management
-- βœ… Portfolio performance for `Today`, `YTD`, `1Y`, `5Y`, `Max`
+- βœ… Portfolio performance: Time-weighted rate of return (TWR) for `Today`, `YTD`, `1Y`, `5Y`, `Max`
- βœ… Various charts
- βœ… Static analysis to identify potential risks in your portfolio
- βœ… Import and export transactions
diff --git a/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html b/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html
index aaf9bfb734..d8207cf73a 100644
--- a/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html
+++ b/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html
@@ -69,7 +69,10 @@
</div>
</div>
<div class="flex-nowrap px-3 py-1 row">
- <div class="flex-grow-1 ml-3 text-truncate" i18n>Gross Performance</div>
+ <div class="align-items-center d-flex flex-grow-1 ml-3 text-truncate">
+ <ng-container i18n>Gross Performance</ng-container>
+ <abbr class="initialism ml-2 text-muted" title="Time-Weighted Rate of Return">(TWR)</abbr>
+ </div>
<div class="flex-column flex-wrap justify-content-end">
<gf-value
class="justify-content-end"
@@ -112,7 +115,10 @@
</div>
</div>
<div class="flex-nowrap px-3 py-1 row">
- <div class="flex-grow-1 text-truncate ml-3" i18n>Net Performance</div>
+ <div class="flex-grow-1 text-truncate ml-3">
+ <ng-container i18n>Net Performance</ng-container>
+ <abbr class="initialism ml-2 text-muted" title="Time-Weighted Rate of Return">(TWR)</abbr>
+ </div>
<div class="flex-column flex-wrap justify-content-end">
<gf-value
class="justify-content-end"