graphql-voyager icon indicating copy to clipboard operation
graphql-voyager copied to clipboard

feature: ability to copy field lists

Open peet86 opened this issue 7 years ago • 3 comments

Feature:
copy to clipboard functionality (for the field list)

While you develop queries on the frontend for a GraphQL endpoint it would be handy to be able to copy field names directly from voyager to your queries..
At the moment this is painful because of the svg rendering.

Proposed solution: A "copy button" (small clipboard icon in the top right corner of the boxes) which copies all the fields to the clipboard when the user clicks on it.

The copied text would look like this (simple list with line breaks): name description whateverfield

I'm ready to jump into the implementation if the main contributors agree..

peet86 avatar Mar 16 '18 10:03 peet86

A "copy button" (small clipboard icon in the top right corner of the boxes) which copies all the fields to the clipboard when the user clicks on it.

@peet86 We trying to keep graph view as clean as possible. How about adding it to the left panel, on the right side of fields? image

IvanGoncharov avatar Mar 16 '18 15:03 IvanGoncharov

I'm fine with that place too. PR is coming soon!

peet86 avatar Mar 16 '18 15:03 peet86

@peet86 Looking forward to your PR!

IvanGoncharov avatar Mar 16 '18 18:03 IvanGoncharov