mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-24 11:10:25 +02:00
- Move 55 shadcn components → packages/ui/components/ui/ - Move lib/utils.ts (cn function) → packages/ui/lib/ - Move 3 DOM hooks (auto-scroll, mobile, scroll-fade) → packages/ui/hooks/ - Extract CSS design tokens (@theme + :root + .dark) → packages/ui/styles/tokens.css - Refactor 3 common components to pure-props (actor-avatar, mention-hover-card, reaction-bar) - Move 6 markdown components with renderMention slot for IssueMentionCard decoupling - Create wrapper components in apps/web/ for data-aware ActorAvatar and Markdown - Update 116 import paths across apps/web/ - Add @source directives for Tailwind to scan packages Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
29 lines
998 B
TypeScript
29 lines
998 B
TypeScript
import { Skeleton } from "@multica/ui/components/ui/skeleton";
|
|
|
|
export default function DashboardLoading() {
|
|
return (
|
|
<div className="flex flex-1 min-h-0 flex-col">
|
|
{/* Header skeleton */}
|
|
<div className="flex h-12 shrink-0 items-center gap-2 border-b px-4">
|
|
<Skeleton className="h-5 w-5 rounded" />
|
|
<Skeleton className="h-4 w-32" />
|
|
</div>
|
|
{/* Toolbar skeleton */}
|
|
<div className="flex h-12 shrink-0 items-center justify-between border-b px-4">
|
|
<Skeleton className="h-5 w-24" />
|
|
<Skeleton className="h-8 w-24" />
|
|
</div>
|
|
{/* Content skeleton */}
|
|
<div className="flex-1 p-4 space-y-3">
|
|
{Array.from({ length: 6 }).map((_, i) => (
|
|
<div key={i} className="flex items-center gap-3">
|
|
<Skeleton className="h-4 w-4 rounded" />
|
|
<Skeleton className="h-4 flex-1 max-w-md" />
|
|
<Skeleton className="h-4 w-16" />
|
|
</div>
|
|
))}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|