The old code used IntersectionObserver anchors to determine whether scroll
arrows should be shown. This caused false positives in two scenarios:
1. When a UrlPreviewCard renders null (fetch error), the empty anchor div
was sometimes not detected as intersecting, leaving a stale arrow visible.
2. When loading (Spinner makes card 400px wide), the IO would mark the front
anchor as not visible, showing the arrow; after load failure the arrow
stayed stuck.
Replace with direct scrollWidth/clientWidth measurement via ResizeObserver
(fires on container and content resize) plus a scroll event listener. Arrows
now only appear when the horizontal scroll area actually has overflowed content.
Fixes#220
- Flip Sentry from opt-out to opt-in: enabled only when sable_sentry_enabled === 'true'
- Add TelemetryConsentBanner: fixed bottom slide-up banner shown once on first login
- 'Enable crash reports' reloads page so Sentry initialises immediately
- 'No thanks' / dismiss X sets sable_sentry_enabled=false, no repeat prompts
- Only shown when VITE_SENTRY_DSN is configured (self-hosters unaffected)
- Update DiagnosticsAndPrivacy toggle: enable path now sets 'true' instead of removeItem
- Update SentrySettings dev panel to match new opt-in read logic
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.
- Tag all Sentry events with PR number via VITE_SENTRY_PR env var
(instrument.ts: setTag('pr', prNumber) on global scope)
- cloudflare-web-preview.yml: inject Sentry DSN, environment=preview,
PR number, and source-map secrets into build env for PR runs
- New workflow sentry-preview-issues.yml: on every PR push, query Sentry
for unresolved issues tagged with the PR number and environment=preview;
create a GitHub issue per unique error (deduplicated by sentry-id marker),
labelled 'sentry-preview' + 'pr-{N}'; maintain a sticky PR comment
with a summary table; reopen closed issues on regression
- Labels allow filtering: -label:sentry-preview hides all automated issues