Commit Graph
575 Commits
Author SHA1 Message Date
7w1 96226ffdb6 feat(sticker): add a direct link to room/space settings when sticker list is empty (#1016)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

hey! i was helping onboard some friends and sable is really cool. i
wanted to add a bit of an easier way to get into the sticker page, so i
added quick links to them in the room & space bits of text:
<img width="428" height="525" alt="Screenshot_2026-06-30_18-41-32"
src="https://github.com/user-attachments/assets/57bb6273-9681-4d0c-960a-1beb07e62e6d"
/>

there doesn't seem to be an existing style to piggy-back off for the
links, so i put something quick together. happy to change to whatever
works best, the contrast is probably a bit low in the default dark
theme?

#### 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-02 17:01:57 +00:00
7w1 72509ce0ed initial bookmarks implementation (#1000)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Adds support for bookmarks taken from https://github.com/smokku/cinny/
adding event rendering (copied from pin menu, will need to abstract it
somewhere, seems to be duplicated in a lot of code like notifications,
etc).

**May be a good idea to use a virtualiser and fetch events only when
they are visible, as with a lot of bookmarks it will fetch all of them**

THIS IS A CLONE PR OF #985 after i mistyped sth while committing 😭

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

Written with the assistance of brain-4.5-nonthinking
2026-07-02 03:25:36 +00:00
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 a1c6dd550b bump sable call and fix ring bug 2026-06-30 19:49:28 -05:00
7w1 f012f4326b refactor ringtones and cleanup call controls 2026-06-30 15:48:13 -05:00
ellieplayswow 9c93c151cc feat(sticker): add a direct link to room/space settings when sticker list is empty 2026-06-30 18:39:34 +01: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
Shea a8f41d7476 merge
Signed-off-by: Shea <[email protected]>
2026-06-29 19:19:51 +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 e6091e61c8 swap to stable recent emojis + migration logic 2026-06-28 16:07:06 -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 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 8608364bd8 Merge branch 'dev' of https://github.com/SableClient/Sable into refactor-calls
# Conflicts:
#	src/app/components/IncomingCallModal.tsx
#	src/app/features/room/RoomCallButton.tsx
#	src/app/state/settings.defaults.test.ts
2026-06-26 19:28:01 -05:00
Shea bf7ba0a2e6 merge dev and add icon matching
Signed-off-by: Shea <[email protected]>
2026-06-26 09:17:07 +03:00
7w1 0b430d8604 Feat better mobile context menu (#946)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

This PR implements a context menu for mobile, refactors the option
menus, and unifies events and messages to a limited degree, it also
fixes some focus issues

The pr does NOT fix quickmenu being underlayed in the thread root, or
the entirety or focus issues. These issues could be fixed in the future
with the help of this by creating an atom and showing the quickemenu as
a unique item in the RoomView but that would still require a lot of
work, it also does NOT unify the events and messages entirely or reduce
the amount of data that is requested before usage, though it enables it
for future development, nor does it the rightclicking outside of the
MessageInternal/children but still within the message not bringing the
menu

(view of the menu on a random real message)
<img width="1080" height="2307" alt="image"
src="https://github.com/user-attachments/assets/90a85aaa-abde-4b15-a81f-b13dc2fb2a8d"
/>

(maximum size of a mobile menu)
<img width="1080" height="2307" alt="image"
src="https://github.com/user-attachments/assets/a5e98400-aee2-469a-8721-057d04077885"
/>

(this pr does NOT remove the mobile quickmenu so you can still access
the message the old way)
<img width="1080" height="2307" alt="image"
src="https://github.com/user-attachments/assets/f31c2288-7f9c-4b35-b775-8dd9fa216636"
/>

If you wish to select text from a message you have to first bring the
menu and then select it from it

Fixes #

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x] 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. -->
This is being written w the assistance of whatever music is in my ears
while writing it :p
2026-06-23 22:07:55 +00:00
niki 6530f6a463 Merge with upstream 2026-06-23 15:37:59 +03:00
niki b84c35aa4d initial bookmarks implementation 2026-06-23 15:34:22 +03:00
Shea ea0a1c190b allow arbitrary animal identities
Signed-off-by: Shea <[email protected]>
2026-06-23 05:19:40 +03:00
Shea 2cdbb03ba7 Fix showing images of a member sometimes when showing room icons (#978)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Fix showing images of a member sometimes when showing room icons and add
view for showing icons when available and not any other time and change
default to it.

<img width="483" height="249" alt="image"
src="https://github.com/user-attachments/assets/f0c524f3-5070-4300-8352-15686bd9e582"
/>

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

Fixes #963
Fixes #962

#### Type of change

- [x] 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 with the assistance of a kneading eraser used as a stimming tool
2026-06-22 17:27:01 +00:00
Shea acf4939871 add strict option and change default to it
Signed-off-by: Shea <[email protected]>
2026-06-22 11:19:32 +03:00
Shea 1fd626c9de merge upstream
Signed-off-by: Shea <[email protected]>
2026-06-22 10:20:54 +03:00
7w1 ba0b9d047f formatting 2026-06-22 00:42:36 -05:00
7w1 6923101b31 fix my fix a final time 2026-06-22 00:39:13 -05:00
7w1 0104b01edb fix insertion of extra events 2026-06-21 17:53:49 -05:00
7w1 2b4db1be41 typecheck 2026-06-21 17:10:16 -05:00
7w1 4ba6bbabe8 Fix timeline sorting changing when show hidden events is enabled 2026-06-21 16:54:54 -05:00
Shea a3a85af353 emojiboard styling fixes, unified event containers into messageInternal
Signed-off-by: Shea <[email protected]>
2026-06-19 20:42:32 +03:00
7w1 7dc688dd47 fix #683 persist added servers to account data 2026-06-16 19:02:02 -05:00
7w1 754f39c99d feat: switch to published twemoji font v17.0.2 and some package updates (#950)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

cherry picked from https://github.com/SableClient/Sable/pull/607

#### 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-06-16 23:12:41 +00:00
7w1 bed7024ab1 address lint rules & update package.json
via an exclusion and lots of copy paste
as part of that swapped space banner and abbr to use buttons and disabled button styles for them
2026-06-16 18:05:31 -05:00
7w1 45ca5a0f6b fix replying to timeline events 2026-06-14 17:37:43 -05:00
7w1 33458114dc fix hide reactions 2026-06-14 11:28:51 -05:00
7w1 099dd756fc fix edit message collapsing 2026-06-14 11:16:00 -05:00
Shea ad26512cb9 merge upstream
Signed-off-by: Shea <[email protected]>
2026-06-14 05:45:30 +03:00
Shea f0b2eaf3eb feat dismiss invites
Signed-off-by: Shea <[email protected]>
2026-06-14 05:33:58 +03:00
7w1 285a76bc8b More hidden events & Phosphor Icons replacement & Add reactions button (#934)
<!-- 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. -->

Copied from changesets :p

Add more hidden timeline events with settings and rendering.

#### Settings

- Add a master Show Hidden Events toggle with per-type sub-toggles for
message edits, redactions, reactions, and other unrecognized events
- Sub-toggles stay visible beneath the master toggle and are disabled
while hidden events are off
- Fold the redacted-message tombstone setting into the redactions group
and migrate existing tombstone preferences

#### Timeline filtering and rendering

- Show message edits as timeline events with reply navigation and an
inline word/line diff between versions
- Show reactions, message redactions, and reaction redactions as
timeline events instead of message bubbles
- Keep redacted reactions in the timeline as tombstones with redaction
events linking back to them when possible
- Improve reply-chip previews for edits, redactions, reactions, and
redacted targets
- Merge related edit and reaction events into the timeline when they are
missing from pagination

#### Safeguards

- Hide forward, delete, and other message actions on timeline meta
events that cannot be forwarded or meaningfully deleted
- Disallow forwarding deleted messages and other non-message event types

Migrated all icons to Phosphor Icons and added a setting to display
globe/lock icon instead of the hash tag for the room sidebar.

Added a reaction shortcut when a message already has a reaction.

+ fixed the polls changeset formatting a little, i think...

#### Type of change

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

- [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 did the bit of test generation and assisted with some of the bulk
icon replacement, although the icons were manually picked out.
2026-06-13 21:31:22 -05:00
7w1 8d9be0ba20 a couple icon size adjustments and add reaction shortcut 2026-06-13 20:51:51 -05:00
7w1 221c2e7c25 phosphor icons 2026-06-13 17:50:02 -05:00
7w1 2b3bc5b5f3 tons of hidden event toggles and rendering
among other patches
git history was getting far too messy so single big commit it is
2026-06-13 14:15:14 -05:00
Shea 6693347c2e fix more highlighting problems and 1767 events reply setting issues
Signed-off-by: Shea <[email protected]>
2026-06-13 17:29:27 +03:00
7w1 53fd99347f Feat location (#927)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

There is a doc written for this under
https://github.com/SableClient/docs/pull/16

Add location modal, this adds a dependency to leaflet, it is a slightly
outdated version to fit in with our react version

(look of a location shared)
<img width="1474" height="940" alt="image"
src="https://github.com/user-attachments/assets/7838119b-37af-4ad4-b79b-34656f23b5f1"
/>

(look of the add menu)
<img width="155" height="169" alt="image"
src="https://github.com/user-attachments/assets/74eb1bf2-15c7-4a79-8c06-6ddca0b2ff8c"
/>

(look of the location sharing modal)
<img width="503" height="646" alt="image"
src="https://github.com/user-attachments/assets/05afa98c-28cb-49e4-bd49-e61818f95148"
/>
From here you can paste coords, or links to osm, geo:, or apple long
links, i have decided against short links at this time as they seem to
not be working reliably

(look of the 2 new settings as it is a feature that makes external
calls)
<img width="808" height="689" alt="image"
src="https://github.com/user-attachments/assets/428668f3-51dd-46b5-8ef9-1a7a5b72ee46"
/>

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 with the love of fancy accidental self-doxxing
2026-06-12 21:39:43 +00:00
Shea 5f5be0f230 fix typo and add catch
Signed-off-by: Shea <[email protected]>
2026-06-12 23:43:38 +03:00
Shea 30a4abbad1 add full new key to avoid weird edgecase
Signed-off-by: Shea <[email protected]>
2026-06-12 17:07:56 +03:00