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

Share with my friends a new standard habit by inviting them by username #4772

Open
NADIIARAK opened this issue Dec 5, 2022 · 0 comments
Open

Comments

@NADIIARAK
Copy link

NADIIARAK commented Dec 5, 2022

As a registered user, I want to be able to share with my friends a new standard habit that I add to the list of my habits and invite friends by username, so that I could start to track one with my friends.

Preconditions

  1. Registered User is logged in
  2. Users "My habits" page is open
  3. User chosed one habit from the “All Habits list” page.
  4. Page with description of choosen habits is opened

Acceptance Criteria

  1. On the “habit description” page a registered user sees a button “Allow friends to join”\’Invite friends”
  2. When the user clicks on the button “Allow friends to join”\’Invite friends” the system shows him a pop-up window with the way how he\she can add the friends
  3. On the pop-up window, users can choose two ways to add a friend:
  • invite by email
  • find by username
  1. When a user chooses “find by username” the system redirects him/her to a pop-up window with text field “Your friend's username” and unclickable button “find” and with “X” button in a right corner of the page to close the window
  2. User can add 3 – 15 symbols ( letters, numbers, special characters) to the field
  3. When a user entered correct friend’s username, system shows avatar and Username with the active button “add friend” up to the text field “Your friend's username”
  4. If the user has write incorrect friend's username, the system does not shows avatar and Username with the active button “add friend” up to the text field “Your friend's username”
  5. When user clicked on “add friend” button the inscription in the button changes on “invited” and became unclickable and the system generates and sends an invitation to the selected users
  6. When the user clicks on the “X” button in the right corner of the page the system closes the pop-up window and redirects User to the “habit description” page.
  7. If an invited User approves the invitation, the system adds the avatar of a newly added friend to be displayed on the tape of all added friends' lists.
  8. If the user has more than 6 added friends to the habit the system shows avatar only 6 last added friends

Epic link
Epic. My habits #938 Epic

Tasks

    • sample task.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant