Files
sofa/app/(pages)/settings/loading.tsx
T
jakeandClaude Opus 4.6 8487c3d7b1 Convert settings page to server component with server actions
Replace client-side data fetching with server-side queries and server
actions, eliminating 3 API route files. Extract page into granular
client components (account, integrations, server, webhook card) with
optimistic updates. Rename sections: Media Servers → Integrations,
Administration → Server. Add admin badge to account section.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 09:32:18 -05:00

27 lines
720 B
TypeScript

import { Skeleton } from "@/components/ui/skeleton";
export default function SettingsLoading() {
return (
<div className="mx-auto max-w-2xl space-y-8">
{/* Header */}
<div>
<Skeleton className="h-9 w-40" />
<Skeleton className="mt-2 h-4 w-64" />
</div>
{/* Account card */}
<div className="space-y-3">
<Skeleton className="h-4 w-20" />
<Skeleton className="h-28 w-full rounded-xl" />
</div>
{/* Media server cards */}
<div className="space-y-3">
<Skeleton className="h-4 w-28" />
<Skeleton className="h-16 w-full rounded-xl" />
<Skeleton className="h-16 w-full rounded-xl" />
</div>
</div>
);
}