Commit Graph
53 Commits
Author SHA1 Message Date
7w1 b64cb8b333 fix sync when open room, and clean up sync sizes and data, other stuff i forgot 2026-07-13 23:30:05 -05:00
7w1 5f5e0a8a12 delay presence until first sync 2026-07-13 14:09:11 -05:00
7w1 67cb91546f remove the rest of sliding sync config 2026-07-13 12:25:46 -05:00
7w1 82b1feee3c concurrent crypto and sync store start up 2026-07-13 11:03:42 -05:00
7w1 4e11c125eb move SSS to general, add toggle on login and load, remove config option 2026-07-12 17:02:00 -05:00
7w1 2cfa5a7fab fix recent emojis and sliding sync display 2026-07-09 10:16:58 -05:00
7w1 22b51a7d0b respect sliding sync setting 2026-07-09 00:31:44 -05:00
7w1 210ec9dea6 cleanup and fix c10y sending full sync data every response 2026-07-02 16:44:58 -05:00
7w1 5a726753ca use classic sync for presence 2026-06-26 13:29:11 -05:00
7w1 8b8833cd9f fix thread patch 2026-06-25 16:11:44 -05:00
7w1 752e23eeb7 initial cleanup 2026-06-25 15:56:01 -05:00
7w1 6116c6411e fix sliding sync recursion by avoiding notif fixup reentry 2026-05-05 13:34:45 -05:00
7w1 e4cf72ed77 bypass sdk thread root spam on initial load 2026-05-04 20:03:44 -05:00
7w1 7bbcbb841c fixes to reduce background client syncs + increase poll timeout to 30s
increase the timeout for background clients to 60s, separates them into their own store, and makes sliding sync respect the setting instead of the client setting, and hopefully better management

adds a startup timeout of 45s to the main loading screen to prevent anything from getting stuck behind that which may or may not actually do anything.

so much writing for such little change :(
2026-05-04 18:33:05 -05:00
hazre 840ff239b2 refactor: align matrix event types with sdk primitives 2026-04-21 22:29:46 +02:00
7w1 f2bd03f427 add promise to plugins
and disable always-return because its annoying
2026-04-17 16:36:47 -05:00
7w1 40bb35f34c linting awayy 2026-04-17 16:23:59 -05:00
7w1 144e148154 many lint fixes 2026-04-17 14:09:04 -05:00
7w1 27eaadf9ae typecheck and linting fixes 2026-04-17 00:37:15 -05:00
7w1 b13c9b61d4 formatting 2026-04-16 22:38:18 -05:00
7w1 1717ca872f migrate to oxlint and oxfmt
ran formatter
fixed lint issues, primarily getting rid of "any"s and swapping to .toSorted()
2026-04-16 22:15:13 -05:00
Evie Gauthier b3e434dbc2 feat(threads): thread drawer, thread browser, live reply counts, and unread badges 2026-04-06 12:51:03 -04:00
Evie Gauthier ba99ef428b fix: remove redundant startSpidering call causing N+1 sync requests 2026-03-24 23:32:26 -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 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 79e4e09436 fix(lint): resolve react-hooks/exhaustive-deps, arrow-body-style, and no-plusplus errors 2026-03-13 22:17:13 -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 44029b6a5c fix(debug-logger): Fix PopOut component pattern and state management
- Change debugLoggerEnabledAtom from getter function to direct value atom to properly update UI
- Convert PopOut components from children function to anchor-based pattern
- Add click handlers for category and level filter menus
- Fix TypeScript errors with entry.data unknown type checks
- Filters should now display correctly when clicked
2026-03-13 21:25:34 -04:00
Evie Gauthier c647d561c1 fix build issue 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
Evie Gauthier 62931d88ff feat: improve sliding sync to match Element Web approach
- Sort lists by notification level, recency, then name
- Add include_old_rooms for tombstoned room predecessor state
- Active-room custom subscription (timeline_limit=50) for the viewed room
- SlidingSyncManager.subscribeToRoom / unsubscribeFromRoom
- Export getSlidingSyncManager from initMatrix
- useSlidingSyncActiveRoom hook + SlidingSyncActiveRoomSubscriber component
- No changes to the classic sync path (startClassicSync / buildClient)
2026-03-09 23:20:19 -04:00
Evie Gauthier ef706c96d0 fix hybrid cache logic 2026-03-03 12:59:11 -05:00
Evie Gauthier 92e0c3512e hybrid classic+sliding sync caching, and sticker/emoji fixes 2026-03-03 11:32:03 -05:00
Evie Gauthier d95d31fd04 fix inbox notification/invite isues and add enhancements 2026-03-03 09:07:43 -05:00
Evie Gauthier 5e63931d61 refactor sliding sync startup checks and logic around starting sliding sync vs a classic client. 2026-03-03 07:03:12 -05:00
Evie Gauthier 9a02d21967 enable sliding sync by default 2026-03-02 21:08:31 -05:00
Evie Gauthier e1b7844ff8 Add initial sliding sync support 2026-03-02 19:34:51 -05:00
7w1 08fa7cd67f make eslint happy 2026-03-02 15:10:21 -06:00
hazre bde1505ad4 refactor: normalize parent-relative imports to aliases 2026-03-02 20:00:26 +01:00
hazre 39c9d48443 fix: resolve initMatrix eslint violations 2026-03-02 18:27:29 +01:00
hazre b5e9dcb07e chore(lint): eslint autofix 2026-03-01 13:46:40 +01:00
hazre b8a998cab7 Merge remote-tracking branch 'sable/dev' into chore/cleanup-codebase-1 2026-02-26 19:04:09 +01:00
TastelessVoid d5027236ce Added account switcher with multi-account notifications 2026-02-21 18:32:51 +01:00
hazre 3df0ae96e2 chore: reformat files and align lint script with npm 2026-02-14 18:01:21 +01:00
hazre 71425f8644 refactor: route matrix-sdk imports through $types boundary
Centralize Matrix SDK imports behind a local compatibility module, migrate matrix subpath imports to the boundary, and switch to the $types alias. Upgrade TypeScript to latest so matrix-js-sdk typings resolve correctly before the next cleanup phase.
2026-02-14 17:24:46 +01:00
Ajay Bura 074c555294 Post session info to service worker instead of asking from sw (#2605)
post session info to service worker instead of asking from sw on each request
2026-02-14 17:11:36 +11:00
Ajay Bura 90ca8ca2c5 Remove unused javascript (#2470) 2025-08-29 19:34:52 +10:00
Ajay Bura 91632aa193 Fix space navigation & view space timeline dev-option (#2358)
* fix inaccessible space on alias change

* fix new room in space open in home

* allow opening space timeline

* hide event timeline feature behind dev tool

* add navToActivePath to clear cache function
2025-06-10 14:44:17 +10:00
Ajay Bura 387ce9c462 upgrade to matrix-js-sdk v37.5.0 (#2327)
* upgrade to js-sdk 37

* fix server crypto wasm locally
2025-05-18 10:53:56 +05:30