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

Added Follower and Following List to Profile Page #446

Merged
merged 1 commit into from
Nov 10, 2024

Conversation

IkkiOcean
Copy link
Contributor

PR Title:

Add Follower and Following List to Profile Page

Description:

This PR adds two new sections to the profile page: Followers and Following. The sections display lists of users who follow the logged-in user and the users they are following, respectively.

  • The Followers section displays a list of users who follow the current user.
  • The Following section displays a list of users the current user is following.
  • Both lists are fetched from the backend using the GET /user/:id/followers-following route, which returns the followers and following data.
  • The lists are scrollable if there are more users than can fit in the available space.

Changes:

  • Profile Page: Updated UI to include the Followers and Following sections.
  • Fetching Data: Integrated the backend API (GET /user/:id/followers-following) to fetch followers and following data.
  • Error Handling: Added error handling for failed API requests.
  • Styling: Added styles to make the lists scrollable and responsive.
  • Responsive Design: Ensured that the new sections are mobile-friendly and adjust to different screen sizes.

Related Backend Route:

  • Route: GET /user/:id/followers-following (handled by UserController.getFollowerAndFollowingList)

related issue:

Screenshots:

folo.mp4

Copy link

netlify bot commented Nov 10, 2024

👷 Deploy request for delightful-daifuku-a9f6ea pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 9797be2

@IkkiOcean
Copy link
Contributor Author

@AlfiyaSiddique hey please look into it. this would be probably my last PR in the event

@IkkiOcean
Copy link
Contributor Author

@AlfiyaSiddique mam please merge.

@AlfiyaSiddique AlfiyaSiddique added level 3 GSSOC level 3 Contribution - 50 points hacktoberfest-accepted gssoc-ext For GSSOC Extended Contribution. labels Nov 10, 2024
@AlfiyaSiddique AlfiyaSiddique merged commit 91a82be into AlfiyaSiddique:master Nov 10, 2024
1 of 2 checks passed
Copy link

🎉 Thank you @IkkiOcean Your pull request has been successfully merged! 🎉 Thank you for your contribution to our project. Your efforts are greatly appreciated. Keep up the fantastic work! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gssoc-ext For GSSOC Extended Contribution. hacktoberfest-accepted level 3 GSSOC level 3 Contribution - 50 points
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FEATURE: Add Feature to View Following and Follower List
2 participants