From 6ac3cb1b8de9202ef505c874c62a4b4f7f998f0c Mon Sep 17 00:00:00 2001 From: Daniil Sitdikov Date: Sun, 15 Nov 2026 10:07:28 +0000 Subject: [PATCH 1/4] Show loading with the Steps spinner of loading.dev --- packages/design-system/components/command.tsx | 10 ++++-- packages/design-system/components/index.ts | 1 + .../design-system/components/page-states.tsx | 4 +-- packages/design-system/components/spinner.tsx | 22 ++++++++++++ packages/design-system/styles/index.css | 35 +++++++++++++++++++ .../components/webhook-queue-button.tsx | 7 ++-- 6 files changed, 73 insertions(+), 6 deletions(-) create mode 100644 packages/design-system/components/spinner.tsx diff --git a/packages/design-system/components/command.tsx b/packages/design-system/components/command.tsx index ec15189..bb59270 100644 --- a/packages/design-system/components/command.tsx +++ b/packages/design-system/components/command.tsx @@ -1,6 +1,7 @@ import * as React from 'react'; import { Command as CommandPrimitive } from 'cmdk'; import { cn } from '../utils'; +import { Spinner } from './spinner'; import { Dialog as DialogPrimitive } from 'radix-ui'; interface CommandDialogProps extends React.ComponentProps { @@ -92,13 +93,18 @@ function CommandEmpty({ className, ...props }: CommandEmptyProps) { interface CommandLoadingProps extends React.ComponentProps {} -function CommandLoading({ className, ...props }: CommandLoadingProps) { +function CommandLoading({ className, children, ...props }: CommandLoadingProps) { return ( + > + + + {children} + + ); } diff --git a/packages/design-system/components/index.ts b/packages/design-system/components/index.ts index 4467b1c..288446f 100644 --- a/packages/design-system/components/index.ts +++ b/packages/design-system/components/index.ts @@ -16,3 +16,4 @@ export * from './page-states'; export * from './relative-time'; export * from './separator'; export * from './sliding-pill'; +export * from './spinner'; diff --git a/packages/design-system/components/page-states.tsx b/packages/design-system/components/page-states.tsx index 4cf5760..25169ab 100644 --- a/packages/design-system/components/page-states.tsx +++ b/packages/design-system/components/page-states.tsx @@ -1,5 +1,5 @@ -import { Loader } from 'lucide-react'; import type { ReactNode } from 'react'; +import { Spinner } from './spinner'; export function LoadingState() { return ( @@ -7,7 +7,7 @@ export function LoadingState() { role="status" className="flex animate-in items-center justify-center gap-2 py-10 text-body text-fg-muted delay-150 duration-300 fill-mode-backwards fade-in" > -