feat(FN-1734): merge fusion/fn-1734

This commit is contained in:
gsxdsm
2026-04-14 09:29:08 -07:00
parent e6becfa41b
commit 4f23883bac
5 changed files with 229 additions and 22 deletions

View File

@@ -183,8 +183,15 @@ export function ProjectOverview({
onSelectProject(project);
}, [onSelectProject, recentProjectIds]);
// Determine if we need to show skeleton
// Show skeleton for initial load if:
// 1. Projects list is still loading, OR
// 2. Projects exist but we haven't fetched health data yet (healthLoading with no data)
// Don't show skeleton during background health polling when health data already exists
const needsInitialSkeleton = loading || (healthLoading && projects.length > 0 && Object.keys(healthMap).length === 0);
// Show skeleton while loading
if (loading || healthLoading) {
if (needsInitialSkeleton) {
return <ProjectGridSkeleton />;
}