Commit Graph
86 Commits
Author SHA1 Message Date
7w1 3000ea16af clippy 2026-07-22 11:38:34 -05:00
7w1 f947dd5c78 formatting 2026-07-22 11:33:42 -05:00
7w1 d2a3f91701 fix: add temp cache for larger files and deduplicate inflight large files 2026-07-22 11:29:47 -05:00
Erwan Leboucher e6b16c883c fix(media): reduce loading contention 2026-07-22 15:02:49 +02:00
Erwan Leboucher b23625075c fix(tauri): deduplicate concurrent media fetches 2026-07-22 08:17:55 +02:00
hazre e1b0785eb1 fix(tauri): hide window on close to tray
workaround for #1178 until it's fixed upstream.

Signed-off-by: hazre <[email protected]>
2026-07-22 01:27:37 +02:00
Erwan Leboucher 044ca94b9f fix(tauri): correct Linux CEF startup 2026-07-21 22:56:02 +02:00
7w1 2040c1bfb8 perf: make download dialogue blocking
it calls a blocking function, might as well make it all blocking to free up background threads
2026-07-21 12:28:39 -05:00
7w1 502980ce70 perf: file upload performance 2026-07-21 12:18:22 -05:00
7w1 45558f7a90 feat(mobile): add sharing to sable (#1159)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

What it says on the tin.

#### 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-20 22:47:05 +00:00
Erwan Leboucher 7f5aee78e9 feat(mobile): render global modals as full-screen pages
Search, create room, create space, and bug report open as full-screen
pages on mobile via useOpen*Modal hooks checking useScreenSizeContext.
Desktop modal flow unchanged.

Adds full-screen room/space settings with shared section layout and
swipe-back navigation.

Adds tauri-plugin-sharekit (v0.4.0-rc.5) for iOS/Android system share
sheet, with a shareText() util that falls back to Web Share API then
clipboard. Wired into ShareChip, Space menu, SpaceTabs menu.

Syncs Cargo.lock with the new sharekit dependency and relaxes the
edge-to-edge inset contract test to match the wired plugin via
.plugin(tauri_plugin_edge_to_edge::init()) so chaining sharekit onto
the same mobile builder no longer breaks the test.
2026-07-20 16:38:05 -05:00
Erwan Leboucher 5489a6df67 Merge remote-tracking branch 'origin/dev' into conflict-resolve-1159
# Conflicts:
#	src-tauri/gen/android/app/src/main/java/moe/sable/client/MainActivity.kt
#	src/app/generated/tauri/commands.ts
#	src/app/generated/tauri/index.ts
#	src/app/generated/tauri/types.ts
2026-07-20 23:37:47 +02:00
7w1 3c7e1f7eab Merge remote-tracking branch 'origin/dev' into pr/1153 2026-07-20 16:20:10 -05:00
7w1 3f221da359 feat(tauri): cacheable media responses and Range streaming for video/audio (#1157)
<!-- 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)
- [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:

- [ ] 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-20 20:27:19 +00:00
Erwan Leboucher 7e266bc7ce fix(tauri): purge orphaned upload temp files on startup 2026-07-20 21:29:58 +02:00
Erwan Leboucher 213c629c6a fix(mobile): keep composer keyboard sane and use bottom-sheet emoji pickers 2026-07-20 21:29:58 +02:00
Erwan Leboucher 45be0dae13 fix(tauri): stream android media uploads to fix OOM and show progress 2026-07-20 21:29:57 +02:00
Erwan Leboucher 05343c6728 fix(tauri): serve oversized media without persisting past the cache budget
A media file larger than MAX_CACHE_BYTES was written to disk and then
immediately evicted by evict_if_needed (it alone exceeded the budget, so
everything — including itself — got dropped), so it was never servable
from disk on a hit.

ensure_cached now skips the write for bodies larger than the budget and
returns them in-memory for that request; handle_request serves a Range
request off the in-memory buffer via the new serve_range_memory. Cache
hits and all files within the budget are unchanged.
2026-07-20 21:10:52 +02:00
7w1 b059308491 feat: optional tauri auto-updater behind cargo feature (#1149)
Add cargo feature (on by default) so downstream builders can disable the
Tauri auto-updater with --no-default-features --features wry.

- tauri-plugin-updater becomes an optional dependency
- plugin registration gated by #[cfg(all(desktop, feature = updater))]
- updater:default permission moved to its own
capabilities/updater/updater.json
- build.rs selects the capability glob based on the feature, since
tauri-build fails on permissions from missing plugins

<!-- 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)
- [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:

- [ ] 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-20 19:10:06 +00:00
Erwan Leboucher fddce39337 feat(desktop): menu accelerators and global show/hide shortcut 2026-07-20 20:46:39 +02:00
Erwan Leboucher 44bf728aed feat(desktop): macOS/Linux custom titlebar, sync-status pill, context-menu suppression 2026-07-20 20:46:39 +02:00
Erwan Leboucher 5cc5bd7f7e feat(mobile): haptics, iOS keyboard inset, composer scroll, hardware back button 2026-07-20 20:46:38 +02:00
Erwan Leboucher 0ac23e92dd feat: optional tauri auto-updater behind cargo feature
Add  cargo feature (on by default) so downstream builders can
disable the Tauri auto-updater with --no-default-features --features wry.

- tauri-plugin-updater becomes an optional dependency
- plugin registration gated by #[cfg(all(desktop, feature = updater))]
- updater:default permission moved to its own capabilities/updater/updater.json
- build.rs selects the capability glob based on the feature, since
  tauri-build fails on permissions from missing plugins
2026-07-20 18:40:08 +02:00
Erwan Leboucher 36438853d8 perf(cef): add WebRTC and responsiveness flags
All flags proven by production Tauri+CEF or Electron apps:
- autoplay-policy=no-user-gesture-required: OpenHuman, Vesktop (Discord)
- enable-features=SharedArrayBuffer: OpenHuman (WebRTC audio worklets)
- disable-background-timer-throttling: OpenHuman, Vesktop
- disable-renderer-backgrounding: OpenHuman, Vesktop
- disable-backgrounding-occluded-windows: OpenHuman, Vesktop
- disable-features=SpareRendererForSitePerProcess: Steam (RAM)
- disable-features blocklist: OpenHuman (Chrome features embedded apps don't need)
2026-07-20 17:16:41 +02:00
Andrew Attali 14900ab645 feat(mobile): add sharing to sable 2026-07-20 16:30:45 +02:00
Erwan Leboucher 3a607a3217 feat(tauri): cacheable media responses and Range streaming for video/audio 2026-07-20 13:24:33 +02:00
7w1 30ac06ff8f feat(linux): add tray badge support (#1138)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Mentions and direct messages create a red dot on the tray icon on Linux.
I did not create a changeset since tauri is not out of beta yet.

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

- [ ] 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-19 21:45:37 +00:00
7w1 e013269676 Perf/cold start (#1127)
<!-- 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)
- [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:

- [ ] 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-19 21:42:01 +00:00
7w1 f068e5f825 fix(desktop): bundle appindicator for CEF tray and guard when missing (#1139)
<!-- 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

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

- [ ] 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-19 20:39:04 +00:00
7w1 3ea5cef5ca fix(tauri): prevent android media loading stalls and object-url leaks (#1129)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Fix media loading stalling on Android/desktop after paginating through
history: move the native media cache's file I/O off the async runtime,
cap concurrent media fetches, add request timeouts, and revoke leaked
object URLs for encrypted media.

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
- [x] 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-19 20:31:43 +00:00
mortebrume 08eeef2658 feat(linux): add tray badge support 2026-07-19 22:26:09 +02:00
Erwan Leboucher 292c3d00f1 fix(desktop): bundle appindicator for CEF tray and guard when missing 2026-07-19 22:21:07 +02:00
Erwan Leboucher ef10ad4243 feat(tauri): show a themed window at first paint with a show() failsafe 2026-07-19 21:07:25 +02:00
7w1 5b628ef781 ci: fix build workflows 2026-07-19 13:03:32 -05:00
Erwan Leboucher 904d27102d fix(tauri): prevent android media loading stalls and object-url leaks 2026-07-19 19:51:26 +02:00
7w1 d2666a6ac0 tauri: add nightly title and fix lint 2026-07-19 12:26:08 -05:00
Erwan Leboucher 8f0db81a1a build(cef): package Linux CEF via cef-package.sh, skip tauri's bundler 2026-07-19 17:36:20 +02:00
Erwan Leboucher 2f0196b618 chore(tauri): wire CrabNebula devtools alongside tauri-plugin-log 2026-07-19 17:36:20 +02:00
7w1 8822963ec1 ci(rust): add pull request quality checks 2026-07-18 23:17:49 -05:00
7w1 61bcf64f50 fix(tauri): isolate authenticated media caches 2026-07-18 23:12:55 -05:00
Andrew Attali c8064361f5 fix(mobile): bring back the bottom navigation pane and enable swipe left for ios 2026-07-19 01:06:28 +02:00
Erwan Leboucher d13c195d47 fix(tauri): apply desktop review fixes and drop redundant unifiedpush plugin 2026-07-19 01:06:27 +02:00
Andrew Attali 6084f57de5 feat(desktop): improve notification logic and add badges 2026-07-19 01:06:27 +02:00
Erwan Leboucher 47b3ea2512 fix(sync): debounce connection-lost banner instead of ineffective resume retry 2026-07-19 01:06:27 +02:00
Erwan Leboucher efa348d6d9 feat(tauri): native file downloads on desktop and Android with save toast 2026-07-19 01:06:27 +02:00
Erwan Leboucher bce679b6af fix(sync): reconnect immediately on mobile app resume 2026-07-19 01:06:27 +02:00
Erwan Leboucher a040f7390a fix(tauri): add CEF switches for NVIDIA GPU crash and blurry fonts 2026-07-19 01:06:27 +02:00
Erwan Leboucher 3f648236fa feat(tauri): add desktop auto-updater with signed release artifacts 2026-07-19 01:06:27 +02:00
Erwan Leboucher c8ebb82744 feat(tauri): show desktop notifications via the native plugin on Linux and macOS 2026-07-19 01:06:27 +02:00
Erwan Leboucher 61ddf4ed4c feat(tauri): tint navigation bar with the adjacent surface and remove system-bar borders 2026-07-19 01:06:27 +02:00