From 8abb399168ac0f7d1a8a413fccef3ae3c554573d Mon Sep 17 00:00:00 2001 From: Will Chen Date: Mon, 16 Jun 2025 14:26:24 -0700 Subject: [PATCH] Show link to GitHub docs on error (#416) --- src/components/GitHubConnector.tsx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/components/GitHubConnector.tsx b/src/components/GitHubConnector.tsx index 14266ce..53fcf18 100644 --- a/src/components/GitHubConnector.tsx +++ b/src/components/GitHubConnector.tsx @@ -365,7 +365,24 @@ export function GitHubConnector({ appId, folderName }: GitHubConnectorProps) { {isDisconnecting ? "Disconnecting..." : "Disconnect from repo"} - {syncError &&

{syncError}

} + {syncError && ( +

+ {syncError}{" "} + { + e.preventDefault(); + IpcClient.getInstance().openExternalUrl( + "https://www.dyad.sh/docs/integrations/github#troubleshooting", + ); + }} + className="cursor-pointer text-blue-600 hover:underline dark:text-blue-400" + target="_blank" + rel="noopener noreferrer" + > + See troubleshooting guide + +

+ )} {syncSuccess && (

Successfully pushed to GitHub!

)}