Commit Graph
3349 Commits
Author SHA1 Message Date
7w1 8f8d9f8c07 Update call implementation and custom ringtones (#841)
<!-- 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. -->

Attempts to match spec notification/call end/join behaviors a little
better.
Adds an option for custom ringtones and ringbacks.
Adds permissions for calls.
Makes it so when you leave calls they don't instantly end
Makes it so calls are properly declined
Makes it so when a call is declined you don't automatically hang up
Includes updated sablecall
Removes the call controls from the call view and instead injects styles
to modify the widget appearance. For whatever reason font isn't working
quite yet, although it works locally :/
Adds some tests for things.
Fixes #857 
Fixes #855
Fixes #691
Might address #898, #908 (needs testing)

Still todo:
- ~~update changesets again~~
- ~~figure out how to style the call room backgrounds properly~~
- ~~inject twemoji font (or put in sable call?)~~
- ~~add phosphor icons to sable call?~~
- ~~add deafen button to sable call~~
- ~~fix odd ringtone looping behavior~~ hopefully fixed?
- ~~more testing~~ merge now, fix later?
- ~~Some file cleanup of some no longer necessary stuff due to removing
the call ui overlay thing~~
- ~~Fix some scaling related things~~

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

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

Tests were AI generated and AI was used to compare some other call
implementations and ensure spec and standard compliance and to figure
out how to inject the sable theme into all the widget elements.
2026-07-01 22:11:54 -05:00
7w1 ad66511429 remove unnecessary sentry logging 2026-07-01 22:08:30 -05:00
7w1 efeca7ff7a make close ignore rather than decline 2026-07-01 21:59:18 -05:00
7w1 f596104580 Fix gradient theme base issues (#1007)
<!-- 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. -->

Quite some of the fixes are bodges to the fold library since we do not
host a modified folds library

<img width="1920" height="1080" alt="image"
src="https://github.com/user-attachments/assets/1afd248a-b655-4c0d-94a1-8a9cb7a10ea1"
/>

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
- [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. -->
Written w the weariness of dying of a heatstroke at 38C wo an AC :<
2026-07-02 02:37:36 +00:00
7w1 ef722ab259 Potential fix for outdated firefox and some safari browsers not being able to send messages (#1010)
<!-- 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. -->

Swaps a foreach to a for loop and some general hardening in the input
box related things.
No clue if this will work
fixes #1008 and fixes #557 

#### 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-01 21:36:42 -05:00
7w1 cee4b50257 lint 2026-06-30 21:54:49 -05:00
7w1 2d8727c7c9 fix no pip when calling 2026-06-30 20:35:19 -05:00
7w1 3db57f1ba1 changesets and formatting 2026-06-30 19:58:48 -05:00
7w1 a1c6dd550b bump sable call and fix ring bug 2026-06-30 19:49:28 -05:00
7w1 2cf0acc659 fix scaling behaviors 2026-06-30 19:37:43 -05:00
7w1 03c0d08fc9 mute controls 2026-06-30 19:11:16 -05:00
7w1 d79273f9d3 Fix voice room background 2026-06-30 16:41:51 -05:00
7w1 9ddb3bbc37 fix button styles and settings menu 2026-06-30 16:29:11 -05:00
7w1 35461f5107 potentially fix font injection into widget 2026-06-30 16:03:00 -05:00
7w1 f012f4326b refactor ringtones and cleanup call controls 2026-06-30 15:48:13 -05:00
Shea 2fdaec66d6 reversed
Signed-off-by: Shea <[email protected]>
2026-06-30 10:56:56 +03:00
7w1 4d6137b0d2 Swap to stable recent emojis key (#1009)
<!-- 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. -->

Swaps to the stable recent emojis identifier since it was added to spec
in 1.18, and has a bit of migration logic to convert the legacy one to
the stable one if its not present.

#### 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-06-29 14:22:05 -05:00
niki 8fc750447a Remove account switcher tab 2026-06-29 18:44:26 +03:00
niki fc5252fa16 Fix dividers & change color to placeholder 2026-06-29 18:44:26 +03:00
Shea 599b9b9ebd remove automatic status mode
Signed-off-by: Shea <[email protected]>
2026-06-29 18:44:26 +03:00
niki 5b46bd17f3 Redesign the user menu tab 2026-06-29 18:44:26 +03:00
niki 1fd77de4da Add gif picker settings ID to settingsLink 2026-06-29 18:39:05 +03:00
niki d086ffa56a Add a toggle for disabling the gif picker 2026-06-29 18:34:01 +03:00
7w1 2f9be8c82f remove some unnecessary data from account data 2026-06-29 17:50:42 +03:00
7w1 5117d56f28 formatting 2026-06-29 17:50:42 +03:00
7w1 53ef9d69f5 consolidate gif handling, support spoilers, add missing metadata and sable api key 2026-06-29 17:50:42 +03:00
niki 9dd1d0df22 Address lints 2026-06-29 17:50:42 +03:00
niki ab23f571e6 Add gif functionality using klipy 2026-06-29 17:50:42 +03:00
7w1 d9097ccd40 potential fix 2026-06-28 17:15:31 -05:00
7w1 f57f6f81e5 formatting 2026-06-28 16:11:53 -05:00
7w1 e6091e61c8 swap to stable recent emojis + migration logic 2026-06-28 16:07:06 -05:00
Shea 39a56adfb9 fix gradient themes
Signed-off-by: Shea <[email protected]>
2026-06-28 19:10:56 +03:00
7w1 2e5fd525f1 lint 2026-06-28 00:48:57 -05:00
7w1 dbdd83e758 formatting things 2026-06-28 00:40:35 -05:00
7w1 71b984c5e5 styles 2026-06-28 00:03:23 -05:00
7w1 3d0425d74c lint 2026-06-27 23:43:50 -05:00
7w1 2134e19109 add setting for voice room notifs 2026-06-27 23:37:33 -05:00
7w1 3a8d310e75 adjust ringtone settings a little 2026-06-27 23:32:45 -05:00
7w1 2865af25c1 themeing things 2026-06-27 22:45:33 -05:00
7w1 9333416405 consolidate permissions 2026-06-27 22:22:49 -05:00
7w1 eb1e953797 dont ring on call end 2026-06-27 22:18:27 -05:00
7w1 4ff4285581 bump sable call 2026-06-27 21:58:27 -05:00
7w1 11ead89354 resolve lint/typecheck/knip issues 2026-06-27 21:33:20 -05:00
7w1 15a427ab47 Forward state events to Element Call via timeline listener to fix call hang 2026-06-27 20:52:34 -05:00
Shea 38b64b3ef0 Add a context menu for copying and downloading images (#994)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Adds a context menu for copying and downloading images in the
`ImageViewer`. Useful for electron/tauri users.

<img width="1036" height="1086" alt="image"
src="https://github.com/user-attachments/assets/e3b07381-c76c-4bbe-8b5c-e9492bb7d10c"
/>

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

Fueled by the rage of using sable electron.
2026-06-27 14:12:46 +00:00
Shea b5882f11a9 Add copy button (#1001)
<!-- 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. -->

Add button for copying unformatted version of the text
<img width="265" height="436" alt="image"
src="https://github.com/user-attachments/assets/476efe2e-ce6d-44ac-af57-539b0f236fef"
/>

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
- [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. -->
Written half asleep
2026-06-27 14:11:22 +00:00
Shea 1499b5dd6a Fix mentions not sending in non-textual replies (#1004)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
Fixes mentions not sending in non-textual replies, idk what else there
is to say about this

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

Fixes #999

#### 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. -->
Written w the assistance of having forgotten to write this part a few
months ago
2026-06-27 07:16:28 +00:00
7w1 7c931bfa87 Fix add account when using hash router (#993)
<!-- 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 #556 and also fixes the cancel button in the login page having the
exact same behavior as the add account

#### 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-06-27 06:11:50 +00:00
7w1 26cd65c3df Fix call embed button border overlay, reaction menu fonts, and slider UI 2026-06-27 00:19:39 -05:00
7w1 cc49bebdc4 remove call controls and inject stylesheet into sable call 2026-06-26 22:29:23 -05:00