Description: The QM team requires the enhancement of the search function which can be done within Dashboard advanced search, to allow users to perform searches that return results specific to the chosen inbox. Currently, when a user selects an inbox and performs a search by word, results from all inboxes are shown. For example, selecting the Vbet.am inbox should display search results only for "Vbet.am" and not for other inboxes like "Vbet.com" or "Vbet.lat". This improvement will enhance the user experience by providing more accurate and relevant search results.
Acceptance Criteria:
Inbox Selection
Given that I have multiple inboxes, when I select a specific inbox, the system should recognize this selection for the subsequent search.
Search Functionality
Given that I have selected a specific inbox, when I enter a search term and initiate the search, the system should only return results from the selected inbox.
Given that no specific inbox is selected, when I enter a search term and initiate the search, the system should return results from all inboxes.
User Interface
The search input field should be clearly visible and accessible within the selected inbox.
The current selected inbox should be prominently displayed to confirm the search scope.
Search Results Accuracy
The search results should only include items from the selected inbox, ensuring no results from other inboxes are shown.
If there are no matching results in the selected inbox, the system should display a "No results found" message specific to that inbox.
Performance
The search results should be displayed within a reasonable time frame, ensuring efficient performance.
Error Handling
If the search function encounters an error, an appropriate error message should be displayed, guiding the user to retry or check their search criteria.
Usability
The system should provide a clear option to change the selected inbox or to perform a global search across all inboxes if needed.