* Read-your-writes consistency on connection update
Allow updates to connections made via config widgets to be reflected
immediately upon save in the widget UI.
* Use HTML elements as `ref`s in widgets
Fixes#422
* Add changelog
* Let widgets use new connection config on save
After a connection config is updated, but before a widget requests the
latest config from the bridge, make the widget display the just-saved
config instead of what the config was before being updated.
* Use input placeholder as prefix default
Otherwise, leaving the prefix field blank would apply no prefix, and
violate prefix length requirements.
- Group repos by org
- Paginate repo requests
- Remove redundant label next to chosen repo
- Remove redundant repo field below connected repo
- Include repos that user has doesn't have admin permissions for, to
achieve parity with results from provisioning API
* Add commands to remove/list Jira connections
* Add docs page for Jira connections
* Clarify "instance" and webhook reqs in Jira docs
- Jira has "instances" instead of "organizations", so use the former term
- Don't suggest that webhook support can work for multiple instances
- Mention that webhooks require special access
- Make some minor grammar changes
* Improve formatting of command help
- Ensure args included in monospace formatting
- Show required args as `<arg>`
- Show optional args as `[arg]`
* Don't print undefined username with Jira `whoami`
* Fix typo in `feed remove` description
* Add changelog
* Relabel changes as a bugfix
* Add backend support
* Add frontend support
* Update docs
* changelog
* Update src/Connections/GitlabRepo.ts
Co-authored-by: Christian Paul <christianp@matrix.org>
* Update docs/usage/room_configuration/gitlab_project.md
Co-authored-by: Christian Paul <christianp@matrix.org>
* Tweak functions
Co-authored-by: Christian Paul <christianp@matrix.org>
* 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