From 0663d688c69e712a0f8e4c822bcbe44781fcff6d Mon Sep 17 00:00:00 2001 From: Cascade Bot Date: Tue, 17 Mar 2026 15:09:03 +0000 Subject: [PATCH] feat(dashboard): move webhook buttons below collapsible curl blocks --- .../components/projects/integration-form.tsx | 46 ++++++++++--------- .../projects/pm-wizard-common-steps.tsx | 46 ++++++++++--------- .../projects/pm-wizard-trello-steps.tsx | 12 ++--- 3 files changed, 54 insertions(+), 50 deletions(-) diff --git a/web/src/components/projects/integration-form.tsx b/web/src/components/projects/integration-form.tsx index df4be0cb..44d77551 100644 --- a/web/src/components/projects/integration-form.tsx +++ b/web/src/components/projects/integration-form.tsx @@ -246,6 +246,30 @@ function GitHubWebhookSection({ projectId }: { projectId: string }) { )} + {/* curl instructions for manual GitHub webhook creation (collapsible) */} +
+ + +

+ Manual webhook creation (alternative: if the button below doesn't work) +

+
+
+

+ Use the following curl command to create the GitHub webhook manually. Requires a token + with admin:repo_hook scope. +

+
+
+ +
+
+							{githubCurlCommand}
+						
+
+
+
+ {/* Create webhook button */}
- - {/* curl instructions for manual GitHub webhook creation */} -
-
- -

- Manual webhook creation (if the button above doesn't work) -

-
-

- Use the following curl command to create the GitHub webhook manually. Requires a token - with admin:repo_hook scope. -

-
-
- -
-
-						{githubCurlCommand}
-					
-
-
); } diff --git a/web/src/components/projects/pm-wizard-common-steps.tsx b/web/src/components/projects/pm-wizard-common-steps.tsx index ed755e1b..330ff73a 100644 --- a/web/src/components/projects/pm-wizard-common-steps.tsx +++ b/web/src/components/projects/pm-wizard-common-steps.tsx @@ -178,6 +178,30 @@ export function WebhookStep({ )} + {/* curl instructions for manual webhook creation (collapsible) */} +
+ + +

+ Manual webhook creation (alternative: if the button below doesn't work) +

+
+
+

+ Use the following curl command to create the {providerName} webhook manually with your + own credentials: +

+
+
+ +
+
+							{curlCommand}
+						
+
+
+
+
- - {/* curl instructions for manual webhook creation */} -
-
- -

- Manual webhook creation (if the button above doesn't work) -

-
-

- Use the following curl command to create the {providerName} webhook manually with your own - credentials: -

-
-
- -
-
-						{curlCommand}
-					
-
-
); } diff --git a/web/src/components/projects/pm-wizard-trello-steps.tsx b/web/src/components/projects/pm-wizard-trello-steps.tsx index 29cdd380..d381f370 100644 --- a/web/src/components/projects/pm-wizard-trello-steps.tsx +++ b/web/src/components/projects/pm-wizard-trello-steps.tsx @@ -84,6 +84,12 @@ export function TrelloCredentialsStep({ return (
+ {state.isEditing && state.hasStoredCredentials && !state.trelloApiKey && ( +
+ + Credentials stored — enter new values below to replace them. +
+ )}

Enter your Trello API credentials. These will be saved securely to the project.

@@ -109,12 +115,6 @@ export function TrelloCredentialsStep({

- {state.isEditing && state.hasStoredCredentials && !state.trelloApiKey && ( -
- - Credentials stored — enter new values above to replace them. -
- )}
{state.trelloToken ? (