@@ -22,11 +22,42 @@ import {
2222} from "@/app/lib/types/onboarding" ;
2323import { apiFetch } from "@/app/lib/apiClient" ;
2424import { colors } from "@/app/lib/colors" ;
25- import { ArrowLeftIcon , RefreshIcon } from "@/app/components/icons" ;
25+ import { ArrowLeftIcon } from "@/app/components/icons" ;
2626import { DEFAULT_PAGE_LIMIT } from "@/app/lib/constants" ;
2727
2828type View = "loading" | "list" | "projects" | "form" | "success" ;
2929
30+ function OrganizationListSkeleton ( ) {
31+ return (
32+ < div className = "animate-pulse" >
33+ < div className = "flex items-center justify-between mb-6" >
34+ < div >
35+ < div className = "h-5 w-36 bg-neutral-200 rounded mb-2" />
36+ < div className = "h-3 w-24 bg-neutral-100 rounded" />
37+ </ div >
38+ < div className = "h-9 w-40 bg-neutral-200 rounded-lg" />
39+ </ div >
40+ < div className = "space-y-2" >
41+ { [ 1 , 2 , 3 ] . map ( ( i ) => (
42+ < div
43+ key = { i }
44+ className = "flex items-center justify-between p-4 rounded-lg border border-border bg-white"
45+ >
46+ < div >
47+ < div className = "h-4 w-40 bg-neutral-200 rounded mb-2" />
48+ < div className = "h-3 w-28 bg-neutral-100 rounded" />
49+ </ div >
50+ < div className = "flex items-center gap-2" >
51+ < div className = "h-5 w-14 bg-neutral-100 rounded" />
52+ < div className = "h-4 w-4 bg-neutral-100 rounded" />
53+ </ div >
54+ </ div >
55+ ) ) }
56+ </ div >
57+ </ div >
58+ ) ;
59+ }
60+
3061export default function OnboardingPage ( ) {
3162 const router = useRouter ( ) ;
3263 const { sidebarCollapsed } = useApp ( ) ;
@@ -133,11 +164,7 @@ export default function OnboardingPage() {
133164
134165 < div className = "flex-1 overflow-y-auto" >
135166 < div className = "max-w-2xl py-5 px-8" >
136- { view === "loading" && (
137- < div className = "flex items-center justify-center py-20 text-text-secondary" >
138- < RefreshIcon className = "w-6 h-6 animate-spin" />
139- </ div >
140- ) }
167+ { view === "loading" && < OrganizationListSkeleton /> }
141168
142169 { view === "list" && (
143170 < OrganizationList
0 commit comments