Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Feature/show message if no results have been found in activity dialog (#3854)
dw-085a7838a9625
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 92f82935a9..bb824f43b0 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Added+- Added a message to the search asset component if no results have been found in the create or update activity dialog- Added support to customize the rule thresholds in the _X-ray_ section (experimental)### Changeddiff --git a/apps/client/src/locales/messages.ca.xlf b/apps/client/src/locales/messages.ca.xlfindex 597b882608..4be556c770 100644--- a/apps/client/src/locales/messages.ca.xlf+++ b/apps/client/src/locales/messages.ca.xlf@@ -7258,6 +7258,14 @@<context context-type="linenumber">280</context></context-group></trans-unit>+ <trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">+ <source>Oops! Could not find any assets.</source>+ <target state="new">Oops! Could not find any assets.</target>+ <context-group purpose="location">+ <context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>+ <context context-type="linenumber">16</context>+ </context-group>+ </trans-unit></body></file></xliff>diff --git a/apps/client/src/locales/messages.de.xlf b/apps/client/src/locales/messages.de.xlfindex 6929db1ef6..dabb2bb667 100644--- a/apps/client/src/locales/messages.de.xlf+++ b/apps/client/src/locales/messages.de.xlf@@ -7258,6 +7258,14 @@<context context-type="linenumber">280</context></context-group></trans-unit>+ <trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">+ <source>Oops! Could not find any assets.</source>+ <target state="translated">Ups! Es konnten leider keine Assets gefunden werden.</target>+ <context-group purpose="location">+ <context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>+ <context context-type="linenumber">16</context>+ </context-group>+ </trans-unit></body></file></xliff>diff --git a/apps/client/src/locales/messages.es.xlf b/apps/client/src/locales/messages.es.xlfindex b5d7f41f98..1cdc11f5f1 100644--- a/apps/client/src/locales/messages.es.xlf+++ b/apps/client/src/locales/messages.es.xlf@@ -7259,6 +7259,14 @@<context context-type="linenumber">280</context></context-group></trans-unit>+ <trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">+ <source>Oops! Could not find any assets.</source>+ <target state="new">Oops! Could not find any assets.</target>+ <context-group purpose="location">+ <context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>+ <context context-type="linenumber">16</context>+ </context-group>+ </trans-unit></body></file></xliff>diff --git a/apps/client/src/locales/messages.fr.xlf b/apps/client/src/locales/messages.fr.xlfindex e880df353b..7e37f0d8c5 100644--- a/apps/client/src/locales/messages.fr.xlf+++ b/apps/client/src/locales/messages.fr.xlf@@ -7258,6 +7258,14 @@<context context-type="linenumber">280</context></context-group></trans-unit>+ <trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">+ <source>Oops! Could not find any assets.</source>+ <target state="new">Oops! Could not find any assets.</target>+ <context-group purpose="location">+ <context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>+ <context context-type="linenumber">16</context>+ </context-group>+ </trans-unit></body></file></xliff>diff --git a/apps/client/src/locales/messages.it.xlf b/apps/client/src/locales/messages.it.xlfindex a2c1f0cb26..3ca902aedd 100644--- a/apps/client/src/locales/messages.it.xlf+++ b/apps/client/src/locales/messages.it.xlf@@ -7259,6 +7259,14 @@<context context-type="linenumber">280</context></context-group></trans-unit>+ <trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">+ <source>Oops! Could not find any assets.</source>+ <target state="new">Oops! Could not find any assets.</target>+ <context-group purpose="location">+ <context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>+ <context context-type="linenumber">16</context>+ </context-group>+ </trans-unit></body></file></xliff>diff --git a/apps/client/src/locales/messages.nl.xlf b/apps/client/src/locales/messages.nl.xlfindex e686b65595..c768cf1b91 100644--- a/apps/client/src/locales/messages.nl.xlf+++ b/apps/client/src/locales/messages.nl.xlf@@ -7258,6 +7258,14 @@<context context-type="linenumber">280</context></context-group></trans-unit>+ <trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">+ <source>Oops! Could not find any assets.</source>+ <target state="new">Oops! Could not find any assets.</target>+ <context-group purpose="location">+ <context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>+ <context context-type="linenumber">16</context>+ </context-group>+ </trans-unit></body></file></xliff>diff --git a/apps/client/src/locales/messages.pl.xlf b/apps/client/src/locales/messages.pl.xlfindex a585e4b9d9..4e4e51635e 100644--- a/apps/client/src/locales/messages.pl.xlf+++ b/apps/client/src/locales/messages.pl.xlf@@ -7258,6 +7258,14 @@<context context-type="linenumber">280</context></context-group></trans-unit>+ <trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">+ <source>Oops! Could not find any assets.</source>+ <target state="new">Oops! Could not find any assets.</target>+ <context-group purpose="location">+ <context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>+ <context context-type="linenumber">16</context>+ </context-group>+ </trans-unit></body></file></xliff>diff --git a/apps/client/src/locales/messages.pt.xlf b/apps/client/src/locales/messages.pt.xlfindex e0ff5f7e77..b288984703 100644--- a/apps/client/src/locales/messages.pt.xlf+++ b/apps/client/src/locales/messages.pt.xlf@@ -7258,6 +7258,14 @@<context context-type="linenumber">280</context></context-group></trans-unit>+ <trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">+ <source>Oops! Could not find any assets.</source>+ <target state="new">Oops! Could not find any assets.</target>+ <context-group purpose="location">+ <context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>+ <context context-type="linenumber">16</context>+ </context-group>+ </trans-unit></body></file></xliff>diff --git a/apps/client/src/locales/messages.tr.xlf b/apps/client/src/locales/messages.tr.xlfindex 575dcf12be..1a47fecd96 100644--- a/apps/client/src/locales/messages.tr.xlf+++ b/apps/client/src/locales/messages.tr.xlf@@ -7258,6 +7258,14 @@<context context-type="linenumber">280</context></context-group></trans-unit>+ <trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">+ <source>Oops! Could not find any assets.</source>+ <target state="new">Oops! Could not find any assets.</target>+ <context-group purpose="location">+ <context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>+ <context context-type="linenumber">16</context>+ </context-group>+ </trans-unit></body></file></xliff>diff --git a/apps/client/src/locales/messages.xlf b/apps/client/src/locales/messages.xlfindex 735554838a..5cb3a8894d 100644--- a/apps/client/src/locales/messages.xlf+++ b/apps/client/src/locales/messages.xlf@@ -6565,6 +6565,13 @@<context context-type="linenumber">49</context></context-group></trans-unit>+ <trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">+ <source>Oops! Could not find any assets.</source>+ <context-group purpose="location">+ <context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>+ <context context-type="linenumber">16</context>+ </context-group>+ </trans-unit></body></file></xliff>diff --git a/apps/client/src/locales/messages.zh.xlf b/apps/client/src/locales/messages.zh.xlfindex f4e75b333a..2c7c1e47cb 100644--- a/apps/client/src/locales/messages.zh.xlf+++ b/apps/client/src/locales/messages.zh.xlf@@ -7259,6 +7259,14 @@<context context-type="linenumber">280</context></context-group></trans-unit>+ <trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">+ <source>Oops! Could not find any assets.</source>+ <target state="new">Oops! Could not find any assets.</target>+ <context-group purpose="location">+ <context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>+ <context context-type="linenumber">16</context>+ </context-group>+ </trans-unit></body></file></xliff>diff --git a/libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html b/libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.htmlindex 2a2f98d7dd..cac15c3461 100644--- a/libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html+++ b/libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html@@ -31,6 +31,12 @@}</small></mat-option>+ } @empty {+ @if (control.value?.length > 1) {+ <mat-option class="line-height-1" disabled="true" i18n+ >Oops! Could not find any assets.+ </mat-option>+ }}}</mat-autocomplete>diff --git a/libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.ts b/libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.tsindex 8e07ed6745..da97aac055 100644--- a/libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.ts+++ b/libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.ts@@ -117,17 +117,17 @@ export class GfSymbolAutocompleteComponentthis.control.valueChanges.pipe(- debounceTime(400),- distinctUntilChanged(),filter((query) => {return isString(query) && query.length > 1;}),- takeUntil(this.unsubscribeSubject),tap(() => {this.isLoading = true;this.changeDetectorRef.markForCheck();}),+ debounceTime(400),+ distinctUntilChanged(),+ takeUntil(this.unsubscribeSubject),switchMap((query: string) => {return this.dataService.fetchSymbols({query,