From d4673ca4dd8ebefaeeaa90504fe9b9a6fedbde84 Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 8 Oct 2026 12:25:56 +0200 Subject: [PATCH] docs(client): say why the dev photos_shared notification sends count as text The panel fires a test photos_shared event with count: '5', which reads like the string counts the plural work removed elsewhere. Notification params are Record from the server through the in-app store, the real sender passes String(added), and resolveTemplate reads a numeric string as the plural count, so the test event matches what production sends. --- client/src/components/Admin/DevNotificationsPanel.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/components/Admin/DevNotificationsPanel.tsx b/client/src/components/Admin/DevNotificationsPanel.tsx index 2fad6c8d4..61d967651 100644 --- a/client/src/components/Admin/DevNotificationsPanel.tsx +++ b/client/src/components/Admin/DevNotificationsPanel.tsx @@ -187,6 +187,8 @@ export default function DevNotificationsPanel(): React.ReactElement { event: 'photos_shared', scope: 'trip', targetId: selectedTripId, + // A string on purpose: notification params are Record end to end, the server + // sends count: String(added), and resolveTemplate reads a numeric string as the plural count. params: { actor: username, trip: tripTitle, count: '5', tripId: String(selectedTripId) }, })} />