Include 'update' state in oauth page (#717)

* Include 'update' state in ouath page

* changelog

* words

* Update 717.bugfix

* Update oauth.tsx
This commit is contained in:
Will Hunt 2023-04-24 09:14:20 +01:00 committed by GitHub
parent 9bd46e4dc5
commit 4bb4b56875
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 6 deletions

1
changelog.d/717.bugfix Normal file
View File

@ -0,0 +1 @@
Add information about GitHub App Installs in 'update' state on the oauth status page.

View File

@ -26,16 +26,18 @@ function RenderOAuth() {
if (result === 'error') {
return <>
<h1>Could not connect your { serviceName } {oauthKind} to Hookshot.</h1>
<h1>Could not connect your { serviceName } { oauthKind } to Hookshot.</h1>
<p>
<code>{errcode}</code> {error}
</p>
</>;
} else if (result === 'pending') {
// Pending / update are mostly the same thing. Pending means a new app install, update means updating the existing app install.
} else if (result === 'pending' || result === 'update') {
return <>
<h1>Your connection to { serviceName } {oauthKind} is pending.</h1>
<h1>The connection to your { serviceName } { oauthKind } is pending.</h1>
<p>
The owner may need to approve this.
You will need to wait for an administrator of the { serviceName } {oauthKind} instance to approve
the new installation. If you think this is a mistake, contact the administrator of your organisation.
</p>
</>;
} else if (result === 'success') {
@ -45,7 +47,7 @@ function RenderOAuth() {
</>;
}
return <>
<h1>Your connection to { serviceName } {oauthKind} is {result}.</h1>
<h1>The connection to your { serviceName } { oauthKind } is { result }.</h1>
<p>
This is an unknown state, you may need to contact your systems administrator.
</p>