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

feat: query composer (explorer) as a "built-in" GraphiQL plugin #79

Closed
wants to merge 1 commit into from

Conversation

jasonbahl
Copy link
Collaborator

@jasonbahl jasonbahl commented Mar 13, 2024

This implements the @graphiql/plugin-explorer as a "built-in" GraphiQL plugin.

Unfortunately, I don't think this will work as-is. There are some funky issues with it.

  • The close button doesn't interact with the state and doesn't close the panel.
  • The panel is not scrollable
  • The input throws errors
graphiql-explorer-errors.mp4

Some of these issues might be able to be resolved via CSS adjustments, but I think ultimately we'll need to pull the source code of the plugin and include it in our codebase instead of relying on it as a 3rd party plugin.

If we take a look at the plugin, we can see that it's a thin wrapper over the GraphQL Explorer that was built for the old GraphiQL IDE that did not have a plugin system, and as such it's not making use of current things like the activity panel state, etc.

Additionally, as we we work on things like implementing Custom Scalars, image uploads, etc, the composer as-is won't know how to support those scalars, so we will need to control the source code at a more granular level anyway.


related #5

- implement the explorerPlugin()
@jasonbahl jasonbahl marked this pull request as draft March 13, 2024 16:53
@jasonbahl
Copy link
Collaborator Author

closing, as addressed in #84

@jasonbahl jasonbahl closed this Mar 30, 2024
@josephfusco josephfusco deleted the feat/query-composer-built-in branch May 17, 2024 18:47
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.

1 participant