-
Notifications
You must be signed in to change notification settings - Fork 81
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
Search and filter for add new friend at the 'Find a friend' tab #1003
Labels
Milestone
Comments
Open
This was referenced Aug 26, 2023
This was referenced Sep 21, 2023
This was referenced Sep 21, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
#1003.postman_collection.json.zip
As a user I want to search and filter for add new friends so that I can enhance my friends list.
Preconditions:
The registered user is logged in
My Habits page is open
Acceptance criteria:
A user who doesn’t have friends can search for a new friend by clicking on the button “+” on My habits page:
![Screenshot 2024-09-15 165331](https://private-user-images.githubusercontent.com/61425845/367586273-bdbdb1e4-26d3-45f8-b0d2-5b7b8a8d6993.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDkzMzEsIm5iZiI6MTczODkwOTAzMSwicGF0aCI6Ii82MTQyNTg0NS8zNjc1ODYyNzMtYmRiZGIxZTQtMjZkMy00NWY4LWIwZDItNWI3YjhhOGQ2OTkzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA2MTcxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA3MTUwYmJiNzk5NDYyYTYyZDJhMDhkODIwODk4NjgzNTRmZGNiNmExMGEwOWJjZTFkYmE2ZmEwNjNiZWJlMTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Ve6NTBA56nDWFkKtuVUPqJvAOIlprney1nw6coMRvoE)
a. system redirects him / her to a “Search” tab on My Eco Friends page;
b. at All friends tab user can see a message “You don’t have any friends yet”
A user who already has friends can search friends by clicking on “See all” button on My habits page and choosing “Search” tab on My Eco friends page.
![Screenshot 2024-09-15 165419](https://private-user-images.githubusercontent.com/61425845/367586311-a79a84e5-4fbe-4ca0-bd75-9eb48dc476aa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDkzMzEsIm5iZiI6MTczODkwOTAzMSwicGF0aCI6Ii82MTQyNTg0NS8zNjc1ODYzMTEtYTc5YTg0ZTUtNGZiZS00Y2EwLWJkNzUtOWViNDhkYzQ3NmFhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA2MTcxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFkMTQyZjQ2MzcyNzBiOTEwYmQ4NzVkM2FkMmQ0NDQwYWQ0M2Y5YzQ4Yjk4M2FmZjc4ZjdmMjA1Yjk3ODhiZjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.0tHIDqYDQI1jOZp9vLNF28-Dqj0S2PHMVKNhfg5N_TA)
System displays a text “Search” in the search field:
a. text in the input field disappears when user enters the first character and appears again if the input field is empty.
User is able to search for a new friend by typing in a search field:
4.1. One of the following information:
a. friend’s name;
b. friend’s city;
c. friend’s credo.
4.2. User should type request and press “Enter”:
a. system is able to search results from 1 character typed;
b. system searches results respectively to the order of characters typed in any part of friend’s name;
System should display the search results under the "Search” field:
![image](https://user-images.githubusercontent.com/73845584/106647096-2dee6f80-6597-11eb-901c-f44ddabe26a5.png)
5.1. systems displays results of friends based on the correct combination of typed characters;
5.2. system displays the “ of people found” at the bottom of the search field;
5.3. system displays no more than 10 results found, to see more user should be able to use infinite scroll;
5.4. search results are displayed in order of most relevant friends;
5.5. search results are represented by a list of friends’ cards which contain the following attributes:
a. avatar
b. name
c. personal rate
d. city
e. mutual friends
f. button “Add friend”
g. button "Create chat"
5.6. by clicking on the “friend’s card” user is redirected to the friend’s page.
5.7. when system didn’t find any results user sees a message “We didn't find any results matching this search”.
User is able to filter search results by clicking on the button “Filters” with the following criteria:
a. City (same city of living)
b. Friends of friends
User is able to apply all filters at the same time.
User can add a friend in two ways:
a. by clicking on the button “add friend” on the friend’s card on the Search results tab;
b. by clicking on the button “add friend” on the friend’s profile page.
When a user clicks on the "Add friend" button a message appears "Friend request sent".
When a user clicks on the button “add friend” it is automatically replaced by a button “cancel request” on the friend’s card and on the friend’s profile page until he/she accepts the user's request.
User is able to cancel a friendship request by clicking on the button “cancel request”:
a. it is replaced by a button “Add friend” on the friend’s card and on the friend’s profile page.
Out of scope:
Delete friends from the 'My friends' list
Accept or decline friends’ requests
To be discussed:
Filter on personal rate diapasons
Change request: #6423
API_TC_1003_Hrusha_Nataliia.zip
The text was updated successfully, but these errors were encountered: