Skip to content
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

Closed
irapetrovych opened this issue Jul 27, 2020 · 0 comments · Fixed by #7960
Closed

Search and filter for add new friend at the 'Find a friend' tab #1003

irapetrovych opened this issue Jul 27, 2020 · 0 comments · Fixed by #7960
Assignees
Labels
back-end This is label if this task is back-end Friend list My habits Epic Pri: medium User story
Milestone

Comments

@irapetrovych
Copy link

irapetrovych commented Jul 27, 2020

#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:

  1. A user who doesn’t have friends can search for a new friend by clicking on the button “+” on My habits page:
    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”
    Screenshot 2024-09-15 165331

  2. 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

  3. 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.

  4. 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;

  5. System should display the search results under the "Search” field:
    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”.
    image

  6. 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

  7. User is able to apply all filters at the same time.

  8. 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".

  9. 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.

  10. 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

@Oksana-Voitovych Oksana-Voitovych changed the title Add new friends Search for and add new friend Dec 28, 2020
@JimHolman1199 JimHolman1199 added this to the UI S10.2 milestone May 20, 2021
@HrushaNataliia HrushaNataliia changed the title Search for and add new friend Search and filter for add new friend at the 'Find a friend' tab Sep 20, 2023
@2or5 2or5 self-assigned this Sep 20, 2023
@2or5 2or5 removed their assignment Jan 4, 2024
@ViktoriyaRyazhska ViktoriyaRyazhska moved this to Done in GreenCity Jul 1, 2024
@Warded120 Warded120 self-assigned this Dec 20, 2024
@Warded120 Warded120 moved this to Sprint Backlog in GreenCity Dec 20, 2024
@Warded120 Warded120 moved this to In Progress in Java GreenCity Sprint Dec 20, 2024
@Warded120 Warded120 modified the milestones: UI S10.2, Java S52.4 Dec 23, 2024
@softservedata softservedata added the back-end This is label if this task is back-end label Dec 23, 2024
@Warded120 Warded120 linked a pull request Dec 26, 2024 that will close this issue
@Warded120 Warded120 reopened this Dec 26, 2024
@Warded120 Warded120 moved this from Sprint Backlog to Ready for testing in GreenCity Dec 26, 2024
@softservedata softservedata modified the milestones: Java S52.4, Java S53.1 Jan 2, 2025
@Warded120 Warded120 moved this from In Progress to On Review in Java GreenCity Sprint Jan 5, 2025
@softservedata softservedata modified the milestones: Java S53.3, Java S53.4 Jan 22, 2025
@softservedata softservedata modified the milestones: Java S53.4, Java S54.1 Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end This is label if this task is back-end Friend list My habits Epic Pri: medium User story
Projects
Status: Ready for testing
Status: On Review
Development

Successfully merging a pull request may close this issue.

7 participants