diff --git a/CHANGELOG.md b/CHANGELOG.md index eaca8f744..dfba98d14 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 + +- Added an icon and name column to the positions table + ### Changed - Changed the data gathering by symbol endpoint to delete data first diff --git a/apps/api/src/app/portfolio/portfolio.controller.ts b/apps/api/src/app/portfolio/portfolio.controller.ts index e61ab79ee..ee11e4d1b 100644 --- a/apps/api/src/app/portfolio/portfolio.controller.ts +++ b/apps/api/src/app/portfolio/portfolio.controller.ts @@ -346,6 +346,7 @@ export class PortfolioController { netPerformancePercent: portfolioPosition.netPerformancePercent, sectors: hasDetails ? portfolioPosition.sectors : [], symbol: portfolioPosition.symbol, + url: portfolioPosition.url, value: portfolioPosition.value / totalValue }; } diff --git a/apps/api/src/app/portfolio/portfolio.service.ts b/apps/api/src/app/portfolio/portfolio.service.ts index 10d492f50..b7f9248b4 100644 --- a/apps/api/src/app/portfolio/portfolio.service.ts +++ b/apps/api/src/app/portfolio/portfolio.service.ts @@ -441,6 +441,7 @@ export class PortfolioService { sectors: symbolProfile.sectors, symbol: item.symbol, transactionCount: item.transactionCount, + url: symbolProfile.url, value: value.toNumber() }; } diff --git a/apps/client/src/app/components/positions-table/positions-table.component.html b/apps/client/src/app/components/positions-table/positions-table.component.html index 524e54c07..3d9ac93e9 100644 --- a/apps/client/src/app/components/positions-table/positions-table.component.html +++ b/apps/client/src/app/components/positions-table/positions-table.component.html @@ -6,6 +6,17 @@ mat-table [dataSource]="dataSource" > + + + + + + + Symbol @@ -15,49 +26,45 @@ - + - Value + Name - -
- -
+ + {{ + element.name + }}
- + - Performance + Value
- + - Initial Allocation + Allocation - -
+ +
- + - Current Allocation + Performance - +
- + ; };