diff --git a/src/components/HelpDialog.tsx b/src/components/HelpDialog.tsx index 27c4948..91bdffc 100644 --- a/src/components/HelpDialog.tsx +++ b/src/components/HelpDialog.tsx @@ -110,7 +110,11 @@ ${debugInfo.logs.slice(-3_500) || "No logs available"} // Create the GitHub issue URL with the pre-filled body const encodedBody = encodeURIComponent(issueBody); const encodedTitle = encodeURIComponent("[bug] "); - const githubIssueUrl = `https://github.com/dyad-sh/dyad/issues/new?title=${encodedTitle}&labels=bug,filed-from-app&body=${encodedBody}`; + const labels = ["bug"]; + if (isDyadProUser) { + labels.push("pro"); + } + const githubIssueUrl = `https://github.com/dyad-sh/dyad/issues/new?title=${encodedTitle}&labels=${labels}&body=${encodedBody}`; // Open the pre-filled GitHub issue page IpcClient.getInstance().openExternalUrl(githubIssueUrl); @@ -230,7 +234,11 @@ Session ID: ${sessionId} const encodedBody = encodeURIComponent(issueBody); const encodedTitle = encodeURIComponent("[session report] "); - const githubIssueUrl = `https://github.com/dyad-sh/dyad/issues/new?title=${encodedTitle}&labels=support&body=${encodedBody}`; + const labels = ["support"]; + if (isDyadProUser) { + labels.push("pro"); + } + const githubIssueUrl = `https://github.com/dyad-sh/dyad/issues/new?title=${encodedTitle}&labels=${labels}&body=${encodedBody}`; IpcClient.getInstance().openExternalUrl(githubIssueUrl); handleClose();