Skip to content

Wire up Profile page to real backend API and contract data #1021

Description

@Anuoluwapo25

Description

src/pages/Profile.tsx displays static or mock user data. It should show a learner's real enrolled courses, completed milestones, earned LRN tokens, and ScholarNFT credentials.

What Needs to Be Done

  1. Fetch enrolled courses from GET /api/courses?learner={address}
  2. Fetch milestone statuses from CourseMilestone contract or backend
  3. Display real LRN balance from useLearnToken() hook
  4. Display ScholarNFT credentials (if any) from ScholarNFT contract
  5. Show empty states when user has no activity

Acceptance Criteria

  • Page shows real data when wallet is connected
  • Loading skeletons shown while fetching
  • Error state handled if API/contract calls fail
  • Empty state shown for new users with no activity

Files Affected

  • src/pages/Profile.tsx
  • src/hooks/useProfile.ts (create if needed)

Labels

frontend, integration, help wanted, Stellar Wave

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26frontendReact/TypeScript UI workhelp wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions