Commit Graph
177 Commits
Author SHA1 Message Date
7w1 267e6073cb stricter regex 2026-03-19 22:09:41 -05:00
7w1 54f6fbc4d8 Merge pull request #175 from SableClient/timeline-rewrite
Timeline rewrite to fix all bugs ever
2026-03-19 21:57:12 -05:00
7w1 f1b00880c3 Update time.test.ts 2026-03-19 21:19:33 -05:00
7w1 45e20847c4 Update time.ts 2026-03-19 21:17:36 -05:00
7w1 cff49b9e67 fix messages collapsing and deete the slop 2026-03-19 21:00:44 -05:00
Rye c836e90338 Merge remote-tracking branch 'fork-new/dev' into feat/allow-setting-pmp 2026-03-18 14:58:41 +01:00
7w1 b396ccec70 remove the comments >:D and merge the updated roomtimeline to have the new stuff and use the util file and yes 2026-03-18 00:52:10 -05:00
7w1 13bd62a8c8 make better yes 2026-03-18 00:44:21 -05:00
7w1 1ef961e084 begin pulling apart the giant timeline file smh 2026-03-17 23:27:33 -05:00
7w1 74ece9e6ac merge 2026-03-17 23:18:55 -05:00
7w1 c851eb4e11 cache things 2026-03-17 21:23:18 -05:00
Rose e3120287f5 Merge branch 'dev' into feat/allow-setting-pmp 2026-03-17 20:17:48 +01:00
hazre f81fdd38af chore: merge dev into nyxsutsn 2026-03-17 18:54:18 +01:00
Rye 26bc3744bc add pronouns support to PerMessageProfile; update editor and hooks for pronoun management 2026-03-17 16:24:46 +01:00
Didi 1b243b24ac Make Mac OS, macOS in user-agent 2026-03-17 18:26:03 +10:30
Didi 3f51f7a72d Revert Broken Changes 2026-03-17 17:58:28 +10:30
Didi ca3b1602b0 Fix OS name check from 'Mac OS' to 'macOS' 2026-03-17 16:36:35 +10:30
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 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 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
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
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 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 2db0ac0148 extracted sendFeedback utility for user notifications in rooms 2026-03-16 15:40:22 +01:00
hazre 0b9c6879c9 fix: improve ux on voice memos 2026-03-16 15:15:56 +01: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 d5ae28e34a added file description editing 2026-03-15 09:13:48 +02:00
Rye afd5a5d488 fix maintainability issues raised by sonarqube
- Unicode-aware string methods should be used for proper character handling (typescript:S7758)
2026-03-14 18:23:46 +01:00
Rye c7ebd49e10 fix maintainability issues raised by sonarqube
- Use "globalThis" instead of "window", "self", or "global" (typescript:S7764)
- Unicode-aware string methods should be used for proper character handling (typescript:S7758)
2026-03-14 18:22:32 +01:00
Rye b44796ad0c fix maintainability issues raised by sonarqube
- Strings should use "replaceAll()" instead of "replace()" with global regex (typescript:S7781)
- Existence checks should use ".includes()" instead of ".indexOf()" or ".lastIndexOf()" (typescript:S7765)
- Use "globalThis" instead of "window", "self", or "global" (typescript:S7764)
2026-03-14 18:20:55 +01:00
Rye aa6a764732 fix maintainability issues raised by sonarqube
- Unicode-aware string methods should be used for proper character handling (typescript:S7758)
2026-03-14 18:18:57 +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
Evie Gauthier cc22321cf7 feat(threads): add core thread state management and types
- Add roomToOpenThread atom family for tracking active thread per room
- Add roomToThreadBrowser atom family for thread browser visibility
- Add Thread, ThreadEvent, and NotificationCountType exports to matrix-sdk types
- Update toggleReaction to support thread timeline sets
- Foundation for thread feature state management
2026-03-13 23:26:57 -04:00
Evie Gauthier 54ac93c39a chore: fix formatting and linting issues for CI 2026-03-13 22:10:36 -04: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
Evie Gauthier c123cfefb2 fix(debug-logger): Fix TypeScript error with filters.since undefined check 2026-03-13 21:25:34 -04:00
Evie Gauthier 4624617bbf feat: add UI and timeline debug logging
- Add 'ui' and 'timeline' log categories to debugLogger
- Log Room component mount/unmount and drawer state changes
- Log RoomTimeline lifecycle events (mount, unmount, initialization)
- Track timeline pagination (start, complete, errors)
- Monitor live timeline linking state changes
- Log scroll position changes (at bottom, scrolled up)
- Track jump-to-event operations
- Log timeline refresh events
- Add UI and Timeline category filters in DebugLogViewer
- Update description to mention new categories

This provides comprehensive visibility into UI component lifecycle
and timeline visualization state for debugging issues with room
rendering, timeline scrolling, and UI element visibility.
2026-03-13 21:25:34 -04:00
Evie Gauthier bcf5a84220 feat: add internal debug logging system
- Add comprehensive debug logger utility with circular buffer (1000 entries max)
- Add debug log state management with Jotai atoms
- Create DebugLogViewer UI component with real-time updates and filtering
- Integrate debug logger into Developer Tools settings
- Add logging for sync state changes (initMatrix, slidingSync)
- Add logging for authentication (login, logout, session management)
- Add logging for push notifications (permissions, subscriptions)
- Add logging for app lifecycle (visibility changes, backgrounding)
- Add logging for network connectivity (online/offline)
- Add logging for notifications (filtering, routing, mute decisions)
- Add logging for messages (send success/failure, uploads, scheduled)
- Add logging for calls (widget lifecycle, join/hangup, events)
- Support filtering by category and level
- Support exporting logs as JSON (all or filtered)
- Support copying logs to clipboard
2026-03-13 21:25:34 -04:00
7w1 ee5b34c99c Merge pull request #236 from dozro/fix/sticker-add-encrypted-sticker
Improve sticker handling and update documentation on limitations
2026-03-12 22:17:48 -05:00
Rye a96b5954cb docs: adding documentation about the current limitations of quick adding stickers in case of them being encrypted 2026-03-12 22:26:27 +01:00
Evie Gauthier 1d12be5f31 fix: correct isNotificationEvent function usage
- Update BackgroundNotifications.tsx to use single-argument isNotificationEvent
- Update roomToUnread.ts to use single-argument isNotificationEvent
- Auto-format files with prettier
- All TypeScript and ESLint checks passing
2026-03-12 14:53:44 -04:00
Evie Gauthier bd31de7b54 fix: notification handling with null safety and improved logic 2026-03-12 14:25:54 -04:00
Evie Gauthier fa243abbd3 Merge branch 'dev' into feat/notification-improvements 2026-03-11 23:46:34 -04:00
hazre b71320ec17 feat: add dynamic device display name 2026-03-11 22:12:31 +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