Commit Graph
249 Commits
Author SHA1 Message Date
7w1 e76c33c0e1 update twemoji package and emoji lists 2026-06-17 16:24:08 -05:00
7w1 bed7024ab1 address lint rules & update package.json
via an exclusion and lots of copy paste
as part of that swapped space banner and abbr to use buttons and disabled button styles for them
2026-06-16 18:05:31 -05:00
7w1 285a76bc8b More hidden events & Phosphor Icons replacement & Add reactions button (#934)
<!-- 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. -->

Copied from changesets :p

Add more hidden timeline events with settings and rendering.

#### Settings

- Add a master Show Hidden Events toggle with per-type sub-toggles for
message edits, redactions, reactions, and other unrecognized events
- Sub-toggles stay visible beneath the master toggle and are disabled
while hidden events are off
- Fold the redacted-message tombstone setting into the redactions group
and migrate existing tombstone preferences

#### Timeline filtering and rendering

- Show message edits as timeline events with reply navigation and an
inline word/line diff between versions
- Show reactions, message redactions, and reaction redactions as
timeline events instead of message bubbles
- Keep redacted reactions in the timeline as tombstones with redaction
events linking back to them when possible
- Improve reply-chip previews for edits, redactions, reactions, and
redacted targets
- Merge related edit and reaction events into the timeline when they are
missing from pagination

#### Safeguards

- Hide forward, delete, and other message actions on timeline meta
events that cannot be forwarded or meaningfully deleted
- Disallow forwarding deleted messages and other non-message event types

Migrated all icons to Phosphor Icons and added a setting to display
globe/lock icon instead of the hash tag for the room sidebar.

Added a reaction shortcut when a message already has a reaction.

+ fixed the polls changeset formatting a little, i think...

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

AI did the bit of test generation and assisted with some of the bulk
icon replacement, although the icons were manually picked out.
2026-06-13 21:31:22 -05:00
7w1 e29de131c8 formatting and tests and changeset 2026-06-13 20:39:27 -05:00
7w1 2912b2c56c hook parser into parser 2026-06-13 19:56:01 -05:00
7w1 3695ef60b4 matrix uri parser 2026-06-13 19:43:33 -05:00
7w1 6b9c7ac582 formatting 2026-06-13 18:04:20 -05:00
7w1 9c751bd6c7 bulk rename iconAt to sizedIcon
was a silly choice
2026-06-13 18:04:05 -05:00
7w1 221c2e7c25 phosphor icons 2026-06-13 17:50:02 -05:00
7w1 8daf965788 fix math inside of color blocks 2026-05-28 16:37:02 -05:00
7w1 ee575c0dbd fix: nested list indentation 2026-05-26 23:42:24 -05:00
7w1 b0349b431c fix: lists rendering p tags causing new lines 2026-05-26 23:37:09 -05:00
7w1 ed80f656a4 fix: block quotes doing mitosis
should preserve the new lines more accurately and probably fixes a couple other bugs
2026-05-21 20:03:09 -05:00
7w1 66fe404e03 fix: remove rel and target from outgoing links 2026-05-21 14:14:06 -05:00
7w1 95493d6f1a fix: lists pushing off screen 2026-05-18 13:22:38 -05:00
7w1 92c270ee2e fix: arbitrary list starts 2026-05-18 13:18:44 -05:00
7w1 3ac14ab60e fix: improper order of escapes and html parsing for angle brackets 2026-05-17 22:39:21 -05:00
7w1 34d94af30b changeset and lint 2026-05-17 21:46:39 -05:00
7w1 4c8af8aa3b feat: support misskey-flavored markdown for colors 2026-05-17 21:42:45 -05:00
7w1 58ffeb00b8 fix: html input tag parsing hardening 2026-05-17 21:06:05 -05:00
7w1 66b5efe348 fix: matrix.to links getting arrow brackets added 2026-05-17 20:41:22 -05:00
7w1 db2f11518d fix: block quote new lines 2026-05-17 20:35:21 -05:00
7w1 fdeaf481ef fix: preserve matrix.to mentions when editing 2026-05-17 20:26:26 -05:00
7w1 e19e0df8f9 formatting 2026-05-14 23:48:10 -05:00
7w1 24a7a9d05c fix link editing behaviors 2026-05-14 23:43:07 -05:00
7w1 daba875a93 formatting and lint things 2026-05-14 15:16:10 -05:00
7w1 542474b80f markdown header fix 2026-05-14 15:05:03 -05:00
7w1 b868f1d52f Fix formatting behavior around <p> tags (#799)
<!-- 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. -->

A few fixes:
- When emotes are sent (/me), the leading paragraph block is always
dropped so that the action doesn't appear on a new line, subsequent
blocks are still sent.
- For single line messages, paragraph tags are stripped.
- For multiline messages, there's two behaviors, which distinguish the
space between lines Sable (and some other clients probably) display.
    - Single new line = \n
    - Two new lines = \<p> tag

#### 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-13 20:02:11 -05:00
7w1 193323074b fix: formatting for emotes/related p tags 2026-05-13 00:38:25 -05:00
7w1 f92e68a658 formatting 2026-05-12 21:10:11 -05:00
7w1 7785d91f97 fix: matrix.to links with custom text being sent as escaped html 2026-05-12 21:05:46 -05:00
7w1 3e399d3410 shield matrix to links 2026-05-09 22:16:36 -05:00
7w1 91434ad368 escape subtext properly 2026-05-09 16:07:26 -05: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 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 48a9c5c7d0 angle bracket edge cases, hopefully 2026-05-07 13:08:32 -05:00
7w1 bd4b2137b1 fix inline image height and add settings for capping incoming height 2026-05-07 12:48:58 -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 22f49b7f2a fix extraneous escape sequences when editing within codeblocks 2026-05-06 19:06:35 -05:00
7w1 6ac4049bab add underline with __ 2026-05-06 17:32:47 -05:00
7w1 861cce92ad fix latex in codeblock behavior 2026-05-06 11:51:47 -05:00
7w1 b5373133ff fix blockquote markdown behavior 2026-05-06 11:20:54 -05:00
7w1 7ef0f61d94 fix matrixto link rendering 2026-05-05 16:18:20 -05:00