Skip to content

feat(ui): add copy button to workflow logs viewer. Fixes #636, #6384#16289

Open
nakatani-yo wants to merge 2 commits into
argoproj:mainfrom
nakatani-yo:feat/ui-logs-copy-button
Open

feat(ui): add copy button to workflow logs viewer. Fixes #636, #6384#16289
nakatani-yo wants to merge 2 commits into
argoproj:mainfrom
nakatani-yo:feat/ui-logs-copy-button

Conversation

@nakatani-yo

@nakatani-yo nakatani-yo commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Fixes #636
Fixes #6384

Motivation

When viewing workflow logs in the UI, copying log content is unnecessarily difficult. Users must manually select text in the log viewer, which is error-prone — especially for running pods where the selection gets immediately cleared as new logs stream in (#6384). This has been a long-standing UX pain point since 2018 (#636).

Modifications

  • Added a "Copy" button to the workflow logs viewer toolbar that copies the entire log content to the clipboard.
  • The button provides visual feedback by briefly showing a checkmark icon and "Copied" text after a successful copy.
  • Internally, log lines are accumulated in a useRef so clipboard copy can access the full log content without triggering re-renders.
  • Added 'clipboard' to the shared icon type definitions.

Verification

  • Opened the workflow logs viewer in the browser and confirmed the Copy button appears in the toolbar.
  • Clicked the button and verified log content is copied to clipboard correctly.
  • Confirmed the button shows "Copied" feedback for 2 seconds before reverting.
  • Verified existing log viewer functionality (streaming, filtering, download) is unaffected.
image

Documentation

No documentation update needed. The copy button is self-discoverable in the UI toolbar alongside existing buttons (Download, Log Fields).

AI

Codex

Signed-off-by: nakatani-yo <yoshihito.nakatani@craftsman-software.com>
Signed-off-by: nakatani-yo <yoshihito.nakatani@craftsman-software.com>
@nakatani-yo nakatani-yo changed the title feat(ui): add copy button to workflow logs viewer feat(ui): add copy button to workflow logs viewer. Fixes #636, #6384 Jun 22, 2026
@nakatani-yo nakatani-yo marked this pull request as ready for review June 22, 2026 11:31
@nakatani-yo nakatani-yo requested review from a team as code owners June 22, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI: Selection in the log viewer is immediately unselected Support copy and paste of Logs in UI

1 participant