* More json logger safety
* Don't log undefined
* typo
* Split out the static logger to it's own class for testing
* Refactor logger usage slightly
* Add a test for the logger wrapper
* changelog
* Update LogWrapper.ts
* Drop ?
* Log fatal to console if we haven't configured logging
* Move token store load up
* Fix logging typo
* Fix everything logging at debug
* changelog
* Make private
* Add support for setting a global feed timeout
* Track failures, and don't show the first non-serious error
* Tidy up error reporting
* Make a prettier error pane
* Use the prettier event pane
* Show failed feed attempts in the widget
* Ensure we catch connection resets
* Add styling file
* Ensure we only track one result per fetch
* changelog
* Refactor to use better status codes
* Make feed results cheaper
* splice
* Ensure that user permissions are wrapped in quotes in docs
Fixes#452
* Create 453.docs
* Update setup.md
* Rename 453.docs to 453.doc
* Update changelog.d/453.doc
Co-authored-by: Christian Paul <christianp@matrix.org>
Co-authored-by: Christian Paul <christianp@matrix.org>
* Remove --no-script from yarn
As it turns out, we need to run the script to build the all important
crypto modules that we don't use. The --no-script is intended to avoid
us trying to build the project, but in practise I think this does more
harm than good (we don't seem to build when the production flag is used)
* changelog
* Add GitHub widget
Also make assorted fixes to help push this along
* Remove unused import
* Resolve new linter warnings
* Undo testing-only change
Didn't mean to commit this
* Use "org/repo" as GitHub repo names in widget
* Update src/ConnectionManager.ts
Co-authored-by: Will Hunt <will@half-shot.uk>
* Don't use null assertions
* Use block scope in switch cases
* Fix some BridgeAPI imports
* Actually validate connection state
* Return only GitHub repos with admin permissions
Co-authored-by: Will Hunt <will@half-shot.uk>
* Share code for tracking config via state events
This should prevent forgetting to add state event handlers in new or
existing connection types.
* Address review feedback
* Mark GitLabRepoConnection as an IConnection
* Remove unused imports
* Tighten typing for JiraProjectConnectionState
* Mention `github status` in docs
instead of `github hastoken`, which was renamed.
Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>
* Document `github login`
Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>
* Don't say nothing to no GitHub connections
Allow the message of "No GitHub bridges" to be sent.
Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>
* Changelog
Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>
* "Github" -> "GitHub" in `list-connections`
Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>
* Add support for decoding XML for webhooks
* Ensure all endpoints use the error middleware
* Dependencies
* changelog
* Describe form data in the documentation
* Reorder
* Disallow some empty config URL settings
If these settings are meant to be unspecified, then their entire parent
sections (`widgets` & `generic`) should be unspecified.
Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>
* Convert some config URL strings to URL objects
This allows both parsing and easier crafting of relative URLs.
Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>
* Dump parsed URLs to default config
Also implement getters to return stringified URLs, instead of having to
store a URL's string representation directly.
Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>
* Fix link in AdminRoom
Signed-off-by: Damien Gaignon <damien.gaignon@gmail.com>
* Add 384.bugfix file
* Add full stop to changelog entry
Co-authored-by: Andrew Ferrazzutti <andrewf@element.io>