From 67fe81dc41f71b7073b7999c8abfa37374eb6d5e Mon Sep 17 00:00:00 2001 From: aarbit Date: Mon, 18 May 2026 13:44:23 -0500 Subject: [PATCH] Adds ability to expand photos, and upload both from camera and from gallery --- src/routes/admin/PhotoReview.svelte | 75 +++++++++++++++++++++-- src/routes/hunter/HuntLobby.svelte | 93 +++++++++++++++++++++++------ 2 files changed, 145 insertions(+), 23 deletions(-) diff --git a/src/routes/admin/PhotoReview.svelte b/src/routes/admin/PhotoReview.svelte index 570b2db..a3ec6b3 100644 --- a/src/routes/admin/PhotoReview.svelte +++ b/src/routes/admin/PhotoReview.svelte @@ -1,5 +1,5 @@ + +{#if expandedPhoto} + {@const photo = expandedPhoto} + +{/if} +
@@ -110,7 +173,9 @@
{#each activePhotos as photo}
- +
diff --git a/src/routes/hunter/HuntLobby.svelte b/src/routes/hunter/HuntLobby.svelte index 2c00b81..a5e489d 100644 --- a/src/routes/hunter/HuntLobby.svelte +++ b/src/routes/hunter/HuntLobby.svelte @@ -41,7 +41,9 @@ let itemPhotos = $state([]) let photosLoading = $state(false) let submitting = $state(false) + let expandedPhoto = $state(null) let fileInput = $state() + let cameraInput = $state() let _uploading = false let _errorTimer: ReturnType | null = null @@ -263,6 +265,40 @@ {/if}
+ +{#if expandedPhoto} + +{/if} + {#if selectedItem} @@ -275,28 +311,47 @@
- + + {:else} +
+ + +
+ {/if} + @@ -307,13 +362,15 @@
{#each itemPhotos.filter(p => p.photoStatus !== 'REMOVED') as photo (photo.id)}
- +

{photo.hunterName}

- {#if photo.photoStatus === 'SUBMITTED'} + {#if photo.photoStatus === 'SUBMITTED' || photo.photoStatus === 'REJECTED'} {/if}