Commit Graph
2073 Commits
Author SHA1 Message Date
Evie Gauthier edc1c67ecf test(matrix-to): add unit tests; fix setMatrixToBase reset, http support, room regex 2026-03-16 21:43:51 -04:00
Evie Gauthier 121334b5e1 fix: keep formatted_body links as standard matrix.to for interop
Outgoing links embedded in Matrix events (mention HTML, reply quotes)
must use https://matrix.to so other clients (Element, FluffyChat, etc.)
can parse them as Matrix permalinks. Custom base applies only to UI
navigation links (copy-to-clipboard buttons).
2026-03-16 21:26:18 -04:00
Evie Gauthier 2da742d716 fix: dynamic matrix.to regexes; route mentions through plugin generators (#67)
- matrix-to.ts: replace static hardcoded regexes with a lazily-built
  cached set that matches both https://matrix.to (cross-client compat)
  and the configured custom base URL (if matrixToBaseUrl is set in
  config.json)
- editor/output.ts: Mention block now calls getMatrixToRoom /
  getMatrixToRoomEvent instead of hardcoding the matrix.to base
- room.ts: parseReplyFormattedBody uses getMatrixToRoomEvent /
  getMatrixToRoom for the same reason
2026-03-16 21:17:19 -04:00
Evie Gauthier b584d1867b fix: support matrixToBaseUrl config to override matrix.to base (#67) 2026-03-16 20:51:51 -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
7w1 4badb3785e Merge pull request #307 from SableClient/fix/animated-avatars
Make animated svgs loop
2026-03-16 20:01:42 +00:00
7w1 84ce6d7572 there had to have been a better way to do this 2026-03-16 14:59:36 -05:00
Evie Gauthier 888ab90fe7 Merge pull request #301 from SableClient/fix/url-preview-scroll-arrows
fix(url-preview): show scroll arrows only when content overflows
2026-03-16 19:54:54 +00:00
Evie Gauthier cb7934f50a Merge pull request #306 from SableClient/fix/notification-dot-alignment
fix(sidebar): center notification dot on avatar corner
2026-03-16 19:44:33 +00: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 293dee7b34 fix(lint): use return undefined for consistent-return in useEffect 2026-03-16 15:16:54 -04:00
Evie Gauthier 85aac4ff64 fix(sidebar): center notification dot on avatar corner
The dot badge (8px circle) was positioned at top:-2px, left:-2px
which placed its CENTER 2px inside the avatar corner rather than
on the corner itself. Changed to top:-4px, left:-4px so the dot
is centered exactly on the top-left corner of the avatar, matching
how the count badge (top:-6px for ~12px height) is positioned.

Also updated the folder compound variant dot position from +2px to 0px
for consistency.

Fixes #293
2026-03-16 15:07:37 -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 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 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 b2696f4f31 test: add tests for regex, mimeTypes, pronouns, useDebounce, useThrottle 2026-03-16 13:46:44 -04:00
Evie Gauthier bfe766ead9 test: add unit and integration tests for utils and hooks 2026-03-16 13:34:02 -04:00
Evie Gauthier 2ac73d0aa9 feat(testing): add Vitest testing infrastructure with example tests 2026-03-16 11:20:37 -04: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 05e1d810a9 feat(push): instrument decryption relay with debugLogger for Sentry forwarding 2026-03-16 10:16:17 -04: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 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
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
Shea Duma 5dd2fd72ce unstupidified spoiler pill code 2026-03-16 01:47:51 +02: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
Evie Gauthier f8bb692093 chore: fix import order and add changeset 2026-03-15 14:54:46 -04:00
Evie Gauthier 0f7e6497e4 fix(direct): prevent double-badge on /direct/ icon for rooms in sidebar
The /direct/ icon badge was counting unread for all DMs, including
those already displayed as individual avatar entries in the sidebar
via DirectDMsList. This caused users to see duplicate badges — one
on the avatar entry and one on the /direct/ icon — for the same room.

Extract useSidebarDirectRoomIds hook (shared by DirectDMsList and
DirectTab) that returns the room IDs currently shown as sidebar
avatars. DirectTab now computes its badge only for DMs that overflow
beyond the MAX_SIDEBAR_DMS (3) limit shown in the sidebar.

Closes #235
2026-03-15 14:47:43 -04:00