Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

docs(client): say why the dev photos_shared notification sends count as text

Mauriced4673ca4dd8e
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<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) },
})}
/>