Show link to GitHub docs on error (#416)

This commit is contained in:
Will Chen
2025-06-16 14:26:24 -07:00
committed by GitHub
parent f9eb14d25f
commit 8abb399168

View File

@@ -365,7 +365,24 @@ export function GitHubConnector({ appId, folderName }: GitHubConnectorProps) {
{isDisconnecting ? "Disconnecting..." : "Disconnect from repo"}
</Button>
</div>
{syncError && <p className="text-red-600 mt-2">{syncError}</p>}
{syncError && (
<p className="text-red-600 mt-2">
{syncError}{" "}
<a
onClick={(e) => {
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
</a>
</p>
)}
{syncSuccess && (
<p className="text-green-600 mt-2">Successfully pushed to GitHub!</p>
)}