feat: added user profile view component#284
Merged
A6dulmalik merged 2 commits intoMindBlockLabs:mainfrom Feb 25, 2026
Merged
Conversation
Member
|
@Ayoazeez26 kindly review the failed checks, thank you. |
Merge branch 'main' into feat/user-profile
A6dulmalik
approved these changes
Feb 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What I Implemented
New main component:
UserProfileViewincomponents/profile/UserProfileView.tsxthat implements theUserProfileViewPropsandAchievementinterfaces and is UI-only (no API calls).Subcomponents added:
FollowButton.tsxonFollow/onUnfollowProfileStats.tsxonFollowingClick/onFollowersClickOverviewGrid.tsxProfileOverview(2×2 stat grid: fire/diamond/trophy/puzzle icons)OverviewCard.tsxStatCardAchievementPreview.tsxAchievementCardand newAchievementshape (icon as URL, value → badge)Visual details:
bg-[#050C16], cardbg-[#0A1628], existing typography and spacingAvatar) with initials fallback, username,@handle, and “Joined {joinedDate}”onCloseFollowButtonand icon-onlyShare2button (onShare)#, Challenge Level) using existing profile iconsonViewAllAchievementsHow UserProfileView Wires Everything
UserProfileViewtakes all props and composes:@handle,joinedDate, close button (onClose)ProfileStatswithfollowingCount,followersCount,onFollowingClick,onFollowersClickFollowButton(withisFollowing,onFollow,onUnfollow) and Share button (onShare)OverviewGridwithdayStreak,totalPoints,rank,challengeLevelAchievementPreviewwithachievementsandonViewAllAchievementsLayout is responsive: centered
max-w-lgcard, stacked on mobile, and Tailwind responsive utilities.How to Use on the Friends Page
When a user is clicked in the Friends UI, render:
This matches the acceptance criteria: prop-driven data, correct Follow/Following states, clickable stats, close/share behavior, overview grid, achievements preview, and reusable subcomponents.
Closes #244