7320 Commits
Author SHA1 Message Date
Evie Gauthier 0e21656451 fix(url-preview): replace IntersectionObserver with scroll/resize measurement for arrows
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
2026-03-16 14:54:13 -04:00
Evie Gauthier 3b35d791ed Merge branch 'dev' into msc4140-error-handling 2026-03-16 14:46:32 -04:00
Evie Gauthier cf4c3905c8 Merge pull request #297 from SableClient/feat/testing-setup
Add Vitest testing infrastructure
2026-03-16 18:27:56 +00:00
Evie Gauthier 931c13fbfe Merge pull request #286 from dozro/fix/voice-message-mess
Fix audio codec handling and enhance voice recorder functionality
2026-03-16 18:24:16 +00:00
Evie Gauthier 85b0da3847 Merge pull request #282 from nushea/Edit-file-body
feat: edit file description
2026-03-16 18:11:57 +00:00
Evie Gauthier 2abb63f967 chore: resolve merge conflict with dev (HandleDecryptPushEvent + Sentry features) 2026-03-16 13:59:14 -04:00
Rye 1680ab9872 integrate per-message profile fetching in RoomInput component 2026-03-16 18:56:22 +01:00
Evie Gauthier b2696f4f31 test: add tests for regex, mimeTypes, pronouns, useDebounce, useThrottle 2026-03-16 13:46:44 -04:00
Evie Gauthier 02b7f19909 Integrate Sentry for error tracking
Add Sentry integration for error tracking and bug reporting
2026-03-16 13:45:25 -04:00
Rye 2a83578ad7 add per message profile management commands and functionality 2026-03-16 18:44:41 +01:00
Evie Gauthier bfe766ead9 test: add unit and integration tests for utils and hooks 2026-03-16 13:34:02 -04:00
Rye ed689792ee implement per message profile management functions 2026-03-16 17:44:30 +01:00
Evie Gauthier 2ac73d0aa9 feat(testing): add Vitest testing infrastructure with example tests 2026-03-16 11:20:37 -04:00
Rye 210d34030a add changeset for my pr relating the addition of /sharehistory 2026-03-16 16:07:18 +01:00
Rye 2c808046ab refactor: convert shareRoomHistoryWithUser to promise-based handling for improved error management 2026-03-16 15:59:47 +01:00
Rye d2a05f280e feat: update ShareE2EEHistory command description to clarify limitations 2026-03-16 15:48:55 +01:00
Rye c92c8181e8 refactor: streamline sendFeedback utility and add ShareE2EEHistory command 2026-03-16 15:45:39 +01:00
Rye 2db0ac0148 extracted sendFeedback utility for user notifications in rooms 2026-03-16 15:40:22 +01:00
Evie Gauthier d1ead2937a Merge pull request #295 from SableClient/feat/encrypted-push
feat(push): encrypted push notifications via event_id_only and decryption relay
2026-03-16 14:35:25 +00:00
hazre 3c40ad77f3 chore: merge dev into fix/better-ux-voice-messages 2026-03-16 15:19:49 +01:00
hazre 7e76985ebd fix: more polish on voice messages 2026-03-16 15:16:20 +01:00
hazre bf6d7ce4a6 fix: a lot more polish on voice messages 2026-03-16 15:16:20 +01:00
Evie Gauthier 05e1d810a9 feat(push): instrument decryption relay with debugLogger for Sentry forwarding 2026-03-16 10:16:17 -04:00
hazre 0b9c6879c9 fix: improve ux on voice memos 2026-03-16 15:15:56 +01:00
Evie Gauthier fd9a1fa526 fix(push): resolve room/sender names; suppress notification when app is visible 2026-03-16 09:50:42 -04:00
Evie Gauthier a96e0e90b5 fix(push): persist session to Cache Storage so iOS SW restart survives 2026-03-16 09:29:32 -04:00
Rye 166c8f4835 fix file extension mapping 2026-03-16 14:10:56 +01:00
Evie Gauthier 042d441046 chore: add changeset for encrypted push 2026-03-16 09:09:10 -04:00
Evie Gauthier 293ab69a40 fix(push): resolve lint and type errors in encrypted push implementation 2026-03-16 09:08:50 -04:00
Rye 9ecfb84dd1 fixes for iOS (hopefully) 2026-03-16 14:03:05 +01:00
Evie Gauthier 597d00d59b feat(push): encrypted push notifications via event_id_only and decryption relay 2026-03-16 09:01:08 -04:00
melogale 643ace6f60 update sable call 2026-03-16 02:37:21 -04:00
Shea Duma 55d92c6610 making formatter happy 😄 2026-03-16 08:16:45 +02:00
Shea Duma 75c128831f overspecified the width of the texteditor to make sure it doesnt shrink for no reason 2026-03-16 07:38:14 +02:00
melogale b88d77329e changeset 2026-03-16 01:01:41 -04:00
melogale a11179862f 1.1.2 sable call! 2026-03-16 00:57:00 -04:00
Evie Gauthier 31bee68006 feat(sentry): opt-in consent model with first-login banner
- 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
2026-03-16 00:25:39 -04:00
melogale 56d3918db1 fix calls! 2026-03-16 00:15:25 -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
Evie Gauthier 4e539b91ca feat(sentry): comprehensive data scrubbing, settings UI, and privacy policy
Before-send scrubbing in instrument.ts covers:
- Matrix user IDs (@user:server → @[USER_ID])
- Room IDs (!room:server → ![ROOM_ID])
- Event IDs ($event → $[EVENT_ID])
- Percent-encoded sigils (%40, %21, %24, %23)
- Hybrid-encoded forms (decoded sigil + %3A colon)
- Tokens, credentials, and query params (access_token, next_batch, etc.)
- All span data string values (not just http.url)
- Profile URLs, key backup paths, media paths in span data
- preview_url query params and exception values
- 'none' sentinel for unset room tags

