Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Feature/improve search results of assistant to only display categories with content (#5053)
Thomas Kaul9b4730b73109
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b1cfe4359d..04131fb818 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Changed+- Improved the search results of the assistant to only display categories with content- Renamed `Account` to `account` in the `Order` database schema## 2.175.0 - 2025-06-28diff --git a/libs/ui/src/lib/assistant/assistant.html b/libs/ui/src/lib/assistant/assistant.htmlindex 40af9b98fc..ed6781d217 100644--- a/libs/ui/src/lib/assistant/assistant.html+++ b/libs/ui/src/lib/assistant/assistant.html@@ -44,7 +44,7 @@Quick Links</div>@for (- searchResultItem of searchResults?.quickLinks;+ searchResultItem of searchResults.quickLinks;track searchResultItem) {<gf-assistant-list-item@@ -64,20 +64,20 @@}</div>}- <div>- <div class="font-weight-bold px-3 text-muted title" i18n>- Holdings- </div>- @for (- searchResultItem of searchResults?.holdings;- track searchResultItem- ) {- <gf-assistant-list-item- [item]="searchResultItem"- (clicked)="onCloseAssistant()"- />- }- @if (searchResults?.holdings?.length === 0) {+ @if (searchResults?.holdings?.length !== 0 || isLoading.holdings) {+ <div>+ <div class="font-weight-bold px-3 text-muted title" i18n>+ Holdings+ </div>+ @for (+ searchResultItem of searchResults.holdings;+ track searchResultItem+ ) {+ <gf-assistant-list-item+ [item]="searchResultItem"+ (clicked)="onCloseAssistant()"+ />+ }@if (isLoading.holdings) {<ngx-skeleton-loaderanimation="pulse"@@ -87,18 +87,20 @@width: '100%'}"/>- } @else {- <div class="px-3 py-1 text-muted" i18n>No entries...</div>}- }- </div>- @if (hasPermissionToAccessAdminControl) {+ </div>+ }+ @if (+ hasPermissionToAccessAdminControl &&+ (searchResults?.assetProfiles?.length !== 0 ||+ isLoading.assetProfiles)+ ) {<div class="mt-2"><div class="font-weight-bold px-3 text-muted title" i18n>Asset Profiles</div>@for (- searchResultItem of searchResults?.assetProfiles;+ searchResultItem of searchResults.assetProfiles;track searchResultItem) {<gf-assistant-list-item@@ -106,19 +108,15 @@(clicked)="onCloseAssistant()"/>}- @if (searchResults?.assetProfiles?.length === 0) {- @if (isLoading.assetProfiles) {- <ngx-skeleton-loader- animation="pulse"- class="mx-3"- [theme]="{- height: '1.5rem',- width: '100%'- }"- />- } @else {- <div class="px-3 py-1 text-muted" i18n>No entries...</div>- }+ @if (isLoading.assetProfiles) {+ <ngx-skeleton-loader+ animation="pulse"+ class="mx-3"+ [theme]="{+ height: '1.5rem',+ width: '100%'+ }"+ />}</div>}