mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
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:
@@ -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) },
|
||||
})}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user