5 Commits
Author SHA1 Message Date
Evie Gauthier 9e9218bb00 feat(sentry): switch crash reporting from opt-out to opt-in 2026-03-17 09:03:12 -04:00
Evie Gauthier 0e20d158ba docs(sentry): document telemetry consent banner in privacy docs 2026-03-16 22:30:05 -04:00
Evie Gauthier d13ba920b9 Update Sentry integration links in PRIVACY.md 2026-03-16 00:00:31 -04:00
Evie Gauthier 9d0851856a fix: trigger scroll after stay-at-bottom range expansion from subscription batch
The scroll queued at TimelineReset fires when range.end=0 (SDK fires Reset
before populating the fresh timeline), so the DOM is empty and the scroll
is a no-op. The stay-at-bottom effect then correctly expands the range but
never re-queues a scroll, leaving the user at the wrong position.

Fix: increment scrollToBottomRef.count in the stay-at-bottom effect before
calling setTimeline. The next render sees the new count, the useLayoutEffect
fires, and scroll-to-bottom runs against the now-populated DOM.

Also adds monitoring:
- Sentry breadcrumb (ui.scroll) recording each range expansion + scroll,
  with rangeGap, eventsLength, and wasReset fields for Replay analysis.
- slidingSync onFirstRoomData now records the live-timeline event count at
  subscription activation time as a Sentry metric and breadcrumb, making
  the list-to-subscription page size visible in dashboards.
2026-03-15 23:56:29 -04:00
Evie Gauthier d57ebdd4a3 feat(sentry): detailed timeline and scroll instrumentation, sync batch monitoring, and anomaly detection
RoomTimeline.tsx:
- atBottom transition breadcrumbs (ui.scroll) with rapid-flip detection:
  true→false within 200ms captures warning (IntersectionObserver false-positive)
- Virtual paginator window shift breadcrumbs (ui.timeline)
- scroll-to-bottom trigger breadcrumb; captures warning when fired while
  user is scrolled up without a pending reset
- eventsLength batch monitoring: breadcrumb on every batch with delta,
  batchSize label (single/small/medium/large), rangeGap, atBottom
- Large batch warning (>50 events, liveTimelineLinked=true) for sliding
  sync adaptive load detection

slidingSync.ts / initMatrix.ts:
- sync.sliding breadcrumb in onFirstRoomData with latency + event count
- sable.sync.room_sub_event_count distribution metric

Message interaction metrics (IncomingCallModal, MessageDelete, MessageForward,
MessageReport, RoomTimeline reaction handler):
- sable.call.answered/declined, sable.message.delete/forward/report/reaction.*
2026-03-15 23:40:58 -04:00