@@ -12,6 +12,7 @@ import { usePostHog } from "posthog-js/react";
1212import { ArrowLeft , Plus } from "lucide-react" ;
1313import { useAppNavigate } from "@/lib/app-navigation" ;
1414import { Button } from "@mcpjam/design-system/button" ;
15+ import { Skeleton } from "@mcpjam/design-system/skeleton" ;
1516import { OrgStatsStrip } from "./home/OrgStatsStrip" ;
1617import { RecommendedServers } from "./home/RecommendedServers" ;
1718import { 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.
3840function 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