Commit Graph
6704 Commits
Author SHA1 Message Date
Krishan 0cbfbab5ad chore: add semantic commits to renovate configuration (#2760)
* Add semantic commits to Renovate configuration

* Fix formatting issue in renovate.json
2026-03-10 14:57:20 +11:00
Shea Duma f79d124fd2 updated styling to better fit with the message aspect 2026-03-10 05:56:21 +02:00
Evie Gauthier 08abe08e7a Merge pull request #108 from Just-Insane/feat/presence-toggle
feat(presence): presence status setting
2026-03-09 23:30:20 -04:00
Evie Gauthier 5b1521d3bf Merge branch 'dev' into feat/presence-toggle 2026-03-09 23:28:25 -04:00
Evie Gauthier e66e333c50 chore: add changeset for feat/presence-toggle 2026-03-09 23:28:07 -04:00
Evie Gauthier 93728221bb fix(presence): make sendPresence toggle work for classic sync too 2026-03-09 23:26:52 -04:00
Evie Gauthier d1e002ac6d feat(sliding-sync): tie presence extension into sendPresence setting 2026-03-09 23:26:52 -04:00
Evie Gauthier 2df0e425e5 Merge pull request #101 from Just-Insane/feat/sliding-sync
feat(sliding-sync): rewrite MSC4186 sliding sync to match Element Web approach
2026-03-09 23:25:40 -04:00
Evie Gauthier 26a1b96b53 Merge branch 'dev' into feat/sliding-sync 2026-03-09 23:24:20 -04:00
7w1 eb54e6e62a Merge pull request #118 from SableClient/changesets
update changesets
2026-03-09 22:22:42 -05:00
Evie Gauthier 6271bb79ee fix(lint): fix ESLint errors in ExtensionPresence and add changeset 2026-03-09 23:22:41 -04:00
Evie Gauthier 8f8502a536 feat(sliding-sync): register ExtensionPresence for live presence updates
Register a custom MSC4186 presence extension with the SlidingSync object so
that m.presence events delivered via extensions.presence.events are processed
into the SDK's User model on every poll.

Without this, the SlidingSync object only auto-registers ExtensionToDevice and
ExtensionAccountData (via SlidingSyncSdk), so presence payloads from the server
were silently discarded. Components using useUserPresence (Profile, MembersDrawer,
UserRoomProfile, UserHero, Presence) would always show stale/default presence.

The extension follows the same path as regular /sync: map raw events through
client.getEventMapper(), call user.setPresenceEvent() to update User state and
emit UserEvent.Presence, UserEvent.CurrentlyActive, UserEvent.LastPresenceTs,
then emit ClientEvent.Event on the client.
2026-03-09 23:22:41 -04:00
Evie Gauthier 1229bc0982 fix(lint): fix import order and suppress intentional await-in-loop 2026-03-09 23:22:41 -04:00
Evie Gauthier 6d00376164 chore: fix formatting (prettier) 2026-03-09 23:22:41 -04:00
Evie Gauthier 4a22e867ee fix(timeline): always reinit on TimelineRefresh to fix sliding sync hang 2026-03-09 23:22:41 -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
7w1 64654716ea update changesets 2026-03-09 22:18:07 -05:00
7w1 10c06eaa0b Merge pull request #116 from SableClient/7w1-patch-1
Change base branch for PR creation from main to dev
2026-03-09 21:55:02 -05:00
7w1 0e6165e717 Change base branch for PR creation from main to dev 2026-03-09 21:53:09 -05:00
Evie Gauthier f2d71e59f3 Merge pull request #99 from Just-Insane/fix/notification-delivery-bugs
fix(notifications): notification delivery and routing fixes
2026-03-09 22:39:06 -04:00
Evie Gauthier 3147fe0f8b Merge pull request #100 from Just-Insane/feat/in-app-bug-report
feat: in-app bug report and feature request modal
2026-03-09 22:38:21 -04:00
7w1 c3ff0addc8 Merge pull request #114 from SableClient/7w1-patch-1
Remove package argument from prepare-release step
2026-03-09 21:31:10 -05:00
7w1 3080dd76d8 Remove package argument from prepare-release step 2026-03-09 21:23:21 -05:00
7w1 dfc70f713c Merge pull request #113 from SableClient/7w1-patch-1
Remove package argument from release command
2026-03-09 21:15:37 -05:00
7w1 44c36ac42d Remove package argument from release command 2026-03-09 21:13:53 -05:00
Evie Gauthier f65549814b chore: fix formatting (prettier) 2026-03-09 21:39:49 -04:00
Evie Gauthier 4895d75535 fix(notifications): always fire OS notification on desktop (Discord-style) 2026-03-09 21:39:49 -04:00
Evie Gauthier 094359a6fb chore: fix changeset formatting (prettier) 2026-03-09 21:39:49 -04:00
Evie Gauthier 35af55e611 fix(notifications): suppress OS notification when app is focused; wrap in try/catch
Two bugs caused in-app notifications to silently vanish on desktop when
the window was focused:

1. window.Notification() was called unconditionally even when the window
   had focus.  In some browsers/environments (certain Chrome versions,
   Electron, macOS DnD mode) calling the Notification constructor throws
   or is silently rejected when the tab is active.  Without a try/catch
   the uncaught exception aborted the entire RoomEvent.Timeline handler
   before setInAppBanner was ever reached — so neither the OS notification
   NOR the in-app banner appeared.  InviteNotifications already used
   try/catch for the same reason; MessageNotifications did not.

2. The OS notification was semantically wrong when focused: the in-app
   banner is the correct alert while the window is active.  Added a
   !document.hasFocus() guard to match the comment's stated intent
   ("alert when minimised or tab not active") and to prevent a duplicate
   OS+in-app banner when another window is simply on top.

Mobile is unaffected: mobileOrTablet() already gates the OS block.
The in-app banner path (visibilityState === 'visible' → setInAppBanner)
is unchanged and continues to fire correctly on both desktop (focused)
and mobile (app visible in browser).
2026-03-09 21:39:49 -04:00
Evie Gauthier 0d4d449d5e fix(notifications): use orphan parent space for deep-link navigation
useNotificationJumper was using roomToParents.get(roomId) — the direct
parent set — which could be a subspace rather than a root-level space.
The router only recognises /space/<root-space-id>/room paths, so linking
via a subspace ID would hit JoinBeforeNavigate instead of opening the room.

Replace with the same logic as useRoomNavigate:
  getOrphanParents() walks the full hierarchy to find root-level spaces,
  guessPerfectParent() picks the best one to route through.
2026-03-09 21:39:49 -04:00
Evie Gauthier 7041c7e62a fix(notifications): revert DM badge highlight — only highlight on actual mentions/replies 2026-03-09 21:39:49 -04:00
Evie Gauthier 98f1535fd8 fix(notifications): treat DMs as loud regardless of mention/push-rule sound tweak
Two bugs caused by sliding sync's limited required_state (only $ME member):

1. DM badge was grey instead of green
   Synapse sends highlight_count=0 for DMs without mention; the badge only
   showed as Success (green) when highlight>0. DMs should always display
   the green badge for any unread. Fix: RoomNavItem treats direct && total>0
   as highlight for the UnreadBadge highlight prop.

2. DM OS notification was silent
   PushProcessor evaluates .m.rule.room_one_to_one by checking
   room_member_count==2, but with only m.room.member/$ME in required_state
   the member count is 1, so the rule fails. Events fall through to
   .m.rule.message (notify, no sound), leaving loudByRule=false and the
   OS notification silent:true. Fix: isLoud = loudByRule || isDM so that
   known DM rooms always produce non-silent notifications when sounds are on.
2026-03-09 21:39:49 -04:00
Evie Gauthier 6eeb0d6a47 chore: add changeset for notification delivery fixes 2026-03-09 21:39:49 -04:00
Evie Gauthier d87d720c7a fix: notification delivery bugs (push sound, OS notifications, in-app audio, media session)
- resolveSilent = () => false — OS/Sygnal handles push sound entirely; the
  in-app sound setting no longer affects push notification sound
- remove notificationSoundEnabled from SW postMessage payload
- move OS notification block before visibilityState guard so desktop
  notifications fire even when the browser window is minimised
- pass isEncryptedRoom:false for in-app banner preview — events are already
  decrypted by the SDK so the actual message body is always shown
- call clearMediaSessionQuickly() after play() to dismiss the iOS lock screen
  media player; only clears playbackState if no real media metadata is set
2026-03-09 21:39:49 -04:00
7w1 43b72a15a4 Merge pull request #112 from SableClient/chore/ci-knope-release-pipeline
chore: knope release pipeline and other ci stuff
2026-03-09 20:31:58 -05:00
hazre dfcac585eb ci: fix default branch name 2026-03-10 02:28:05 +01:00
Krishan 37e0c2aaac chore(deps): continue action if login fails (#2758)
chore(action): continue action if login fails
2026-03-10 12:26:55 +11:00
Krishan 296249de32 chore: enable semantic check on PR title (#2447)
* Enable semantic check on PR title

* Update semantic pull request action version

* Update PR trigger types in workflow configuration

Removed 'reopened' and 'synchronize' types from pull request triggers.
2026-03-10 12:26:25 +11:00
hazre c5c7546563 ci: make preview build comments more pretty 2026-03-10 02:03:04 +01:00
hazre d85a9cc2ec ci: make require changeset workflow smarter 2026-03-10 01:46:55 +01:00
hazre 15e14b9363 style: fix formatting 2026-03-10 01:41:57 +01:00
hazre 9157d04db4 chore: harden npm dependencies to avoid supply chain attacks 2026-03-10 01:40:39 +01:00
hazre 8b874ec2e8 ci: make dependabot handle everything 2026-03-10 01:40:38 +01:00
hazre 0381c0a05b ci: use setup action in docker publish workflow 2026-03-10 01:40:38 +01:00
hazre d9f0e1cd93 ci: fix double quality checks 2026-03-10 01:40:38 +01:00
hazre c201b93608 ci: add direct upload cloudflare previews
This should mitigate using cf build minutes hopefully
2026-03-10 01:40:38 +01:00
hazre 6f8bc35e7b ci(knope): ditch knope bot in favor of our own ci workflows 2026-03-10 01:40:38 +01:00
Evie Gauthier 8524f18a5f fix: update GITHUB_REPO constant to SableClient/Sable 2026-03-09 19:28:05 -04:00
Evie Gauthier 2786964909 chore: fix changeset formatting (prettier) 2026-03-09 19:28:05 -04:00
Evie Gauthier 8e78ddd198 fix: remove stray conflict marker in useCommands.ts 2026-03-09 19:28:05 -04:00