Commit Graph
437 Commits
Author SHA1 Message Date
7w1 1cd3850a26 lint stuff 2026-03-19 22:18:52 -05:00
7w1 abe6b8d53d Merge pull request #401 from sachin-dul/fix/reduce-mention-highlight-opacity
fix: reduce mention highlight background opacity
2026-03-19 19:52:54 +00:00
Evie Gauthier 1e46dd64c6 Merge pull request #309 from dozro/feat/allow-setting-pmp
Implement per-message profile management and sending with a per-message profile
2026-03-19 19:52:06 +00:00
Sachin Manimekalai Balakrishnan 826554a300 fix: reduce mention highlight background opacity to 25% 2026-03-19 15:07:05 -04:00
Sachin Manimekalai Balakrishnan 54b4da77f7 fix: reduce mention highlight background opacity 2026-03-19 12:07:48 -04:00
7w1 39682b9d3f Merge pull request #365 from dozro/fix/reply-nicks
fix stripping nickname from replies and plain mentions and a lot of documentation
2026-03-19 05:06:43 +00:00
Rye aaa802606d added missing questionmark lol 2026-03-18 22:49:55 +01:00
Rye cee2cb6118 added fallback body to be spec compliant 2026-03-18 21:56:31 +01:00
Rye c5eb3020f5 fix stripping nickname from replies and plain mentions 2026-03-18 19:39:25 +01:00
7w1 53a652b47a Merge pull request #347 from SableClient/fix/thread-indicator
fix: hide ThreadIndicator badge inside ThreadDrawer compose box
2026-03-18 18:04:58 +00:00
7w1 9c736203ad Update ImageContent.tsx 2026-03-18 12:56:52 -05:00
Evie Gauthier 3f26cd9515 fix: hide ThreadIndicator badge inside ThreadDrawer compose box
Inside the ThreadDrawer the user is already in thread context, so showing
the "Thread" badge in the reply chip is redundant and visually noisy.

The compose box always sets replyDraft.relation.rel_type = RelationType.Thread
when threadRootId is set (so the message goes to the right thread), but that
should not make the ThreadIndicator visible there.

Add !threadRootId guard to the ThreadIndicator render condition.

Adds 4 unit tests covering the four branches of the condition.
2026-03-17 17:56:24 -04:00
Evie Gauthier 0fb883bfaa test(autocomplete): add tests for data-selected stamping and keyboard navigation
Covers the two bugs fixed in the previous commit:

- Verifies the first button gets data-selected="true" on initial render so the
  CSS highlight rule fires immediately (regression for the dep-array fix).
- Verifies the first button is also stamped when async search results load new
  buttons after the initial render (the original regression).
- Verifies keyboard navigation via the AUTOCOMPLETE_NAVIGATE_EVENT moves the
  selected index and that it clamps at the list boundaries.

Also adds an eslint-disable comment in AutocompleteMenu.tsx explaining why
the no-dep-array useLayoutEffect is intentional (setSelectedIndex is a stable
React setter; the conditional call cannot cause an infinite loop).
2026-03-17 16:38:39 -04:00
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 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
hazre 4ed7f65399 fix: prevent first waveform bar from being lit when audio not playing 2026-03-17 18:54:17 +01:00
7w1 9fa328dd12 Merge pull request #338 from SableClient/fix-image-render
Fix images not rendering when dimensions aren't present
2026-03-17 12:45:55 -05:00
7w1 2a1e4105ac fix images not rendering 2026-03-17 12:41:43 -05:00
7w1 1a9f41805a Update MsgTypeRenderers.tsx 2026-03-17 12:09:28 -05:00
7w1 2a42941e4b fix enter & empty messages 2026-03-17 11:44:02 -05:00
Evie Gauthier f624c8d36b feat(sentry): make consent banner non-dismissable 2026-03-17 09:34:28 -04:00
Evie Gauthier 9e9218bb00 feat(sentry): switch crash reporting from opt-out to opt-in 2026-03-17 09:03:12 -04:00
7w1 add946378a fix replies new lines 2026-03-16 23:57:45 -05:00
Evie Gauthier f226a422e8 Merge pull request #280 from SableClient/feat/sentry-pr
feat(sentry): error tracking, performance monitoring, and session replay
2026-03-17 03:04:48 +00:00
Evie Gauthier 2ee72702e6 Merge pull request #314 from SableClient/fix/matrix-to-custom-base
fix: support custom matrix.to base URL via config
2026-03-17 03:04:28 +00:00
Evie Gauthier 4714518514 test(sentry): unit tests for scrubbers and TelemetryConsentBanner
- Extract scrubMatrixIds/scrubDataObject/scrubMatrixUrl from instrument.ts
  into src/app/utils/sentryScrubbers.ts so they can be tested independently
- Add 43 unit tests covering token redaction, Matrix entity ID scrubbing,
  URL path scrubbing (API + app routes + percent-encoded deep-links),
  and scrubDataObject recursive traversal
- Add 12 RTL integration tests for TelemetryConsentBanner: visibility
  gating (no DSN, pre-existing pref), Got it, dismiss, and Opt out flows
2026-03-16 22:44:37 -04:00
Evie Gauthier 57eedcbf60 chore: resolve merge conflicts with dev; document telemetry consent banner 2026-03-16 22:27:17 -04:00
Evie Gauthier f65f12687a test(matrix-to): add RTL integration tests for config→matrix-to wiring 2026-03-16 22:19:23 -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 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 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 097e12d3a4 fix: correct remaining VIDEO_VOLUME_KEY reference and add useEffect import 2026-03-16 21:03:30 -04:00
Evie Gauthier 1a4af27d49 fix: persist volume for audio+video; split changesets; revert matrix.to (#120) 2026-03-16 20:51:22 -04: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
Evie Gauthier c7063690f0 fix: focus first autocomplete item on menu open 2026-03-16 19:52:20 -04:00
melogale 3e42d3bf70 Merge remote-tracking branch 'upstream/dev' into dev 2026-03-16 19:49:03 -04:00
Evie Gauthier e252a1242b fix: highlight first autocomplete item to indicate Enter selection 2026-03-16 17:29:49 -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 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 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 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
hazre bf6d7ce4a6 fix: a lot more polish on voice messages 2026-03-16 15:16:20 +01:00