title | issue |
---|---|
Display frequently used and recently searched |
NEXT-17083 |
- Added watcher
$route.name
insrc/app/component/structure/sw-search-bar/index.js
to listen route name. - Changed method
onFocusInput
insrc/app/component/structure/sw-search-bar/index.js
. - Changed
src/app/component/structure/sw-search-bar/index.js
to setshowResultsSearchTrends
in these methods:onSearchTermChange
showTypeContainer
setSearchType
doGlobalSearch
- Changed
src/app/component/structure/sw-search-bar/index.js
to resolve response in these methods:loadSalesChannelType
loadSalesChannel
- Changed method
getSalesChannelsBySearchTerm
insrc/app/component/structure/sw-search-bar/index.js
. - Added method
loadSearchTrends
insrc/app/component/structure/sw-search-bar/index.js
to load all promise recently searched and frequently used. - Added method
getFrequentlyUsedModules
insrc/app/component/structure/sw-search-bar/index.js
to get frequently used modules. - Added method
getInfoModuleFrequentlyUsed
insrc/app/component/structure/sw-search-bar/index.js
to get module. - Added block
sw_search_bar_trends_results
insrc/app/component/structure/sw-search-bar/sw-search-bar.html.twig
to display recently search and frequently used modules. - Changed some computes in
src/app/component/structure/sw-search-bar-item/index.js
to get response with typefrequently_used
.moduleName
iconName
iconColor
- Changed block
sw_search_bar_item_module
insrc/app/component/structure/sw-search-bar-item/sw-search-bar-item.html.twig
to updatev-if
includesfrequently_used
type. - Added function
getIncrement
insrc/core/service/api/user-activity.service.js
. - Added function
getModuleByName
insrc/core/factory/module.factory.js
to get module bymoduleName
.