Commit Graph
437 Commits
Author SHA1 Message Date
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
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 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
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
Shea Duma e6589c0a0f reverted unintended changes 2026-03-15 09:23:36 +02:00
Shea Duma d5ae28e34a added file description editing 2026-03-15 09:13:48 +02:00
Shea Duma ec6f772661 improved video loading logic 2026-03-15 06:39:40 +02:00
Shea Duma 70e6660224 improved image loading logic 2026-03-15 05:56:17 +02:00
7w1 b2728598a0 Merge pull request #262 from dozro/fix/sticker-picker-webkit-speed-optimizations
Implement opt-in experimental bandwidth saving for stickers and emojis
2026-03-14 19:17:35 +00:00
Rye c5d194576f fix formatting 2026-03-14 18:45:04 +01:00
Rye 412c5284be fix maintainability issues raised by sonarqube
- Built-in constructors should be called consistently with or without "new" (typescript:S7723)
- Negated conditions should be avoided when an else clause is present (typescript:S7735)
- Strings should use "replaceAll()" instead of "replace()" with global regex (typescript:S7781)
- Use ".some()" instead of ".filter().length" checks or ".find()" for existence testing (typescript:S7754)
- React props should be read-only (typescript:S6759)
- Number static methods and properties should be preferred over global equivalents (typescript:S7773)
- The return value of "useState" should be destructured and named symmetrically (typescript:S6754)
- Optional chaining should be preferred (typescript:S6582)
- Arrays used only for existence checks should be Sets (typescript:S7776)
- Unicode-aware string methods should be used for proper character handling (typescript:S7758)
2026-03-14 18:14:24 +01:00
Rye 7b3ea2b9c0 fix sonarqube maintainability issues
- Number static methods and properties should be preferred over global equivalents (typescript:S7773)
- Function references should not be passed directly to iterator methods (typescript:S7727)
- Strings should use "replaceAll()" instead of "replace()" with global regex (typescript:S7781)
- "RegExp.exec()" should be preferred over "String.match()" (typescript:S6594)
- React props should be read-only (typescript:S6759)
- Prefer `Math.min()` to simplify ternary expressions (typescript:S7766)
- Optional property declarations should not use both '?' and 'undefined' syntax (typescript:S4782)
- Built-in constructors should be called consistently with or without "new" (typescript:S7723)
2026-03-14 17:32:19 +01:00
Rye 9363bee208 replace globalThis with window in useKeyDown for consistency 2026-03-14 17:12:30 +01:00
Rye b5b1766bd6 fix sonarqube maintainability/reliability issues
- typescript:S7773
- typescript:S4158
2026-03-14 17:12:15 +01:00
Rye 7c4decd4e9 fix reliability/maintainability issues raised by sonarqube
fixed issues:
- typescript:S7781
- typescript:S6759
2026-03-14 16:41:44 +01:00
7w1 8e67dbacbe Merge pull request #264 from piko-piko/urlpreview-middleclick
Middle click to open the url preview card thumbnail in a new tab
2026-03-14 15:16:24 +00:00
piko-piko 02aa299558 fixed formatting; fixed linting issues 2026-03-14 14:55:26 +01:00
7w1 28073b57a0 Merge pull request #253 from Vespe-r/small-notifications
Add width limit to notification banners
2026-03-14 12:38:55 +00:00
piko-piko 93c51ce6cc Middle click to open the preview card thumbnail in a new tab 2026-03-14 12:22:31 +01:00
Rye 8e07ab9911 implement bandwidth saving feature for stickers and emojis, but because it will increase server load make it opt-in and experimental 2026-03-14 05:45:44 +01:00
Evie Gauthier e617ce0b1e feat(threads): add supporting features and infrastructure
Editor:
- Fix Slate initialValue per-instance to support multiple editors
- Each editor (main timeline, thread drawer) maintains independent state
- Prevents value conflicts between simultaneous editors

Thread Mockup:
- Add ThreadMockupPage for development and design testing
- Full mockup UI with realistic thread interactions
- Navigation from WelcomePage for easy access
- Routes added for /mockup/threads path

Quality Tooling:
- Add check-quality.sh script for pre-push validation
- Runs type checks, lint, and builds before pushing
- Helps catch issues before CI/CD

CI/CD:
- Update GitHub Actions workflows for quality checks
- Update dependabot and cloudflare preview workflows
- Update docker-publish workflow
- Update require-changeset workflow

Call Preferences:
- Clean up unused imports in CallControls.tsx
- Remove orphaned callPreferences hook code

