Commit Graph
4309 Commits
Author SHA1 Message Date
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
7w1 e1d6b85ab7 Fix tweaks not applying to built in themes (#756)
<!-- 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 #

#### 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-05-06 11:06:02 -05:00
7w1 8c159f5fe9 fix tweaks not applying to themes 2026-05-06 10:42:10 -05:00
7w1 3603c87f7f Fix empty messages (#754)
<!-- 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. -->

Ignore the branch name lol

Removes a single line that... i don't think is supposed to be there? Not
sure why it's there... hopefully it wasn't important.

#### 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-05 17:33:55 -05:00
7w1 aa93278d6d fix empty messages 2026-05-05 17:27:50 -05:00
7w1 48c2390435 Fix cats key from refractor (#753)
<!-- 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 has_cats key that was set to has_cat in #746 

#### 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-05 16:34:21 -05:00
7w1 dda9d6e024 fix cats key from refractor 2026-05-05 16:28:23 -05:00
7w1 1763b56ba2 Fix matrixTo link rendering (#751)
<!-- 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. -->

Should prevent links from being displayed as the full link.
Instead renders room name plus a message preview if possible, not well
tested but core functionality is better than the existing broken one

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

- [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-05 16:23:17 -05:00
7w1 7ef0f61d94 fix matrixto link rendering 2026-05-05 16:18:20 -05:00
7w1 2e08ac3ac7 chore: prepare release 1.15.1 (#739)
> [!IMPORTANT]
> Merging this PR will create a new release.

## Fixes

* Fix editing messages with custom emojis being converted into html
tags. ([#749](https://github.com/SableClient/Sable/pull/749) by @7w1)
* Fix muted rooms appearing as standard unread rooms.
([#750](https://github.com/SableClient/Sable/pull/750) by @7w1)
* Fix the call stack size crash on load when sliding sync is enabled.
([#748](https://github.com/SableClient/Sable/pull/748) by @7w1)
v1.15.1
2026-05-05 20:32:59 +00:00
github-actions[bot] c63df9bb22 chore: prepare release 1.15.1 2026-05-05 20:26:24 +00:00
7w1 34fbfdacbe Refactor codebase and standardize unstable prefix usage (#746)
### Description

This pull request standardizes the usage of Matrix event content keys by
replacing hardcoded property names and older constants with centralized,
unstable prefix constants imported from the `$unstable/prefixes` module.
This change improves maintainability and consistency across the
codebase, especially in handling experimental or non-standard Matrix
properties.

The most important changes are as follows:

##### Prefix Standardization and Centralization 
Replaced all hardcoded Matrix property names and older constants (e.g.,
`'com.beeper.per_message_profile'`, `'com.beeper.linkpreviews'`, etc.)
with corresponding constants from the `$unstable/prefixes` module
throughout the codebase, including message rendering, room creation,
user profiles, and input handling.

##### Message Content Handling
Updated all logic for reading, writing, and deleting Matrix event
content properties (e.g., per-message profiles, link previews, image
source packs, spoilers, blur hashes, forward metadata) to use the new
prefix constants, ensuring consistent access and mutation of event
content.

##### User Profile and Room Metadata
Updated user profile extended keys (such as bio, banner, pronouns,
timezone, animal identity) in `UserRoomProfile.tsx` to use the new
prefix constants, replacing all previous hardcoded or legacy key
strings.

##### Room Creation and Calls
Changed the room call state event type to use the new unstable prefix
constant in room creation utilities.

##### Code Clean-up
Removed now-unused imports of old constants from files where they have
been replaced with the new prefix-based constants.

These changes collectively improve the code's future compatibility with
evolving Matrix specifications and make it easier to update property
names as they stabilize.

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

Shouldn't cause user facing changes

### Checklist:

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

No AI usage
2026-05-05 15:25:53 -05:00
7w1 950bb22a00 Fix muted rooms notifs (#750)
<!-- 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 muted rooms showing normal notification bubbles.

#### 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-05-05 15:21:27 -05:00
7w1 4d25ede2bf changeset 2026-05-05 15:16:43 -05:00
7w1 a17f6190c1 fix muted rooms showing notification dots 2026-05-05 15:16:04 -05:00
7w1 bdf1e9d707 Fix emoticon not properly converting when editing messages (#749)
<!-- 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. -->

Fix emoticon not properly converting when editing messages

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

- [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-05 14:28:15 -05:00
7w1 e935fe0717 fix test 2026-05-05 14:20:15 -05:00
7w1 60c9db8c52 fix emoticon not properly converting when editing messages 2026-05-05 13:54:14 -05:00
7w1 f1cf1f42d6 Fix sliding sync stack crash (#748)
<!-- 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 crash on load. This may break something else in slidingsync,
but imo that's not too important for now.

Fixes #741 

#### 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-05 13:45:39 -05:00
7w1 6116c6411e fix sliding sync recursion by avoiding notif fixup reentry 2026-05-05 13:34:45 -05:00
7w1 71460e4504 Cleanup of some of the changes (#745)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Fixes the issues with the sizing of the user-hero, small saving issue,
previews now showing when put in the [](), and matrix.to links being
added to link-previews even though they reasonably shouldn't. It also
fixes the matrix.to links to be made with a trailing / to avoid weird
tricks in the usage of them for malicious purposes

This is general maintenance however so does not really need a changeset
because its just a bunch of extremely small changes

Fixes #740

#### 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. -->
I had a nightmare that the new version shipped incomplete code
2026-05-05 17:47:46 +00:00
Rye e6858778c2 refactor: standardize usage of unstable prefixes across components 2026-05-05 18:21:36 +02:00
Rye 8ecd3e80fb refactor(unstable prefixes): inital refactor to clean up the codebase 2026-05-05 16:47:02 +02:00
Shea Duma 38f0b9f750 fix potentially wrongly made links 2026-05-05 17:08:29 +03:00
Shea Duma c52a07a46a fix some newly introduced linkpreview bugs 2026-05-05 16:42:08 +03:00
7w1 02573cd10c chore: prepare release 1.15.0 (#675)
> [!IMPORTANT]
> Merging this PR will create a new release.

## Features

* Add background styling to user profile cards
([#712](https://github.com/SableClient/Sable/pull/712) by @nushea)
* Add preventing url preview cards by surrounding a link in
anglebrackets like <https://app.sable.moe>
([#717](https://github.com/SableClient/Sable/pull/717) by @nushea)
* Reorganize Embed settings and reintroduce multiple embeds
([#667](https://github.com/SableClient/Sable/pull/667) by @nushea)
* Change Misc. data styling in users profile pages
([#663](https://github.com/SableClient/Sable/pull/663) by @nushea)
* add initial support for sending discoverable emojis and sticker
([#730](https://github.com/SableClient/Sable/pull/730) by @dozro)

### Themes and tweaks from the catalog
([#633](https://github.com/SableClient/Sable/pull/633) by @7w1)

Themes are pulled from [a repo](https://github.com/SableClient/themes)
now, so you get the full power of CSS instead of a palette. Tweaks are
new: CSS overlays that sit on top of whatever theme you are using.

You'll be prompted to migrate to the new system whenever you update, if
you choose not to, you'll be limited to the basic dark/light themes. A
few additional themes have been added (Rose Pine variantes, Catpuccin)
along with some basic tweaks (circular avatars, monochrome avatars, and
square stuff).

You can share themes and tweaks. For themes uploaded online, simply hit
the copy button in settings and paste the link in chat. If the setting
is enabled, a preview will be generated. Third party themes (as defined
by the config.json) have prominent warning banners and fetching is
disabled by default.

You can also export and share theme files directly, although no previews
are generated for these.

If you're intrested in getting a theme or tweak added to the official
catalog, contribute to the themes repo linked above! We're eager to add
more!

### Markdown parser and render updates
([#727](https://github.com/SableClient/Sable/pull/727) by @7w1)

Migrated markdown parsing and rendering to use marked, which should fix
most (all?) markdown issues involving lists/nested structures,
inconsistent/inaccurate code blocks, escape sequences, and all the other
bugs with literally everything.

Added math rendering support via marked and KaTeX, uses standard `$$`
and `$` delimiters. Only renders a subset of latex tags that will likely
need to be expanded so feel free to make issues if needed.

Also adds support for sending markdown tables (although they're rendered
rather plainly at the moment), sending valid html directly (such as for
colored text), and properly escaping anything with backslashes.

Fixes link previews appearing in code blocks, fixes pmp new line
behavior, fixes links not opening in new tabs, and fixes editing
arbitrary html messages, probably.

Finally, the old WYSIWYG editor has been completely removed.

## Fixes

* Fix spam-clicking abbreviations crashing sable
([#665](https://github.com/SableClient/Sable/pull/665) by @nushea)
* Add cache-control headers in Caddyfile for assets, service worker, and
index.html ([#609](https://github.com/SableClient/Sable/pull/609) by
@Just-Insane)
* Fix the first pin event in a room looking empty
([#685](https://github.com/SableClient/Sable/pull/685) by @nushea)
* Fix read receipt scrolling not working
([#631](https://github.com/SableClient/Sable/pull/631) by @Septicity)
* Fix status sometimes sticking in member tile
([#664](https://github.com/SableClient/Sable/pull/664) by @nushea)
* Fix apng files not animating.
([#737](https://github.com/SableClient/Sable/pull/737) by @7w1)
* Some fixes to sync requests being spammed on loading screen and for
multi-account background syncing, it should also load faster now!
([#736](https://github.com/SableClient/Sable/pull/736) by @7w1)
* Fix other dmed party not being added as a founder by default when
creating a dm. ([#737](https://github.com/SableClient/Sable/pull/737) by
@7w1)
* Update verbiage in the credits
([#728](https://github.com/SableClient/Sable/pull/728) by @nushea)
* spoilered text now gets replaced with `[Spoiler]` in the plain text
fallback, as per MSC4454
([#715](https://github.com/SableClient/Sable/pull/715) by @dozro)
* Hide copied settings links on dynamic rows
([#695](https://github.com/SableClient/Sable/pull/695) by @hazre)
* Fix button hover background smearing in virtual list rows by
suppressing transform on hover
([#614](https://github.com/SableClient/Sable/pull/614) by @Just-Insane)
* Fix Workbox precaching by removing injectionPoint override that was
silently disabling all precache entries
([#611](https://github.com/SableClient/Sable/pull/611) by @Just-Insane)

### Change how settings links are shared
([#695](https://github.com/SableClient/Sable/pull/695) by @hazre)

Settings links copied from Sable now stay on the current client URL and
include a small Sable marker in the link. That lets Sable recognize
settings links copied from other Sable instances without treating
unrelated third-party `/settings/...` links as Sable settings links.

When you send a bare settings link in the composer, Sable now rewrites
it into a labeled link so it looks better on non-Sable clients too. For
example: `[Settings > Account > Display
Name](https://client.example/settings/account?focus=display-name&moe.sable.client.action=settings)`.

Invalid or malformed settings-looking links now stay normal links
instead of being shown as settings chips.

If you previously set `settingsLinkBaseUrl` in `config.json`, remove it.
Sable now derives settings links from the runtime app URL, and the old
config key is no longer used.
v1.15.0
2026-05-05 05:28:05 +00:00
7w1 5369d9b0ec Minor dev only patches (#738)
<!-- 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. -->

Fix some of the layout styling for consistency in the themes browsing
menus.
Fix bundled url previews for pmp messages.

#### 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-05 00:25:56 -05:00
7w1 c3d31e374e wording 2026-05-05 00:23:54 -05:00
7w1 03f6e73acb formatting 2026-05-05 00:21:00 -05:00
7w1 61f2b09def fix bundled urls with pmps 2026-05-05 00:18:40 -05:00
7w1 266a77018c themes settings refresh catalog button and appearance tweaks 2026-05-05 00:16:26 -05:00
github-actions[bot] 3283e285d8 chore: prepare release 1.15.0 2026-05-05 04:42:21 +00:00
7w1 385dfd0d3b Minor fixes (#737)
<!-- 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 #733 - animates apngs
Fixes #734 - adds dmed user to founders

Also fixes a few of the changeset types so they appear in the updates

#### 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-05-04 23:41:43 -05:00
7w1 c10d1bbec0 add other user to founders 2026-05-04 23:28:19 -05:00
7w1 6122161f8a animate apngs and changeset fixes 2026-05-04 23:23:38 -05:00
7w1 fc7aec771c Some potential sync request spam fixes (#736)
<!-- 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. -->

As I haven't really had any issues I'm not 100% sure this fixes anything
at all, but it at least doesn't break anything.

Increase the timeout for background clients to 60s, separates them into
their own store, and makes sliding sync respect the setting instead of
the client setting, and hopefully better management.

Adds a startup timeout of 45s to the main loading screen to prevent
anything from getting stuck behind that which may or may not actually do
anything.

Replaces the sdk's thread root event fetching on initial load to prevent
the useless loading delay and request spam on load. Get's swapped back
once the client loads which then functions normally, only loading thread
events when a room is opened.

Also some random formatting changes that happened in initMatrix.ts when
I saved for some reason?? They're more readable imo so I just left them
in.

Also fixed the 1 lint issue from #730 

Maybe related to #710 

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

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

Bickered with an AI to diagnose some potential syncing issues but none
of the changes were directly AI written.
2026-05-04 23:13:19 -05:00
7w1 7bff2bd2d3 Themes/Tweaks browser, sharing/import, custom themes/tweaks, and repo (#633)
<!-- 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. -->

Pulls themes and tweaks from https://github.com/SableClient/themes and
allows basic searching and filtering in the themes settings.
Migration modal should work fine, prompts the user to either enable
fetching from github or disable it and be limited to the built-in
light/dark themes.
Theme links that end in *.preview.sable.css from the official repo will
generate embeds, optional setting to allow generating embeds for any
*.preview.sable.css file.
In chat previews are generated with extracted css values and are safe
from injection. Full theme files will load the entire file, and are
vulnerable to injection, hence the official safe repo. Third party
themes sent in chat show a prominent banner making the risks clear.

Todo:
- ~~More clarity in settings menu when github fetching themes are
disabled (right now it just has a browse button that immediately enables
it, no confirmation or explanation)~~ updated labels and added
confirmation
- ~~Improve UI ?~~ consolidated card styling

Maybe worth adding in the future but out of scope for the time being:
- Info icon or some way to link to theme sources.

Mitigates #492 ?
Fixes #71 
Fixes #617 (via tweak in theme repo)

<img width="500" alt="image"
src="https://github.com/user-attachments/assets/3c97eb4c-0c3b-4b68-8ba5-132e1585ad1e"
/>

<img width="500" alt="image"
src="https://github.com/user-attachments/assets/600ce518-aba4-4679-8bf7-ed541587ac9a"
/>

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [x] Breaking change - disables themes, but there's a migration modal
that prompts the user with 1 click to redownload and enable their
existing theme(s).
- [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
- [ ] 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 was used to write the code for parsing and extracting data from the
raw css files/links and dynamically populate the lists as well as
develop the migration system for current themes. Tests were AI
generated.
All code has (or will be) thoroughly reviewed by me by the time this PR
is ready.
2026-05-04 23:08:37 -05:00
7w1 e6a7746430 Error message for theme favoriting errors 2026-05-04 22:59:16 -05:00
7w1 c87630eb4c add export button and update changeset 2026-05-04 22:49:02 -05:00
7w1 af52a55aaa Improve theme loading disclaimers and chat preview setting options 2026-05-04 22:24:16 -05:00
7w1 e5bc629691 reverse theme source approval logic, empty is none 2026-05-04 21:58:51 -05:00
7w1 a4cd4e8e33 Remove relic of a bygone era 2026-05-04 21:50:11 -05:00
7w1 bc4ca6e2fd Changeset and formatting 2026-05-04 21:35:56 -05:00
7w1 eeab65b121 Consolidate theme cards a little 2026-05-04 21:25:32 -05:00
7w1 8ff6ff68de Improve initial enable flow 2026-05-04 21:04:59 -05:00
7w1 e635e9d28b Remove the no preview tokens in this tweak text 2026-05-04 20:54:02 -05:00
7w1 6ee0b9983a fix linting 2026-05-04 20:51:28 -05:00
7w1 1a6d6f4584 Merge branch 'dev' into feat/theme-edits-v2 2026-05-04 20:42:58 -05:00