stable

Clone or download

Read-only

feat: Loading state when searching for items

Summary ------- There should be a visual indicator that search is being done. This is done with skeleton table. Tests instructions ------------------ Note: You have to activate the feature beforehand: tuleap config-set feature_flag_search_for_documents_with_criteria 1 Go on a sub folder. Click on Advanced in the search box. ➡️ The breadcrumbs display the location of the current folder Enter some search terms and click on Apply button ➡️ REST API is called (look at the developer console of the browser) ➡️ Skeleton table is displayed briefly (add a sleep() in SearchResource if needed) Refresh the page ➡️ REST API is immediately called ➡️ Skeleton table is displayed briefly Clear the global search text field and click on Apply button ➡️ REST API is not called ➡️ There is no extra parameter in the URL (no dummy `?q=`) Same behavior for root folder. --- Part of story #24197: search for Documents with criteria Change-Id: I112aa1e39ae7fc1b8704fccf1d0950436a32abca

Modified Files

Name
M plugins/document/scripts/document/api/rest-querier.ts +18 −0 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchContainer.test.ts +88 −1 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchContainer.vue +39 −9 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/SearchResultTable.test.ts +50 −0 Go to diff View file
R plugins/document/scripts/document/components/AdvancedSearch/SearchResultTable.vue Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/TableBodyEmpty.vue +33 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/TableBodySkeleton.vue +38 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/SearchBox.vue +4 −1 Go to diff View file
M plugins/document/scripts/document/router/index.js +5 −2 Go to diff View file