From 93a508a0e68e80518b93625d7099d3090978788a Mon Sep 17 00:00:00 2001 From: Maurice Date: Tue, 20 Oct 2026 02:49:06 +0000 Subject: [PATCH] fix(tours): count a city walk's visits event in the realtime inventory (CW-03) The registry of realtime events gained tours:visits when a city walk's stops could be checked off for every member of the trip, but the test that pins the inventory still counted 76 trip events and 109 in all. It now counts 77 and 110 and says which event the 77th is. --- shared/src/realtime/events.schema.spec.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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[]> }; 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', () => {