Feature/add status column to market data table in admin control panel (#4520)

* Add status column to market data table in admin control panel

* Update changelog
This commit is contained in:
csehatt741 2025-04-09 19:33:00 +02:00 committed by GitHub
parent 2c07b7f058
commit 0f557f431e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 38 additions and 0 deletions

View File

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased ## Unreleased
### Added
- Added the data gathering status column to the historical market data table of the admin control
### Changed ### Changed
- Improved the language localization for Enlish (`en`) - Improved the language localization for Enlish (`en`)

View File

@ -249,6 +249,7 @@ export class AdminService {
currency: true, currency: true,
dataSource: true, dataSource: true,
id: true, id: true,
isActive: true,
isUsedByUsersWithSubscription: true, isUsedByUsersWithSubscription: true,
name: true, name: true,
Order: { Order: {
@ -309,6 +310,7 @@ export class AdminService {
currency, currency,
dataSource, dataSource,
id, id,
isActive,
isUsedByUsersWithSubscription, isUsedByUsersWithSubscription,
name, name,
Order, Order,
@ -367,6 +369,7 @@ export class AdminService {
countriesCount, countriesCount,
dataSource, dataSource,
id, id,
isActive,
lastMarketPrice, lastMarketPrice,
name, name,
symbol, symbol,
@ -748,6 +751,7 @@ export class AdminService {
countriesCount: 0, countriesCount: 0,
date: dateOfFirstActivity, date: dateOfFirstActivity,
id: undefined, id: undefined,
isActive: true,
name: symbol, name: symbol,
sectorsCount: 0 sectorsCount: 0
}; };

View File

@ -137,6 +137,7 @@ export class AdminMarketDataComponent
); );
this.displayedColumns = [ this.displayedColumns = [
'status',
'select', 'select',
'nameWithSymbol', 'nameWithSymbol',
'dataSource', 'dataSource',

View File

@ -20,6 +20,34 @@
matSortDirection="asc" matSortDirection="asc"
[dataSource]="dataSource" [dataSource]="dataSource"
> >
<ng-container matColumnDef="status">
<th
*matHeaderCellDef
class="d-none d-lg-table-cell px-1"
mat-header-cell
></th>
<td
*matCellDef="let element"
class="d-none d-lg-table-cell px-1"
mat-cell
>
@if (!element.isActive) {
<div
class="d-flex justify-content-center"
i18n-title
title="Data Gathering is off"
>
<ion-icon name="ban-outline" />
</div>
}
</td>
<td
*matFooterCellDef
class="d-none d-lg-table-cell px-1"
mat-footer-cell
></td>
</ng-container>
<ng-container matColumnDef="select"> <ng-container matColumnDef="select">
<th *matHeaderCellDef class="px-1" mat-header-cell></th> <th *matHeaderCellDef class="px-1" mat-header-cell></th>
<td *matCellDef="let element" class="px-1" mat-cell> <td *matCellDef="let element" class="px-1" mat-cell>

View File

@ -14,6 +14,7 @@ export interface AdminMarketDataItem {
dataSource: DataSource; dataSource: DataSource;
date: Date; date: Date;
id: string; id: string;
isActive: boolean;
isBenchmark?: boolean; isBenchmark?: boolean;
isUsedByUsersWithSubscription?: boolean; isUsedByUsersWithSubscription?: boolean;
lastMarketPrice: number; lastMarketPrice: number;