Commit Graph
58 Commits
Author SHA1 Message Date
Shea Duma 8582765657 basic support for the banner state 2026-05-13 10:23:13 +03: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
7w1 7bbcbb841c fixes to reduce background client syncs + increase poll timeout to 30s
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.

so much writing for such little change :(
2026-05-04 18:33:05 -05:00
Rye 3d1b1026bb fix(formatting): fix formatting issues 2026-05-03 19:11:48 +02:00
Rye cbe38bae35 Merge branch 'dev' into feat/msc4459 2026-05-03 18:34:54 +02:00
Rye 6a4d5059b8 fix(msc4459): refactoring and restricting getImagePackReferencesForMxc to public rooms 2026-05-03 18:19:45 +02:00
Rye 0e61fc9cdb initial commit for MSC4459 support + a fair bit of refactoring 2026-05-03 17:17:43 +02:00
hazre 840ff239b2 refactor: align matrix event types with sdk primitives 2026-04-21 22:29:46 +02:00
7w1 144e148154 many lint fixes 2026-04-17 14:09:04 -05:00
7w1 1717ca872f migrate to oxlint and oxfmt
ran formatter
fixed lint issues, primarily getting rid of "any"s and swapping to .toSorted()
2026-04-16 22:15:13 -05: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
Rose 523fcbbc9f Merge branch 'dev' into feat/compat/pluralkit 2026-03-27 01:39:39 +01:00
7w1 95cdfa1b23 feat: room abbreviations with hover tooltips and space inheritance (#514)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Adds a room abbreviations feature: moderators can define term/definition
pairs in room settings. Defined terms are highlighted with a dotted
underline in messages and show a tooltip on hover (tap-to-pin on
mobile). Abbreviations defined in a parent space are inherited by child
rooms and nested spaces, with overrides allowed at each level. The
settings UI shows a flat list of inherited and locally-defined entries.

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
- [ ] 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).
- [X] 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 code adds changes that allow for setting and viewing room
abbreviations, with an on-hover tooltip (or press on mobile -
semi-persistent). It stores these in the room state under a new key, and
recursively fetches abbreviations from the space level. This also adds
regex so that abbreviations correctly work at word boundaries. Also adds
the needed hooks to `room.ts` and `slidingSync.ts`
2026-03-26 21:18:00 +00:00
Rye 5f22d86a04 feat(pkit-compat): some steps towards recognizing proxies, not entirely there yet 2026-03-26 07:38:37 +01:00
Evie Gauthier f4111659ba fix: remove as never casts by registering SableSettings in AccountDataEvents 2026-03-24 23:33:51 -04: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
Evie Gauthier 4460047365 feat: add room abbreviations with hover tooltips (#403)
- Add StateEvent.RoomAbbreviations ('moe.sable.room.abbreviations')
- Include abbreviations event in sliding sync required state
- Add AbbreviationsPage to RoomSettingsPage enum
- New RoomAbbreviations settings page (add/remove term+definition pairs)
- Wire page into RoomSettings.tsx menu
- New useRoomAbbreviations hook + RoomAbbreviationsContext
- Provide context in Room.tsx
- RenderBody.tsx: highlight defined terms in plain-text messages with
  TooltipProvider+abbr tooltip; HTML messages unaffected
2026-03-24 23:33:22 -04:00
Evie Gauthier cc22321cf7 feat(threads): add core thread state management and types
- Add roomToOpenThread atom family for tracking active thread per room
- Add roomToThreadBrowser atom family for thread browser visibility
- Add Thread, ThreadEvent, and NotificationCountType exports to matrix-sdk types
- Update toggleReaction to support thread timeline sets
- Foundation for thread feature state management
2026-03-13 23:26:57 -04:00
7w1 5c31057763 fix #30 add room and space pronouns and update changelog 2026-03-03 00:50:19 -06:00
Evie Gauthier 9a02d21967 enable sliding sync by default 2026-03-02 21:08:31 -05:00
Evie Gauthier 93c6376419 Fix exports 2026-03-02 20:53:49 -05:00
Evie Gauthier ec46b898d6 Fix duplicate exports 2026-03-02 20:51:53 -05:00
Evie Gauthier a22e824590 vscode merge issue fml 2026-03-02 20:48:39 -05:00
Evie Gauthier 4ec6399c74 pull import fixes 2026-03-02 20:46:27 -05:00
Evie Gauthier 5903041eb1 Fix es-lint complains 2026-03-02 19:56:31 -05:00
Evie Gauthier 986031ca8a Fixed import issues 2026-03-02 19:52:09 -05:00
Evie Gauthier e1b7844ff8 Add initial sliding sync support 2026-03-02 19:34:51 -05:00
hazre bde1505ad4 refactor: normalize parent-relative imports to aliases 2026-03-02 20:00:26 +01:00
hazre b5e9dcb07e chore(lint): eslint autofix 2026-03-01 13:46:40 +01:00
hazre 533d758b01 chore(lint): simplify eslint config and bring back airbnb rules 2026-03-01 13:41:33 +01:00
hazre 12d1076f68 Revert "chore(lint): drop obsolete React imports"
This reverts commit 5770ca1c14.
2026-03-01 13:17:06 +01:00
hazre 5770ca1c14 chore(lint): drop obsolete React imports 2026-02-27 10:53:19 +01:00
hazre 44fbfa0d0e chore: tighten knip/eslint config and remove dead code 2026-02-27 10:39:00 +01:00
7w1 a18e3d534c Adds unread pins as described in #25 2026-02-26 23:30:56 -06:00
hazre b8a998cab7 Merge remote-tracking branch 'sable/dev' into chore/cleanup-codebase-1 2026-02-26 19:04:09 +01:00
TastelessVoid 72db176f4c feat: Add Matrix widget support and integration manager 2026-02-24 12:24:11 -06:00
7w1 396450a554 Migrate nicknames data from local storage to matrix account data. 2026-02-21 14:58:15 -06:00
7w1 43ea55082b Resolved conflict in useRoomName hook 2026-02-19 23:19:09 -06:00
7w1 b6678b678d Add name font cosmetic 2026-02-17 16:15:16 -06:00
7w1 acbf9bf16c Name colors!
Cosmetics tab in settings for controlling permissions.
Some brand swappage to Sable.
2026-02-16 23:49:58 -06:00
hazre 346a32c7d0 fix(types): align account-data and message edit payload typing
Adopt matrix event-map augmentation and Element-style typed boundaries for account data, and build message edit content with explicit replacement event types. Also make read receipt and fully_read marker sends independent with explicit failure handling.
2026-02-14 17:24:46 +01:00
hazre 71425f8644 refactor: route matrix-sdk imports through $types boundary
Centralize Matrix SDK imports behind a local compatibility module, migrate matrix subpath imports to the boundary, and switch to the $types alias. Upgrade TypeScript to latest so matrix-js-sdk typings resolve correctly before the next cleanup phase.
2026-02-14 17:24:46 +01:00
hazre e01009fd07 Merge remote-tracking branch 'upstream/dev' into feat/element-call 2026-02-11 14:26:40 +01:00
YoJames2019 008669efdf format using prettier rules from project prettierrc 2026-02-10 22:55:26 -05:00
Ajay Bura 1ad7fe8deb Fix missing creators support using via (#2431)
* add additional_creators in IRoomCreateContent type

* use creators in getViaServers

* consider creators in guessing perfect parent
2025-08-16 21:30:02 +10:00
Ajay Bura f82cfead46 Support room version 12 (#2399)
* WIP - support room version 12

* add room creators hook

* revert changes from powerlevels

* improve use room creators hook

* add hook to get dm users

* add options to add creators in create room/space

* add member item component in member drawer

* remove unused import

* extract member drawer header component

* get room creators as set only if room version support them

* add room permissions hook

* support room v12 creators power

* make predecessor event id optional

* add info about founders in permissions

* allow to create infinite powers to room creators

* allow everyone with permission to create infinite power

* handle additional creators in room upgrade

* add option to follow space tombstone
2025-08-13 00:12:30 +10:00
Gigiaj c53d14d91e add groupcall state event 2025-04-12 03:38:58 -05:00