Browse Source

Feature/add expansion panel for historical market data editor (#4550)

* Add expansion panel for historical market data editor

* Update changelog
pull/4569/head^2
Tobias Kugel 1 week ago
committed by GitHub
parent
commit
a41032d0af
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      CHANGELOG.md
  2. 18
      apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html
  3. 2
      libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html

4
CHANGELOG.md

@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Extended the benchmark detail dialog by the current market price - Extended the benchmark detail dialog by the current market price
- Added `watchlist` to the `User` database schema as a preparation for watching assets - Added `watchlist` to the `User` database schema as a preparation for watching assets
### Changed
- Made the historical market data editor expandable in the admin control panel
### Fixed ### Fixed
- Fixed the word wrap in the menu of the historical market data table in the admin control panel - Fixed the word wrap in the menu of the historical market data table in the admin control panel

18
apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html

@ -77,6 +77,15 @@
[showYAxis]="true" [showYAxis]="true"
[symbol]="data.symbol" [symbol]="data.symbol"
/> />
<div class="mb-3">
<mat-accordion class="my-3">
<mat-expansion-panel class="shadow-none">
<mat-expansion-panel-header class="p-0 pr-3">
<mat-panel-title class="font-weight-bold" i18n
>Historical Market Data</mat-panel-title
>
</mat-expansion-panel-header>
<gf-historical-market-data-editor <gf-historical-market-data-editor
class="mb-3" class="mb-3"
[currency]="assetProfile?.currency" [currency]="assetProfile?.currency"
@ -88,6 +97,9 @@
[user]="user" [user]="user"
(marketDataChanged)="onMarketDataChanged($event)" (marketDataChanged)="onMarketDataChanged($event)"
/> />
</mat-expansion-panel>
</mat-accordion>
</div>
<div class="row"> <div class="row">
@if (isEditAssetProfileIdentifierMode) { @if (isEditAssetProfileIdentifierMode) {
@ -360,8 +372,10 @@
(closed)="scraperConfiguationIsExpanded.set(false)" (closed)="scraperConfiguationIsExpanded.set(false)"
(opened)="scraperConfiguationIsExpanded.set(true)" (opened)="scraperConfiguationIsExpanded.set(true)"
> >
<mat-expansion-panel-header class="p-0"> <mat-expansion-panel-header class="p-0 pr-3">
<mat-panel-title i18n>Scraper Configuration</mat-panel-title> <mat-panel-title class="font-weight-bold" i18n
>Scraper Configuration</mat-panel-title
>
</mat-expansion-panel-header> </mat-expansion-panel-header>
<div formGroupName="scraperConfiguration"> <div formGroupName="scraperConfiguration">
<div class="mt-3"> <div class="mt-3">

2
libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html

@ -1,7 +1,7 @@
<div> <div>
@for (itemByMonth of marketDataByMonth | keyvalue; track itemByMonth) { @for (itemByMonth of marketDataByMonth | keyvalue; track itemByMonth) {
<div class="d-flex"> <div class="d-flex">
<div class="date px-1 text-nowrap">{{ itemByMonth.key }}</div> <div class="date mr-1 text-nowrap">{{ itemByMonth.key }}</div>
<div class="align-items-center d-flex flex-grow-1 px-1"> <div class="align-items-center d-flex flex-grow-1 px-1">
@for (dayItem of days; track dayItem; let i = $index) { @for (dayItem of days; track dayItem; let i = $index) {
<div <div

Loading…
Cancel
Save