feat: refine task and demo workflow UI

This commit is contained in:
2026-07-22 11:07:12 +08:00
parent 752ea3f944
commit 33c5fb9b9c
11 changed files with 1703 additions and 210 deletions

View File

@@ -1,4 +1,4 @@
import { Skeleton } from './ui/skeleton';
import { Skeleton } from "./ui/skeleton";
export function DashboardLayoutSkeleton() {
return (
@@ -7,24 +7,24 @@ export function DashboardLayoutSkeleton() {
<div className="w-[280px] border-r border-border bg-background p-4 space-y-6">
{/* Logo area */}
<div className="flex items-center gap-3 px-2">
<Skeleton className="h-8 w-8 rounded-md" />
<Skeleton className="h-4 w-24" />
<Skeleton className="bg-muted h-8 w-8 rounded-md" />
<Skeleton className="bg-muted h-4 w-24" />
</div>
{/* Menu items */}
<div className="space-y-2 px-2">
<Skeleton className="h-10 w-full rounded-lg" />
<Skeleton className="h-10 w-full rounded-lg" />
<Skeleton className="h-10 w-full rounded-lg" />
<Skeleton className="bg-muted h-10 w-full rounded-lg" />
<Skeleton className="bg-muted h-10 w-full rounded-lg" />
<Skeleton className="bg-muted h-10 w-full rounded-lg" />
</div>
{/* User profile area at bottom */}
<div className="absolute bottom-4 left-4 right-4">
<div className="flex items-center gap-3 px-1">
<Skeleton className="h-9 w-9 rounded-full" />
<Skeleton className="bg-muted h-9 w-9 rounded-full" />
<div className="flex-1 space-y-2">
<Skeleton className="h-3 w-20" />
<Skeleton className="h-2 w-32" />
<Skeleton className="bg-muted h-3 w-20" />
<Skeleton className="bg-muted h-2 w-32" />
</div>
</div>
</div>
@@ -33,13 +33,13 @@ export function DashboardLayoutSkeleton() {
{/* Main content skeleton */}
<div className="flex-1 p-4 space-y-4">
{/* Content blocks */}
<Skeleton className="h-12 w-48 rounded-lg" />
<Skeleton className="bg-muted h-12 w-48 rounded-lg" />
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-3">
<Skeleton className="h-32 rounded-xl" />
<Skeleton className="h-32 rounded-xl" />
<Skeleton className="h-32 rounded-xl" />
<Skeleton className="bg-muted h-32 rounded-xl" />
<Skeleton className="bg-muted h-32 rounded-xl" />
<Skeleton className="bg-muted h-32 rounded-xl" />
</div>
<Skeleton className="h-64 rounded-xl" />
<Skeleton className="bg-muted h-64 rounded-xl" />
</div>
</div>
);