[PR #3723] feat(graphql): Environments #4506

Open
opened 2026-03-17 02:02:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3723
Author: @Timeraa
Created: 1/6/2024
Status: 🔄 Open

Base: mainHead: feat-graphql-environments


📝 Commits (6)

  • 95d3063 feat: env selector & tab ui
  • a13c955 fix: authorization tab headers not parsed
  • 0e1fdf0 feat: parse environment in graphql variables
  • 9b22360 feat: url parsing
  • f41ee4f chore: use non-deprecated function
  • e8ab9bf Merge branch 'main' into feat-graphql-environments

📊 Changes

5 files changed (+89 additions, -29 deletions)

View changed files

📝 packages/hoppscotch-common/src/components/graphql/Request.vue (+3 -6)
📝 packages/hoppscotch-common/src/components/graphql/Sidebar.vue (+9 -1)
📝 packages/hoppscotch-common/src/components/graphql/Variable.vue (+3 -2)
📝 packages/hoppscotch-common/src/helpers/graphql/connection.ts (+70 -20)
📝 packages/hoppscotch-common/src/pages/graphql.vue (+4 -0)

📄 Description

Closes #2172

Description

This PR adds the environments that are present in the REST tab to the GraphQL tab.

  • Add necessary UI elements
  • Parse Header variables
  • Parse Graphql variables
  • Parse Authorization variables
  • Parse Endpoint variables
  • Add tests to check if functionality works (Are there tests for UI?)

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Additional Information

image
image
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/3723 **Author:** [@Timeraa](https://github.com/Timeraa) **Created:** 1/6/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat-graphql-environments` --- ### 📝 Commits (6) - [`95d3063`](https://github.com/hoppscotch/hoppscotch/commit/95d3063f5864239102f5d1600ad235699b523c28) feat: env selector & tab ui - [`a13c955`](https://github.com/hoppscotch/hoppscotch/commit/a13c955347c5caf13ee451be4cfaf291be26e9a5) fix: authorization tab headers not parsed - [`0e1fdf0`](https://github.com/hoppscotch/hoppscotch/commit/0e1fdf0871125d1cb8a0787f430ac2fc8eca6f8e) feat: parse environment in graphql variables - [`9b22360`](https://github.com/hoppscotch/hoppscotch/commit/9b22360bdd186d4864d79e461fbfb1c1f6ffb5e4) feat: url parsing - [`f41ee4f`](https://github.com/hoppscotch/hoppscotch/commit/f41ee4fdd39d9c181998bfb1fefbf5fce3dc91b1) chore: use non-deprecated function - [`e8ab9bf`](https://github.com/hoppscotch/hoppscotch/commit/e8ab9bfe53ca48d15415563c2f4bc04733569225) Merge branch 'main' into feat-graphql-environments ### 📊 Changes **5 files changed** (+89 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/components/graphql/Request.vue` (+3 -6) 📝 `packages/hoppscotch-common/src/components/graphql/Sidebar.vue` (+9 -1) 📝 `packages/hoppscotch-common/src/components/graphql/Variable.vue` (+3 -2) 📝 `packages/hoppscotch-common/src/helpers/graphql/connection.ts` (+70 -20) 📝 `packages/hoppscotch-common/src/pages/graphql.vue` (+4 -0) </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> Closes #2172 ### Description <!-- Add a brief description of the pull request --> This PR adds the environments that are present in the REST tab to the GraphQL tab. <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> - [x] Add necessary UI elements - [x] Parse Header variables - [x] Parse Graphql variables - [x] Parse Authorization variables - [x] Parse Endpoint variables - [ ] Add tests to check if functionality works (Are there tests for UI?) ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [x] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [ ] All the tests have passed ### Additional Information <!-- Any additional information like breaking changes, dependencies added, screenshots, comparisons between new and old behaviour, etc. --> ![image](https://github.com/hoppscotch/hoppscotch/assets/29104008/31cf49fc-a60b-4ebc-9e84-f56691ecae3e) ![image](https://github.com/hoppscotch/hoppscotch/assets/29104008/3b87a57c-802f-42fa-bef0-40d708b859e8) ![image](https://github.com/hoppscotch/hoppscotch/assets/29104008/828570d4-2794-42cf-a9cf-61f6048c951b) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4506
No description provided.