feat(events): show every photo on the event page without folders
CI / build (push) Has been cancelled

Folders were an implementation detail leaking into the event workflow: every
upload needed a folder first and photos were split across pages. Uploads now
land in a single implicit "Photos" folder and the event page renders one
gallery with the uploader and an edited-only download.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2026-11-21 14:37:57 +00:00
parent ebe0c77f7e
commit fac9b96cca
13 changed files with 416 additions and 459 deletions
+4 -4
View File
@@ -235,8 +235,8 @@ export default async function MediaPage() {
Photos
</h2>
<p className="text-xs text-muted-foreground">
Every photo in the event folders you can open. Download originals
from the event folder.
Every photo in the events you can open. Download originals from
the event page.
</p>
</div>
<span className="text-xs text-muted-foreground">
@@ -264,7 +264,7 @@ export default async function MediaPage() {
return (
<Link
key={photo.id}
href={`/events/${photo.eventId}/folders/${photo.folderId}`}
href={`/events/${photo.eventId}`}
className="group overflow-hidden rounded-md border border-border bg-background transition-colors hover:border-primary/60"
>
<div className="flex aspect-square items-center justify-center bg-muted/40">
@@ -292,7 +292,7 @@ export default async function MediaPage() {
{photo.filename}
</p>
<p className="truncate text-[11px] text-muted-foreground">
{photo.eventTitle} · {photo.folderName}
{photo.eventTitle}
</p>
<p className="text-[10px] text-muted-foreground">
{bytesLabel(photo.sizeBytes)}