Skip to content

feat: add copy button to AI log analysis result#4294

Open
berkay-digital wants to merge 1 commit intoDokploy:canaryfrom
berkay-digital:feat/copy-ai-log-analysis
Open

feat: add copy button to AI log analysis result#4294
berkay-digital wants to merge 1 commit intoDokploy:canaryfrom
berkay-digital:feat/copy-ai-log-analysis

Conversation

@berkay-digital
Copy link
Copy Markdown

@berkay-digital berkay-digital commented Apr 23, 2026

What is this PR about?

Adds a copy-to-clipboard button to the AI log analysis popover in AnalyzeLogs. After the AI generates an analysis of build or runtime logs, users can now copy the markdown result with a single click to send it to their coding agents.

I didn't get a chance to test it locally, so I would appreciate it if someone else could.

Checklist

Before submitting this PR, please make sure that:

  • You created a dedicated branch based on the canary branch.
  • You have read the suggestions in the CONTRIBUTING.md file https://github.com/Dokploy/dokploy/blob/canary/CONTRIBUTING.md#pull-request
  • [] You have tested this PR in your local instance. If you have not tested it yet, please do so before submitting. This helps avoid wasting maintainers' time reviewing code that has not been verified by you.

Issues related (if applicable)

N/A

Screenshots (if applicable)

N/A

Greptile Summary

Adds a copy-to-clipboard button to the AI log analysis result popover using the existing copy-to-clipboard library. The implementation is straightforward and consistent with how the library is used elsewhere in the codebase.

Confidence Score: 5/5

Safe to merge — small, isolated feature addition with no edge cases or regressions.

The change is minimal: one new state variable, one handler, and one button. The copy-to-clipboard library is already a dependency used in 20+ other components. The button is gated behind data?.analysis, so it only appears when relevant. No security, logic, or correctness issues were found.

No files require special attention.

Reviews (1): Last reviewed commit: "feat: add copy button to AI log analysis..." | Re-trigger Greptile

Allows users to quickly copy the AI-generated log analysis to their
clipboard from the analyze-logs popover, matching the copy UX used in
the deployment and docker logs views.

Made-with: Cursor
@Siumauricio Siumauricio marked this pull request as ready for review April 24, 2026 18:53
@Siumauricio Siumauricio self-requested a review as a code owner April 24, 2026 18:53
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant