From ffb4318a1f667e273cd59805673b125d2f17699b Mon Sep 17 00:00:00 2001 From: Paul Nothaft Date: Mon, 4 May 2026 20:47:13 +0200 Subject: [PATCH] feat(events): add Photos column to admin events list (#384) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The admin events table didn't surface how many photos each event contained — admins had to click into the event to find out. The backend already computes `photo_count` for every row in the GET /admin/events list response (adminEvents.js:794-796), so this is a frontend-only display change. - Insert a "Photos" column between Date and Status — groups with the "what's in this event" info. - Right-aligned, tabular-nums for clean numeric alignment in the column. - Reuses the existing `events.photos` i18n key already shipped in all 5 locales for the EventDetailsPage tab list ("Fotos" / etc.) — no new translations needed. - Updates the empty-state colSpan from 7 to 8. Closes the column-add half of #384. The bulk-delete request from the same issue lands separately. --- frontend/src/pages/admin/EventsListPage.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/admin/EventsListPage.tsx b/frontend/src/pages/admin/EventsListPage.tsx index a1378cd2..7c8979b5 100644 --- a/frontend/src/pages/admin/EventsListPage.tsx +++ b/frontend/src/pages/admin/EventsListPage.tsx @@ -434,6 +434,9 @@ export const EventsListPage: React.FC = () => { {t('events.date')} + + {t('events.photos', 'Photos')} + {t('events.status')} @@ -448,7 +451,7 @@ export const EventsListPage: React.FC = () => { {events.length === 0 ? ( - + {t('events.noEventsFound')} @@ -493,6 +496,9 @@ export const EventsListPage: React.FC = () => { {event.event_date ? format(parseISO(event.event_date), 'MMM d, yyyy') : 'N/A'} + + {event.photo_count ?? 0} + {status.label}