Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak Prettify GraphQL Setting in Console #10074

Closed
MalikBagwala opened this issue Dec 27, 2023 · 2 comments
Closed

Tweak Prettify GraphQL Setting in Console #10074

MalikBagwala opened this issue Dec 27, 2023 · 2 comments
Labels
c/console Related to console k/enhancement New feature or improve an existing feature v2

Comments

@MalikBagwala
Copy link

Component

Console -> c/v3-console

-->

Is your proposal related to a problem?

Current Implementation of Prettify
Screenshot 2023-12-27 at 9 32 48 AM

Current Hasura console prettifies everything into a single line and this is rarely useful since console is mostly used during the development and a more readable approach should be preferred instead of a compact one. I have to use tools like GraphQL Formatter very often, so I thought this links to a deep issue in the UX of the console.

Describe the solution you'd like

I want the prettier to function like this instead.

Screenshot 2023-12-27 at 9 33 12 AM

Describe alternatives you've considered

Manually formatting the code via online formatters

@manasag manasag added c/console Related to console v2 k/enhancement New feature or improve an existing feature labels Dec 27, 2023
@MalikBagwala
Copy link
Author

@manasag I am happy to pick this up, let me know if this needs to be implemented.

@MalikBagwala MalikBagwala changed the title Tweak Prettify GraphQL Setting in Hasura Tweak Prettify GraphQL Setting in Console Dec 27, 2023
@manasag
Copy link
Contributor

manasag commented Dec 28, 2023

This feature is dependent on support by the GraphiQL library. There is an open issue with GraphiQL on the same. We have tested with GraphiQL 2, and its still not supported.
This is duplicate of #1571 , hence closing this one.

@manasag manasag closed this as completed Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/console Related to console k/enhancement New feature or improve an existing feature v2
Projects
None yet
Development

No branches or pull requests

2 participants