diff --git a/CHANGELOG.md b/CHANGELOG.md index b1cfe4359..04131fb81 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-28 diff --git a/libs/ui/src/lib/assistant/assistant.html b/libs/ui/src/lib/assistant/assistant.html index 40af9b98f..ed6781d21 100644 --- a/libs/ui/src/lib/assistant/assistant.html +++ b/libs/ui/src/lib/assistant/assistant.html @@ -44,7 +44,7 @@ Quick Links @for ( - searchResultItem of searchResults?.quickLinks; + searchResultItem of searchResults.quickLinks; track searchResultItem ) { } -
-
- Holdings -
- @for ( - searchResultItem of searchResults?.holdings; - track searchResultItem - ) { - - } - @if (searchResults?.holdings?.length === 0) { + @if (searchResults?.holdings?.length !== 0 || isLoading.holdings) { +
+
+ Holdings +
+ @for ( + searchResultItem of searchResults.holdings; + track searchResultItem + ) { + + } @if (isLoading.holdings) { - } @else { -
No entries...
} - } -
- @if (hasPermissionToAccessAdminControl) { +
+ } + @if ( + hasPermissionToAccessAdminControl && + (searchResults?.assetProfiles?.length !== 0 || + isLoading.assetProfiles) + ) {
Asset Profiles
@for ( - searchResultItem of searchResults?.assetProfiles; + searchResultItem of searchResults.assetProfiles; track searchResultItem ) { } - @if (searchResults?.assetProfiles?.length === 0) { - @if (isLoading.assetProfiles) { - - } @else { -
No entries...
- } + @if (isLoading.assetProfiles) { + }
}