feat(logs): Add "Copy message" and "Copy as JSON" to log row actions#111729
Draft
JoshuaKGoldberg wants to merge 1 commit intomasterfrom
Draft
feat(logs): Add "Copy message" and "Copy as JSON" to log row actions#111729JoshuaKGoldberg wants to merge 1 commit intomasterfrom
JoshuaKGoldberg wants to merge 1 commit intomasterfrom
Conversation
Replace the single "Copy to clipboard" option in the log row ellipsis dropdown with two distinct actions: "Copy message" (copies the cell value) and "Copy as JSON" (copies the full log payload as formatted JSON). The JSON option is always clickable and defers the copy until data finishes loading if needed. Also add a "Copy message" button alongside the existing "Copy as JSON" button in the expanded row details view. Refs LINEAR-LOGS-637 Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com> Made-with: Cursor
fe901d4 to
ac1080c
Compare
JoshuaKGoldberg
commented
Mar 27, 2026
| }) { | ||
| const organization = useOrganization(); | ||
| const {copy} = useCopyToClipboard(); | ||
| const pendingCopyJsonRef = useRef(false); |
Member
Author
There was a problem hiding this comment.
TODO: this is... sus. I will take a deeper look on Monday.
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.
Expand the log row ellipsis dropdown to offer two copy actions instead of the single "Copy to clipboard": Copy message (copies the cell value) and Copy as JSON (copies the full log payload as formatted JSON). The JSON option is always clickable — if the full log data hasn't loaded yet, it defers the copy until the data arrives.
Also adds a Copy message button alongside the existing Copy as JSON in the expanded row details view, so both copy options are available in both locations.
Each action shows a distinct success toast ("Copied message" / "Copied as JSON") so users know which copy succeeded.
I tried to switch from custom components and style overrides to mostly use the equivalent design system elements where possible.
Fixes LOGS-637
Made with Cursor