Browse Source

Remove redundant balance attribute from account

pull/7546/head
Thomas Kaul 4 weeks ago
parent
commit
e2f66c3148
  1. 20
      libs/ui/src/lib/accounts-table/accounts-table.component.stories.ts

20
libs/ui/src/lib/accounts-table/accounts-table.component.stories.ts

@ -1,3 +1,5 @@
import { AccountWithValue } from '@ghostfolio/common/types';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { MatButtonModule } from '@angular/material/button'; import { MatButtonModule } from '@angular/material/button';
import { MatMenuModule } from '@angular/material/menu'; import { MatMenuModule } from '@angular/material/menu';
@ -14,16 +16,18 @@ import { NotificationService } from '../notifications';
import { GfValueComponent } from '../value'; import { GfValueComponent } from '../value';
import { GfAccountsTableComponent } from './accounts-table.component'; import { GfAccountsTableComponent } from './accounts-table.component';
const accounts = [ const accounts: AccountWithValue[] = [
{ {
activitiesCount: 0, activitiesCount: 0,
allocationInPercentage: null, allocationInPercentage: 0.002574748676949956,
balance: 278, balance: 278,
balanceInBaseCurrency: 278, balanceInBaseCurrency: 278,
comment: null, comment: null,
createdAt: new Date('2025-06-01T06:52:49.063Z'), createdAt: new Date('2025-06-01T06:52:49.063Z'),
currency: 'USD', currency: 'USD',
dividendInBaseCurrency: 0,
id: '460d7401-ca43-4ed4-b08e-349f1822e9db', id: '460d7401-ca43-4ed4-b08e-349f1822e9db',
interestInBaseCurrency: 0,
name: 'Coinbase Account', name: 'Coinbase Account',
platform: { platform: {
id: '8dc24b88-bb92-4152-af25-fe6a31643e26', id: '8dc24b88-bb92-4152-af25-fe6a31643e26',
@ -38,13 +42,15 @@ const accounts = [
}, },
{ {
activitiesCount: 0, activitiesCount: 0,
allocationInPercentage: null, allocationInPercentage: 0.11114023065971035,
balance: 12000, balance: 12000,
balanceInBaseCurrency: 12000, balanceInBaseCurrency: 12000,
comment: null, comment: null,
createdAt: new Date('2025-06-01T06:48:53.055Z'), createdAt: new Date('2025-06-01T06:48:53.055Z'),
currency: 'USD', currency: 'USD',
dividendInBaseCurrency: 0,
id: '6d773e31-0583-4c85-a247-e69870b4f1ee', id: '6d773e31-0583-4c85-a247-e69870b4f1ee',
interestInBaseCurrency: 0,
name: 'Private Banking Account', name: 'Private Banking Account',
platform: { platform: {
id: '43e8fcd1-5b79-4100-b678-d2229bd1660d', id: '43e8fcd1-5b79-4100-b678-d2229bd1660d',
@ -59,13 +65,15 @@ const accounts = [
}, },
{ {
activitiesCount: 12, activitiesCount: 12,
allocationInPercentage: null, allocationInPercentage: 0.8862850206633397,
balance: 150.2, balance: 150.2,
balanceInBaseCurrency: 150.2, balanceInBaseCurrency: 150.2,
comment: null, comment: null,
createdAt: new Date('2025-05-31T13:00:13.940Z'), createdAt: new Date('2025-05-31T13:00:13.940Z'),
currency: 'USD', currency: 'USD',
dividendInBaseCurrency: 0,
id: '776bd1e9-b2f6-4f7e-933d-18756c2f0625', id: '776bd1e9-b2f6-4f7e-933d-18756c2f0625',
interestInBaseCurrency: 0,
name: 'Trading Account', name: 'Trading Account',
platform: { platform: {
id: '9da3a8a7-4795-43e3-a6db-ccb914189737', id: '9da3a8a7-4795-43e3-a6db-ccb914189737',
@ -73,10 +81,10 @@ const accounts = [
url: 'https://interactivebrokers.com' url: 'https://interactivebrokers.com'
}, },
platformId: '9da3a8a7-4795-43e3-a6db-ccb914189737', platformId: '9da3a8a7-4795-43e3-a6db-ccb914189737',
valueInBaseCurrency: 95693.70321466809,
updatedAt: new Date('2025-06-01T06:53:10.569Z'), updatedAt: new Date('2025-06-01T06:53:10.569Z'),
userId: '081aa387-487d-4438-83a4-3060eb2a016e', userId: '081aa387-487d-4438-83a4-3060eb2a016e',
value: 95693.70321466809 value: 95693.70321466809,
valueInBaseCurrency: 95693.70321466809
} }
]; ];

Loading…
Cancel
Save