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

Creating layouts and implementing UserProfileFragment and OtherProfileFragment #11

Open
11 of 26 tasks
jmnguyen1999 opened this issue Apr 14, 2021 · 0 comments
Open
11 of 26 tasks
Assignees
Labels
todo Needs to be done - not an error yet
Projects
Milestone

Comments

@jmnguyen1999
Copy link
Contributor

jmnguyen1999 commented Apr 14, 2021

  • UserProfileFragment = Displays the current user's info and allows certain personal features

  • OtherProfileFragment = given a userId, displays the given user's public info and allows the current user to add them if applicable

  • Follow Figma wireframe designs to create layout.xml files for the screens: "User Profile Screen" and "Other Users' Profile Screen" (which are almost identical)

  • Connect and implement the UserProfileFragment:

    • Invoked by the bottom navigation bar
    • Displays profile info:
      • first name
      • email
      • rating (and how many total reviews)
      • Pin code (stretch: What's my pin?)
    • Log out - logs out the user
    • Ability to edit profile picture:
    • On click "What's my PIN" link:
      • Dialog Box to ask for account password, then displaying the user's PIN
        • NOTE: Dialog Box is essentially a little pop up form or message that can take a small number of user inputs and act on it. It shouldn't be extremely hard to implement
        • Resource: Android Dialog Box Guide
      • Optional stretch story later: require more security here, e.g. security words, phone/email confirmation, etc
  • Implement the OtherProfileFragment, cannot connect it yet though because it needs SearchUserFragment!:

    • will be invoked by SearchUserFragment
    • Uses a MAFragmentsListener to communicate with the MainActivity
      • e.g. private MAFragmentsListener listener = (MAFragmentsListener) context;
    • Expects to receive the userId of which User info to show! Here's how to receive the data from the MainActivity:
    • Queries for the User object corresponding to this userId
    • Displays this user's info:
      • first name
      • email
      • rating (and how many total reviews)
      • status of relationship with current user: e.g. "My Friends" or "Others"
        • easy to get current user: ParseUser.getCurrentUser()
    • On click "Add user" or some icon:
      • Add the userId to the current user's "friends" field (List)
    • Should have a back button (wasn't included on the wireframe):
      • On click --> call listener.toSearchUserFragment();
@jmnguyen1999 jmnguyen1999 added the todo Needs to be done - not an error yet label Apr 14, 2021
@jmnguyen1999 jmnguyen1999 added this to To do in Wings via automation Apr 14, 2021
@jmnguyen1999 jmnguyen1999 added this to the Sprint #2 milestone Apr 14, 2021
@jmnguyen1999 jmnguyen1999 changed the title Creating layouts for UserProfileFragment and OtherProfileFragment, implementing UserProfileFragment Creating layouts and implementing UserProfileFragment and OtherProfileFragment Apr 14, 2021
@stephaniedeleon stephaniedeleon self-assigned this Apr 16, 2021
@jmnguyen1999 jmnguyen1999 moved this from To do to In progress in Wings May 1, 2021
@jmnguyen1999 jmnguyen1999 moved this from In progress to Done in Wings Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
todo Needs to be done - not an error yet
Projects
Wings
Done
Development

No branches or pull requests

2 participants