diff --git a/src/lib/components/sidebar/JobSkillSelectionSidebar.svelte b/src/lib/components/sidebar/JobSkillSelectionSidebar.svelte index 6394f3e6..567a49df 100644 --- a/src/lib/components/sidebar/JobSkillSelectionSidebar.svelte +++ b/src/lib/components/sidebar/JobSkillSelectionSidebar.svelte @@ -1,15 +1,16 @@ @@ -82,27 +124,43 @@ - - + {#if partiesQuery.isLoading} +
+ +

Loading {tab}...

+
+ {:else if partiesQuery.isError} +
+ +

Failed to load {tab}: {partiesQuery.error?.message || 'Unknown error'}

+ +
+ {:else if isEmpty} +
+

{tab === 'favorites' ? 'No favorite teams yet' : 'No teams found'}

+
+ {:else} +
+ - {#snippet emptySnippet()} -
-

{tab === 'favorites' ? 'No favorite teams yet' : 'No teams found'}

-
- {/snippet} + {#if showSentinel} +
+ {/if} - {#snippet endSnippet()} -
-

You've seen all {tab === 'favorites' ? 'favorites' : 'teams'}!

-
- {/snippet} + {#if partiesQuery.isFetchingNextPage} +
+ + Loading more... +
+ {/if} - {#snippet errorSnippet(error)} -
-

Failed to load {tab}: {error.message || 'Unknown error'}

-
- {/snippet} - + {#if !partiesQuery.hasNextPage && items().length > 0} +
+

You've seen all {tab === 'favorites' ? 'favorites' : 'teams'}!

+
+ {/if} +
+ {/if} diff --git a/src/routes/teams/explore/+page.svelte b/src/routes/teams/explore/+page.svelte index f59bf34a..31cd93fe 100644 --- a/src/routes/teams/explore/+page.svelte +++ b/src/routes/teams/explore/+page.svelte @@ -1,35 +1,54 @@ @@ -39,27 +58,43 @@

Explore Teams

- - + {#if partiesQuery.isLoading} +
+ +

Loading teams...

+
+ {:else if partiesQuery.isError} +
+ +

Failed to load teams: {partiesQuery.error?.message || 'Unknown error'}

+ +
+ {:else if isEmpty} +
+

No teams found

+
+ {:else} +
+ - {#snippet emptySnippet()} -
-

No teams found

-
- {/snippet} + {#if showSentinel} +
+ {/if} - {#snippet endSnippet()} -
-

You've reached the end of all teams!

-
- {/snippet} + {#if partiesQuery.isFetchingNextPage} +
+ + Loading more... +
+ {/if} - {#snippet errorSnippet(error)} -
-

Failed to load teams: {error.message || 'Unknown error'}

-
- {/snippet} - + {#if !partiesQuery.hasNextPage && items.length > 0} +
+

You've reached the end of all teams!

+
+ {/if} +
+ {/if}