Skip to content

fix: Replace hardcoded workspace data with real Supabase fetch and empty states#425

Open
Ananya-CM wants to merge 1 commit into
Shriii19:masterfrom
Ananya-CM:fix/workspace-hardcoded-data
Open

fix: Replace hardcoded workspace data with real Supabase fetch and empty states#425
Ananya-CM wants to merge 1 commit into
Shriii19:masterfrom
Ananya-CM:fix/workspace-hardcoded-data

Conversation

@Ananya-CM

Copy link
Copy Markdown
Contributor

Summary

Fixed the Workspace page which was displaying
hardcoded fake developers and activity feed
that never changed regardless of real user data.

Changes Made

Only frontend/app/workspace/page.tsx was modified:

  1. Removed hardcoded users array:

    • "Shrinivas", "Rahul", "Aman" (fake names)
  2. Removed hardcoded activities array:

    • "Shrinivas updated UI components" (fake)
    • "Rahul fixed login bug" (fake)
    • "Aman pushed new changes" (fake)
  3. Added members and activities state with
    loading state

  4. Added useEffect fetching real data from Supabase:

    • profiles table → Active Developers section
    • projects table → Activity Feed section
    • Uses authenticated session for security
  5. Added loading skeletons while data fetches

  6. Added clean empty states:

    • "No members yet — Invite your team to get started"
    • "No workspace data yet — Create a project
      to get started"

Before

  • "Shrinivas", "Rahul", "Aman" hardcoded for all users
  • Fake activity feed showing same 3 items forever
  • Counter always showed "3 active contributors"

After

  • ✅ Real profiles fetched from Supabase
  • ✅ Real project activity from Supabase
  • ✅ Loading skeleton while fetching
  • ✅ Clean empty states when no data exists
  • ✅ Counters reflect actual data

Screenshots

image image

Files Changed

  • frontend/app/workspace/page.tsx — only file modified

Issue

Closes #254

nsoc26

@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

@Ananya-CM is attempting to deploy a commit to the shreemp194-gmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown

👋 Thank you for opening this pull request! I will review your changes and assist you soon.

@Ananya-CM
Ananya-CM force-pushed the fix/workspace-hardcoded-data branch from a27de79 to 3e76a3c Compare June 23, 2026 07:47
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.

Fix: Workspace page shows hardcoded static content instead of real user workspace data

1 participant