Commit Graph

895 Commits

Author SHA1 Message Date
Gnuxie 908f558cc4 Stop declaring typescript JSX config as global. (#455) 2024-06-17 13:13:25 +01:00
Gnuxie 54437ee000 Merge pull request #454 from the-draupnir-project/gnuxie/dead-document
TypeCheck JSX expressions, children, and attributes ^-^
2024-06-15 20:56:11 +01:00
gnuxie d0cc9caea9 Bugs caught by the new JSX type checker x3 2024-06-15 20:29:10 +01:00
gnuxie 3b969b1c5a Add type checking for org.matrix.custom.html in DeadDocument.
Awesome.

The documentation was not very explicit, I had to play around
a lot to figure it out but I'm so happy that this works.
https://www.typescriptlang.org/docs/handbook/jsx.html.

Please note that `undefined` as a child will not be caught
yet, as we need to enable `exactOptionalPropertyTypes` for
this to work.
2024-06-15 20:29:10 +01:00
Aminda Suomalainen ⚧ c4ac8ad4ee .pre-commit-config.yaml: add local hook to run linting (#87)
Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info>
2024-06-08 17:57:56 +01:00
dependabot[bot] 27e058711e Bump actions/github-script from 6 to 7 in the github-actions group (#398)
Bumps the github-actions group with 1 update: [actions/github-script](https://github.com/actions/github-script).


Updates `actions/github-script` from 6 to 7
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-29 14:56:23 +01:00
gnuxie 4c2ea7f155 v2.0.0-beta.4 v2.0.0-beta.4 2024-05-29 12:35:18 +01:00
Gnuxie baee388886 Change dependabot interval to monthly + group production deps too. (#438)
Too much maintnence burden to review weekly... and we may aswell
just review all the production deps at the same time so we can
checkout the branch and just fix things that are broken.
2024-05-24 15:56:25 +01:00
Gnuxie 14aa20e56f Merge pull request #437 from the-draupnir-project/gnuxie/draupnir-documentation-links
Update documentation links and provide a link to the documentation in the status and help commands.
2024-05-24 15:47:32 +01:00
gnuxie 5304b260e1 Add documentation link to status and help commands. 2024-05-24 15:40:16 +01:00
gnuxie 8aa46b8526 Add README link to v1.87.0. 2024-05-24 15:40:16 +01:00
gnuxie 7d4009cf1a Update documentation links for new base url.
Context is that we had `docs` as part of the base URL, fixed in https://github.com/the-draupnir-project/draupnir-documentation/pull/13.
2024-05-24 15:40:16 +01:00
Gnuxie 829712c9fd Merge pull request #422 from the-draupnir-project/gnuxie/invitations-fun
Invitation protections
https://github.com/the-draupnir-project/planning/issues/15
2024-05-22 16:40:29 +01:00
gnuxie 16435bd8fc Add some spaces around room pills in protection prompts. 2024-05-22 16:35:36 +01:00
gnuxie 48c0fec134 Remove acceptInvitesFromSpace.
https://github.com/the-draupnir-project/Draupnir/issues/433.
Sucks balls, mare.
2024-05-22 16:15:58 +01:00
gnuxie 8664d91b1a Update protect prompt for config.protectAllJoinedRooms.
Stop sending prompts to protect room when config.protectAllJoinedRooms
is enabled.
2024-05-22 15:37:31 +01:00
gnuxie b14a8723ca Rename ProtectRoomsOnInviteProtection to JoinRoomsOnInviteProtection. 2024-05-22 13:53:18 +01:00
gnuxie 38553b7221 Time to split out the ProtectRoomsOnInviteProtection. 2024-05-22 13:53:18 +01:00
gnuxie d156eb3f6e Sometimes we see invitations twice on protect rooms on invite. 2024-05-20 16:56:47 +01:00
gnuxie 180594502d Ignore invitation events to rooms we are already protecting. 2024-05-20 16:56:47 +01:00
gnuxie 9792df15d3 Use MPS logger in MatrixReactionhandler. 2024-05-20 16:56:47 +01:00
gnuxie 95007952fe Allow prompts to be cancelled. 2024-05-20 16:56:46 +01:00
gnuxie 3b20fe1122 Update to MPS v0.22.0. 2024-05-20 16:56:46 +01:00
gnuxie 1041105aa8 ProtectRoomsOnInviteProtection.
Currently creates two prompts sometimes for some reason.
We also need a way to cancel prompts see https://github.com/the-draupnir-project/Draupnir/issues/423.
Especially once we have finished protecting a room, it doesn't make sense for them to keep clicking.
2024-05-15 18:11:27 +01:00
gnuxie d1950fbb54 Update for new MPS handleExternalInvite handle. 2024-05-13 16:23:26 +01:00
gnuxie 771edf387e v2.0.0-beta.3 v2.0.0-beta.3 2024-05-06 17:48:16 +01:00
Gnuxie 603ac6a4a5 Merge pull request #404 from the-draupnir-project/gnuxie/ban-command-fixes
Fix ban and unban command bugs

Fixes https://github.com/the-draupnir-project/Draupnir/issues/401
Fixes https://github.com/the-draupnir-project/Draupnir/issues/385
2024-05-06 17:47:17 +01:00
gnuxie 269a3edb65 Fix prompt for accept.
Avoid presentation conflict while finding prestnation renderer for
DeadDocuments
https://github.com/the-draupnir-project/Draupnir/issues/403

Make sure we printReadably when serializing `ReadItem`s.
2024-05-06 17:39:35 +01:00
gnuxie a4833bcf3a Fix unban command.
https://github.com/the-draupnir-project/Draupnir/issues/401.
2024-05-06 16:40:03 +01:00
Gnuxie be374755bb Update to MPS 0.20.0. (#399)
Part of https://github.com/the-draupnir-project/Draupnir/issues/380.
We've updated typebox and changed the way events are decoded.
2024-05-06 13:51:44 +01:00
Catalan Lover bbea4155ea Add Signoff CI to Enforce Signoff requirement. (#395)
* Add Signoff CI to Enforce Signoff requirement.

* Integrate Changes to Signoff CI from Docs Repo Version
2024-05-05 14:49:56 +01:00
Catalan Lover 86dcbdc41a Move Synapse module to new website (#391)
* Migrate Synapse module to new docs

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-04 21:03:42 +01:00
gnuxie f8cbaee973 Update to MPS 0.19.1.
This contains a workaround for this issue https://github.com/the-draupnir-project/Draupnir/issues/380
please see https://github.com/Gnuxie/matrix-protection-suite/commit/e57f266da86165c49e5a7e82a25eb7cf2e4709c4.
2024-05-04 18:09:21 +01:00
Catalan Lover 34a6a53af8 Documentation Website Move (#387)
* Documentation Website Move

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-04 17:10:30 +01:00
gnuxie aa72badd3e Display notice for missing permissions. 2024-05-02 15:57:44 +01:00
gnuxie 0049dfd367 Update for MPS ProtectedRoomsManager. 2024-05-02 15:57:44 +01:00
gnuxie a85d292841 Renderers for UserConsequence UsersInRoom. 2024-05-02 15:57:44 +01:00
gnuxie 2bbca6d27a Update for MPS's PowerLevelMirror. 2024-05-02 15:57:44 +01:00
gnuxie 9ea217c8ca Update for MPS 0.19.0. 2024-05-02 15:57:44 +01:00
gnuxie 005cf6e24f Update typebox to match MPS. 2024-05-02 15:57:44 +01:00
avdb13 c7a93941ae Update README.md (#368) 2024-04-25 19:47:20 +01:00
gnuxie 6e16cd7f6d Update for MPS v0.18.2.
This fixes a bug where we use the empty schema to validate
redacted content, which is really bad.
2024-04-22 19:13:09 +01:00
gnuxie a9effe2998 v2.0.0-beta.2 v2.0.0-beta.2 2024-04-22 15:58:50 +01:00
gnuxie 31a1cc7bc8 Update for MPS 0.18.1.
Fixes https://github.com/the-draupnir-project/Draupnir/issues/360
Fixes https://github.com/the-draupnir-project/Draupnir/issues/361
2024-04-22 15:58:09 +01:00
Catalan Lover 9239c23b5d Make Draupnir refer to it self in help output. (#358)
Title is the full description of this issue. This PR fixes #357
2024-04-19 13:59:43 +01:00
gnuxie 49c5ada4a8 v2.0.0-beta.1 v2.0.0-beta.1 2024-04-19 11:25:13 +01:00
Gnuxie 3d02c72401 Gnuxie/consequence renderer clarity (#356)
* Allow span attributes to be rendered.

* Update for MPS 0.18.0.

* Add some consistency to capability renderers.
2024-04-18 17:32:27 +01:00
gnuxie 1a3666815c Print status at startup and show a log message.
Fixes https://github.com/the-draupnir-project/Draupnir/issues/349.
2024-04-16 18:31:12 +01:00
gnuxie 06e966f227 Improve appservice provisioning
Attempt at fixing https://github.com/the-draupnir-project/Draupnir/issues/276.
2024-04-16 17:46:42 +01:00
gnuxie 20b540526e v2.0.0-beta.0 v2.0.0-beta.0 2024-04-16 13:10:51 +01:00