diff --git a/src/Exceptionless.Web/ClientApp/src/lib/features/events/components/EventsDrawer.svelte b/src/Exceptionless.Web/ClientApp/src/lib/features/events/components/EventsDrawer.svelte index f54212e49..f0fd08b9e 100644 --- a/src/Exceptionless.Web/ClientApp/src/lib/features/events/components/EventsDrawer.svelte +++ b/src/Exceptionless.Web/ClientApp/src/lib/features/events/components/EventsDrawer.svelte @@ -7,6 +7,7 @@ import DateTime from '$comp/formatters/DateTime.svelte'; import TimeAgo from '$comp/formatters/TimeAgo.svelte'; import { P } from '$comp/typography'; + import { Skeleton } from '$comp/ui/skeleton'; import * as Table from '$comp/ui/table'; import * as Tabs from '$comp/ui/tabs'; import { getEventQuery } from '$features/events/api.svelte'; @@ -112,37 +113,42 @@ }); -{#if eventResponse.isLoading} -

Loading...

-{:else if eventResponse.isSuccess} - + - - - - Occurred On - - () + + + Occurred On + + {#if eventResponse.isSuccess} + () + {:else} + + {/if} + + + Project + {#if projectResponse.isSuccess} + - - {#if projectResponse.data} - - Project - - {projectResponse.data.name} - + {projectResponse.data.name} + {:else if projectResponse.isLoading} + + {/if} - - + + + +{#if eventResponse.isSuccess} {#each tabs as tab (tab)} @@ -171,5 +177,16 @@ {/each} {:else} - + + + + {#each Array.from({ length: 5 })} + + + + + + {/each} + + {/if} diff --git a/src/Exceptionless.Web/ClientApp/src/lib/features/stacks/components/StackCard.svelte b/src/Exceptionless.Web/ClientApp/src/lib/features/stacks/components/StackCard.svelte index 2a981581b..8a86280ec 100644 --- a/src/Exceptionless.Web/ClientApp/src/lib/features/stacks/components/StackCard.svelte +++ b/src/Exceptionless.Web/ClientApp/src/lib/features/stacks/components/StackCard.svelte @@ -9,6 +9,7 @@ import Muted from '$comp/typography/Muted.svelte'; import { Badge } from '$comp/ui/badge'; import * as Card from '$comp/ui/card'; + import { Skeleton } from '$comp/ui/skeleton'; import * as Tooltip from '$comp/ui/tooltip'; import { getProjectCountQuery, getStackCountQuery } from '$features/events/api.svelte'; import { DEFAULT_OFFSET } from '$features/shared/api/api.svelte'; @@ -27,7 +28,7 @@ interface Props { changed: (filter: IFilter) => void; - id: string; + id: string | undefined; } let { changed, id }: Props = $props(); @@ -72,7 +73,7 @@ const lastOccurrence = $derived(max(stackCountResponse?.data?.aggregations, 'max_date')?.value ?? stack?.last_occurrence); -{#if stack} +{#if stackResponse.isSuccess} @@ -165,4 +166,32 @@ +{:else} + + + + +
+ + +
+
+
+ + +
+
+
+ +
+ {#each Array(4)} +
+ + + +
+ {/each} +
+
+
{/if}