PythonBulawayo / ChitChat

MIT License
24 stars 28 forks source link

Presson view profile Page and Side Bar #71

Closed Presson-coder closed 3 weeks ago

Presson-coder commented 4 weeks ago

Pull Request Title: Add Detailed User Profile Page and Sidebar Information

Description:

This pull request introduces a new view profile page that provides detailed information about a specific user profile. The page includes sections for followers, following, posts, and likes. Additionally, similar information is displayed on the sidebar of the home page.

Changes Made:

  1. View Profile Page:

    • Added a new profile page that displays detailed information about a user.
    • Sections included:
      • Followers: List of users following the profile.
      • Following: List of users the profile is following.
      • Posts: User's posts with details.
      • Likes: Posts liked by the user.
  2. Home Page Sidebar:

    • Updated the sidebar to display similar profile information.
    • Sidebar sections included:
      • Followers: Summary of followers.
      • Following: Summary of following.
      • Username: Username of the user.

Testing:

Additional Notes:


Let me know if you need any further adjustments!

Presson-coder commented 4 weeks ago

Then I don't know @terrameijar could the profiles endpoint return more data in the in the following and followers object e.g profile picture and bio or some data because currently we only have url and username. Except its fine like that

"follows": [ { "username": "chitchat-test1", "url": "http://chitchat-api.vndprojects.com/api/profiles/12/" } ], "followers": [ { "username": "chitchat-test1", "url": "http://chitchat-api.vndprojects.com/api/profiles/12/" }