feat(deployments): Add option to copy webhook url by clicking on it#3952
Merged
Siumauricio merged 7 commits intoDokploy:canaryfrom Mar 10, 2026
Merged
feat(deployments): Add option to copy webhook url by clicking on it#3952Siumauricio merged 7 commits intoDokploy:canaryfrom
Siumauricio merged 7 commits intoDokploy:canaryfrom
Conversation
apps/dokploy/components/dashboard/application/deployments/show-deployments.tsx
Outdated
Show resolved
Hide resolved
apps/dokploy/components/dashboard/application/deployments/show-deployments.tsx
Outdated
Show resolved
Hide resolved
apps/dokploy/components/dashboard/application/deployments/show-deployments.tsx
Outdated
Show resolved
Hide resolved
apps/dokploy/components/dashboard/application/deployments/show-deployments.tsx
Outdated
Show resolved
Hide resolved
apps/dokploy/components/dashboard/application/deployments/show-deployments.tsx
Show resolved
Hide resolved
apps/dokploy/components/dashboard/application/deployments/show-deployments.tsx
Show resolved
Hide resolved
apps/dokploy/components/dashboard/application/deployments/show-deployments.tsx
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this PR about?
Change deployments webhook URL to be a clickable badge that copies the url into clipboard.
Checklist
Before submitting this PR, please make sure that:
canarybranch.Issues related (if applicable)
Screenshots (if applicable)
Greptile Summary
This PR enhances the deployments panel by converting the static webhook URL text into a clickable
Badgethat copies the URL to the clipboard, improving the user experience for setting up git provider webhooks.Key changes:
useMemo(webhookUrl) to avoid duplicating the template literal logic.BadgewithonClick,onKeyDown(Enter/Space),role="button",tabIndex={0},aria-label, andwhitespace-normal break-allfor correct wrapping — all good accessibility and UX choices.copy-to-clipboardpackage and aCopyicon fromlucide-react.onClickandonKeyDownalways calltoast.success("Copied to clipboard.")without checking the boolean return value ofcopy(). If the clipboard write fails (denied permissions, HTTP context, older browser fallback), the user is falsely told the copy succeeded.Confidence Score: 4/5
copy()actually succeeded — is a non-critical UX concern rather than a functional bug in the happy path, which is why the score sits at 4 rather than 5.show-deployments.tsx.Last reviewed commit: de201d0