Skip to content

Commit 0df6739

Browse files
chelojimenezclaude
andauthored
refactor(home): use design-system Skeleton in HomeContextSkeleton (#2620)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 1a652a4 commit 0df6739

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

mcpjam-inspector/client/src/components/HomeTab.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { usePostHog } from "posthog-js/react";
1212
import { ArrowLeft, Plus } from "lucide-react";
1313
import { useAppNavigate } from "@/lib/app-navigation";
1414
import { Button } from "@mcpjam/design-system/button";
15+
import { Skeleton } from "@mcpjam/design-system/skeleton";
1516
import { OrgStatsStrip } from "./home/OrgStatsStrip";
1617
import { RecommendedServers } from "./home/RecommendedServers";
1718
import { RecommendedHosts } from "./home/RecommendedHosts";
@@ -32,19 +33,20 @@ interface HomeTabProps {
3233
isContextLoading?: boolean;
3334
}
3435

35-
// Mirrors the real home's header layout (greeting + stats strip) so the
36-
// loading state previews the page that's about to render rather than showing
37-
// a bare spinner or the misleading empty state.
36+
// Mirrors the real home's header layout (greeting line + stats strip) so the
37+
// loading state previews the page that's about to render rather than showing a
38+
// bare spinner or the misleading empty state. Sizes/spacing track the real
39+
// header (space-y-2, text-2xl greeting) to keep the preview faithful.
3840
function HomeContextSkeleton() {
3941
return (
4042
<div className="h-full overflow-y-auto bg-background">
4143
<div className="mx-auto flex max-w-3xl flex-col gap-4 px-6 py-8 sm:px-8">
42-
<header className="space-y-3">
43-
<div className="h-7 w-52 animate-pulse rounded-md bg-muted" />
44-
<div className="h-3.5 w-72 animate-pulse rounded-sm bg-muted/70" />
44+
<header className="space-y-2">
45+
<Skeleton className="h-8 w-52" />
46+
<Skeleton className="h-4 w-72" />
4547
</header>
46-
<div className="h-32 w-full animate-pulse rounded-xl bg-muted/50" />
47-
<div className="h-20 w-full animate-pulse rounded-xl bg-muted/30" />
48+
<Skeleton className="h-32 w-full rounded-xl" />
49+
<Skeleton className="h-20 w-full rounded-xl" />
4850
</div>
4951
</div>
5052
);

0 commit comments

Comments
 (0)