Datetechapp / Datetechapp-General

0 stars 0 forks source link

Chat search ( CH-11) #101

Open TaniaEmelyanchyk opened 1 year ago

TaniaEmelyanchyk commented 1 year ago

Role - User

Preconditions:

user has at least 1 message in the chat

Description:

  1. The system should provide a search input field where users can enter the username or part of the username they want to search for.

  2. As the user types in the search input, the system should dynamically filter and display the matching usernames in real-time. The search results should update instantly to reflect the entered search query.

  3. The search functionality should be case-insensitive, meaning it should consider both uppercase and lowercase letters as the same. For example, a search for "john" should return results for both "John" and "john".

  4. The search should return results that match the entered search query partially. For example, if the user searches for "john", it should return results for usernames like "johnsmith", "johnny", or "john_doe".

  5. The search results should be sorted in a logical order, such as alphabetically or by relevance, to help users easily find the desired username.

  6. The system should provide an option to clear the search input and reset the search results, allowing users to start a new search easily.

  7. Users should be able to click on a search result to directly navigate to the corresponding chat or user profile, facilitating seamless user interaction.

  8. The system should handle error scenarios, such as no matching results found or technical issues, by displaying appropriate error messages to the user.

  9. When the user performs a search and no matching usernames are found, the system should display a message indicating that no results were found.

    Снимок экрана 2023-07-11 в 12 51 15