feat: add followers and follwing list on user and org profiles. #130
feat: add followers and follwing list on user and org profiles. #130Esubaalew wants to merge 9 commits intobetter-auth:mainfrom
Conversation
|
@Esubaalew is attempting to deploy a commit to the better-auth Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Pull request overview
This PR enhances the user profile experience by adding support for viewing followers and following lists, improving navigation between user/organization pages, and adding interactive links to follower/following statistics throughout the application.
Changes:
- Added new tab-based navigation (repos/followers/following) to user profile pages with URL parameter support
- Implemented GitHub API integration for fetching and enriching follower/following data via GraphQL and REST APIs
- Converted static follower/following counts into interactive buttons/links that navigate to the respective tabs
- Improved routing logic in the
[owner]page to better distinguish between users and organizations
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 17 comments.
Show a summary per file
| File | Description |
|---|---|
| apps/web/src/lib/utils.ts | Added ProfileTab type and resolveProfileTab utility function for tab validation |
| apps/web/src/lib/github.ts | Added comprehensive follower/following fetch functions with GraphQL enrichment and REST fallbacks |
| apps/web/src/components/users/user-profile-content.tsx | Implemented tab navigation UI, follower/following display, and state management for profile tabs |
| apps/web/src/components/orgs/org-detail-content.tsx | Converted follower/following stats to interactive links and updated date formatting |
| apps/web/src/components/layout/navbar.tsx | Made navbar follower/following/repos stats clickable with navigation |
| apps/web/src/app/(app)/users/[username]/page.tsx | Added tab parameter handling and follower/following data fetching |
| apps/web/src/app/(app)/[owner]/page.tsx | Improved user/org routing with better type detection and redirects for invalid org tabs |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I tried applying Copilot’s reviews, but I don’t think all of them are necessary. I addressed the ones I believe are needed, so there are still some reviews left. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ping-maxwell
left a comment
There was a problem hiding this comment.
Hey, please fix the merge conflicts and this should be good to go
|
@ping-maxwell on it. |
596350e to
cbb7257
Compare
|
Hey, @ping-maxwell ... About caching, caching is implemented for authenticated users. if we should do this for unauthenticated ones it is with tradeoffs and should be an enhancement separate from this PR |
…ers-following-20260226
…ithub.com/Esubaalew/better-hub into feat/profile-followers-following-20260226
|
@ping-maxwell |

Adding followers and following lists
I am not really sure if this is important but I think it is a good addition, so below is what I did.
so /username?tab=followers and /username?tab=following will list the followers and following of the account