Commit Graph
92 Commits
Author SHA1 Message Date
Erwan Leboucher 90115b5705 refactor: remove unused exports flagged by fallow 2026-07-25 21:05:33 -05:00
Erwan Leboucher a1403751b6 refactor: split commands per domain and move screen-size styling to css 2026-07-25 21:05:32 -05:00
Erwan Leboucher b77640531d refactor: make create, bug report and navigate surfaces shallow routes 2026-07-25 23:52:44 +02:00
7w1 fa0a3719df Support msc4466 altering profile propagation (#1117)
<!-- 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 support for
[MSC4466](https://github.com/matrix-org/matrix-spec-proposals/pull/4466)
to allow sending global profile updates to all rooms, rooms without
overrides, and no rooms.

Requires server support, afaik only Continuwuity has that atm. When
unsupported the option is grayed out.

All -> standard behavior
Unchanged -> default Sable behavior, should propagate global updates to
rooms without their own profile changes (handled by server)
None -> Only updates global profile, users can individually send updates
through the cosmetics menu of specific rooms if they want something to
match the global profile.

Oh, should also inadvertently fix #1096 i think

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

- [ ] 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-07-19 15:01:07 -05:00
7w1 f00176dcb1 support msc4466 profile propagation 2026-07-18 14:38:45 -05:00
7w1 e1e22274d9 add rainbowme command 2026-07-17 22:34:55 -05:00
7w1 fa0cc492df bump matrix js sdk version 2026-07-10 15:26:11 -05:00
Shea 5f5be0f230 fix typo and add catch
Signed-off-by: Shea <[email protected]>
2026-06-12 23:43:38 +03:00
Shea a040c5d552 style dialog and make command more useful
Signed-off-by: Shea <[email protected]>
2026-06-11 18:03:37 +03:00
Shea d56f9bf6e9 implement sharing map locations
Signed-off-by: Shea <[email protected]>
2026-06-09 10:30:53 +03:00
Shea 1fd451557e add command
Signed-off-by: Shea <[email protected]>
2026-06-02 09:19:49 +03:00
7w1 4e18c3cca5 fix myroomnick 2026-05-13 15:17:30 -05: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 a071e26b8a fix & harden pmp logic 2026-05-07 00:20:21 -05:00
hazre 840ff239b2 refactor: align matrix event types with sdk primitives 2026-04-21 22:29:46 +02:00
7w1 40bb35f34c linting awayy 2026-04-17 16:23:59 -05:00
7w1 144e148154 many lint fixes 2026-04-17 14:09:04 -05:00
7w1 27eaadf9ae typecheck and linting fixes 2026-04-17 00:37:15 -05:00
7w1 b13c9b61d4 formatting 2026-04-16 22:38:18 -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
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
Vesper 5f62b92ffe Try to strip HTML from the plain text body field 2026-03-27 21:30:06 +00:00
Vesper 05de0d6b34 Add example 2026-03-27 20:17:51 +00:00
Vesper 34924ec8f3 Add /html command 2026-03-27 18:50:39 +00:00
Rye 7dfafc31c8 Merge branch 'feat/compat/pluralkit' of https://github.com/dozro/Sable2 into feat/compat/pluralkit 2026-03-27 01:44:18 +01:00
Rye bc8e9646ce docs(PMP-Command): adjusted the description of /usepmp and also added a changeset 2026-03-27 01:43:33 +01:00
Rose 523fcbbc9f Merge branch 'dev' into feat/compat/pluralkit 2026-03-27 01:39:39 +01:00
Rye 155ac64c65 fix(PMP-Command): fix the syntax handling of pmp related command 2026-03-27 01:38:05 +01:00
Rye 2a4fd48af9 feat(PMP-PK): added more options (removing shorthand,...) and documentation 2026-03-26 19:47:59 +01:00
Rye 75d014588b fix(pmp-command): fix usepmp command handling and description 2026-03-26 14:53:18 +01:00
Shea Duma 43501f84ad hopefully im not spamming 2026-03-24 16:22:53 +02:00
Shea Duma 9275e5fdf7 act made the word more general 2026-03-24 16:21:08 +02:00
Shea Duma 982f93de04 reformulated the sentences 2026-03-24 16:20:04 +02:00
Shea Duma 75b5abb78f fake-squashed Add location 2026-03-24 11:54:56 +02:00
polyjitter 33dabd67bf Added knock command 2026-03-22 00:11:22 -04:00
Rye cd4079be99 remove unused profile invalidation functions and fix profile association handling 2026-03-18 13:02:51 +01:00
Rye 7e7adbb7d2 implement per-message profile management and pronouns support 2026-03-17 17:25:47 +01:00
Rye 9348a8ada8 enhance RoomInput to cache per-message profile and improve fetching logic; update useCommands to support multi-word names in key=value parsing 2026-03-16 22:27:01 +01:00
Rye b17293e4fc enhance per message profile commands with feedback on success and failure 2026-03-16 22:03:05 +01:00
Rye 2e752da137 Merge branch 'dev' into feat/allow-setting-pmp 2026-03-16 21:58:39 +01:00
Rye 4250f240e3 enhance per message profile command to support key=value parsing for name and avatar 2026-03-16 21:55:41 +01:00
Rose 5b1245c4ee Merge branch 'dev' into sonarqube/maintainability-2026-03-14 2026-03-16 21:42:24 +01:00
Rye 8802476670 added settings toggle 2026-03-16 20:21:53 +01:00
Rye 2a83578ad7 add per message profile management commands and functionality 2026-03-16 18:44:41 +01:00
Rye 2c808046ab refactor: convert shareRoomHistoryWithUser to promise-based handling for improved error management 2026-03-16 15:59:47 +01:00
Rye d2a05f280e feat: update ShareE2EEHistory command description to clarify limitations 2026-03-16 15:48:55 +01:00
Rye c92c8181e8 refactor: streamline sendFeedback utility and add ShareE2EEHistory command 2026-03-16 15:45:39 +01:00
Rye 2db0ac0148 extracted sendFeedback utility for user notifications in rooms 2026-03-16 15:40:22 +01:00