Privacy policy added to docs/PRIVACY.md (linked from General settings).
DiagnosticsAndPrivacy component added to General settings with error
reporting and session replay toggles.
TS2367 redundant phase guard removed from useCallSignaling.ts.
2026-03-15 23:40:58 -04:00
Evie Gauthier 36c4e0591b feat: add Sentry→GitHub Issues triage for PR preview builds
- 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
2026-03-15 23:40:58 -04:00
Evie Gauthier 3ce9e54145 feat(sentry): initialize SDK, performance instrumentation, developer settings, and error capture
Adds Sentry error tracking, performance monitoring, and session replay:

- Environment-based sampling: production 10%, preview/dev 100%
- Session replay with full privacy masking (text, media, inputs)
- Hashed MXID as anonymous user ID with homeserver tag
- Error rate limiting (50 events/session) to protect quota

Performance spans and metrics across all critical paths: auth login,
message send, timeline jump-load, per-event decryption, sliding sync
cycles, key backup, store wipe, UTD failures, sync degradation,
background notification clients, media uploads.

Developer settings panel (Settings → General → Diagnostics & Privacy):
error reporting toggle, session replay opt-in, breadcrumb category
controls, debug log export.

Crash page shows Sentry event ID with one-click feedback dialog.
Bug report modal sends structured reports to Sentry feedback API
with optional debug log attachment.

CI: Sentry env vars injected into preview (100% sampling) and
production (10% sampling) builds. Source maps uploaded via
@sentry/vite-plugin.
2026-03-15 23:40:58 -04:00
melogale b06e177449 merge 2026-03-15 22:42:21 -04:00
Shea Duma 5dd2fd72ce unstupidified spoiler pill code 2026-03-16 01:47:51 +02:00
melogale 91a08c4a44 old 2026-03-15 19:40:23 -04:00
Shea Duma 0db649b22f put the titles in the right places 😭 2026-03-16 01:36:38 +02:00
Shea Duma 4a62139026 added titles to the hover option 2026-03-16 01:33:55 +02:00
Evie Gauthier 621f402ede Merge pull request #288 from SableClient/fix/thread-fallback-reply-spec
fix: set m.in_reply_to fallback to latest thread event per spec
2026-03-15 18:58:07 +00:00