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(GDB-10459) Initial GraphQL Playground integration #1760

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

teodossidossev
Copy link
Contributor

WHAT:

Added a new GraphQL Playground integration with the following:

  • graphql-playground.directive.js: Custom directive for embedding the GraphQL Playground component
  • graphql-playground-view.controller.js: Controller for managing GraphQL Playground view.
  • graphql-playground.html: Templates for both the directive and route views.
  • plugin.js: Registered routes and main menu entries for GraphQL Playground.
  • Added translations in locale-en.json and locale-fr.json.
  • Included ontotext-graphql-playground-component in package.json.
  • Updated webpack.config.common.js to bundle required assets.
  • Modified app.js to load the GraphQL component’s custom elements.

WHY:

  • To provide an initial integration of GraphQL Playground component

HOW:

  • Created a new Angular module graphdb.framework.graphql for managing GraphQL components.
  • Developed a custom directive graphql-playground to embed the GraphQL Playground web component.
  • Integrated routes for the playground view and updated the main menu structure in plugin.js.
  • Included the necessary assets and dependencies in the build process
  • Initial test added

Screenshots

image

Checklist

  • Branch name
  • Target branch
  • Commit messages
  • Squash commits
  • MR name
  • MR Description
  • Tests

## WHAT:
Added a new GraphQL Playground integration with the following:
- `graphql-playground.directive.js`: Custom directive for embedding the GraphQL Playground component
- `graphql-playground-view.controller.js`: Controller for managing GraphQL Playground view.
- `graphql-playground.html`: Templates for both the directive and route views.
- `plugin.js`: Registered routes and main menu entries for GraphQL Playground.
- Added translations in locale-en.json and locale-fr.json.
- Included ontotext-graphql-playground-component in package.json.
- Updated webpack.config.common.js to bundle required assets.
- Modified app.js to load the GraphQL component’s custom elements.

## WHY:
- To provide an initial integration of GraphQL Playground component

## HOW:
- Created a new Angular module graphdb.framework.graphql for managing GraphQL components.
- Developed a custom directive graphql-playground to embed the GraphQL Playground web component.
- Integrated routes for the playground view and updated the main menu structure in plugin.js.
- Included the necessary assets and dependencies in the build process
- Initial test added
Copy link

Quality Gate Failed Quality Gate failed for 'graphdb-workbench'

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

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.

2 participants