diff --git a/gradle/changelog/optimize_global_search.yaml b/gradle/changelog/optimize_global_search.yaml new file mode 100644 index 0000000000..48ddffef68 --- /dev/null +++ b/gradle/changelog/optimize_global_search.yaml @@ -0,0 +1,2 @@ +- type: changed + description: Enhance search result view by sorting translated categories and disable categories with no search results ([#2107](https://github.com/scm-manager/scm-manager/pull/2107)) diff --git a/scm-ui/ui-webapp/public/locales/de/commons.json b/scm-ui/ui-webapp/public/locales/de/commons.json index 75766e368c..a63ecb0981 100644 --- a/scm-ui/ui-webapp/public/locales/de/commons.json +++ b/scm-ui/ui-webapp/public/locales/de/commons.json @@ -203,7 +203,7 @@ "subtitle": "{{type}} Ergebnisse für \"{{query}}\"", "subtitleWithContext": "{{type}} Ergebnisse für \"{{query}}\" in \"{{context}}\"", "types": "Ergebnisse", - "noHits": "Die Suche ergab keine Treffer", + "noHits": "Keine Ergebnisse gefunden. Auf der rechten Seite finden Sie weitere Kategorien, in denen Ergebnisse vorhanden sein könnten", "syntaxHelp": "Finden Sie bessere Ergebnisse durch die Nutzung der vollen <0>Such-Syntax", "quickSearch": { "resultHeading": "Hilfe beim Suchen?", diff --git a/scm-ui/ui-webapp/public/locales/en/commons.json b/scm-ui/ui-webapp/public/locales/en/commons.json index c9cffe71ee..2c572cc18b 100644 --- a/scm-ui/ui-webapp/public/locales/en/commons.json +++ b/scm-ui/ui-webapp/public/locales/en/commons.json @@ -204,7 +204,7 @@ "subtitle": "{{type}} results for \"{{query}}\"", "subtitleWithContext": "{{type}} results for \"{{query}}\" in \"{{context}}\"", "types": "Results", - "noHits": "No results found", + "noHits": "No results found. On the right side you will find other categories where results might be available", "syntaxHelp": "Find better results by using the full <0>search syntax", "quickSearch": { "resultHeading": "Need help?", diff --git a/scm-ui/ui-webapp/src/containers/OmniSearch.tsx b/scm-ui/ui-webapp/src/containers/OmniSearch.tsx index 85bb3aad8e..a3e505ed63 100644 --- a/scm-ui/ui-webapp/src/containers/OmniSearch.tsx +++ b/scm-ui/ui-webapp/src/containers/OmniSearch.tsx @@ -95,7 +95,7 @@ const AvatarSection: FC<{ repository: Repository }> = ({ repository }) => { ); }; -const HitsList: FC> = ({ entries }) => { +const HitList: FC> = ({ entries }) => { return (