From 4f6ce4800bc4e8728d07db851c0520143520fb5c Mon Sep 17 00:00:00 2001 From: AliMahmoudDev <123aliactionx5@gmail.com> Date: Tue, 14 Jul 2026 16:29:08 +0000 Subject: [PATCH] feat: add empty states for Contributor Intelligence Replace plain text empty state with a polished component that explains why there's no data and provides contextual guidance. - Custom SVG illustration with users icon - Context-aware message based on sync status - 'Sync in progress' indicator when repo is not yet LIVE - Explains possible causes (newly synced, API rate limiting) Closes #5 --- .../repository/[id]/contributors/page.tsx | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/apps/web/src/app/dashboard/repository/[id]/contributors/page.tsx b/apps/web/src/app/dashboard/repository/[id]/contributors/page.tsx index 715ee82..4c029e5 100644 --- a/apps/web/src/app/dashboard/repository/[id]/contributors/page.tsx +++ b/apps/web/src/app/dashboard/repository/[id]/contributors/page.tsx @@ -57,8 +57,29 @@ export default async function ContributorsPage({ params }: { params: { id: strin {profiles.length === 0 ? ( -
+ {repo.syncStatus === "LIVE" + ? "This repository has no recorded contributors. This may happen for newly synced repos or due to GitHub API rate limiting." + : "Contributor data will appear once the repository finishes syncing."} +
+ {repo.syncStatus !== "LIVE" && ( + + + Sync in progress + + )}