Commit Graph
293 Commits
Author SHA1 Message Date
Shea Duma 8aef658bbb Merge remote-tracking branch 'upstream/dev' into msc4095 2026-03-31 02:39:29 +03:00
Rose 7213aff4fc Fix keyboard shortcut modifiers for Mac users
fix for https://github.com/SableClient/Sable/security/code-scanning/1
2026-03-30 06:37:55 +02:00
Shea Duma a80b4b967f added setting for bundled previews and check for the body to align closer to msc 4095 2026-03-30 00:02:18 +03:00
Rye dae8e6ac29 fix(PMP, ID): changed pmp id handling and generation 2026-03-29 03:29:56 +02:00
Rose e0a666c6ef Add PluralKit style command (limited) handler an proxy recognition (#550)
### Description

Fixes #427
Fixes #425 (you can use shorthands, instead of `/usepmp`)

#### PluralKit Compatibility and Per-Message Profile Enhancements

- Added limited compatibility for PluralKit-style (`pk;member`)
commands, allowing users to interact with PMPs using familiar PK syntax.
- Introduced shorthand syntax for sending messages with a Persona, such
as `✨:test`, and an option to enable/disable this in settings.
- Added a new settings section (`PKCompatSettings`) in the Persona
profile page to toggle PK command compatibility and shorthand proxying.

#### Command Handling Improvements

- Updated `/addpmp` and `/usepmp` command parsing to use regular
expressions, fixing syntax issues and clarifying usage. The `/usepmp`
command now has a new syntax and properly resets room associations when
requested.
- Added a new `/pmpproxy` command to associate a proxy with a profile,
and integrated feedback for unsupported flags in `/usepmp`.

#### Data Model and Utility Updates

- Expanded the per-message profile data model to support compatibility
versions and proxy associations, including new type definitions and
parsing utilities.

These changes collectively improve the user experience for those using
per-message profiles and PluralKit-style workflows, and provide more
flexible and robust command handling.

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

- [ ] 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 was used in the creation of this PR
2026-03-28 14:56:56 +00:00
Rose dae136e119 Implement initial MSC4440 Bios with extensible events formatting (#559)
### Description

This pull request adds support for saving and reading user bios in the
MSC4440 format, improving compatibility with the MSC4440 specification
for Matrix user profiles. The changes ensure that bios are now stored
and retrieved in both the legacy and MSC4440-compliant formats, and
introduce new types to support this functionality.

#### MSC4440 Bio Compatibility

- User bios are now saved in the MSC4440 format (`gay.fomx.biography`)
in addition to existing formats, ensuring forward compatibility with the
MSC4440 spec. When saving, both HTML and plain text representations are
stored.
- The user profile normalization logic now reads bios from the MSC4440
field first, falling back to legacy fields if necessary.
- The fields handled by the normalization function are updated to
include the MSC4440 bio key.

#### Type and Import Updates

- New types `MSC1767Text` and `MSC4440Bio` are introduced to represent
the MSC4440 bio format, and relevant imports are updated throughout the
codebase.

implements https://github.com/matrix-org/matrix-spec-proposals/pull/4440

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

No AI was used in the creation of this PR
2026-03-27 17:32:04 +00:00
Rye 0c62e75576 it now uses extensible events to format the bio, as per msc4440 2026-03-27 17:26:29 +01:00
Rye 6e238ef948 first implementation of MSC4440 Bios (will have to be changed later) 2026-03-27 15:13:17 +01:00
Rose 523fcbbc9f Merge branch 'dev' into feat/compat/pluralkit 2026-03-27 01:39:39 +01:00
Rye 2a4fd48af9 feat(PMP-PK): added more options (removing shorthand,...) and documentation 2026-03-26 19:47:59 +01:00
7w1 2c7433ec5c fix: unread badge positioning (#484)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

This fixes unread badge positioning by deriving sidebar badge layout
from the same settings-aware mode that decides whether unread badges
render as dots or counts, so toggling badge display no longer leaves the
offset wrong. It also includes the related unread count formatting
cleanup, an Appearance toggle for large-count badge behavior, and
replaces `millify` dependency with a shared `Intl.NumberFormat` compact
formatter.

### Screenshots
<img width="68" height="463" alt="image"
src="https://github.com/user-attachments/assets/89f19c25-f6aa-46c2-8172-9748f43f605d"
/>


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

- [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. -->
2026-03-25 12:56:52 -05:00
hazre f24cf52378 chore: merge dev into hazre/fix/sidebar-count-badge-positioning 2026-03-25 15:47:50 +01:00
hazre 514535ca35 feat: cap unread badges and something extra :) 2026-03-25 15:26:32 +01:00
Evie Gauthier 8faf1e6681 feat: sync app settings across devices via Matrix account data
- Add SableSettings account data event type (moe.sable.app.settings)
- Add settingsSyncEnabled setting (default off, device-local)
- serializeForSync/deserializeFromSync utilities with versioned schema
- Echo-token loop prevention: own uploads don't re-apply on echo
- Debounced (2 s) upload on settings change
- JSON export (browser download) and import (file picker)
- SettingsSyncSection in General settings with sync toggle, status, and export/import buttons
- 39 new tests covering utilities and hook behaviour
2026-03-24 23:33:50 -04:00
Rose f8d30069c2 Merge branch 'dev' into refactor/move-language-filter-settings-out-of-experimental 2026-03-24 19:14:27 +01:00
Rye b41c86b49e style(language pronoun filter): move setting from Experimental to Appearance 2026-03-24 19:11:06 +01:00
Evie Gauthier 9d9e995364 chore: add changeset for sliding sync link fix 2026-03-24 14:02:05 -04:00
Evie Gauthier 4517d712e1 fix: update sliding sync known issues link to SableClient/Sable#39 2026-03-24 13:36:44 -04:00
7w1 c82384b041 Add title properties to settings toggles 2026-03-23 23:27:40 -05:00
Thunder 17263e712a fixup 2026-03-24 00:22:55 +02:00
Thunder f24bcb1bf5 formatting 2026-03-24 00:22:55 +02:00
Thunder c20479b689 cleanup and finalization ish 2026-03-24 00:22:55 +02:00
Thunder e5906183d7 horrendous state but it kind of works hopefully i can squash these 2026-03-24 00:22:55 +02:00
7w1 659c462133 remove unused imports 2026-03-22 23:54:03 -05:00
7w1 15370e2340 removed blocked users notice from setting 2026-03-22 23:52:13 -05:00
Septicity 41c5ef9868 Added maskable icons for Android/iOS PWAs 2026-03-22 00:23:15 -05:00
Kace Cottam efb81a5404 Reapply "feat: Improve subspace nesting display"
This reverts commit b41b8d237d.
2026-03-20 09:22:18 -07:00
7w1 92f2245793 import order... 2026-03-20 10:16:38 -05:00
7w1 03953b6843 plz work 2026-03-20 10:10:54 -05:00
7w1 b41b8d237d Revert "feat: Improve subspace nesting display" 2026-03-20 03:02:48 -05:00
7w1 b91d18d8f0 Merge pull request #252 from KaceCottam/improve-space
feat: Improve subspace nesting display
2026-03-20 06:40:53 +00:00
mini-bomba 96c5c37496 feat(settings): option to disable reply mentions by default 2026-03-19 23:17:30 +01:00
Rose 0fcc38c620 Merge pull request #348 from SableClient/fix/sliding-sync-memory
fix: tighten sliding sync memory management
2026-03-19 20:39:52 +00:00
Kace Cottam ab1fc15a48 Merge branch 'dev' into improve-space 2026-03-19 11:00:53 -07:00
Evie Gauthier fa4da192be Merge remote-tracking branch 'origin/dev' into fix/sliding-sync-memory 2026-03-19 01:16:34 -04:00
Evie Gauthier 0f6067e04c refactor: remove adaptive timeline limits, stop unsubscribing on navigation
Replace the adaptive 50/100/150 timeline limit system with a flat
ACTIVE_ROOM_TIMELINE_LIMIT=50, matching Element Web approach.
Stop calling unsubscribeFromRoom() on room navigation so subscriptions
accumulate across the session for instant room switching.

Element Web SlidingSyncManager.setRoomVisible() never removes subscriptions
at all -- no pruning whatsoever. Our PRUNE_TIMELINE_THRESHOLD=100 guard
is more conservative than their approach.

- Remove AdaptiveSignals type, readAdaptiveSignals(),
  resolveAdaptiveRoomTimelineLimit(), applyRoomTimelineLimit()
- Remove adaptiveTimeline and configuredTimelineLimit class fields
- Remove adaptiveTimeline from SlidingSyncDiagnostics type and UI
- Stop unsubscribing on nav in useSlidingSyncActiveRoom
- Lower PRUNE_TIMELINE_THRESHOLD from 150 to 100
2026-03-18 14:31:18 -04:00
Rye c836e90338 Merge remote-tracking branch 'fork-new/dev' into feat/allow-setting-pmp 2026-03-18 14:58:41 +01:00
Rye 8d598fdf3f fix a few pmp editing bugs 2026-03-18 14:48:20 +01:00
Rye cd4079be99 remove unused profile invalidation functions and fix profile association handling 2026-03-18 13:02:51 +01:00
7w1 476ec6ffe1 Merge pull request #355 from SableClient/fix-mention-highlight-toggle
Add toggle for mention highlighting
2026-03-17 22:03:26 -05:00
7w1 3043f77d85 add toggle for mention highlighting 2026-03-17 21:58:31 -05:00
7w1 0f14e675ba pronoun pills for all 2026-03-17 21:15:38 -05:00
Kace Cottam 689aee5ac3 Merge branch 'dev' of https://github.com/SableClient/Sable into improve-space 2026-03-17 12:50:02 -07:00
Kace Cottam ad3e907373 Run lint fix and fmt 2026-03-17 12:39:13 -07:00
Rose e3120287f5 Merge branch 'dev' into feat/allow-setting-pmp 2026-03-17 20:17:48 +01:00
Rye 67056a264d refactoring pmp 2026-03-17 20:13:59 +01:00
Rye d91adfb032 refactor: animalCosmetics 2026-03-17 20:13:17 +01:00
Rye b56f2eb246 fixed pronouns error 2026-03-17 19:59:12 +01:00
Rye 8360ee1f50 fix: add missing key prop to PerMessageProfileEditor component 2026-03-17 19:40:52 +01:00
Rye 3c3fa36e6d add rename functionality for per-message profiles 2026-03-17 19:08:39 +01:00