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<string, string> 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.
This commit is contained in:
Maurice
2026-10-08 12:25:56 +02:00
parent 33f004ed04
commit d4673ca4dd
@@ -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<string, string> 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) },
})}
/>