Commit Graph
3865 Commits
Author SHA1 Message Date
hazre 647265253c chore: refresh tauri mobile dependencies 2026-03-27 00:06:37 +01:00
hazre 3b63e35f6d refactor(tauri): remove splashscreen plugin integration
Delete the local splashscreen crate and package references.
Remove mobile splashscreen startup handling and permissions.
Add a frontend test covering desktop and mobile startup behavior.
2026-03-25 19:29:07 +01:00
hazre 9c89e18008 chore: merge dev into feat/tauri-integration 2026-03-25 19:10:14 +01:00
hazre 187c5922df chore: merge dev into feat/tauri-integration 2026-03-25 19:09:49 +01:00
7w1 2c7433ec5c fix: unread badge positioning (#484)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

This fixes unread badge positioning by deriving sidebar badge layout
from the same settings-aware mode that decides whether unread badges
render as dots or counts, so toggling badge display no longer leaves the
offset wrong. It also includes the related unread count formatting
cleanup, an Appearance toggle for large-count badge behavior, and
replaces `millify` dependency with a shared `Intl.NumberFormat` compact
formatter.

### Screenshots
<img width="68" height="463" alt="image"
src="https://github.com/user-attachments/assets/89f19c25-f6aa-46c2-8172-9748f43f605d"
/>


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

- [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-03-25 12:56:52 -05:00
7w1 06a523439a Add black theme (#437)
<!-- Please read
https://github.com/ajbura/cinny/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. -->

Adds a black theme (high contrast dark theme)

I used
https://github.com/7w1/sable/pull/51/changes/6f2d63046a57908b7d5d8c21c6eefe3dff160e43
as a reference of how to do this.

#### 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
- [ ] 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
2026-03-25 17:46:16 +00:00
7w1 b6306c8cc9 feat: sync app settings across devices via Matrix account data (#515)
### Description

Adds cross-device settings sync by storing Sable's app settings in a
Matrix account data event (`moe.sable.app.settings`). Change a setting
on one device and it propagates to your other sessions automatically.

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:

- [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
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [x] Fully AI generated (explain what all the generated code does in
moderate detail).

**What the generated code does:**

`settingsSync.ts` — Serialise/deserialise helpers that convert the
settings state to/from the account data wire format. Unknown keys are
preserved so older clients don't silently drop data from newer ones.

`useSettingsSync.ts` — The main sync hook. On mount it reads any
existing account data and merges it into local state. It then listens
for live updates from other devices via `ClientEvent.AccountData`.
Uploads are debounced by 2 seconds and each one embeds a random
`synctoken`; when the server echoes the event back, the hook recognises
its own token and skips re-applying it. Exposes `settingsSyncStatusAtom`
and `settingsSyncLastSyncedAtom` for UI feedback.

`General.tsx` — Adds a "Sync settings across devices" toggle and a JSON
export/import section for manually backing up and restoring settings.

`ClientNonUIFeatures.tsx` — Mounts the sync hook once at the client root
so it stays active for the whole session.

`settings.ts` — Adds `settingsSyncEnabled: boolean` (default `false`) to
the settings atom.

Type files — Registers `moe.sable.app.settings` in the account data type
registry so SDK callbacks are typed correctly.

Tests cover the serialise/deserialise helpers, load-on-mount, merge
behaviour, echo-loop skipping, debounced uploads, and error states.
2026-03-25 17:06:06 +00:00
hazre d8817696d6 docs: clarify resolveUnreadBadgeMode usage 2026-03-25 15:57:34 +01:00
hazre f24cf52378 chore: merge dev into hazre/fix/sidebar-count-badge-positioning 2026-03-25 15:47:50 +01:00
7w1 d3b7751aca Add forwarding error messages (#532)
<!-- 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. -->

Hopefully should help us actually figure out why many people seemingly
can't forward messages.

#### 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-03-25 09:31:06 -05:00
hazre b7f9b851ff refactor: replace millify with Intl compact formatter 2026-03-25 15:26:32 +01:00
hazre 514535ca35 feat: cap unread badges and something extra :) 2026-03-25 15:26:32 +01:00
hazre 9e46cd2547 chore: add changeset for sidebar badge alignment fix 2026-03-25 14:06:16 +01:00
hazre 638e4d06d2 fix: sync sidebar unread badge mode and positioning 2026-03-25 14:06:15 +01:00
Evie Gauthier 540e78cc8b style: remove box-drawing comment decorators, rename _echo field to synctoken 2026-03-24 23:33:56 -04:00
Evie Gauthier 5900df51c0 fix: prevent continuous re-upload loop in settings sync 2026-03-24 23:33:55 -04:00
Evie Gauthier 970ad46fc6 fix: prevent multi-device settings sync echo loop 2026-03-24 23:33:54 -04:00
Evie Gauthier 13096e8f6d Fix formatting in settings sync changeset 2026-03-24 23:33:53 -04:00
Evie Gauthier 7c00453252 fix: format useSettingsSync files and name anonymous wrapper function 2026-03-24 23:33:52 -04:00
Evie Gauthier f4111659ba fix: remove as never casts by registering SableSettings in AccountDataEvents 2026-03-24 23:33:51 -04:00
Evie Gauthier 8faf1e6681 feat: sync app settings across devices via Matrix account data
- Add SableSettings account data event type (moe.sable.app.settings)
- Add settingsSyncEnabled setting (default off, device-local)
- serializeForSync/deserializeFromSync utilities with versioned schema
- Echo-token loop prevention: own uploads don't re-apply on echo
- Debounced (2 s) upload on settings change
- JSON export (browser download) and import (file picker)
- SettingsSyncSection in General settings with sync toggle, status, and export/import buttons
- 39 new tests covering utilities and hook behaviour
2026-03-24 23:33:50 -04:00
7w1 764210dd5a add forwarding errors 2026-03-24 22:29:59 -05:00
7w1 28d8e942ac fix jumbo emojis for messages sent with a per-message-profile (#530)
### Description

added a regex to the rendering of messages to detect jumbo emojis. the
regex used is:

```
^(<img[^>]*data-mx-emoticon[^>]*\/>){1,20}$
```

Fixes https://github.com/SableClient/Sable/issues/458

#### 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
- [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).

no AI was used in the creation of this PR
2026-03-25 03:12:30 +00:00
7w1 ec2dcfbe3e fix: prevent 401 errors on authenticated media after service worker restart (#516)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

The service worker (SW) loses its in-memory session on restart (e.g.
after the browser kills the SW background process). Any authenticated
media request arriving before the SW re-reads session data from cache
was returning a 401.

Two fixes:
1. **Eager pre-load on `activate`**: the SW now reads session data from
the cache during the `activate` event, so it is available immediately
when the first `fetch` event fires.
2. **Graceful fallback in fetch handler**: if session data is still
missing or stale at request time, the request is passed through to the
network without injecting a bad `Authorization` header (previously an
empty/invalid token was injected, causing the 401).

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
- [ ] 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).
- [X] 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. -->

Attempts to resolve issues with the service worker not properly storing
and/or refreshing media auth tokens on load. The changes mainly serve to
ensure that a session is persisted during restarts (and then drop the
persisted session once a live one is available). Also helps with
refreshing tokens (`sw.ts` ln 651-661)
2026-03-25 02:56:58 +00:00
7w1 697d2bd32a Fix encrypted pmp message rendering issues (#526)
<!-- 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. -->

Should fix the last of the bugs with per-message profile rendering in
encrypted rooms.

Ensures that pmp's are always updated on decryption and gets the
timeline to refresh whenever pmps are unencrypted to make sure they get
grouped together properly.

Vibes are telling me this isn't the best way to do this for some reason,
but it does seem to be working and I can't think of any other method
that doesn't involve creating a billion more event listeners in other
files.

#### 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
- [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-03-24 21:57:33 -05:00
Rye 7338be259a fix(Message rederer): jumbo emojis for messages sent with a Per-Message-Profile
added a RegEx to match emoticons, if a message contains 1 to 20 emoticons
2026-03-25 03:34:17 +01:00
7w1 9f22f3c08b trigger the timeline to regroup messages on pmp decryption so latest message is grouped 2026-03-24 19:09:30 -05:00
7w1 2b197aa901 ensure pmp is always updated on event decryption 2026-03-24 18:55:16 -05:00
Rose 3aee3054a5 Fix sending messages with attachments and stickers while using PMP (#525)
### Description

fixes falling back to your non-pmp sender info when sending a sticker or
a attachment

Fixes https://github.com/SableClient/Sable/issues/513

#### 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. -->
No ai was used for this PR
2026-03-24 22:07:47 +00:00
Rose d219615d26 Feat: add quickreply keybindings (#524)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

This adds the keybinds `ctrl+up`/`ctrl+down` to be used to cycle what
message you are replying to. This is inspired by [the vencord plugin
QuickReply](https://vencord.dev/plugins/QuickReply)

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

I couldn't get `pnpm dev ` to run so I used an llm to help me figure
that out so I could test my changes, but no code in this pr has been
touched by an llm
2026-03-24 21:47:57 +00:00
Cassie 944470640c Docs: document quickreply feature 2026-03-24 15:24:36 -06:00
Cassie 8ad6b8b19b Feat: add quickreply keybindings 2026-03-24 15:24:36 -06:00
Rye f6f5e19b75 fix(Per-Message-Profile): sending messages with attachment/stickers with a pmp 2026-03-24 21:33:04 +01:00
Rose 931792acd0 Move language pronoun filter setting to Appearance (#521)
### Description

moved language pronoun filter setting to Appearance (not really much
more to say)

Fixes #520

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

only a ui change, neither a fix nor a new feature

### 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
- [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. -->

no ai was used in the creation of this PR
2026-03-24 18:17:14 +00:00
Rose f8d30069c2 Merge branch 'dev' into refactor/move-language-filter-settings-out-of-experimental 2026-03-24 19:14:27 +01:00
Rye b41c86b49e style(language pronoun filter): move setting from Experimental to Appearance 2026-03-24 19:11:06 +01:00
7w1 4644e2b2a5 fix: update sliding sync known issues link to SableClient/Sable#39 (#519)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

The "Known issues" link in the Experimental Settings page for Sliding
Sync pointed to the old repository (`7w1/sable#146`). This updates it to
the correct issue in the current repository.

#### 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
- [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. -->

AI was used to locate the old link in the codebase. The change itself is
a one-line URL update in `General.tsx` — no logic is involved.
2026-03-24 18:03:59 +00:00
Evie Gauthier 9d9e995364 chore: add changeset for sliding sync link fix 2026-03-24 14:02:05 -04:00
Evie Gauthier 4517d712e1 fix: update sliding sync known issues link to SableClient/Sable#39 2026-03-24 13:36:44 -04:00
Rose 73cc123140 Feat: added location sharing command (#509)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
Following the spec there needs to be a way to send (as there is a "way"
to display already) location messages.

This PR adds 2 commands one could use for that purpose (in preparation
of maybe adding a location sharing button in the future)

/location [Latitude] [Longitude] [Altitude?] ← for sending any arbitrary
location with its coords
/sharemylocation ← for sharing one's current location using the gps
tracker inside all phones nowadays :3

#### 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. -->
I had to set up a proper self host to test this little thing because my
laptop doesnt have a tracker :3 so i had to use my phone
2026-03-24 16:27:10 +00:00
7w1 a418b928aa chore: prepare release 1.12.3 (#508)
> [!IMPORTANT]
> Merging this PR will create a new release.

## Fixes

* Fixed text autocomplete issues
([#487](https://github.com/SableClient/Sable/pull/487) by @nushea)
* Fix crash when url contains malformed/dangling uri components.
([#512](https://github.com/SableClient/Sable/pull/512) by @7w1)
v1.12.3
2026-03-24 15:01:14 +00:00
github-actions[bot] 24bb1d5c6b chore: prepare release 1.12.3 2026-03-24 15:00:46 +00:00
7w1 fec777aed4 Decode urls safely to avoid crashes (#512)
<!-- 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 #510 

#### 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-03-24 10:00:23 -05:00
7w1 6ac65cc1f8 stupid linter 2026-03-24 09:58:09 -05:00
7w1 418fe2cc1a unduplicate code 2026-03-24 09:56:13 -05:00
7w1 80c207fc0d linter 2026-03-24 09:51:08 -05:00
7w1 7a6c74eeee decode urls safely! 2026-03-24 09:45:14 -05:00
Shea Duma 43501f84ad hopefully im not spamming 2026-03-24 16:22:53 +02:00
Shea Duma 9275e5fdf7 act made the word more general 2026-03-24 16:21:08 +02:00
Shea Duma 982f93de04 reformulated the sentences 2026-03-24 16:20:04 +02:00