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 |
|
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 |
|