Animaldex - Admin {#if !data.admin}

Admin login

e.key === 'Enter' && login()} class="mb-3 w-full rounded-lg border border-gray-200 px-3 py-2 text-sm outline-none focus:border-orange-400" /> {#if loginError}

{loginError}

{/if}
{:else}
←

Animaldex admin

{queue.filter((r) => !r.acceptedAt && !r.deniedAt).length} pending
{#if queue.length === 0}
No submissions yet
{/if} {#each queue as item (item.animalId)} {@const status = item.acceptedAt ? 'accepted' : item.deniedAt ? 'denied' : 'pending'}
{#if item.photoUrl} {:else}
🐾
{/if}

{item.animalName ?? item.species}

{item.species}{item.breed ? ` Β· ${item.breed}` : ''}

{status}
{#if item.aiBreedSuggestion}

πŸ€– AI: {item.aiBreedSuggestion} ({Math.round( (item.aiBreedConfidence ?? 0) * 100 )}%)

{/if}

{new Date(item.submittedAt).toLocaleDateString('nl-NL', { day: 'numeric', month: 'short', year: 'numeric', hour: '2-digit', minute: '2-digit' })} {#if item.reporterName}Β· by {item.reporterName}{/if}

πŸ“ {item.sightingLat.toFixed(5)}, {item.sightingLng.toFixed(5)}

{/each}
{/if}