From 62b0c89dbb077d2a830a583cc63486b67e2ad831 Mon Sep 17 00:00:00 2001 From: Michael Bahr <1830132+bahrmichael@users.noreply.github.com> Date: Tue, 9 Jul 2024 17:02:25 +0200 Subject: [PATCH] fix: better alignemnt of github credentials and check success notice (#63717) Closes SRCH-701 Ideally we would use a DismissibleAlert one level up the React component chain, but that's turning out too tricky for the time we have left: https://sourcegraph.slack.com/archives/C07A21XEP0T/p1720486350310899 ## Test plan Manual testing ## Changelog --- .../batches/settings/CodeHostConnectionNode.tsx | 2 +- .../batches/settings/GitHubAppControls.tsx | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/client/web/src/enterprise/batches/settings/CodeHostConnectionNode.tsx b/client/web/src/enterprise/batches/settings/CodeHostConnectionNode.tsx index 4d88ec86b92..d11cda34b2d 100644 --- a/client/web/src/enterprise/batches/settings/CodeHostConnectionNode.tsx +++ b/client/web/src/enterprise/batches/settings/CodeHostConnectionNode.tsx @@ -146,7 +146,7 @@ export const CodeHostConnectionNode: React.FunctionComponent )} -
+
{isEnabled ? ( gitHubApp ? ( >(CHECK_BATCH_CHANGES_CREDENTIAL, {}) return config ? ( - <> +
{removeModalOpen && ( setRemoveModalOpen(false)} afterDelete={refetch} app={config} /> )} @@ -140,11 +140,15 @@ export const GitHubAppControls: React.FunctionComponent )} {!checkCredLoading && (checkCredResult || checkCredErr) && ( - - "{config.name}" is {checkCredErr ? 'not' : ''} accessible. - + <> +
+ + {config.name} is {checkCredErr ? 'not' : ''}{' '} + accessible. + + )} - +
) : ( Create GitHub App