diff --git a/changelog.d/717.bugfix b/changelog.d/717.bugfix new file mode 100644 index 00000000..cd8564c4 --- /dev/null +++ b/changelog.d/717.bugfix @@ -0,0 +1 @@ +Add information about GitHub App Installs in 'update' state on the oauth status page. diff --git a/web/oauth.tsx b/web/oauth.tsx index b185de6e..b7acde50 100644 --- a/web/oauth.tsx +++ b/web/oauth.tsx @@ -26,16 +26,18 @@ function RenderOAuth() { if (result === 'error') { return <> -

Could not connect your { serviceName } {oauthKind} to Hookshot.

+

Could not connect your { serviceName } { oauthKind } to Hookshot.

{errcode} {error}

; - } 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 <> -

Your connection to { serviceName } {oauthKind} is pending.

+

The connection to your { serviceName } { oauthKind } is pending.

- 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.

; } else if (result === 'success') { @@ -45,7 +47,7 @@ function RenderOAuth() { ; } return <> -

Your connection to { serviceName } {oauthKind} is {result}.

+

The connection to your { serviceName } { oauthKind } is { result }.

This is an unknown state, you may need to contact your systems administrator.

@@ -55,4 +57,4 @@ function RenderOAuth() { if (root) { render(, root); -} \ No newline at end of file +}