Skip to content

[BUG] Public profile /u/[username] shows blank page for users with zero public repositories #2446

@vbarik317-droid

Description

@vbarik317-droid

Bug Description

Describe the bug
When a user has no public repositories on GitHub, visiting their DevTrack public profile at /u/[username] renders a blank or broken page instead of a graceful empty state.

Steps to reproduce

  1. Create or use a GitHub account with 0 public repos
  2. Sign into DevTrack
  3. Visit /u/[your-username]

Expected behavior
A friendly empty state message like "No repositories to display yet." should appear.

Actual behavior
Page renders blank or throws a runtime error.

Suggested fix
Add null/empty-array guards in the public profile data fetch and render a fallback UI component.

Environment

  • Next.js App Router
  • src/lib/public-profile-data.ts

Steps to Reproduce

  1. Go to '...'
  2. Click on '...'
  3. See error

Affected Area

Dashboard

Screenshots

No response

Browser & OS

No response

Environment

None

Additional Context

No response

Metadata

Metadata

Labels

bugSomething isn't workinggssoc:assignedGSSoC: Issue assigned to a contributorneeds-triageNeeds maintainer triage

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions