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.

fix(tours): count a city walk's visits event in the realtime inventory (CW-03)

Maurice93a508a0e68e
diff --git a/shared/src/realtime/events.schema.spec.ts b/shared/src/realtime/events.schema.spec.ts
index 27a8375e5..8c8377b3e 100644
--- a/shared/src/realtime/events.schema.spec.ts
+++ b/shared/src/realtime/events.schema.spec.ts
@@ -149,18 +149,20 @@ const DRIFT_VARIANTS: Partial<Record<TrekWsEventName, Record<string, unknown>[]>
};
describe('@trek/shared realtime event registry', () => {
- it('WSEVT-REG-001: pins the authoritative inventory counts (76 trip + 33 user = 109)', () => {
+ it('WSEVT-REG-001: pins the authoritative inventory counts (77 trip + 33 user = 110)', () => {
// 67th to 69th trip event: the three collab:link:* a shared link emits.
// 70th and 71st: the road trip's vias and tracks, which used to be written silently.
// 74th: docsync:changed, so a sync run that moved documents refreshes the
// panel without every member polling for it.
// 76th: trip:journal:changed, so the trip's Journal tab and Settings follow
// a journal being linked, changed or unlinked.
+ // 77th: tours:visits, so the stops of a city walk checked off on one of its
+ // days show the same for every member of the trip.
// 33rd user event: journey:photos:updated, so the gallery re-sorts once the
// capture times of an import have landed (#1587).
- expect(TREK_WS_TRIP_EVENT_NAMES).toHaveLength(76);
+ expect(TREK_WS_TRIP_EVENT_NAMES).toHaveLength(77);
expect(TREK_WS_USER_EVENT_NAMES).toHaveLength(33);
- expect(TREK_WS_EVENT_NAMES).toHaveLength(109);
+ expect(TREK_WS_EVENT_NAMES).toHaveLength(110);
});
it('WSEVT-REG-002: every name is domain:action shaped and outside the reserved plugin: namespace', () => {