- 
        Couldn't load subscription status. 
- Fork 38
feat(VCST-3991): no results search page #2006
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
| 
 | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements a no-results search page feature by adding localization strings for empty search results and enhancing the search and category components to handle empty search states with improved user experience.
Key changes:
- Added header_emptylocalization key across all language files for displaying empty search results messages
- Modified search navigation to use router.replacewhen already on search page to prevent history stack buildup
- Implemented empty search state detection and conditional UI rendering to hide filters and controls when no results are found
Reviewed Changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.
| File | Description | 
|---|---|
| locales/*.json | Added header_emptytranslation key for empty search results message in 13 language files | 
| client-app/shared/layout/components/search-bar/search-bar.vue | Updated navigation logic to replace route when already on search page instead of pushing | 
| client-app/shared/catalog/composables/useProducts.ts | Added hasSelectedFiltersfunction and computed property to check for active filters | 
| client-app/shared/catalog/components/category.vue | Implemented empty search state detection and conditional rendering of UI elements, added navigation logic for reset functionality | 
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.



Description
References
Jira-link:
https://virtocommerce.atlassian.net/browse/VCST-3991
Artifact URL:
https://vc3prerelease.blob.core.windows.net/packages/vc-theme-b2b-vue-2.34.0-pr-2006-d0ec-d0eca08c.zip