From 758dc005df69d15c85eaf0f7a293d82390400765 Mon Sep 17 00:00:00 2001 From: Paul Nothaft Date: Tue, 1 Sep 2026 19:03:00 +0200 Subject: [PATCH] fix(events): rename a shadowing local and bound the photo-cap input Two small fixes in one file. The local `mode` at line 323 collided with the info-banner `mode` the i18next TS resolver reads at line 490, so the extractor emitted four keys the code can never request (events.infoBanner.mode_managed / mode_reference and the promoBanner pair) -- the real modes are inherit|custom|off. Renamed to sourceMode; the four phantom keys are dropped from the locale files. Also bounds the Photo Limit input, the twin of the one fixed in e5f6085a: min={0} with no max makes input[type=number] report aria-valuemax="0", and an out-of-range value only failed at INSERT. Set to the events.photo_cap column's real signed-32-bit ceiling. Refs testplan REPORT.md B15 and the aria-valuemax warning. --- .../admin/event-details/EventInformationCard.tsx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/admin/event-details/EventInformationCard.tsx b/frontend/src/pages/admin/event-details/EventInformationCard.tsx index e524da5a..5f2c2b9d 100644 --- a/frontend/src/pages/admin/event-details/EventInformationCard.tsx +++ b/frontend/src/pages/admin/event-details/EventInformationCard.tsx @@ -320,11 +320,16 @@ export const EventInformationCard: React.FC = ({