Feature/improve tables (#157)

* Improve tables

* Update changelog
pull/158/head
Thomas 3 years ago committed by GitHub
parent 194cf1ddcc
commit 8314b98f81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,9 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
### Added
- Added a counter column to the transactions table
- Added a label to indicate the default account in the accounts table
### Changed
- Cleaned up the analysis page with an unused chart module
- Improved the cell alignment in the users table of the admin control panel
## 1.14.0 - 09.06.2021
@ -106,11 +112,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Added an index in the user table of the admin control panel
- Added an index in the users table of the admin control panel
### Changed
- Improved the alignment in the user table of the admin control panel
- Improved the alignment in the users table of the admin control panel
## 1.5.0 - 22.05.2021
@ -242,7 +248,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Improved the user table styling of the admin control panel
- Improved the users table styling of the admin control panel
- Improved the background colors in the dark mode
## 0.92.0 - 25.04.2021
@ -250,7 +256,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Prepared further for multi accounts support: store account for new transactions
- Added a horizontal scrollbar to the user table of the admin control panel
- Added a horizontal scrollbar to the users table of the admin control panel
### Fixed
@ -277,7 +283,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Improved the user table of the admin control panel
- Improved the users table of the admin control panel
## 0.89.0 - 21.04.2021
@ -308,7 +314,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed an issue in the user table of the admin control panel with missing data
- Fixed an issue in the users table of the admin control panel with missing data
## 0.86.1 - 18.04.2021
@ -323,7 +329,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Changed the about page for the new license
- Optimized the data management for historical data
- Optimized the exchange rate service
- Improved the user table of the admin control panel
- Improved the users table of the admin control panel
### Fixed

@ -3,6 +3,11 @@
<th *matHeaderCellDef class="px-1" i18n mat-header-cell>Name</th>
<td *matCellDef="let element" class="px-1" mat-cell>
{{ element.name }}
<span
*ngIf="element.isDefault"
class="d-lg-inline-block d-none text-muted"
>(Default)</span
>
</td>
</ng-container>
@ -49,8 +54,10 @@
</ng-container>
<ng-container matColumnDef="transactions">
<th *matHeaderCellDef i18n mat-header-cell>Transactions</th>
<td *matCellDef="let element" mat-cell>
<th *matHeaderCellDef class="text-right" i18n mat-header-cell>
Transactions
</th>
<td *matCellDef="let element" class="text-right" mat-cell>
{{ element.Order?.length }}
</td>
</ng-container>

@ -40,6 +40,16 @@
mat-table
[dataSource]="dataSource"
>
<ng-container matColumnDef="count">
<th *matHeaderCellDef class="px-1 text-right" i18n mat-header-cell>#</th>
<td
*matCellDef="let element; let i = index"
class="px-1 text-right"
mat-cell
>
{{ dataSource.data.length - i }}
</td>
</ng-container>
<ng-container matColumnDef="date">
<th
*matHeaderCellDef

@ -133,6 +133,7 @@ export class TransactionsTableComponent
public ngOnChanges() {
this.displayedColumns = [
'count',
'date',
'type',
'symbol',

@ -73,18 +73,18 @@
<table class="gf-table">
<thead>
<tr class="mat-header-row">
<th class="mat-header-cell px-1 py-2 text-center" i18n>#</th>
<th class="mat-header-cell px-1 py-2 text-right" i18n>#</th>
<th class="mat-header-cell px-1 py-2" i18n>User</th>
<th class="mat-header-cell px-1 py-2 text-center" i18n>
<th class="mat-header-cell px-1 py-2 text-right" i18n>
Registration Date
</th>
<th class="mat-header-cell px-1 py-2 text-center" i18n>
<th class="mat-header-cell px-1 py-2 text-right" i18n>
Accounts
</th>
<th class="mat-header-cell px-1 py-2 text-center" i18n>
<th class="mat-header-cell px-1 py-2 text-right" i18n>
Transactions
</th>
<th class="mat-header-cell px-1 py-2 text-center" i18n>
<th class="mat-header-cell px-1 py-2 text-right" i18n>
Engagement
</th>
<th class="mat-header-cell px-1 py-2" i18n>Last Activitiy</th>

Loading…
Cancel
Save