Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Feature/allow to edit market data of today (#2515)
Thomas Kaul750c62761383
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 169995508a..69ea038f74 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++- Allowed to edit today’s historical market data in the asset profile details dialog of the admin control panel+## 2.13.0 - 2023-10-20### Addeddiff --git a/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.html b/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.htmlindex d6f67faa3a..c6e972f450 100644--- a/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.html+++ b/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.html@@ -9,7 +9,11 @@[showYAxis]="true"[symbol]="symbol"></gf-line-chart>- <div *ngFor="let itemByMonth of marketDataByMonth | keyvalue" class="d-flex">+ <div+ *ngFor="let itemByMonth of marketDataByMonth | keyvalue"+ class="d-flex"+ [hidden]="!marketData.length > 0"+ ><div class="date px-1 text-nowrap">{{ itemByMonth.key }}</div><div class="align-items-center d-flex flex-grow-1 px-1"><divdiff --git a/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.scss b/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.scssindex a922b5d69a..e8d81c22ac 100644--- a/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.scss+++ b/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.scss@@ -28,7 +28,6 @@&.today {background-color: rgba(var(--palette-accent-500), 1);- cursor: default;}}}diff --git a/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.ts b/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.tsindex 0b3123b5c8..3a19c66fe5 100644--- a/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.ts+++ b/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.ts@@ -83,10 +83,10 @@ export class AdminMarketDataDetailComponent implements OnChanges, OnInit {public ngOnChanges() {this.defaultDateFormat = getDateFormatString(this.locale);- this.historicalDataItems = this.marketData.map((marketDataItem) => {+ this.historicalDataItems = this.marketData.map(({ date, marketPrice }) => {return {- date: format(marketDataItem.date, DATE_FORMAT),- value: marketDataItem.marketPrice+ date: format(date, DATE_FORMAT),+ value: marketPrice};});@@ -157,10 +157,6 @@ export class AdminMarketDataDetailComponent implements OnChanges, OnInit {const date = parseISO(`${yearMonth}-${day}`);const marketPrice = this.marketDataByMonth[yearMonth]?.[day]?.marketPrice;- if (isSameDay(date, new Date())) {- return;- }-const dialogRef = this.dialog.open(MarketDataDetailDialog, {data: <MarketDataDetailDialogParams>{date,