From a03e64da1b1d68c38827873e7389b9cf8f615ae9 Mon Sep 17 00:00:00 2001 From: Pallav <90088723+Pallava-Joshi@users.noreply.github.com> Date: Mon, 12 Jan 2026 08:42:46 +0530 Subject: [PATCH] feat: implemented skeleton loader (#23654) * implemented skeleton loader * fix: improve skeleton ui --------- Co-authored-by: Kartik Saini <41051387+kart1ka@users.noreply.github.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../settings/platform/platform-view.tsx | 54 ++++++++++++++++++- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/apps/web/modules/settings/platform/platform-view.tsx b/apps/web/modules/settings/platform/platform-view.tsx index 684b861100..23d82bb919 100644 --- a/apps/web/modules/settings/platform/platform-view.tsx +++ b/apps/web/modules/settings/platform/platform-view.tsx @@ -5,6 +5,7 @@ import { usePathname } from "next/navigation"; import { useState, useEffect, useCallback } from "react"; import { useLocale } from "@calcom/lib/hooks/useLocale"; +import { SkeletonText } from "@calcom/ui/components/skeleton"; import { showToast } from "@calcom/ui/components/toast"; import { useExternalRedirectHandler } from "@lib/hooks/settings/platform/billing/useExternalRedirectHandler"; @@ -21,6 +22,55 @@ import Shell from "~/shell/Shell"; const queryClient = new QueryClient(); +const PlatformSkeletonLoader = () => ( + } + heading={} + subtitle={} + title={undefined} + description={undefined}> +
+
+
+ + +
+
+
+
+
+
+ {[0, 1].map((i) => ( +
+
+
+ + +
+
+ + +
+
+ + + +
+
+
+
+
+
+
+
+ ))} +
+
+ +); + export default function Platform() { const { t } = useLocale(); const [_initialClientId, setInitialClientId] = useState(""); @@ -69,10 +119,10 @@ export default function Platform() { refetchBillingState(); }); - if (isUserLoading || isOAuthClientLoading) return
{t("loading")}
; + if (isUserLoading || isOAuthClientLoading) return ; if (isUserBillingDataLoading && !userBillingData) { - return
{t("loading")}
; + return ; } if (isPlatformUser && !isPaidUser)