diff --git a/client/web/src/user/settings/codeHosts/CodeHostItem.tsx b/client/web/src/user/settings/codeHosts/CodeHostItem.tsx index 697b4ed1a4d..b4ab6dc2389 100644 --- a/client/web/src/user/settings/codeHosts/CodeHostItem.tsx +++ b/client/web/src/user/settings/codeHosts/CodeHostItem.tsx @@ -112,7 +112,7 @@ export const CodeHostItem: React.FunctionComponent = ({ )}
{service?.warning || service?.lastSyncError ? ( - + ) : service?.id ? ( ) : ( diff --git a/client/web/src/user/settings/codeHosts/UserAddCodeHostsPage.tsx b/client/web/src/user/settings/codeHosts/UserAddCodeHostsPage.tsx index 48dd24f0341..104516872e2 100644 --- a/client/web/src/user/settings/codeHosts/UserAddCodeHostsPage.tsx +++ b/client/web/src/user/settings/codeHosts/UserAddCodeHostsPage.tsx @@ -239,9 +239,23 @@ export const UserAddCodeHostsPage: React.FunctionComponent setStatusOrError(error), []) const getServiceWarningFragment = (service: serviceProblem): JSX.Element => ( -
-

Could not connect with {service.displayName}

-

{service.problem}. Try connecting again.

+
+

Can't connect with {service.displayName}

+

+ Please try{' '} + {owner.type === 'org' ? ( + + ) : ( + reconnecting the code host connection + )}{' '} + with {service.displayName} to restore access. +

) diff --git a/client/web/src/user/settings/codeHosts/modalHints.tsx b/client/web/src/user/settings/codeHosts/modalHints.tsx index 1ce011763ba..da62dc40528 100644 --- a/client/web/src/user/settings/codeHosts/modalHints.tsx +++ b/client/web/src/user/settings/codeHosts/modalHints.tsx @@ -8,7 +8,7 @@ export const hints: Partial> = [ExternalServiceKind.GITHUB]: ( @@ -29,13 +29,9 @@ export const hints: Partial> = {' '} - {/* eslint-disable-next-line react/forbid-dom-props */} - with which???{' '} - {/* read_user,{' '} + with read_user,{' '} read_api and{' '} - read_repository - */} - scopes. + read_repository scopes. ),