diff --git a/src/client/src/routes/admin/+page.svelte b/src/client/src/routes/admin/+page.svelte index 6ca60c5..f8df5d4 100644 --- a/src/client/src/routes/admin/+page.svelte +++ b/src/client/src/routes/admin/+page.svelte @@ -1,11 +1,17 @@
@@ -52,6 +109,9 @@

Stores

+ @@ -68,6 +128,24 @@
{/if} + + {#if showTestPrompt} +
+

Enter a search term to test all enabled stores:

+
{ e.preventDefault(); runTestAll(); }} class="flex gap-2"> + + + +
+
+ {/if} +
{#if loading} @@ -92,11 +170,15 @@ URL Category Status + {#if testResults.size > 0} + Test Result + {/if} Actions {#each stores as store} + {@const test = getTestResult(store.id)} {store.name} @@ -123,6 +205,35 @@ {store.enabled ? 'Active' : 'Disabled'} + {#if testResults.size > 0} + + {#if !test || test.status === 'pending'} + + {:else if test.status === 'testing'} + + + + + + Testing... + + {:else if test.status === 'success'} + + + + + {test.resultCount} products · {test.duration}ms + + {:else} + + + + + Failed + + {/if} + + {/if}