[PR #3455] [MERGED] refactor: updated dashboard gql queries and components to use the new infra type of the updated schema #4389

Closed
opened 2026-03-17 01:55:44 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3455
Author: @joeljstephen
Created: 10/16/2023
Status: Merged
Merged: 11/1/2023
Merged by: @AndrewBastin

Base: release/2023.12.0Head: refactor/dashboard-infra-type


📝 Commits (4)

  • 97360e0 refactor: updated gql queries to now use infra type instead of admin type
  • 65cb154 refactor: updated team related components to use infra type instead of admin type
  • 7b015fd refactor: updated user related components to use infra type instead of admin type
  • e702343 refactor: updated metrics related component to use infra type instead of admin type

📊 Changes

19 files changed (+33 additions, -28 deletions)

View changed files

📝 packages/hoppscotch-sh-admin/src/components.d.ts (+5 -0)
📝 packages/hoppscotch-sh-admin/src/components/teams/Details.vue (+1 -1)
📝 packages/hoppscotch-sh-admin/src/components/teams/Invite.vue (+2 -2)
📝 packages/hoppscotch-sh-admin/src/components/teams/Members.vue (+3 -3)
📝 packages/hoppscotch-sh-admin/src/components/teams/PendingInvites.vue (+4 -4)
📝 packages/hoppscotch-sh-admin/src/components/teams/Table.vue (+1 -1)
📝 packages/hoppscotch-sh-admin/src/components/users/Table.vue (+1 -1)
📝 packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/InvitedUsers.graphql (+1 -1)
📝 packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/Metrics.graphql (+1 -1)
📝 packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/TeamInfo.graphql (+1 -1)
📝 packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/TeamList.graphql (+1 -1)
📝 packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/UserInfo.graphql (+1 -1)
📝 packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/UsersList.graphql (+1 -1)
📝 packages/hoppscotch-sh-admin/src/pages/dashboard.vue (+1 -1)
📝 packages/hoppscotch-sh-admin/src/pages/teams/_id.vue (+3 -3)
📝 packages/hoppscotch-sh-admin/src/pages/teams/index.vue (+3 -3)
📝 packages/hoppscotch-sh-admin/src/pages/users/_id.vue (+1 -1)
📝 packages/hoppscotch-sh-admin/src/pages/users/index.vue (+1 -1)
📝 packages/hoppscotch-sh-admin/src/pages/users/invited.vue (+1 -1)

📄 Description

Ticket

  • Closes HFE-286
  • Dependent on #3445

Description

This PR focuses on updating the backend gql queries and the components used in the Admin Dashboard to now use infra type instead of the previously used admin type because of the new schema change in the backend.

Objectives

  • Update GQL Queries in the Admin Dashboard to now use infra type.
  • Update components in the Dashboard to now use and refer to the new infra type instead of admin type.

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

🔄 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/3455 **Author:** [@joeljstephen](https://github.com/joeljstephen) **Created:** 10/16/2023 **Status:** ✅ Merged **Merged:** 11/1/2023 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `release/2023.12.0` ← **Head:** `refactor/dashboard-infra-type` --- ### 📝 Commits (4) - [`97360e0`](https://github.com/hoppscotch/hoppscotch/commit/97360e0cacd1c54648268c9451fb84f0d9bf09de) refactor: updated gql queries to now use infra type instead of admin type - [`65cb154`](https://github.com/hoppscotch/hoppscotch/commit/65cb1541d752c99071cc0fd078b0794ea4dfe332) refactor: updated team related components to use infra type instead of admin type - [`7b015fd`](https://github.com/hoppscotch/hoppscotch/commit/7b015fd4755fa82dd637cc115888256371b25c7f) refactor: updated user related components to use infra type instead of admin type - [`e702343`](https://github.com/hoppscotch/hoppscotch/commit/e702343ac67eb7b25c576f8b84160fce42d3f818) refactor: updated metrics related component to use infra type instead of admin type ### 📊 Changes **19 files changed** (+33 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-sh-admin/src/components.d.ts` (+5 -0) 📝 `packages/hoppscotch-sh-admin/src/components/teams/Details.vue` (+1 -1) 📝 `packages/hoppscotch-sh-admin/src/components/teams/Invite.vue` (+2 -2) 📝 `packages/hoppscotch-sh-admin/src/components/teams/Members.vue` (+3 -3) 📝 `packages/hoppscotch-sh-admin/src/components/teams/PendingInvites.vue` (+4 -4) 📝 `packages/hoppscotch-sh-admin/src/components/teams/Table.vue` (+1 -1) 📝 `packages/hoppscotch-sh-admin/src/components/users/Table.vue` (+1 -1) 📝 `packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/InvitedUsers.graphql` (+1 -1) 📝 `packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/Metrics.graphql` (+1 -1) 📝 `packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/TeamInfo.graphql` (+1 -1) 📝 `packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/TeamList.graphql` (+1 -1) 📝 `packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/UserInfo.graphql` (+1 -1) 📝 `packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/UsersList.graphql` (+1 -1) 📝 `packages/hoppscotch-sh-admin/src/pages/dashboard.vue` (+1 -1) 📝 `packages/hoppscotch-sh-admin/src/pages/teams/_id.vue` (+3 -3) 📝 `packages/hoppscotch-sh-admin/src/pages/teams/index.vue` (+3 -3) 📝 `packages/hoppscotch-sh-admin/src/pages/users/_id.vue` (+1 -1) 📝 `packages/hoppscotch-sh-admin/src/pages/users/index.vue` (+1 -1) 📝 `packages/hoppscotch-sh-admin/src/pages/users/invited.vue` (+1 -1) </details> ### 📄 Description ### Ticket - Closes HFE-286 - Dependent on #3445 ### Description This PR focuses on updating the backend gql queries and the components used in the Admin Dashboard to now use `infra` type instead of the previously used `admin` type because of the new schema change in the backend. ### Objectives - [x] Update GQL Queries in the Admin Dashboard to now use `infra` type. - [x] Update components in the Dashboard to now use and refer to the new `infra` type instead of `admin` type. ### 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 - [x] All the tests have passed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:55:44 +03:00
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#4389
No description provided.