Commit Graph
2940 Commits
Author SHA1 Message Date
7w1 ce0a34ad5a fix room names being overriden 2026-05-09 16:54:25 -05:00
7w1 9d264ee5d3 Adjust new profile styling (#777)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Adjusts the styling of the new profile cards to match the styling seen
elsewhere & the old ones a little better. Old is left, new is right.
<img width="1404" height="1177" alt="image"
src="https://github.com/user-attachments/assets/f8184a63-8299-479e-acbb-0e21dcf887f2"
/>

<img width="1410" height="979" alt="image"
src="https://github.com/user-attachments/assets/6603e65c-16ea-4027-8fc6-2fc2b54d9b82"
/>


#### 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-05-09 15:26:07 -05:00
7w1 3d7c2bfde9 match spacing in all submenus 2026-05-09 15:20:28 -05:00
7w1 555fd3a46a style submenus 2026-05-09 15:14:24 -05:00
7w1 58942fc7e3 Fix greedy math parsing (#779)
<!-- 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 talking about dollar amounts being spammed by requiring no
whitespace after the first $ and no whitespace before the second $ and
no number after.
Fixes $$$$$$$$$$$$$$$ being parsed as a bunch of weird latex blocks
instead of nonsense.

Fixes #769 

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

- [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
2026-05-09 15:05:42 -05:00
7w1 5024f55cf7 Fix thread hang edge case (#778)
<!-- 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 the bug that occurs when a reply to a message that also has
replies (so a message in the middle of a reply chain) has a thread
started on that message causing a hang.

My shortcut introduced to improve loading speeds by bypassing the SDKs
on-load thread single event spam created empty fake thread events
whenever it was called. It assigned each of those as a thread root
message, bypassing the SDKs various checks. As a result, when a thread
was started involving those bypassed shells, uh, they didn't always get
properly reloaded and had extraneous data causing infinite loops and
whatnot.

Now, long story short, there's an extra method that actually checks for
the thread root along with associated fixes to reduce rerenders and
calculations and... well I tried a lot of random stuff, some works, some
didn't, and to be totally honest I'm not 100% sure how all these changes
work.

But hey it works! I think thread performance is still a little worse
than the main timeline, not specifically related to this, but that's all
noted and out of scope for this PR.

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

- [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 involved in the debugging stages to locate the issue and handled
the test case updates.
2026-05-09 14:54:02 -05:00
7w1 afa9f64cee Fix of wrong alignment with mixed RTL and LTR text (#743)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

This PR resolves formatting and alignment issues with mixed RTL
(Right-to-Left) and LTR (Left-to-Right) text within messages.
Previously, mixed text direction caused display inconsistencies in the
main message body and the reply content area.

**Changes made:**
* Added `dir="auto"` to the base message `Text` component, allowing the
browser to automatically determine the base text direction according to
the first strongly-typed character of the message.
* Applied `unicode-bidi: plaintext` to the message content CSS and the
`Text` component inside the reply content. This ensures the browser
dynamically evaluates and handles the text direction based on the actual
characters used rather than inheriting the container's direction.
* Set `align-self: start` on the message content. This ensures that even
for RTL messages, the content block anchors appropriately to the left
side (start) of the view, while still preserving the correct internal
text direction.

#### 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 code. -->
2026-05-09 19:40:12 +00:00
7w1 5886921936 patch dollar sign spam 2026-05-08 17:27:34 -05:00
7w1 ba1578c54f prevent money talk from triggering math 2026-05-08 17:06:15 -05:00
7w1 559a61c9fe attempt to fix thread hang bug 2026-05-08 16:26:25 -05:00
7w1 c223f354a9 Various small fixes (#772)
<!-- 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. -->

Adds arrow brackets back to suppressed previews when editing messages.
Adds back the height attribute and adds settings for adjusting the
maximum and default incoming inline image height.
Fixed the read receipt dialog inconsistency.
Fixes the room cosmetics menu not properly updating the membership with
the new avatar.

Fixes #767 
Fixes #770 

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

Tests were AI generated
2026-05-08 15:29:06 -05:00
7w1 091d438694 lint 2026-05-08 15:19:23 -05:00
7w1 1bff268f23 adjust misc data box styles 2026-05-08 15:15:24 -05:00
7w1 ddbabda69e hide scrolls in misc data 2026-05-08 15:08:50 -05:00
7w1 f50a31900e change misc to clickable text instead of button effect 2026-05-08 15:06:08 -05:00
7w1 c38c779f7c only apply status hover when expandable 2026-05-08 14:56:10 -05:00
7w1 0be6177882 adjust status message styling 2026-05-08 14:53:04 -05:00
7w1 052fb1f82e remove borders replace with slight shadows 2026-05-08 14:45:03 -05:00
7w1 6d325c32fa similar style for all chips in general 2026-05-08 14:34:38 -05:00
7w1 4f7aee161a restore old chip style on default profile 2026-05-08 14:18:47 -05:00
7w1 a76f4518e7 add back the proper fallback to global avatar 2026-05-07 16:40:06 -05:00
7w1 58d5dbd1d7 fix room avatars 2026-05-07 15:56:46 -05:00
7w1 cda61305ab typecheck fix 2026-05-07 14:50:41 -05:00
7w1 ba9e8d055e forgot to commit a file whoops 2026-05-07 14:44:40 -05:00
7w1 c86f8b6e8e unify the two read receipt boxes and fix the sizing inconsistency 2026-05-07 14:41:26 -05:00
7w1 1bd6b273e7 fix tests 2026-05-07 13:47:01 -05:00
7w1 48a9c5c7d0 angle bracket edge cases, hopefully 2026-05-07 13:08:32 -05:00
7w1 df440a1ac5 fix escape characters for arrow brackets 2026-05-07 12:54:23 -05:00
7w1 bd4b2137b1 fix inline image height and add settings for capping incoming height 2026-05-07 12:48:58 -05:00
7w1 ab709c1e13 Readd brackets to suppressed previews on edits 2026-05-07 12:20:26 -05:00
7w1 9752edd323 add missing settings 2026-05-07 01:36:48 -05:00
7w1 f8a9a8fccf changeset and tests 2026-05-07 00:33:30 -05:00
7w1 a071e26b8a fix & harden pmp logic 2026-05-07 00:20:21 -05:00
7w1 967b28b1e7 reescape arrows and update workflow to suppress preveiws 2026-05-06 21:22:27 -05:00
7w1 cedddcd6b4 Update markdownToHtml.ts 2026-05-06 20:50:32 -05:00
7w1 462fab41e7 Merge branch 'dev' into fix-markdown-escape-code-blocks 2026-05-06 20:44:05 -05:00
7w1 0996def084 merge dev 2026-05-06 20:28:17 -05:00
7w1 000e9ba170 Add console scam warning (#760)
<!-- 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. -->

Adds a bunch of messages warning about pasting into console. Currently
set to repeat 15 times with 300 ms delay, maybe excessive? Noticed that
when the client starts a *lot* of messages get spammed into console that
quickly bury the warning message, so... extra is probably better than
accidentally missing it when someone has console open before the page
loads fully.

<img height="600" alt="image"
src="https://github.com/user-attachments/assets/2bdb0075-525a-4d96-929d-a94594ff9560"
/>

Internal since I don't think this matters too much to anyone.

Checks for console open by comparing the window size to the inner size,
triggered on any window resize and running every couple seconds in the
background.

#### 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-05-06 20:21:31 -05:00
7w1 8a36e22bc4 Fix jumping to arbitrary events (#759)
<!-- 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. -->

Allows jumping to state events/reactions/edits/etc.

#### 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-05-06 20:20:08 -05:00
7w1 224623fe7e Fix some markdown behaviors (#758)
<!-- 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 blockquote behaviors (requires a space after > and only a single
backslash to escape)
Fixes latex getting parsed inside of codeblocks.

#### 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-05-06 20:13:48 -05:00
7w1 2c26d92656 Fix tweak favoriting behavior (#757)
<!-- 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. -->

Disabling a tweak that was automatically favorited no longer
unfavorites.
Disabling a tweak inside of the catalog menu that was favorited manually
or was from a previous tweak browsing session no longer automatically
unfavorites.

#### 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-05-06 20:11:27 -05:00
7w1 6f0470890f add toolbar to other places 2026-05-06 20:05:30 -05:00
7w1 336140008d add back toolbar 2026-05-06 19:48:23 -05:00
7w1 22f49b7f2a fix extraneous escape sequences when editing within codeblocks 2026-05-06 19:06:35 -05:00
7w1 099ca05f4c other typo spot 2026-05-06 17:39:54 -05:00
7w1 8cd927ae37 changeset and fix unrelated typo in pins text 2026-05-06 17:38:59 -05:00
7w1 6ac4049bab add underline with __ 2026-05-06 17:32:47 -05:00
7w1 f033320bdd formatting 2026-05-06 17:14:12 -05:00
7w1 acb0ae3a93 increase amount to get past initial console log spam 2026-05-06 17:10:22 -05:00
7w1 ce9a59a5ab scam warning 2026-05-06 16:56:43 -05:00