Commit Graph
6704 Commits
Author SHA1 Message Date
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
Erwan Leboucher 33c30955d5 fix(timeline): keep following the bottom when rows grow after rendering 2026-07-26 17:53:44 +02:00
Erwan Leboucher 740a082e92 feat(desktop): source window focus from the OS instead of DOM focus events 2026-07-26 17:53:44 +02:00
Erwan Leboucher 91b51fa108 fix(notifications): gate notification sound on window focus, not tab visibility 2026-07-26 17:52:59 +02:00
Erwan Leboucher 089823eaef fix(timeline): recompute at-bottom on resize so auto-follow keeps working 2026-07-26 17:52:59 +02:00
Erwan Leboucher 483b273b11 fix(timeline): stop loading a room's whole history on open 2026-07-26 17:52:58 +02: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 2a60778e60 fix(media): revoke decrypted media blob URLs that outlive their component 2026-07-26 16:55:26 +02: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
Erwan Leboucher 38a0f60ed8 refactor: type the klipy search response instead of disabling any 2026-07-25 21:05:03 -05:00
Erwan Leboucher 95a459722d fix: pass cached profile data and guard failed-send actions in threads 2026-07-25 21:05:03 -05:00
Erwan Leboucher 30a2c0921d fix: apply inline image sizing in threads and collapse setting options 2026-07-25 21:05:03 -05:00
Erwan Leboucher b04c15b6d5 fix: apply nicknames to thread mentions and rewrite room avatar urls 2026-07-25 21:05:03 -05:00
7w1 8a0a0d9819 fix: tests 2026-07-25 19:58:00 -05:00
7w1 46b8018af3 lint 2026-07-25 17:10:13 -05:00
Erwan Leboucher aa20a2fd76 refactor: add useMenuAnchor and restore focus trapping in mobile menus 2026-07-26 00:05:45 +02:00