Commit Graph
6704 Commits
Author SHA1 Message Date
7w1 559a61c9fe attempt to fix thread hang bug 2026-05-08 16:26:25 -05:00
Shea Duma 55cae95f6e added more styling in regard to the room sidebar, more to come 2026-05-08 23:33:17 +03: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
Sina Sadeghi b495a2a6d2 chore: add changeset for rtl/ltr fix 2026-05-08 21:49:05 +03:30
haz f07fb1b2c3 Add nix flake with devshell, formatting, build and checks (#773)
### Description

this nix flake is heavily based off of prior work i have done in one of
my repos. it comes with the following features:

- building sable: `nix build .#sable` or just `nix build`. creates a
`result/` dir with the built application.
- devshell: nix users now no longer need to do download and install all
the dependencies for sable by themselves. the devshell comes with all
the dependencies needed to develop sable
- checks: `nix flake check` is configured to `lint` and `test:run` the
application, in addition to checking for correct formatting
- formatting: `nix fmt` runs all the formatters pnpm would also call,
but provides a more familiar interface for nix users.
- pre-commit checks: nix users can benefit from having their changes
checked for before the commit goes through. yay :3

`.vscode/settings.json` was updated to include hints for VS Code users
using the "nix env selector" extension to auto-detect the nix dev
environment, if you have nix installed.

I had to change `oxfmt.config.ts` just a tiny bit to make it work with
the nix stuff, because `node_modules` does not exist inside the nix
build sandbox. `pnpm fmt` successfully runs, so nothing should have
broken.

`flake-lock-fix.yml` is a small workflow heavily based on
<https://docs.determinate.systems/guides/fix-hashes/>, which triggers on
pushes to `dev` which change `pnpm-lock.yaml`. The workflow uses
`determinate-nixd` to fix hashes in the `flake.nix`, then pushes the
changes to `dev` automatically.

<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

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

- [ ] 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. -->
2026-05-08 16:47:56 +00:00
Flori Ava Star Weber f13280710e feat: add nix flake
this nix flake is heavily based off of prior work i have done in one of my
repos. it comes with the following features:

- building sable: `nix build .#sable` or just `nix build`. creates a `result/`
  dir with the built application.
- devshell: nix users now no longer need to do download and install all the
  dependencies for sable by themselves. the devshell comes with all the
  dependencies needed to develop sable
- checks: `nix flake check` is configured to perform all checks listed in
  `CONTRIBUTING.md` (fmt:check, lint, typecheck, knip, test:run)
- formatting: `nix fmt` runs all the formatters pnpm would also call, but
  provides a more familiar interface for nix users.
- pre-commit checks: nix users can benefit from having their changes checked for
  before the commit goes through. yay :3

`.vscode/settings.json` was updated to include hints for VS Code users using the
"nix env selector" extension to auto-detect the nix dev environment, if you have
nix installed.

I had to change `oxfmt.config.ts` just a tiny bit to make it work with the nix
stuff, because `node_modules` does not exist inside the nix build sandbox. `pnpm
fmt` successfully runs, so nothing should have broken.

`flake-lock-fix.yml` is a small workflow heavily based on
<https://docs.determinate.systems/guides/fix-hashes/>, which triggers on pushes
to `dev` which change `pnpm-lock.yaml`. The workflow uses `determinate-nixd` to
fix hashes in the `flake.nix`, then pushes the changes to `dev` automatically.
2026-05-08 18:04:24 +02:00
Shea Duma 1e2351d069 small forgotten change from testing 2026-05-08 08:00:32 +03:00
Shea Duma e563d52740 better compliance to landscape view limitations 2026-05-08 07:50:24 +03:00
Shea Duma 1fd0981231 added a unique selector for all the panels in the settings 2026-05-08 07:30:44 +03:00
Shea Duma cac58ac478 added more items 2026-05-08 07:01:56 +03: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 1670f36472 typo 2026-05-07 14:46:50 -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 8387218ebb Add missing settings from settings link list (#765)
<!-- 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 some missing settings from the settings link list

#### 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-07 12:33:34 -05:00
7w1 ab709c1e13 Readd brackets to suppressed previews on edits 2026-05-07 12:20:26 -05:00
Shea Duma 5f3fbad0ec fix weird test issue 2026-05-07 18:27:55 +03:00
Shea Duma cf87bab0e1 added settings for setting the icon showing 2026-05-07 18:13:43 +03:00
Shea Duma 2ed838a4e1 merged upstream 2026-05-07 16:35:18 +03:00
Shea Duma 115f1f7c38 pre-merge 2026-05-07 16:18:46 +03:00
7w1 9752edd323 add missing settings 2026-05-07 01:36:48 -05:00
7w1 1c460812eb chore: prepare release 1.15.2 (#752)
> [!IMPORTANT]
> Merging this PR will create a new release.

## Fixes

* Adds back the message editor toolbar under an optional setting. No
longer uses WYSIWYG, just applies markdown.
http://localhost:8080/settings/general?focus=composer-formatting-toolbar&moe.sable.client.action=settings
([#762](<https://github.com/SableClient/Sable/pull/762>) by @7w1)
* Fixed blockquotes needing a double backslash to escape and require a
space after the `>` in order to form a blockquote.
([#758](<https://github.com/SableClient/Sable/pull/758>) by @7w1)
* Fix empty messages being displayed as broken messages.
([#754](<https://github.com/SableClient/Sable/pull/754>) by @7w1)
* Reescape arrow brackets when editing a message.
([#763](<https://github.com/SableClient/Sable/pull/763>) by @7w1)
* Fix extraneous markdown escape characters when editing code blocks.
([#762](<https://github.com/SableClient/Sable/pull/762>) by @7w1)
* Fixed jumpting to arbitrary events (e.g. reactions, edits, pins,
leaves/joins). ([#759](<https://github.com/SableClient/Sable/pull/759>)
by @7w1)
* Fix latex in codeblocks getting parsed.
([#758](<https://github.com/SableClient/Sable/pull/758>) by @7w1)
* Fixed message links being rendered as full links.
([#751](<https://github.com/SableClient/Sable/pull/751>) by @7w1)
* Fixed per-message profile proxies not unwrapping and generally just
not working. (`f8a9a8f`)
* Fixed tweak automatic favoriting behavior when entering/leaving the
catalog. ([#757](<https://github.com/SableClient/Sable/pull/757>) by
@7w1)
* Fix tweaks not applying on built-in themes.
([#756](<https://github.com/SableClient/Sable/pull/756>) by @7w1)
* Added the ability to **underline** using `__underscores__`.
([#761](<https://github.com/SableClient/Sable/pull/761>) by @7w1)
v1.15.2
2026-05-07 00:55:52 -05:00
github-actions[bot] 3b5c39ffff chore: prepare release 1.15.2 2026-05-07 05:39:39 +00:00
7w1 5701233123 Fix pmp pluralkit proxy messages (#764)
<!-- 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 pmpproxy feature and adds some tests.

#### 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-07 00:38:43 -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 01b9b05d95 Reescape arrows and update workflow to suppress preveiws (#763)
<!-- 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. -->

Title

#### 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 21:44:11 -05:00
7w1 967b28b1e7 reescape arrows and update workflow to suppress preveiws 2026-05-06 21:22:27 -05:00
7w1 3761ab7f03 Add toolbar & fix extraneous escape sequences (#762)
<!-- 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 extra escape sequences when editing code blocks.
Adds back the message toolbar, basically the same as the old one just
replaced the formatting logic with the stuff used in the markdown
hotkeys.

#### 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 updated by AI
2026-05-06 20:52:35 -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 497f8e50fe Add underline to markdown (#761)
<!-- 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 underline using `__`

also fixed a typo in the pins that resulted in text like `pinned ...
andunpinned ...`, now there's spaces around and.

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

- [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 updated with AI.
2026-05-06 20:37:37 -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