Commit Graph
80 Commits
Author SHA1 Message Date
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
Rye 412c5284be fix maintainability issues raised by sonarqube
- Built-in constructors should be called consistently with or without "new" (typescript:S7723)
- Negated conditions should be avoided when an else clause is present (typescript:S7735)
- Strings should use "replaceAll()" instead of "replace()" with global regex (typescript:S7781)
- Use ".some()" instead of ".filter().length" checks or ".find()" for existence testing (typescript:S7754)
- React props should be read-only (typescript:S6759)
- Number static methods and properties should be preferred over global equivalents (typescript:S7773)
- The return value of "useState" should be destructured and named symmetrically (typescript:S6754)
- Optional chaining should be preferred (typescript:S6582)
- Arrays used only for existence checks should be Sets (typescript:S7776)
- Unicode-aware string methods should be used for proper character handling (typescript:S7758)
2026-03-14 18:14:24 +01:00
Rye bf257981b3 change msgtype to m.emote to be more standard compliant
fixes https://github.com/SableClient/Sable/issues/142
2026-03-10 16:36:16 +01:00
Evie Gauthier 8e78ddd198 fix: remove stray conflict marker in useCommands.ts 2026-03-09 19:28:05 -04:00
Evie Gauthier 4ce1bd4ffa feat: in-app bug report and feature request modal
- Add BugReportModal component with type selector (bug/feature)
- Debounced GitHub Search API integration for similar open issues
- Auto-populate platform info (Sable version, user agent) for bugs
- /report slash command opens the modal
- 'Report an Issue' button in Settings > About
- Uses existing Jotai atom + hooks pattern (bugReportOpenAtom)
- No authentication required; submits to GitHub pre-fill URL
2026-03-09 19:28:05 -04:00
Rye 7b2772eb8a add headpat cute event command and integrate into message rendering 2026-03-08 19:29:51 +01:00
Rye df6b274d7e add MCuteEvent component and implement cute event commands (wave, poke) 2026-03-08 18:49:07 +01:00
Rye a38ad8995e fix fmt issue and remove unused import 2026-03-08 18:08:39 +01:00
Rye d9ba107c2d added cute events as used in for example fluffychat and commet 2026-03-08 18:07:45 +01:00
mini-bomba 76faf7fb17 fix(commands): do it for /myroomavatar as well 2026-03-06 23:24:48 +01:00
mini-bomba 1be51b3407 fix(commands): /myroomnick without new nick resets nick 2026-03-06 23:24:48 +01:00
Rye 0c28a5c907 resolved merge conflict 2026-03-05 22:20:01 +01:00
Rose 5582a86352 Merge branch 'dev' into fix-naming-space-commands 2026-03-05 22:16:05 +01:00