Commit Graph
5907 Commits
Author SHA1 Message Date
Erwan Leboucher dfdcf33016 fix(timeline): keep following the bottom when rows grow after rendering 2026-07-26 20:52:51 +02:00
Erwan Leboucher 40b76348d9 feat(desktop): source window focus from the OS instead of DOM focus events 2026-07-26 20:52:51 +02:00
Erwan Leboucher 053cbff5c7 fix(notifications): gate notification sound on window focus, not tab visibility 2026-07-26 20:52:50 +02:00
Erwan Leboucher 29dfe2fa3d fix(timeline): recompute at-bottom on resize so auto-follow keeps working 2026-07-26 20:52:50 +02:00
Erwan Leboucher a5a8aec179 fix(timeline): stop loading a room's whole history on open 2026-07-26 20:52:50 +02:00
7w1 4815ba65e2 Delete CODEOWNERS (#1387)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Fixes #

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-26 18:23:30 +00:00
7w1 21b0a08133 Delete CODEOWNERS 2026-07-26 13:13:53 -05:00
7w1 867acac8ce fix(e2e): give sliding-sync recovery-key reveal its full 180s budget (#1384)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

fix flaky e2e

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code in this PR
does in moderate detail).
2026-07-26 13:00:14 -05:00
7w1 c9652725f7 Add support for displaying gzipped lottie (e.g. tgs) (#1104)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Hi,
This PR adds support for displaying gzipped Lottie files, such as `.tgs`
(Telegram sticker) files.

Demo video:
<img width="640" height="694" alt="demo"
src="https://github.com/user-attachments/assets/0941b014-8031-4a78-85ff-c62c90afb877"
/>


## How it works

Gzipped files begin with a fixed byte sequence (`1f 8b`), which
distinguishes them from standard image formats (PNG, WebP, JPG). The
implementation detects this signature in the file header and
automatically decompresses gzipped content before parsing it as Lottie
JSON. If parsing succeeds, the decompressed animation is passed to the
Lottie player.

To test this feature, download and unzip
[AnimatedSticker.tgs.zip](https://github.com/user-attachments/files/30024283/AnimatedSticker.tgs.zip),
then send it as `m.image` or `m.sticker`.

## What I have tested
- [x] Works as `m.image`, `m.sticker`, and inline emoji on Chrome
- [x] Works as `m.image` and `m.sticker` on Safari
- [x] Functions correctly in sticker and emoji picker on both browsers

## Next steps
- [ ] Fix inline Lottie emoji width on Safari
- [ ] Respect `autoplayStickers` setting when rendering stickers (set
`autoplay={false}` in DotLottieReact)
- [ ] Respect `autoplayEmojis` setting when rendering emojis (set
`autoplay={false}` in DotLottieReact)

---

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [x] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-26 12:59:26 -05:00
7w1 b78906a0a8 fix(mobile): stop swipe handlers swallowing taps in bottom sheets (#1383)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

fix issue with settings

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-26 12:43:39 -05:00
7w1 2a372dfc25 lint 2026-07-26 12:27:43 -05:00
7w1 380ade185b simplify some things 2026-07-26 12:14:39 -05:00
7w1 8a1589c0cf perf: cache lottie info 2026-07-26 11:52:48 -05:00
Erwan Leboucher 137fdc3532 fix(mobile): stop swipe handlers swallowing taps in bottom sheets 2026-07-26 18:52:41 +02:00
Erwan Leboucher c7ad497fa1 fix(e2e): give sliding-sync recovery-key reveal its full 180s budget 2026-07-26 18:39:45 +02:00
7w1 0a2072437a better detection, fallback, decompression limits 2026-07-26 11:21:26 -05:00
7w1 1c85c1b417 cleanup, lazy loading, image viewer 2026-07-26 10:51:19 -05:00
Mohammad-Mohsen d4072d8aa9 Add support for displaying gzipped lottie (e.g. tgs) files 2026-07-26 10:51:19 -05:00
Erwan Leboucher 22784d581a Change cross-cutting hooks to shared modules and fix menu, thread and sheet regressions (#1367)
### Description

Adds a generalized `useMatrixEvent` hook,
`useAsyncAction`/`AsyncButton`, a shared
`RoomMenu`/`useRoomMenuActions`, and splits `utils/room.ts` into
`unread`, `relations`, `hierarchy` and `display` modules with no barrel.
Folds `ThreadDrawer` onto `useTimelineActions` and the shared renderer
context, and moves the call feature into `features/call/`.

Also fixes regressions found while reviewing the stack: right-click
menus not opening or not anchoring at the cursor, long-press opening the
desktop popout instead of the mobile sheet, swipe-to-dismiss shrinking
to the drag handle, bottom sheets losing their sheet styling and
`role="dialog"`, thread reactions double-reacting instead of redacting,
the thread root being unrepliable, and the DM invite prompt never
rendering.

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- TODO: fill this in yourself — the template forbids generating it.
-->
2026-07-26 15:47:04 +00:00
Erwan Leboucher 228494c1f9 refactor: own the Button component with a built-in loading state 2026-07-26 16:51:58 +02:00
Erwan Leboucher dd254457a1 refactor: share cross-cutting hooks and fix the menu, thread and sheet regressions 2026-07-26 16:51:56 +02:00
7w1 207252b522 fix(tauri): harden CSP, scope media CORS, block loopback redirects, allow --no-updater builds (#1378)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Tighten the webview CSP (unsafe-eval → wasm-unsafe-eval, explicit
worker/font/frame-src, object-src none), scope sable-media's CORS grant
to the app's own origins, stop loopback_fetch following redirects
off-loopback, and let self-builders opt out of the updater with
--no-updater.

Fixes #

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-26 09:47:15 -05:00
7w1 22b19bac7b fix(tauri): stop snap overlay leaving Meta held and re-asking for unthumbnailable media (#1377)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->
Stop the Windows snap overlay leaving Meta logically held when the Win+Z
chord fails, and negative-cache 4xx media responses for 10 min so
unthumbnailable federated media isn't re-requested on every remount (5xx
and auth/rate-limit stay retryable).

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-26 09:38:53 -05:00
7w1 eabf035cd5 test(e2e): cover the device verification reset UIA path (#1375)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Fixes #

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-26 09:28:14 -05:00
7w1 11f45e8a84 fix(ios): fall back to native clipboard for empty paste events in composer (#1374)
…

<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
fix pasting on ios

Fixes #1364

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-26 09:25:29 -05:00
7w1 78b8519913 feat: add retry button for homeserver discovery during login (#1380)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Fixes #1287 

Add retry button next to error after failed homeserver discovery
<img width="501" height="309" alt="image"
src="https://github.com/user-attachments/assets/98a7de5c-c648-474e-8ee8-3148a823ee0a"
/>


#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-26 09:24:05 -05:00
lunar-seal 44a4a939cf feat: add retry button for homeserver discovery during login 2026-07-26 16:21:01 +02:00
lunar-seal 15fff0e6c0 feat: add retry button for homeserver discovery during login 2026-07-26 16:12:34 +02:00
Erwan Leboucher 20799e3c16 fix(tauri): stop snap overlay leaving Meta held and re-asking for unthumbnailable media 2026-07-26 16:00:13 +02:00
Erwan Leboucher 3d82cda286 fix(tauri): harden CSP, scope media CORS, block loopback redirects, allow --no-updater builds 2026-07-26 15:47:58 +02:00
Erwan Leboucher d5a4fc96ae test(e2e): cover device verification reset and sliding sync account data 2026-07-26 15:37:42 +02:00
Erwan Leboucher 2cd71b342e fix(ios): fall back to native clipboard for empty paste events in composer 2026-07-26 14:59:49 +02:00
7w1 63b4a686f9 fix(markdown): keep task list markers as text instead of checkbox input (#1354)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
it's not in the docs but well

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-25 23:51:46 -05:00
7w1 2f031b132d Fix some OIDC things (#1365)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Show all methods instead of just oidc when its present, show oidc first,
then sso, then password in the login page hierarchy.

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-25 21:48:27 -05:00
7w1 2b2e9590f9 Change modal and page surfaces to shared responsive components (#1366)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
Extracts ModalOverlay and shares one FormPage/FormModal across
create-room, create-space and bug report. Create, bug report and
navigate become shallow routes, overlay on desktop, full page on mobile
and space settings now reuse room settings. Also restructures the e2e
suite around fixtures and page objects, running against a real build.

Fixes #

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-25 21:47:54 -05:00
7w1 05c75a6fe9 fix: mobile settings menu back button 2026-07-25 21:41:08 -05:00
Erwan Leboucher c793b589cf Remove unused exports and deduplicate editor and menu logic (#1361)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Removes 258 unused exports flagged by fallow. Extracts
buildReplacementContent so the composer and the message editor assemble
edits identically. Migrates the sidebar, space and image-viewer menus
onto useMenuAnchor and adopts the existing getMouseEventCords helper.

Fixes #

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-25 21:22:08 -05:00
Erwan Leboucher 7e5ba5d758 refactor: adopt getMouseEventCords at the hand-rolled literals 2026-07-25 21:05:33 -05:00
Erwan Leboucher 791fe4451b refactor: migrate sidebar, space and image viewer menus to useMenuAnchor 2026-07-25 21:05:33 -05:00
Erwan Leboucher acd41a671d refactor: extract buildReplacementContent for the composer and editor 2026-07-25 21:05:33 -05:00
Erwan Leboucher 90115b5705 refactor: remove unused exports flagged by fallow 2026-07-25 21:05:33 -05:00
Erwan Leboucher f6876a7cd0 refactor: share one settings shell and add an imperative confirm facade 2026-07-25 21:05:32 -05:00
Erwan Leboucher 03c57506f7 refactor: deduplicate the timeline event renderer 2026-07-25 21:05:32 -05:00
Erwan Leboucher a1403751b6 refactor: split commands per domain and move screen-size styling to css 2026-07-25 21:05:32 -05:00
Erwan Leboucher 1a4ccb657f refactor: share one SequenceCardStyle and one thread reply collector 2026-07-25 21:05:32 -05:00
Erwan Leboucher 78c4c36d24 refactor: share one persisted string-set atom and guard import cycles 2026-07-25 21:05:32 -05:00
Erwan Leboucher 9e651eed26 refactor: drop unused overlay props and route avatars through one helper 2026-07-25 21:05:32 -05:00
7w1 b63d90945a fix tests & restore room type linking 2026-07-25 21:05:32 -05:00
Erwan Leboucher ca2669a14f docs: add changeset for the thread rendering and avatar fixes 2026-07-25 21:05:03 -05:00
Erwan Leboucher a3f0d510ba fix: keep favourite gifs live instead of snapshotting them into state 2026-07-25 21:05:03 -05:00