512 Commits

Author SHA1 Message Date
Will Hunt
9b216afd2b
Fix GitHub/GitLab state config not being honoured (#346)
* 1.6.1

* Add new error type for validation errors

* Validate state for GitHubRepo properly

* Add tests to check labels

* Also check GitLab repo

* changelog

* add mock store

* remove nullable

* Be less strict for existing state

* Improve test coverage

* Improve expect error text

* ValidationApiError now takes falsey objects and errors on them

* Remove UserTokenMockStore

* Actually commit the new tests

* Whoops we need to include github
2022-05-12 11:28:55 +01:00
Will Hunt
c02d4349a3
Get ARM64 builds working (#339)
* Use node:16-slim for final image build

* changelog

* Add ignore scripts to final install step

* Copy matrix-sdk-crypto-nodejs built files

* Add workaround to build images foo crypto-nodejs

* chmod +x

* require bash for builds

* Add apt install to hopefully make the rust bits build for arm

* Fix missing multilib (#349)

* Update and rename 336.misc to 339.bugfix

Co-authored-by: Paul Tötterman <ptman@users.noreply.github.com>
2022-05-10 15:55:30 +01:00
Kim Brose
e9c6afdc44
Fix spacing of non-emoji icons in the docs navbar (#341)
* Fix spacing of non-emoji icons in the docs navbar

* Create 341.docs

* towncrier being picky
2022-05-09 14:54:15 +01:00
Kim Brose
e9303d0fb3
Multiple improvements to GitLab push event formatting (#309)
* Update GitlabRepo.ts

* Create 309.feature

* Only show list of pushed commits if it's complete

* fixup! Only show list of pushed commits if it's complete

* address feedback about constants

* print only a summary if there are too many commits

* update changelog

* wordy bits

* refactor for readability

Co-authored-by: Will Hunt <will@half-shot.uk>
2022-05-09 14:53:41 +01:00
Half-Shot
abce225524 1.6.1 2022-05-09 13:39:18 +01:00
Will Hunt
bc29b78442
Allow overriding the results of an openID lookup for widgets for local development. (#326)
* Revert "Withdraw openid overrides change for this PR"

This reverts commit 561fb20471107827a5304eb3d4c4254bb215ae8d.

* Drop setting from sample config

* changelog

* Clarify config
2022-05-09 12:16:27 +01:00
Will Hunt
46655f79d9
Relative path for assets (#340) 2022-05-06 17:03:28 +01:00
Half-Shot
af054ef3bb 1.6.0 1.6.0 2022-05-06 16:00:38 +01:00
Half-Shot
f3ad4a0d7d Fix broken headerImgs 2022-05-06 15:59:46 +01:00
Will Hunt
eea075e7ab
Use node:16-slim for final image build (#336)
* Use node:16-slim for final image build

* changelog

* Add ignore scripts to final install step
2022-05-06 15:54:45 +01:00
Will Hunt
b23e516aa5
Statically define connection creation and provisioing (#330)
* Statically define connection creation and provisioing

* Tidy up

* Drop JIRA

* Convert other connections to new system

* Small linting fixes

* Fixes

* changelog

* Fix bridge

* Fix JIRA instance naming

* Fix JIRA config

* Drop unnessacery check
2022-05-06 13:58:39 +00:00
Tadeusz Sośnierz
2008f2cae0
Fix ErrorPane importing (#337)
Co-authored-by: Tadeusz Sośnierz <tadeusz@sosnierz.com>
2022-05-06 14:53:06 +01:00
dependabot[bot]
342fab8aa7
Bump ansi-regex from 3.0.0 to 3.0.1 (#335)
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-06 10:25:32 +01:00
Will Hunt
e87030487e
Move components from root to elements (#332)
* Move components from root to elements

* Revert change

* Fix import

* changelog
2022-05-06 10:25:10 +01:00
Will Hunt
f5eefaa381
Replace snowpack with vite (#334)
* Replace snowpack with vite

* changelog

* Drop old snowpack setting

* Fix
2022-05-06 09:57:18 +01:00
Andrew Morgan
f3b6b939ce
Fix a typo in the README (#331)
I've tested this change for the past several answers and I *think* it's OK, but please double-check!!
2022-05-04 15:59:57 +01:00
Will Hunt
8808385b6d
Add support for GitLab connection configuration via widgets (#320)
* Refactors to support multiple services in the widget UI

* Add GitLabRepo web component view

* Support searching and adding a GitLab repository on the frontend

* Add final bits to supporting adding and removing connections from rooms

* lint

* changelog

* Lots of changes based upon review feedback

* linting

* Add warnings

* Withdraw openid overrides change for this PR

* Drop unused

* Remove async function syntax

* Tiny bug fixes
2022-04-30 06:08:13 +01:00
Will Hunt
f56545bf7c
Add setup command for GitLab (#321)
* Cleanup gitlab auth command

* Add support for the `!hookshot gitlab project` command

* Improve docs

* changelog

* add new page

* Wording

Co-authored-by: Tadeusz Sośnierz <tadzik@tadzik.net>

* Remove useless comment

Co-authored-by: Tadeusz Sośnierz <tadzik@tadzik.net>
2022-04-26 16:04:24 +01:00
Will Hunt
4463e1c112
Clean cache, and don't generate a lockfile (#319)
* Clean cache, and don't generate a lockfile

* changelog
2022-04-25 16:11:25 +01:00
Tadeusz Sośnierz
c02951552d
Merge pull request #315 from matrix-org/tadzik/rss
Add RSS/Atom feed support
2022-04-25 15:26:37 +02:00
Tadeusz Sośnierz
dbd0bb7083 Remove leftover debug logging 2022-04-25 15:22:58 +02:00
Tadeusz Sośnierz
0ac4d84aa7 Implement listing and removing feeds from a room 2022-04-25 15:17:15 +02:00
Tadeusz Sośnierz
113cb2ee67 Flesh out feed setup docs 2022-04-25 15:17:15 +02:00
Will Hunt
c1ff3911f0
whoops 2022-04-25 13:33:10 +01:00
Tadeusz Sośnierz
a13481907f Add a changelog entry for feeds 2022-04-25 14:16:33 +02:00
Tadeusz Sośnierz
b8afd4f7ef Allow empty titles/links when handling feed entries 2022-04-25 14:15:34 +02:00
Tadeusz Sośnierz
cea7c0b78c Use Date.now() for timestamps where appropriate 2022-04-25 10:41:23 +02:00
Half-Shot
cbb05df423 Remove done 2022-04-22 18:55:57 +01:00
Half-Shot
d5498f99f2 fix metric name 2022-04-22 18:54:42 +01:00
Half-Shot
0472db14e9 icon 2022-04-22 18:53:12 +01:00
Half-Shot
d76713f4f3 Add some metrics 2022-04-22 18:53:01 +01:00
Half-Shot
9db37e4dc3 Add skeleton docs 2022-04-22 18:48:39 +01:00
Tadeusz Sośnierz
a62235e925 Support removing feed connections, deduplicate feed URLs 2022-04-22 14:37:40 +02:00
Tadeusz Sośnierz
c2f97825f7 Define onRemove() to be async, as it is implemented 2022-04-22 14:35:42 +02:00
Tadeusz Sośnierz
2d712be3c0 Tweak initialSync logic to ensure we don't get perform it forever
Before this no entries were saved after an initialSync,
making us thing it's an initialSync every time.
2022-04-22 14:09:18 +02:00
Tadeusz Sośnierz
428ca02456 Make sure our feed accountData is valid 2022-04-22 13:52:58 +02:00
Tadeusz Sośnierz
9217112c3e Don't notify about new RSS/Atom entries during initial sync 2022-04-22 13:48:44 +02:00
Tadeusz Sośnierz
420def07b0 Fetch feeds sequentially, warn if it took too long 2022-04-22 12:27:14 +02:00
Tadeusz Sośnierz
ef91798bcb Update config defaults 2022-04-22 11:25:05 +02:00
Tadeusz Sośnierz
917ea003a2 Fix typos 2022-04-22 11:21:54 +02:00
Tadeusz Sośnierz
648e45748b Allow feed-only instances 2022-04-22 10:44:04 +02:00
Will Hunt
aab1c14cf0
Support notifying on gitlab review comments (#314)
* Support notifying on gitlab reviews

* changelog

* !== 1

Co-authored-by: Christian Paul <christianp@matrix.org>

Co-authored-by: Christian Paul <christianp@matrix.org>
2022-04-21 17:11:23 +01:00
Tadeusz Sośnierz
0b0a7f1adb Add RSS/Atom feed support 2022-04-21 15:29:26 +02:00
Tadeusz Sośnierz
31a7e651bc Allow for ConnectionManager to notify listeners about new connections 2022-04-21 15:26:12 +02:00
Tadeusz Sośnierz
e882081528 Check for the correct state event type when setting up a connection. Also DRY 2022-04-20 17:05:39 +02:00
Will Hunt
bd58714c66
Improve metrics coverage (#312)
* Actually register the SDK metrics

* Add some useful metrics

* Update docs

* changelog
2022-04-19 11:24:59 +00:00
Will Hunt
7732a943de
Add figma to setup.md 2022-04-15 09:54:32 +01:00
Will Hunt
c278874770 1.5.0 1.5.0 2022-04-14 13:58:03 +01:00
Will Hunt
c58e6a0127
Fix GitHub refresh tokens not refreshing (#307)
* Support erroring when the token has expired

* Fix refresh tokens not working

* changelog
2022-04-14 12:10:13 +01:00
Will Hunt
a766967a62
Support gitlab push events (#306)
* Support gitlab push events

* changelog

* Properly format a list of commits

* Formatting tweaks
2022-04-13 15:55:05 +01:00