Commit Graph
774 Commits
Author SHA1 Message Date
Evie Gauthier e033e36a1e fix(autocomplete): Enter always selects first item; first item not highlighted
Two related bugs in the mention/room/emoji autocomplete:

1. Enter key always inserted the first suggestion instead of the highlighted one.
   Cause: querySelector('[data-selected]') matched ALL buttons since every button
   has the attribute set to either 'true' or 'false'. The first button in DOM
   order was always returned.
   Fix: use '[data-selected="true"]' to select only the active item.

2. The first item had no visual highlight on initial open (the CSS rule requires
   data-selected='true', but the useLayoutEffect responsible for stamping that
   attribute only re-ran when selectedIndex changed -- not when buttons first
   appeared after async search results loaded).
   Fix: remove the dep array so the effect runs after every render; newly-loaded
   buttons are stamped immediately.
2026-03-17 16:17:32 -04:00
Rose ab138a11b5 Merge pull request #311 from SableClient/fix/better-ux-voice-messages
fix: better ux voice messages
2026-03-17 18:17:18 +00:00
hazre 35e842f768 fix: simplify mobile stuff 2026-03-17 18:54:18 +01:00
hazre 8f5b2e32f8 fix: waveform algorithm 2026-03-17 18:54:18 +01:00
hazre f81fdd38af chore: merge dev into nyxsutsn 2026-03-17 18:54:18 +01:00
7w1 2a42941e4b fix enter & empty messages 2026-03-17 11:44:02 -05:00
Evie Gauthier 9e9218bb00 feat(sentry): switch crash reporting from opt-out to opt-in 2026-03-17 09:03:12 -04:00
7w1 a6b62926cf Merge pull request #325 from SableClient/fix-colors-and-threads
Fix colors and threads and things
2026-03-17 00:03:05 -05:00
7w1 d222dc2892 i didn't test this :p 2026-03-16 23:53:42 -05:00
Jason Beetham 689381f01e Remove pip video setting 2026-03-16 22:47:23 -06:00
7w1 31850dc9dc fix thread fallback 2026-03-16 23:42:57 -05:00
7w1 0f10e19e85 revert my stupidity 2026-03-16 23:34:53 -05:00
7w1 e81d24e0ea fix colors and threads 2026-03-16 23:32:00 -05:00
7w1 141fab7292 swap settings menu order 2026-03-16 22:27:44 -05:00
Evie Gauthier 57eedcbf60 chore: resolve merge conflicts with dev; document telemetry consent banner 2026-03-16 22:27:17 -04:00
7w1 687d6721ce Merge pull request #127 from melogale/dev
Bring in sable-call!
2026-03-17 01:33:17 +00:00
Evie Gauthier 62925c8d7e Merge pull request #310 from SableClient/fix/quick-issues-batch-1
fix: Quick issues batch 1 — UI/UX polish
2026-03-17 01:10:31 +00:00
Evie Gauthier d7ede9532c fix: resolve lint/format errors in autocomplete virtual selection 2026-03-16 20:30:30 -04:00
Evie Gauthier b6db65c33b fix: virtual autocomplete selection — typing preserved, arrow keys navigate 2026-03-16 20:14:46 -04:00
melogale 3e42d3bf70 Merge remote-tracking branch 'upstream/dev' into dev 2026-03-16 19:49:03 -04:00
melogale abf0848aa6 fix delayed events 2026-03-16 19:23:46 -04:00
Evie Gauthier ec5e9812aa fix: quick issues batch 1 (#2 #44 #45 #52 #66 #67 #69 #79 #35 #103 #120 #168) 2026-03-16 17:16:04 -04:00
Rose 5b1245c4ee Merge branch 'dev' into sonarqube/maintainability-2026-03-14 2026-03-16 21:42:24 +01:00
7w1 2e94050719 add toggle to show call button for large rooms 2026-03-16 15:21:58 -05:00
Evie Gauthier bfefbf3c75 Merge pull request #305 from SableClient/fix/call-camera-default
fix(call): respect saved camera/mic preferences when starting call from room header
2026-03-16 19:43:03 +00:00
Evie Gauthier 7257255793 Merge pull request #303 from SableClient/fix/emoji-display-name-color
fix(timeline): prevent emoji color bleed in read receipt display names
2026-03-16 19:40:09 +00:00
Evie Gauthier 135dbe922f Merge pull request #302 from SableClient/fix/thread-empty-space
fix(thread): reduce excessive whitespace between root message and replies
2026-03-16 19:39:37 +00:00
Evie Gauthier 1124ba173e fix(thread): override height:100% from folds Scroll base class to allow content-sized root message 2026-03-16 15:35:41 -04:00
Evie Gauthier b58aa52b46 Merge pull request #304 from SableClient/feat/ctrl-f-search
feat(search): intercept Ctrl+F / Cmd+F to open Sable search
2026-03-16 19:32:10 +00:00
Evie Gauthier 67f0b9b319 Merge pull request #296 from dozro/compat/msc4268
Refactor sendFeedback utility and add ShareE2EEHistory command
2026-03-16 19:26:15 +00:00
Rye 8802476670 added settings toggle 2026-03-16 20:21:53 +01:00
Evie Gauthier 97d28324aa fix(fmt): reformat RoomViewFollowing to satisfy prettier 2026-03-16 15:20:08 -04:00
Evie Gauthier 3a446a1921 fix(call): respect user camera/mic preferences when starting call from room header
RoomCallButton was calling startCall(room) without passing preferences,
which caused Element Call to use its own defaults (camera on) instead of
the user's saved settings. Now reads preferences via useCallPreferences()
and passes them to startCall(), matching the behavior of PrescreenControls.

Fixes #285
2026-03-16 15:02:08 -04:00
Evie Gauthier 012c9a0c34 feat(search): add Ctrl+F / Cmd+F as search hotkey
Overrides browser find-in-page (Ctrl+F) to open Sable's search modal
instead, matching the behavior users expect from chat applications.
The existing Ctrl+K hotkey remains functional.

Fixes #179
2026-03-16 15:00:48 -04:00
Evie Gauthier 68c1ca19fa fix(read-receipts): prevent emoji color bleed in follower names
WebKit (Safari/iOS) has a rendering quirk where colorful emoji inside <b>
tags can contaminate the paint color of adjacent sibling text nodes. This
caused display names following a user with an emoji (e.g. '🔴 Alice') to
render with the emoji's color instead of the expected text color.

Apply -webkit-text-fill-color: inherit on <b> name tags and
-webkit-text-fill-color: currentColor on the following <Text as="span">
elements. This explicitly resets the WebKit fill color chain at each step,
preventing emoji paint properties from cascading into sibling spans.

Fixes #267
2026-03-16 14:57:13 -04:00
Evie Gauthier 3dbfc69505 fix(thread): reduce excessive gap between root message and replies
The thread drawer had padding: S600 0 (24px top+bottom) on both the root
message box and the reply messages box, plus S200 padding on the reply count
label. This stacked up to ~84px of empty space between the root message and
the first reply, especially noticeable in newly created threads.

Fix:
- Root message box: change bottom padding S600→S200 (top kept at S400)
- Reply messages box: remove top padding (reply count label already provides
  visual separation)

Fixes #294
2026-03-16 14:55:37 -04: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
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
hazre 0b9c6879c9 fix: improve ux on voice memos 2026-03-16 15:15:56 +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
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 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 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