Skip to content

feat: implement user profile dashboard - #22

Merged
diiabblo merged 15 commits into
mainfrom
feat/user-profile-dashboard
Feb 12, 2026
Merged

feat: implement user profile dashboard#22
diiabblo merged 15 commits into
mainfrom
feat/user-profile-dashboard

Conversation

@diiabblo

Copy link
Copy Markdown
Owner

Summary

Implements a comprehensive user profile dashboard that displays player statistics, game history, achievements, and performance metrics.

Changes

  • Added profile type definitions and interfaces
  • Created useUserProfile and useGameHistory custom hooks
  • Implemented profile UI components (StatsCard, GameHistoryList, ProfileHeader, AchievementBadge, EmptyState, ProfileSkeleton)
  • Added date and profile utility functions
  • Created dedicated profile page with layout
  • Added comprehensive documentation

Components Added

  • StatsCard: Displays individual statistics with icons
  • GameHistoryList: Shows paginated game history with filters
  • ProfileHeader: User avatar and basic info display
  • AchievementBadge: Achievement display with rarity indicators
  • EmptyState: Friendly empty state for sections with no data
  • ProfileSkeleton: Loading state component

Features

  • Real-time wallet connection integration
  • Game statistics and performance metrics
  • Achievement tracking and display
  • Game history with pagination
  • Responsive design for mobile and desktop
  • Loading states and error handling

Closes #2

- Define UserStats interface for game statistics
- Add UserProfile interface with user data
- Create GameHistory type for game records
- Include proper TypeScript documentation
- Implement custom hook for profile data fetching
- Add loading and error states
- Include refresh functionality
- Add TypeScript types and documentation
- Build statistics display card component
- Add responsive grid layout
- Implement hover animations
- Support dark mode theming
- Create game history display component
- Add empty state for no games
- Implement staggered animation for list items
- Display game stats and rewards
- Create formatDistanceToNow for relative time
- Add formatDate for date formatting
- Implement formatDateTime with time
- Include proper TypeScript types
- Build header with user info display
- Add gradient background styling
- Include avatar placeholder
- Add edit profile button placeholder
- Build profile page layout
- Integrate ProfileHeader, StatsCard, GameHistoryList
- Add loading and error states
- Implement authentication check
@diiabblo
diiabblo merged commit 4d2c21f into main Feb 12, 2026
4 of 19 checks passed
@diiabblo
diiabblo deleted the feat/user-profile-dashboard branch February 12, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: implement user profile dashboard

1 participant