Commit Graph
3156 Commits
Author SHA1 Message Date
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 db6c3187dd toggle inline add reaction fill state with menu 2026-06-13 21:26:11 -05:00
7w1 082082baff change default settings 2026-06-13 21:20:43 -05:00
7w1 be86a837ff dont fill overlay icons in sidebar 2026-06-13 21:06:33 -05:00
7w1 ae13621d4f swap at icon with @ text 2026-06-13 21:02:54 -05:00
7w1 8d9be0ba20 a couple icon size adjustments and add reaction shortcut 2026-06-13 20:51:51 -05:00
7w1 e29de131c8 formatting and tests and changeset 2026-06-13 20:39:27 -05:00
7w1 c9c3bf318c add to sanitizer 2026-06-13 20:03:49 -05:00
7w1 2912b2c56c hook parser into parser 2026-06-13 19:56:01 -05:00
7w1 3695ef60b4 matrix uri parser 2026-06-13 19:43:33 -05:00
7w1 21510fceaf fix deprecated icon imports and some formatting 2026-06-13 19:23:51 -05:00
7w1 6b9c7ac582 formatting 2026-06-13 18:04:20 -05:00
7w1 9c751bd6c7 bulk rename iconAt to sizedIcon
was a silly choice
2026-06-13 18:04:05 -05:00
7w1 d5ab7e946e formatting
dumb vscode
2026-06-13 17:59:42 -05:00
7w1 cdf20c4586 minor size adjustments for some icons 2026-06-13 17:55: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
Shea 1ee6a36ef2 fix stupid sdk issue <3
Signed-off-by: Shea <[email protected]>
2026-06-13 02:00:10 +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
Shea 7fd1ac006e fix root element in thread looking wrongly selected
Signed-off-by: Shea <[email protected]>
2026-06-12 16:25:34 +03:00
Shea b4f4c8f343 fix root element in thread looking wrongly selected
Signed-off-by: Shea <[email protected]>
2026-06-12 16:24:06 +03:00
Shea 073232f026 fix styling separation
Signed-off-by: Shea <[email protected]>
2026-06-11 22:46:08 +03:00
Shea 1e14b47c8a merge upstream
Signed-off-by: Shea <[email protected]>
2026-06-11 22:26:15 +03:00
Shea 13bfa91b98 change it to fill soft
Signed-off-by: Shea <[email protected]>
2026-06-11 19:22:33 +03:00
Shea 63e60be3aa merge upstream
Signed-off-by: Shea <[email protected]>
2026-06-11 19:11:45 +03:00
Shea cce2cfa614 styling changes
Signed-off-by: Shea <[email protected]>
2026-06-11 18:58:09 +03:00
Shea 92fa7a1f18 fix merge conflict
Signed-off-by: Shea <[email protected]>
2026-06-11 18:11:06 +03:00
Shea a040c5d552 style dialog and make command more useful
Signed-off-by: Shea <[email protected]>
2026-06-11 18:03:37 +03:00
7w1 f5b81ea7c9 Image viewer changes (#919)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
Change Pixelation options to be never smart or always, removing the
chat/image-viewer distinction

The 'smart' setting marks images smaller than 192 (128+64) as pixelart
by default, this means that the image will appear crisp in the regular
chat, and will default to crisp in the image viewer, and if the image is
any bigger it will become anti-aliased in both.

However, if someone wants to see an image of a higher resolution as
pixelart they now have a button next to the reset view options to toggle
pixelation and anti-alias.

Fixes #

#### 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] 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 code was written with the boredom of not having anything better to
do
2026-06-09 18:52:01 +00:00
Shea d56f9bf6e9 implement sharing map locations
Signed-off-by: Shea <[email protected]>
2026-06-09 10:30:53 +03:00
Shea 9b6f2fbd79 implement rendering maps in sharing location
Signed-off-by: Shea <[email protected]>
2026-06-06 22:03:35 +03:00
Shea 107f31482a Merge remote-tracking branch 'origin/dev' into feat-location 2026-06-05 15:48:36 +03:00
Shea 9b33efcbfa implement 'smart' pixelation in chat
Signed-off-by: Shea <[email protected]>
2026-06-05 07:33:53 +03:00
Shea c119bc261d change pixelation style
Signed-off-by: Shea <[email protected]>
2026-06-05 05:07:22 +03:00
Shea 0487b72862 fix overflows and filename-less files
Signed-off-by: Shea <[email protected]>
2026-06-03 14:45:41 +03:00
Shea 5e5122302d some stylistic changes
Signed-off-by: Shea <[email protected]>
2026-06-03 11:53:28 +03:00
Shea 0e8fea530c fmt <3
Signed-off-by: Shea <[email protected]>
2026-06-02 13:22:27 +03:00
Shea 107c3fc804 maybe overcomplicated logic for useless text <3
Signed-off-by: Shea <[email protected]>
2026-06-02 13:16:12 +03:00
Shea 9ee6c54707 add respones modal
Signed-off-by: Shea <[email protected]>
2026-06-02 12:20:52 +03:00
Shea 277babcaaf add setting for reverting menu on the plus button
Signed-off-by: Shea <[email protected]>
2026-06-02 10:26:52 +03:00
Shea 1fd451557e add command
Signed-off-by: Shea <[email protected]>
2026-06-02 09:19:49 +03:00
Shea a7ae1a4451 optimizations
Signed-off-by: Shea <[email protected]>
2026-06-01 21:23:30 +03:00
Shea 1d265ba222 add rendering for all options
Signed-off-by: Shea <[email protected]>
2026-06-01 06:28:35 +03:00
Shea 16d67f19d3 style and clear path of the poll dialogue
Signed-off-by: Shea <[email protected]>
2026-05-31 22:37:14 +03:00
Shea 2f610b3565 add poll creation modal
Signed-off-by: Shea <[email protected]>
2026-05-31 04:56:38 +03:00
Shea 607e972e1c add ending polls, and poll ends
Signed-off-by: Shea <[email protected]>
2026-05-30 10:01:28 +03:00
7w1 8daf965788 fix math inside of color blocks 2026-05-28 16:37:02 -05:00