Changesets:
- Add feat-threads.md for minor version bump
- Remove fix_call_preferences.md (superseded)
2026-03-13 23:30:01 -04:00
7w1 78ebffac2e Merge pull request #257 from dozro/compat/msc2723-msg-forwarding
add MSC2723 forwarding meta data for more compatibility
2026-03-14 03:15:13 +00:00
Evie Gauthier ea22db6d7d Merge pull request #245 from Just-Insane/feat/internal-debug-logging
feat: Add internal debug logging system
2026-03-14 02:24:28 +00:00
Rye bb787c504c added forward meta data for public original messages as defined in MSC2723
see https://github.com/matrix-org/matrix-spec-proposals/pull/2723
2026-03-14 02:59:42 +01:00
Rye 40950a728f strip beepers per message profile on forward
fixes https://github.com/SableClient/Sable/issues/254
2026-03-14 02:48:39 +01:00
Evie Gauthier 83262b3593 feat: enhance debug logging and fix background notifications
Debug logging:
- Add logging to LeaveRoomPrompt, CreateRoom, Space, AccountSwitcherTab
- Add build version to debug log exports
- Add network/sync logging to initMatrix

Background notifications:
- Add explicit listener cleanup before stopping clients
- Add exponential backoff retry for failed background clients (5 attempts)
- Add 30s timeout to waitForSync to prevent indefinite hangs
- Use useMemo for inactive sessions array
- Track cleanup callbacks per client
2026-03-13 21:25:34 -04:00
Vesper d47e0a3efc Add width limit to notification banners 2026-03-13 22:20:50 +00:00
7w1 6cd5704e18 Merge pull request #193 from dozro/sonar-qube/fixes-2026-03-11
[internal] Fix a few maintainability issues raised by SonarQube
2026-03-12 22:28:30 -05:00
7w1 4e4521a863 Merge pull request #231 from Just-Insane/fix/badge-positioning
Fix badge positioning and alignment across sidebar components
2026-03-12 22:00:59 -05:00
7w1 99499ba462 Merge pull request #234 from Just-Insane/fix/ui-bugs
Fix reaction clicks, zoom persistence, and empty message rendering
2026-03-12 22:00:48 -05:00
7w1 d63ea73995 Merge pull request #240 from dozro/enh/exception-page
Add error page for enhanced reporting and user experience
2026-03-12 21:58:58 -05:00
Rye a6ad473313 add error page for improved error reporting and user experience 2026-03-13 00:51:07 +01:00
7w1 91febe0afe fix bubble layout overflow 2026-03-12 16:44:06 -05:00
Evie Gauthier e1c31a2338 fix: badge positioning and alignment across sidebar components 2026-03-12 14:25:32 -04:00
Evie Gauthier 51abbbaf2a fix: reaction clicks, zoom persistence, and empty message rendering 2026-03-12 14:25:08 -04:00
Evie Gauthier fa243abbd3 Merge branch 'dev' into feat/notification-improvements 2026-03-11 23:46:34 -04:00
7w1 011052214e DM Calls (#165)
* Accepting call things & placement in dms

* evil things to make liner happy

* be happy

* make ringtone stfu

* add room call button and make popup not popup when calling yourself

* support msc4075 maybe possibly idk

* happy lint make

* play sound on outgoing call

* resizeable dm call window

* add custom ringtone and fix audio looping forever

* notifications that will total work trust

* make ringtone and modal stuff actually work after someone leaves call

* hide button for rooms with no perms

* changeset

* update formatting things to work with new controls

* update control styling for mobile

* fix voice appearing in normal voice room chats

* fix non-interactable element call elements

* redo prescreen controls for mobile and dms

* only join call rooms automatically
2026-03-11 21:17:51 -05:00
Rye af013d797d fixing sonarqube issues
fixed sonarqube issues:
- typescript:S6759
- typescript:S7781
- typescript:S4822

ignored sonarqube issues:
- typescript:S7735
2026-03-11 23:37:11 +01:00
Rye 6ec4f9911f fix: address metadata leak in message forwarding from private rooms 2026-03-11 23:23:35 +01:00
Evie Gauthier 976d2e8db1 fix: comprehensive notification improvements for sliding sync
- Fix DM notifications using multiple detection signals (m.direct + member count heuristic)
- Fix encrypted event handling with proper event type checking and decryption
- Use fixupNotifications() to reconcile Sliding Sync notification count drift
- Force DM notifications for all messages (excluding mute/mentions-only settings)
- Implement robust stale count detection and correction for accurate badge numbers
- Add timeline walking fallback for computing real counts when SDK counters are stale
- Improve notification type detection for DMs with proper mute checks
- Show in-app banner for background account notifications when app is visible
- Add sound notifications for all accounts (active and background)
- Always force reaction notifications to show for all room types
- Improve background notification routing - build payload first, then route by visibility

Known Issues:
- Background account notifications: System/push notifications do not work when app is hidden
- Mobile keyboard banner positioning: Banner not properly positioned when keyboard is open on iOS
2026-03-11 16:34:06 -04:00
7w1 718367909f Merge branch 'dev' into sable-edit-history 2026-03-11 00:28:36 -05:00
Shea Duma 9562aa879a made delete button conditional on ability to delete 2026-03-11 00:59:40 +02:00
7w1 95092b83c6 Merge pull request #157 from SableClient/fix/scope-underline-links
fix: underline links from being applied everywhere
2026-03-10 14:23:00 -05:00
hazre c51e895a83 fix: underline links from being applied everywhere
Now it's limited to chat, bios and room descriptions.
2026-03-10 19:48:07 +01:00