Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
import { getTranslations } from "next-intl/server";
import { PageFrame } from "@repowise-dev/ui/shared/page-shell";
import { Skeleton, SkeletonRegion } from "@repowise-dev/ui/ui/skeleton";
/**
* Skeleton mirroring the Overview layout — identity header, change line,
* health lede beside its reads column, ask box, explore cards, then sections.
*
* Shapes and widths track the real page deliberately: a skeleton that does not
* match causes a visible reflow the moment content lands, which reads as
* slower than showing nothing. (The owl stays reserved for brand moments.)
*/
export default async function OverviewLoading() {
const t = await getTranslations("loading");
return (
<SkeletonRegion label={t("overview")}>
<PageFrame>
{/* Identity header: mark, title, description, meta row */}
<div className="flex gap-4">
<Skeleton className="h-10 w-10 rounded-xl" />
<div className="flex-1 space-y-2">
<Skeleton className="h-7 w-56" />
<Skeleton className="h-4 w-96 max-w-full" />
<Skeleton className="h-3 w-72 max-w-full" />
</div>
<Skeleton className="h-8 w-24" />
</div>
<Skeleton className="h-10 w-full" />
{/* Health lede beside the reads column */}
<div className="grid grid-cols-1 items-start gap-8 lg:grid-cols-[minmax(0,1fr)_300px] lg:gap-12">
<div className="space-y-3">
<Skeleton className="h-3 w-24" />
<Skeleton className="h-12 w-40" />
<Skeleton className="h-4 w-full max-w-[54ch]" />
<Skeleton className="h-4 w-36" />
</div>
<div className="space-y-4">
<Skeleton className="h-16" />
</div>
</div>
{/* Ask box, then the explore cards */}
<Skeleton className="h-10 w-full" />
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-5">
{Array.from({ length: 5 }).map((_, i) => (
<Skeleton key={i} className="h-24" />
))}
</div>
<Skeleton className="h-12" />
</PageFrame>
</SkeletonRegion>
);
}