From 0c970e2a14f8a0a2d544adb8ae2d39f7003d228a Mon Sep 17 00:00:00 2001 From: Kenrick Tandrian <60643640+KenTandrian@users.noreply.github.com> Date: Fri, 13 Feb 2026 23:30:53 +0700 Subject: [PATCH] Task/improve holdings table type safety (#6306) * fix(lib): update displayedColumns type * feat(lib): use input function for holdings * feat(lib): make isLoading a computed signal * feat(lib): make paginator and sort viewchild signals * feat(lib): make dataSource a computed signal * feat(lib): use input function for hasPermission fields * feat(lib): make displayedColumns a computed signal * feat(lib): remove ngOnChanges * feat(lib): update types in holdings mock * fix(lib): update imports for treemap chart component * fix(lib): remove unused routeQueryParams variable * fix(lib): prevent creating new table data source every time the signal changes * fix(lib): remove unused unsubscribe subject as there is no observable subscription * fix(lib): revert changes to dataSource in the template * fix(lib): changed locale to input signal * fix(lib): change ignoreAssetSubClasses to protected * fix(lib): create canShowDetails function * fix(lib): remove unused baseCurrency and deviceType inputs * fix(lib): remove unused baseCurrency and deviceType inputs from stories * feat(lib): make constructor as public --- .../account-detail-dialog.html | 2 - .../home-holdings/home-holdings.html | 2 - .../src/app/pages/public/public-page.html | 1 - .../holdings-table.component.html | 38 +++---- .../holdings-table.component.stories.ts | 4 - .../holdings-table.component.ts | 103 +++++++++--------- libs/ui/src/lib/mocks/holdings.ts | 44 ++++---- .../treemap-chart/treemap-chart.component.ts | 2 +- 8 files changed, 94 insertions(+), 102 deletions(-) diff --git a/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html b/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html index 15dd8f13a..e41d3415c 100644 --- a/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html +++ b/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html @@ -102,8 +102,6 @@
Holdings
@@ -76,8 +76,8 @@
@@ -100,8 +100,8 @@
@@ -121,8 +121,8 @@
@@ -142,9 +142,9 @@ @@ -166,9 +166,9 @@ - + -@if (isLoading) { +@if (isLoading()) { } -@if (dataSource.data.length > pageSize && !isLoading) { +@if (dataSource.data.length > pageSize && !isLoading()) {