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

FP Chatbot on Telegram- Login integration and Signup flow #5

Open
anjanarao24 opened this issue Jul 23, 2020 · 3 comments
Open

FP Chatbot on Telegram- Login integration and Signup flow #5

anjanarao24 opened this issue Jul 23, 2020 · 3 comments
Assignees
Labels
ready for engineering story is ready to play after PM review

Comments

@anjanarao24
Copy link
Collaborator

anjanarao24 commented Jul 23, 2020

User Story: As a FightPandemics chatbot user, if I am not logged in/signed up and if I am trying to View My Posts, View My Profile, Comment and See Comments, then I should be asked to Login/Signup along with an option to Skip.

As a user, once I login or sign up, I want to continue with what I had been doing before needing to login so that I can complete what I was trying to do (and don't get confused).

Use Case 1: User taps on Login/Signup button.

When I tap on the login/signup button,
Then, I should be asked to enter my email address,
When I enter my email address,
Then the bot should ask for my password,
When I enter the password and if the password and email address are correct,
Then I should be logged in.
OR
When I enter the password and if the password and email does not match,
Then I should see the following message : "Sorry your password or username was incorrect. Please try to login again." along with 3 buttons "Login" "Go back to Main Menu" "Skip"

During login process, there needs to be a way to track what the user was doing before the login/authentication process so that they can go back to what they were trying to do.

Example:

  • If they were trying to create a post, they would then go to the create post flow after logging in.
  • If they were trying to comment, they will get a prompt to add their comment and associate it to the original message they were trying to comment to after they are logged in.
  • If they were trying to view a profile, they will the go to the profile they were trying to view.

Areas needing login:

  • Create Post
  • Comment
  • View Author Profile
  • View My Profile
  • View my posts
  • Like (TBD if this is on chatbot)

Use Case 2: User taps on Skip button.

When I tap on the skip button,
Then I should see the following message "Without Login/Signup you wont be able to comment, create a post or connect." as well as the following buttons:

  • "Login/Signup" (they will reloop through the login process)
  • "Skip and go back" > this will take user back to the page that they were viewing when they were prompted to login
    (they will not be able to go to the next step in the flow as if they were logged in)
  • "Skip and go to Main Menu" > take user to Main Menu: FP Chatbot on Telegram-Main menu flow #3

Wireframe: Miro board
Notion Documentation: https://www.notion.so/fightpandemics/Chatbots-Task-Board-bfe76e786f78437cba348739899cf7da?p=630e6043b7864146b87ce8857608e352

API Integration
Login: POST /api/auth/login
Signup: POST /api/auth/signup

Acceptance Criteria:

  • When user clicks on "Login/Signup" then he should be redirected to FP login page.
  • Once user is logged in successfully, then the user should be able continue what they were doing before logging in (dependent on user behavior)
  • create a post flow if they had clicked this before logging in
  • comment on a post if they had clicked this before logging in (will need to make sure comment tagged to correct post they clicked on before logging in)
  • view author's profile from the post or comment based on what they had clicked on before logging in
  • When user clicks on "Skip" then the bot should show a generic message mentioned in the User case 2.
  • if user clicks on skip and then "Login/Signup," then user will go through the process again
  • if user clicks on "Skip and go back", then user will go back to the prior message they were on before being prompted to login
  • if user clicks on "Skip and go to Main Menu", then user will see the Main Menu buttons.
@omerkhan3
Copy link
Collaborator

omerkhan3 commented Jul 30, 2020

API Integration

Login: POST /api/auth/login
Signup: POST /api/auth/signup

@emtay emtay self-assigned this Jul 30, 2020
@emtay emtay closed this as completed Aug 14, 2020
@emtay emtay reopened this Aug 14, 2020
@FightPandemics FightPandemics deleted a comment from tejasm2 Aug 14, 2020
@emtay emtay removed their assignment Aug 14, 2020
@emtay emtay added Reviewed Has been peer reviewed by product ready for engineering story is ready to play after PM review and removed Reviewed Has been peer reviewed by product labels Aug 14, 2020
@kumudchauhan
Copy link
Member

Login Integration is completed. Signup is on to-do list.

@kumudchauhan
Copy link
Member

This user story is not updated for signup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for engineering story is ready to play after PM review
Projects
None yet
Development

No branches or pull requests

4 participants