stable

Clone or download

Read-only

feat: Display 15 results

Display only 15 results. If results are spread accross multiple pages then they all are retrieved until we have 15. If there are more than 15 results the user can see, then a message is displayed at the end of the results list so that the search query can be refined. There are some glitches: * If there are a lot of item matching the query, but few the user can see, then user has to wait until all parallel requests are finished before seeing the results. => I suggest to display those results as soon as they are available in a dedicated contribution. * If user enter a search term, then change it, the initial bunch of requests are still performed: 1) it consumes useless resources 2) initial term results might be displayed instead of the new ones. => we have to find a way to cancel the pending requests (dedicated contribution?) Note: post() is updated to be able to pass limit/offset in POST query. Part of story #26771: Index artifact fields (REST + Switch to) on updated artifacts only Change-Id: If558c23f6d7c8af5dfaf835b47999604776b42dd

Modified Files

Name
M lib/frontend/fetch-result/src/ResultFetcher.test.ts +7 −4 Go to diff View file
M lib/frontend/fetch-result/src/ResultFetcher.ts +7 −3 Go to diff View file
M lib/frontend/fetch-result/src/main.ts +3 −0 Go to diff View file
M src/package.json +1 −0 Go to diff View file
M src/pnpm-lock.yaml +2 −0 Go to diff View file
M src/scripts/switch-to/po/fr_FR.po +3 −0 Go to diff View file
M src/scripts/switch-to/po/pt_BR.po +3 −0 Go to diff View file
M src/scripts/switch-to/src/components/Body/Items/SearchResults/SearchResults.test.ts +2 −0 Go to diff View file
M src/scripts/switch-to/src/components/Body/Items/SearchResults/SearchResultsList.vue +4 −0 Go to diff View file
M src/scripts/switch-to/src/helpers/search-querier.test.ts +190 −6 Go to diff View file
M src/scripts/switch-to/src/helpers/search-querier.ts +130 −28 Go to diff View file
M src/scripts/switch-to/src/stores/fulltext.test.ts +43 −4 Go to diff View file
M src/scripts/switch-to/src/stores/fulltext.ts +5 −1 Go to diff View file
M src/scripts/switch-to/src/stores/type.ts +1 −0 Go to diff View file
M src/themes/common/css/utils/_switch-to.scss +4 −0 Go to diff View file