7320 Commits
Author SHA1 Message Date
Shea Duma 94344e62cc ensure favorites is not undefined 2026-04-29 04:47:11 +03:00
7w1 5251753644 Internal - Room Search Fix (#721)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
Fixes the rerender cycle by making it sure it redoes the math if the
state changes instead

It doesn't have or need a changelog as it is a bug encountered only in
the dev branch

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. -->
The callas disregard for the state of the room compelled and educated in
writing the pr 😔😔😔
2026-04-28 15:17:14 +00:00
Shea Duma 8307e4a17e DEV - Room Search Fix 2026-04-28 05:46:16 +03:00
Shea Duma 3d55e96435 small change for a last good faith writing 2026-04-27 09:10:12 +03:00
Shea Duma 8d578b2e54 there could be so many more old link things that could be worked upon but i feel like i need a break from this thing 😭 2026-04-27 09:05:27 +03:00
Shea Duma 6a68f4f468 added edge case fixes 2026-04-27 08:19:04 +03:00
Shea Duma 3140b1620c minimum viable solution 2026-04-27 02:52:19 +03:00
Shea Duma db96678c29 got the regex down finally :sob:🙏 2026-04-26 19:56:43 +03:00
Matt Van Horn e53c26f934 fix(timeline): suppress dividers when the underlying event renders null
Closes #701

The hook hands the renderer a `willRenderDayDivider` / `willRenderNewDivider`
flag attached to the FIRST event of a new day (or the readUptoEventId
boundary). The render layer in RoomTimeline always emitted those dividers
even when `useTimelineEventRenderer` returned `null` for the event itself
— for example when `hideMembershipEvents` / `hideNickAvatarEvents` /
`hideMemberInReadOnly` filtered the underlying event out at render time.

Result: announcement channels and similar rooms whose only events on a
given day are hidden (joins/leaves/profile changes) showed a bare day
divider with no message under it. Same orphan pattern produced the
"dates showing without content" complaint in #701.

Fix: gate the dividers JSX on `renderedEvent !== null`. When the event
renders null, the dividers are skipped too. When at least one event of
a day passes the renderer, the divider is attached to it the same way
as before.

Edge case: a day where the first hook-eligible event is rendered as null
but a later event renders correctly will lose the day divider entirely.
That is strictly better than an orphan divider in the symptom case the
issue reports, and the proper fix (propagate the divider forward in
useProcessedTimeline based on render prediction) is a larger refactor
that can land separately.
2026-04-26 03:33:51 -07:00
Shea Duma 7499b17d88 almost working 2026-04-26 03:27:36 +03:00
Shea Duma 02b7e23eed reintroduced feat 2026-04-25 03:57:36 +03:00
Shea Duma 7a214da81f fixes wikipedia weird links in general 2026-04-25 03:42:13 +03:00
7w1 2d1b5395de Merge branch 'dev' of github.com:SableClient/Sable into feat/theme-edits-v2 2026-04-24 13:51:56 -05:00
Shea Duma e5cf5a4b99 fixes most of the tests 2026-04-24 19:26:03 +03:00
Shea Duma 816f18f2d2 😭 2026-04-24 08:56:14 +03:00
Shea Duma f73cf5cadd idk atp lmaooo 2026-04-24 08:54:26 +03:00
Shea Duma ca11219adc fixed clear item and formatting 2026-04-24 08:50:51 +03:00
Shea Duma 0a0063b6bb add changeset 2026-04-24 08:14:54 +03:00
Shea Duma bdd902cdc9 add changeset 2026-04-24 08:12:49 +03:00
Shea Duma 0eba80d43e add more checks for paran 2026-04-24 08:03:55 +03:00
Shea Duma 33bbec404a add basic hide formatted version body 2026-04-24 07:51:36 +03:00
Shea Duma c2f7a6ca87 make both regular body and previews work 2026-04-24 07:20:00 +03:00
Shea Duma c2ac2c78bb add stripping in plaintext 2026-04-24 06:31:38 +03:00
Shea Duma 372504a82e base functionality working 2026-04-24 04:49:02 +03:00
Rose cbb225168b Replace spoilered text with '[Spoiler]' in plain text fallback (#715)
### Description

This pull request updates the plain text conversion logic to better
handle spoilered text, ensuring that spoiler formatting is replaced with
`[Spoiler]` in plain text fallbacks as per
[MSC4454](https://github.com/matrix-org/matrix-spec-proposals/pull/4454).

**Spoiler handling improvements:**

- Spoilered text (delimited by `||`) is now replaced with `[Spoiler]` in
the plain text output, matching the MSC4454 specification.

#### 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 involved
2026-04-23 22:25:01 +00:00
Rose 02bd5b8748 Fix text return in toPlainText function 2026-04-23 23:36:27 +02:00
Rye 196bacdad4 fix(output): replace spoilered text with '[Spoiler]' in plain text fallback 2026-04-23 22:55:48 +02:00
Shea Duma 2fc17dbe5d fixed formatting 2026-04-23 18:50:48 +03:00
Shea Duma e472830327 removed non-required functions 2026-04-23 18:46:13 +03:00
Shea Duma 386c6f7efd fix more checks :smile:😄 2026-04-23 16:56:23 +03:00
Shea Duma 102b1c0c4b fix more checks 😄 2026-04-23 16:54:27 +03:00
Shea Duma 2e6418ddcd fix checks 2026-04-23 16:45:27 +03:00
Shea Duma 0278d109b0 merge upstream 2026-04-23 16:41:46 +03:00
Shea Duma abba98f725 add checking for name colors and hovering buttons with good styling 2026-04-23 16:30:27 +03:00
7w1 005bbce905 Migrate to oxlint and oxfmt (#696)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Migrates from eslint and prettier to oxlint and oxfmt + some rule
hardening and - some rules that don't exist in oxlint, but I decided it
probably wasn't worth running both in parallel just for a few rules.

Notably, got rid of many "as any"s and swapped to .toSorted() for safer
stuff and "type" in imports. Added comments to all the existing lint
issues (console logging and the alert for app updates) and the few
places "as any" was justified (test cases) and some message object
whatnots.

Also notably, fmt now takes a second or two, and linting now takes no
more than a few seconds. Yay!

Recommended vscode plugins, workflows, and configs should all be updated
assuming I didn't miss anything.

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [x] Breaking change - breaking I guess since not all rules exist? I
don't really know exactly what I uh... didn't include.
- [ ] 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. -->

I deployed a swarm of silly AIs to fix many of the simpler as any casts
and subsequent typechecks because there were hundreds and I'm not doing
that manually :p. I did review it, mostly just seamless swapping to the
correct cast type instead of as any, nothing particularly complicated.
2026-04-22 22:57:12 -05:00
7w1 8396fedb14 fix room sorting and lint issues 2026-04-22 22:54:22 -05:00
Shea Duma c44f0ff7ff small linting fix 2026-04-23 03:09:12 +03:00
Shea Duma 3cfbb99ece add checking for bad choices 2026-04-23 03:05:51 +03:00
Shea Duma 49e8d6f85a more complex edgecasing maybe 2026-04-23 02:41:31 +03:00
Shea Duma 3446423ed9 edgecase of setting the color to #000 2026-04-23 02:17:19 +03:00
hazre d4474cc474 fix: avoid post-login preview stalls when service worker registration fails 2026-04-23 00:49:32 +02:00
Shea Duma 6a000a42c1 fix wording 2026-04-23 01:44:16 +03:00
Shea Duma 7546c22d2f add changeset 2026-04-23 01:43:20 +03:00
Shea Duma b4bd3a5f8b add setting button 2026-04-23 01:39:37 +03:00
Shea Duma b6b967bb30 fix message button look 2026-04-23 00:46:40 +03:00
Shea Duma e32376b6d5 make chips, and messages have the right formatting 2026-04-23 00:38:52 +03:00
Shea Duma 51d476672c set the username color to respect the hero in brightness 2026-04-22 22:37:07 +03:00
Shea Duma 67a2d7ccb3 introduced basic typechecking 2026-04-22 19:49:17 +03:00
Shea Duma b8e6b796c9 inner coloring 2026-04-22 19:26:28 +03:00
Shea Duma e5fcc494c7 basic color rendering 2026-04-22 15:52:10 +03:00