-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds skeleton loader to workflows (#4402)
* fix event types skeleton loader * fix margin in event types * fix skeleton loader in bookings * add skeleton loader for workflow list * add skeleton loader for editing page * fix border radius of skeleton loader * fix mobile view workflow list * add mobile view for skeleton list * make multi select full with in mobile view * mobile view for edit skeleton loader Co-authored-by: CarinaWolli <wollencarina@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
1deca81
commit 50f63ef
Showing
11 changed files
with
160 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
packages/features/ee/workflows/components/v2/SkeletonLoaderEdit.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { SkeletonAvatar, SkeletonContainer, SkeletonText } from "@calcom/ui"; | ||
import { Icon } from "@calcom/ui/Icon"; | ||
|
||
function SkeletonLoader() { | ||
return ( | ||
<SkeletonContainer> | ||
<div className="mt-20 ml-2 md:flex"> | ||
<div className="mr-6 md:flex-none"> | ||
<SkeletonText className="h-4 w-28" /> | ||
<SkeletonText className="mt-2 mb-6 h-8 w-full md:w-64" /> | ||
<SkeletonText className="h-4 w-28" /> | ||
<SkeletonText className="mt-2 h-8 w-full md:w-64" /> | ||
<SkeletonText className="mt-8 hidden h-0.5 w-full md:block" /> | ||
<SkeletonText className="mt-8 mb-6 h-8 w-40" /> | ||
</div> | ||
<div className="hidden flex-grow md:flex"> | ||
<SkeletonText className="h-64 w-full" /> | ||
</div> | ||
</div> | ||
</SkeletonContainer> | ||
); | ||
} | ||
|
||
export default SkeletonLoader; |
39 changes: 39 additions & 0 deletions
39
packages/features/ee/workflows/components/v2/SkeletonLoaderList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { Icon } from "@calcom/ui"; | ||
import { SkeletonText } from "@calcom/ui/v2"; | ||
|
||
function SkeletonLoader() { | ||
return ( | ||
<ul className="mt-5 animate-pulse divide-y divide-neutral-200 rounded-md border border-gray-200 bg-white sm:mt-20 sm:overflow-hidden"> | ||
<SkeletonItem /> | ||
<SkeletonItem /> | ||
<SkeletonItem /> | ||
</ul> | ||
); | ||
} | ||
|
||
export default SkeletonLoader; | ||
|
||
function SkeletonItem() { | ||
return ( | ||
<li className="group flex w-full items-center justify-between px-4 py-4 sm:px-6"> | ||
<div className="flex-grow truncate text-sm"> | ||
<div className="flex"> | ||
<div className="flex flex-col space-y-2"> | ||
<SkeletonText className="h-4 w-16 sm:w-24" /> | ||
<div className="flex"> | ||
<Icon.FiBell className="mt-0.5 mr-1.5 inline h-4 w-4 text-gray-200" /> | ||
<SkeletonText className="mr-2 h-4 w-16 sm:w-28" /> | ||
<Icon.FiLink className="mt-0.5 mr-1.5 inline h-4 w-4 text-gray-200" /> | ||
<SkeletonText className="h-4 w-28 sm:w-36" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="mt-0 flex flex-shrink-0 sm:ml-5"> | ||
<div className="flex justify-between space-x-2 rtl:space-x-reverse"> | ||
<SkeletonText className="h-8 w-8 sm:w-16" /> | ||
</div> | ||
</div> | ||
</li> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters