Simplify agents and teams cards (#1199)

Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
Co-authored-by: Bart Simpson <bart@buzz.local>
Co-authored-by: Taylor Ho <taylorkmho@gmail.com>
Co-authored-by: npub1223z34hd7vtwc6qj4s7flsxkj644nlre2nthu7lrrmkumhu3xddsrx9r6w <52a228d6edf316ec6812ac3c9fc0d696ab59fc7954d77e7be31eedcddf91335b@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
klopez4212
2026-06-26 23:24:23 +00:00
committed by GitHub
co-authored by Bart Simpson Taylor Ho npub1223z34hd7vtwc6qj4s7flsxkj644nlre2nthu7lrrmkumhu3xddsrx9r6w
parent e7d43dc225
commit ccf1bfe3a0
14 changed files with 931 additions and 517 deletions
@@ -0,0 +1,44 @@
import { cn } from "@/shared/lib/cn";
import { Skeleton } from "@/shared/ui/skeleton";
type IdentityCardSkeletonProps = {
className?: string;
footerSubtitleWidthClass?: string;
footerTitleWidthClass?: string;
showAction?: boolean;
};
export function IdentityCardSkeleton({
className,
footerSubtitleWidthClass = "w-16",
footerTitleWidthClass = "w-28",
showAction = false,
}: IdentityCardSkeletonProps) {
return (
<div
className={cn(
"relative aspect-[4/5] w-full min-w-0 overflow-hidden rounded-xl border border-border/70 bg-muted/50 shadow-xs",
className,
)}
>
{showAction ? (
<Skeleton className="absolute top-3 right-3 z-30 h-7 w-7 rounded-md bg-background/70" />
) : null}
<SingleAvatarSkeleton />
<div className="absolute right-3 bottom-3 left-3 z-30 flex min-w-0 flex-col gap-1 text-left">
<Skeleton className={cn("h-4 max-w-full", footerTitleWidthClass)} />
<Skeleton className={cn("h-4 max-w-full", footerSubtitleWidthClass)} />
</div>
</div>
);
}
function SingleAvatarSkeleton() {
return (
<div className="absolute inset-x-0 top-0 bottom-12 flex items-center justify-center">
<Skeleton className="h-24 w-24 rounded-full" />
</div>
);
}