<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->
### Description
While troubleshooting the new features for any bugs i noticed that some
time events dont propagate their sender properly, used the function even
tho its more overhead just because it is more reliable <3
<!-- 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:
- [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 anxiety of sending a common weird sdk "feature"
<!-- 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
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->
### Description
Fix the topmost item in a thread looking highlighted when it shouldnt,
but it still highlights if you specifically want to actually reply to it
it
<!-- 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:
- [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 inspiration of eating by and by
<!-- 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. -->
There is a docs written for this feature as
https://github.com/SableClient/docs/pull/16
Adds poll events, a poll creation modal, a poll respones modal similar
to the reactions one, a /poll command, changes the plus button in the
editor to add a menu where the location should be located aswell when
implemented, changes the pin behavior to make it so that any click on it
takes you there as opposed to needing to hit a small button to align
with other platform.
The creation of a new implementation was required as the upstream
variant is completely spec-non-compliant, incomplete and broken, so this
implementation supersedes it.
(simple snapshot of the change)
<img width="1665" height="1080" alt="image"
src="https://github.com/user-attachments/assets/4b0552af-dc1b-47d6-8269-ba45cc14759c"
/>
(examples of the poll creation modal)
<img width="516" height="556" alt="image"
src="https://github.com/user-attachments/assets/0ca22932-6210-4bf6-9088-bae6106a0390"
/>
<img width="516" height="509" alt="image"
src="https://github.com/user-attachments/assets/7d438099-0c78-4b52-8622-f283ae2505e7"
/>
(the new menu in the editor)
<img width="130" height="132" alt="image"
src="https://github.com/user-attachments/assets/a48784ba-1e2f-4b49-b2dc-76915064902f"
/>
(the setting to turn it off)
<img width="815" height="697" alt="image"
src="https://github.com/user-attachments/assets/0893285c-acf5-4d7a-92a6-a189385056c1"
/>
(example of look before you cast your vote)
<img width="571" height="216" alt="image"
src="https://github.com/user-attachments/assets/bd45d760-1502-416b-be9c-ae4e47df1673"
/>
(example of undisclosed vote)
<img width="578" height="220" alt="image"
src="https://github.com/user-attachments/assets/e988697a-8b30-4da3-9b2f-c3a53cb92bb3"
/>
(example of multiple a choice question)
<img width="558" height="503" alt="image"
src="https://github.com/user-attachments/assets/09c3b815-e1de-4521-bf07-b7efede785f4"
/>
(modal for the voters, chose this size in case that the options become
very long)
<img width="816" height="698" alt="image"
src="https://github.com/user-attachments/assets/c36dea97-c8ce-4e89-9c5b-d070f8ab3d1a"
/>
<img width="813" height="700" alt="image"
src="https://github.com/user-attachments/assets/b5922cd3-593d-4a23-8549-db2aa38662f1"
/>
i still so wish more people could test this maybe maybe maybe before
merge
I would be very happy to change anything visually about these polls
Fixes #
#### Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [x] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [x] 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 with the unyielding need of polls as message types
Signed-off-by: Shea <[email protected]>
<!-- 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
<!-- 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. -->
The changes are broader to account for potential other items overflowing
their size and breaking edits and downloading with the wrong name
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
- [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 the voices
<!-- 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 math parsing inside of color blocks not being parsed as math with
color.
#### 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. -->