Browse Source

Feature/improve tables (#157)

* Improve tables

* Update changelog
pull/158/head
Thomas 3 years ago
committed by GitHub
parent
commit
8314b98f81
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      CHANGELOG.md
  2. 11
      apps/client/src/app/components/accounts-table/accounts-table.component.html
  3. 10
      apps/client/src/app/components/transactions-table/transactions-table.component.html
  4. 1
      apps/client/src/app/components/transactions-table/transactions-table.component.ts
  5. 10
      apps/client/src/app/pages/admin/admin-page.html

20
CHANGELOG.md

@ -7,9 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased ## Unreleased
### Added
- Added a counter column to the transactions table
- Added a label to indicate the default account in the accounts table
### Changed ### Changed
- Cleaned up the analysis page with an unused chart module - 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 ## 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
- 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 ### 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 ## 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 ### 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 - Improved the background colors in the dark mode
## 0.92.0 - 25.04.2021 ## 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 ### Added
- Prepared further for multi accounts support: store account for new transactions - 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 ### Fixed
@ -277,7 +283,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### 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 ## 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
- 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 ## 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 - Changed the about page for the new license
- Optimized the data management for historical data - Optimized the data management for historical data
- Optimized the exchange rate service - Optimized the exchange rate service
- Improved the user table of the admin control panel - Improved the users table of the admin control panel
### Fixed ### Fixed

11
apps/client/src/app/components/accounts-table/accounts-table.component.html

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

10
apps/client/src/app/components/transactions-table/transactions-table.component.html

@ -40,6 +40,16 @@
mat-table mat-table
[dataSource]="dataSource" [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"> <ng-container matColumnDef="date">
<th <th
*matHeaderCellDef *matHeaderCellDef

1
apps/client/src/app/components/transactions-table/transactions-table.component.ts

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

10
apps/client/src/app/pages/admin/admin-page.html

@ -73,18 +73,18 @@
<table class="gf-table"> <table class="gf-table">
<thead> <thead>
<tr class="mat-header-row"> <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" 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 Registration Date
</th> </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 Accounts
</th> </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 Transactions
</th> </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 Engagement
</th> </th>
<th class="mat-header-cell px-1 py-2" i18n>Last Activitiy</th> <th class="mat-header-cell px-1 py-2" i18n>Last Activitiy</th>

Loading…
Cancel
Save