profile

Page containing information for a user

Profile Page Overview

This page contains the user's basic information and allows users to send a friend request to that page's user. Contains the createpost and postcell reusables. This page is only available to logged in users.

Key Workflows

Button Add Friend is clicked and Search for… is empty

  • This is triggered if there is not an existing friend request between these two users

  • Creates a new Friendship and effectively sends a friend request to this page’s user

Button Add Friend is clicked and Search for… is not empty

  • This is triggered if this page’s user already has a friend request out to the current user

  • Updates the relevant Friendship instance and adds the users to each other’s Friends field. It is important to update the Friends lists when accepting a friend request

Button Remove Friend is clicked

  • Undoes the friendship. Deletes the Friendship instance and removes the users from each other’s Friends field

Button Send Message is clicked

  • Sends a message to the user - creating a new Thread if one does not already exist between the two users - and navigates Current User to that chat thread on the dashboard page

Key Elements

RepeatingGroup Posts

  • Contains the list of Posts created by that page’s user, with the newest posts appearing at the top

RepeatingGroup Friends

  • Contains the list of friends (Users) for that page’s user. This group shows only the first 6 of the user’s friends

RepeatingGroup Friends (All)

  • Contains the entire list of friends (Users) for that page’s user. This interface is only accessible if the page’s user has more than 6 friends

Group Buttons Main

  • Contains buttons for the primary actions the user can take on this page

  • Only accessible if the current user is friends with this page's user

Last updated

Was this helpful?