feat: show original filename in admin UI (#184)
Surface the existing original_filename from the database in the admin photo grid hover overlay and photo viewer sidebar, so photographers can correlate uploaded images with their Lightroom/disk originals. Only shown when it differs from the system-generated filename. Gallery guests remain unaffected.
This commit is contained in:
@@ -792,6 +792,7 @@ router.get('/:eventId/photos', adminAuth, requirePermission('photos.view'), asyn
|
||||
photos: photos.map(photo => ({
|
||||
id: photo.id,
|
||||
filename: photo.filename,
|
||||
original_filename: photo.original_filename || null,
|
||||
// Use the correct admin photos router base for serving images
|
||||
url: `/admin/photos/${eventId}/photo/${photo.id}`,
|
||||
// Always expose a thumbnail URL; backend will generate on demand if missing
|
||||
|
||||
Reference in New Issue
Block a user