Commit Graph
6704 Commits
Author SHA1 Message Date
Matt Van Horn 41ac5c6971 fix: constrain bug report modal to viewport height
Add maxHeight: 90vh to the Modal and its inner Box container so the
bug report screen doesn't overflow beyond the viewport, which was
causing the close button and header text to be cropped off.

Fixes #629
2026-04-07 02:56:50 -07:00
Matt Van Horn 3525c32a6f fix: use file name instead of "a voice message" for non-voice audio
Only use "a voice message" as the fallback body text when the audio
actually has waveform data (i.e., it was recorded as a voice message).
Regular audio files (music, etc.) now fall back to the file name
instead.

Fixes #543
2026-04-07 02:48:32 -07:00
Matt Van Horn ccfd9afc3b fix: prevent iOS overscroll on root element
Add overscroll-behavior: none to the html element to prevent the
elastic bounce-back scroll effect on iOS that competes with the
timeline scroll.

Fixes #500
2026-04-07 02:26:50 -07:00
Shea Duma 3e234492fa add blank spaces and fix regression 2026-04-07 07:01:48 +03:00
7w1 e78e97f86b Add support for displaying bundled previews MSC4095 (#590)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
This PR wishes to display bundled previews, should they be offered, in
order to align to MSC4095.

Implements:
https://github.com/matrix-org/matrix-spec-proposals/pull/4095

Also i swear i didnt modify anything past line 75 in
/src/app/components/url-preview/UrlPreviewCart.tsx i just added a param
to UrlPreviewCard which pushed the length over the limit breaking the
params into a table format, which then put the closing angle bracket
right before the arguments which then made it no longer take one
indentation which pushed the entire code to have one less indentation
for prettier and if i am to change anything meaninglessly it just
reverts it 😭

#### 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).
<!-- 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. -->
A Jihn waswasa-ed the implementation to me.
2026-04-06 22:37:11 +00:00
Shea Duma dd842d63cb merge 2026-04-07 00:56:23 +03:00
Septicity e5aadcb203 fix: Re-introduce timeline regrouping for PMP messages after sticky scroll fix 2026-04-06 16:17:33 -05:00
Evie Gauthier 76333bdb6d chore: add changeset for feat-thread-enhancements 2026-04-06 12:53:55 -04:00
Evie Gauthier b3e434dbc2 feat(threads): thread drawer, thread browser, live reply counts, and unread badges 2026-04-06 12:51:03 -04:00
Evie Gauthier 58176a610e chore: add changeset for workbox-precaching 2026-04-06 12:35:26 -04:00
Evie Gauthier 202567bf05 fix(pwa): re-enable Workbox precaching (remove if guard and injectionPoint override) 2026-04-06 12:35:25 -04:00
Evie Gauthier 0b00dca282 chore: add changeset for caddy-cache-headers 2026-04-06 12:33:59 -04:00
Evie Gauthier b7f46e10ca fix(caddy): add cache-control headers for assets, sw.js, and index.html 2026-04-06 12:33:58 -04:00
Shea Duma 83f931148a making linter happi 😄 2026-04-06 07:15:18 +03:00
Shea Duma 3b2a795723 move presence pill next to status in member drawer to avoid z-fighting 2026-04-06 07:06:27 +03:00
Shea Duma d92f47a96f add changeset and statuses in member tile 2026-04-06 06:02:23 +03:00
Shea Duma e582e429ab update all pages to show the right room image 2026-04-06 05:26:27 +03:00
Shea Duma 31fec891f7 added presence and setting 2026-04-06 04:54:14 +03:00
Shea Duma 88fffdbc4d added statuses to dms 2026-04-06 03:00:32 +03:00
7w1 8d5521598d Re-introduce custom HTML formatting for long messages (#641)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

For long formatted messages (specifically, messages with over 8000
characters in their internal source), styles are disabled. I personally
noticed this when trying to use `/rainbow` messages.

I noticed that this regression was caused by [this
commit](https://github.com/7w1/sable/commit/d97a6c6cc345c58b4c21813560951595bb708e32);
while sanitizing the formatted body of a long message was safe for the
specific message in the channel that was linked in the issue, it ended
up disabling _all_ HTML formatting for longer messages.

Here, you can see the result of my fix:
<img width="50%" alt="image"
src="https://github.com/user-attachments/assets/a5ed26b4-bf55-492a-83d1-93c747226d74"
/><img width="50%" height="877" alt="image"
src="https://github.com/user-attachments/assets/84312b48-c426-4508-8341-6445fb9460ec"
/>

Specifically, I've determined that the cause of the original crash was
specifically only related to jumbo emojis; as I've kept the safeguard
regarding jumbo emojis, this still prevents the crash, as well as
keeping any spacing or line breaks in a message with many emojis. Here's
the difference:
<img width="50%" alt="image"
src="https://github.com/user-attachments/assets/35dbd824-f14a-4a61-9dfa-93593e01a1e1"
/><img width="50%" alt="image"
src="https://github.com/user-attachments/assets/873429bb-1166-418d-b7fd-b0c9f102e285"
/>

_(I'm considering this a breaking change because, as far as I can tell,
this does _technically_ make emojis no longer jumbo in longer messages.
I could be wrong, though.)_

#### Type of change

- [x] 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
- [ ] 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-04-05 21:35:43 +00:00
Septicity 73c139f719 Re-introduce custom HTML formatting for long messages
- The issue that this was originally removed to fix was actually only related to jumbo emojis.
- Since I've kept the safety mechanisms for jumbo emojis, there should be no regression.
2026-04-05 06:05:45 -05:00
7w1 0ae47b689d Fix invisible names (#640)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
Small change to attempt to default to the right name so that they do not
show as being blank

Had to be a hard list because there does not seem to be a list of
characters that are supposed to be blank within the \p type

#### 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. -->
A million monkeys spent a million years typing out the implementation
2026-04-05 02:57:30 +00:00
Shea Duma a2c6eeb1b7 fix invisible names 2026-04-05 05:42:40 +03:00
7w1 0892b94e8d remove unnecessary migration logic 2026-04-04 16:30:29 -05:00
7w1 4b17220f16 fix test 2026-04-04 02:33:57 -05:00
7w1 30ae4011bd Merge branch 'dev' into feat/theme-edits-v2 2026-04-04 02:26:41 -05:00
7w1 22ef414afe formatting 2026-04-04 02:20:25 -05:00
7w1 54d45b5af1 tweaks and button formatting consistency 2026-04-04 02:16:09 -05:00
7w1 72fcd1ae61 fix: preserve linkification in formatted body text (#632)
### Description

Fixes the regression caused by
https://github.com/SableClient/Sable/commit/18a7ca092 that makes urls
not get dedicated in `formatted_body`

- preserve auto-linking for bare URLs in `formatted_body` text nodes
when abbreviation replacement runs
- keep URL tokens intact when an abbreviation term appears inside the
URL itself
- add regression coverage for adjacent-to-URL and inside-URL
abbreviation cases

#### 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).
- [x] Fully AI generated (explain what all the generated code does in
moderate detail).
2026-04-04 01:00:16 +00:00
7w1 4ff8b3c8e7 Add setting to collapse folders by default (#624)
<!-- 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 setting to visual tweaks that allows collapsing folders by
default instead of the current behavior of saving the state of
opened/closed folders

Fixes #616

#### 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
- [ ] 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-04-03 19:54:21 -05:00
7w1 0ed196dd46 Add a dismiss button to command messages (#625)
<!-- 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 dismiss button to command feedback messages and clarifies that
they're client side

Fixes #594

#### 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
- [ ] 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-04-03 19:53:56 -05:00
7w1 9ffeedd8d6 Fix focus when replying to messages (#623)
<!-- 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. -->

Recaptures input box focus when replying to a message.

Fixes #621

#### 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-04-03 19:53:38 -05:00
7w1 19a63070ed formatting 2026-04-02 16:18:02 -05:00
7w1 a495250c60 skip parsing fullurl for uploaded files if it fails 2026-04-02 16:08:40 -05:00
7w1 590f25e083 remove legacyids parsing 2026-04-02 15:34:41 -05:00
7w1 f60245b658 query catalog file instead of gh api 2026-04-02 15:22:07 -05:00
7w1 c31a298965 formatting 2026-04-02 14:49:38 -05:00
7w1andCopilot Autofix powered by AI 2667d27300 Potential fix for pull request finding 'CodeQL / Bad HTML filtering regexp'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-04-02 14:47:40 -05:00
7w1 75209e1686 tests and stricter metadata parsing 2026-04-02 14:31:35 -05:00
7w1 d9c2dbb225 clean up settings ui and add theme import 2026-04-02 13:56:20 -05:00
7w1 0d55deda85 warning banner and rendering for 3rd party themes and migration system and i forgot to commit earlier 2026-04-02 13:11:03 -05:00
7w1 8c62746576 Fix "sticky scrolling" issue in encrypted rooms with many PMP messages (#626)
### Description

Previously, in encrypted rooms with many PMP messages, scrolling to the
bottom of the page resulted in the view "sticking"; you would need to
scroll either very quickly or manually with the scrollbar to get
"unstuck".

This stemmed from a part of the logic for grouping PMP messages together
in encrypted rooms; a timeline update seemed to be erroneously
triggered, re-rendering the timeline repeatedly (effectively sending you
back to the bottom).

I've removed the offending line, and the original functionality of the
change (i.e. PMP messages continuing to be grouped both as they are
sent, edited, and re-rendered) seems to still be 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:

- [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).
2026-04-02 17:13:33 +00:00
7w1 39f7f06568 chat preview embeds 2026-04-02 11:36:50 -05:00
hazre 00c454424a docs: add changeset for formatted body links 2026-04-02 14:02:13 +02:00
hazre a5251818d3 fix: preserve linkification in formatted body text 2026-04-02 13:49:48 +02:00
7w1 310be03972 redo settings and formatting things 2026-04-02 02:05:11 -05:00
7w1 669f58dd77 fix theme injection 2026-04-02 00:46:21 -05:00
7w1 cdfdb0d43a wip theme selector/loader 2026-04-02 00:33:53 -05:00
Septicity f67bde766c fix: Revert MessageReadReceiptItem to pre-Modal form so that the pop-up is scrollable again (temporary) 2026-04-02 00:26:46 -05:00
7w1 f395e64d60 remove themes 2026-04-02 00:00:41 -05:00