[PR #4202] [MERGED] feat(sh-admin): introducing infra-tokens to admin dashboard #4699

Closed
opened 2026-03-17 02:12:40 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4202
Author: @joeljstephen
Created: 7/21/2024
Status: Merged
Merged: 7/29/2024
Merged by: @AndrewBastin

Base: nextHead: feat/dashboard-infra-tokens


📝 Commits (10+)

  • 53bd0c7 feat: new query and mutations added to introduce infra tokens to dashboard
  • 27ccdfd feat: new components introduced for InfraTokens
  • 90be7e1 refactor: updated imports and newer i18n strings
  • 195e9b8 feat: new svg added and better ui for infra tokens related components
  • cc21e67 refactor: improvements to all infra token related components
  • c1b96cd refactor: updated variable names and strings to represent infra tokens instead of access tokens
  • 3c279b1 refactor: better imports and updated i18n strings
  • e912a00 refactor: changes to how skip and take works
  • b88df29 fix: infinite scroll based pagination issue is resolved
  • a2a984f refactor: code improvements

📊 Changes

18 files changed (+753 additions, -74 deletions)

View changed files

packages/hoppscotch-sh-admin/assets/images/pack.svg (+39 -0)
📝 packages/hoppscotch-sh-admin/locales/en.json (+34 -0)
📝 packages/hoppscotch-sh-admin/src/components.d.ts (+58 -54)
📝 packages/hoppscotch-sh-admin/src/components/settings/AuthProvider.vue (+3 -6)
📝 packages/hoppscotch-sh-admin/src/components/settings/Configurations.vue (+1 -1)
📝 packages/hoppscotch-sh-admin/src/components/settings/DataSharing.vue (+3 -3)
📝 packages/hoppscotch-sh-admin/src/components/settings/Reset.vue (+3 -3)
📝 packages/hoppscotch-sh-admin/src/components/settings/SmtpConfiguration.vue (+3 -6)
packages/hoppscotch-sh-admin/src/components/tokens/GenerateModal.vue (+210 -0)
packages/hoppscotch-sh-admin/src/components/tokens/List.vue (+130 -0)
packages/hoppscotch-sh-admin/src/components/tokens/Overview.vue (+30 -0)
packages/hoppscotch-sh-admin/src/components/tokens/index.vue (+188 -0)
packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/CreateInfraToken.graphql (+12 -0)
packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/RevokeInfraToken.graphql (+3 -0)
packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/InfraTokens.graphql (+9 -0)
📝 packages/hoppscotch-sh-admin/src/helpers/errors.ts (+6 -0)
packages/hoppscotch-sh-admin/src/helpers/utils/date.ts (+17 -0)
📝 packages/hoppscotch-sh-admin/src/pages/settings.vue (+4 -1)

📄 Description

Ticket

  • Closes HFE-544
  • Depends on #4191

Description

This PR introduces infra tokens to the admin dashboard. Admins can view, create and delete infra level tokens from the settings page of the admin dashboard. These tokens can be used to utilise the SH User Management APIs.

Screenshot

image

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/4202 **Author:** [@joeljstephen](https://github.com/joeljstephen) **Created:** 7/21/2024 **Status:** ✅ Merged **Merged:** 7/29/2024 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `next` ← **Head:** `feat/dashboard-infra-tokens` --- ### 📝 Commits (10+) - [`53bd0c7`](https://github.com/hoppscotch/hoppscotch/commit/53bd0c7e9dfa3df7ad96b9b0cf27edc350ffb5e6) feat: new query and mutations added to introduce infra tokens to dashboard - [`27ccdfd`](https://github.com/hoppscotch/hoppscotch/commit/27ccdfd7152368fbbc9584b618391839a4fa72d1) feat: new components introduced for InfraTokens - [`90be7e1`](https://github.com/hoppscotch/hoppscotch/commit/90be7e139a054d8f3edf77e1c0b2cf41edb13c2c) refactor: updated imports and newer i18n strings - [`195e9b8`](https://github.com/hoppscotch/hoppscotch/commit/195e9b849ce25ddbf188cb0a5f9edfaf087985f8) feat: new svg added and better ui for infra tokens related components - [`cc21e67`](https://github.com/hoppscotch/hoppscotch/commit/cc21e672d1c621213238d42533f2ee3169479ed2) refactor: improvements to all infra token related components - [`c1b96cd`](https://github.com/hoppscotch/hoppscotch/commit/c1b96cdad68e2fbd8defec8562cfc67ecaea9b62) refactor: updated variable names and strings to represent infra tokens instead of access tokens - [`3c279b1`](https://github.com/hoppscotch/hoppscotch/commit/3c279b187fe7401e0b4e6d4e1287460bd0a6b9e2) refactor: better imports and updated i18n strings - [`e912a00`](https://github.com/hoppscotch/hoppscotch/commit/e912a003caf2e34f3576ac147beeb227b4916ca7) refactor: changes to how skip and take works - [`b88df29`](https://github.com/hoppscotch/hoppscotch/commit/b88df29398ceb73b87315c31bb75a9d9f256fe71) fix: infinite scroll based pagination issue is resolved - [`a2a984f`](https://github.com/hoppscotch/hoppscotch/commit/a2a984f04168526b9b2b88f99c7322a0ebf14523) refactor: code improvements ### 📊 Changes **18 files changed** (+753 additions, -74 deletions) <details> <summary>View changed files</summary> ➕ `packages/hoppscotch-sh-admin/assets/images/pack.svg` (+39 -0) 📝 `packages/hoppscotch-sh-admin/locales/en.json` (+34 -0) 📝 `packages/hoppscotch-sh-admin/src/components.d.ts` (+58 -54) 📝 `packages/hoppscotch-sh-admin/src/components/settings/AuthProvider.vue` (+3 -6) 📝 `packages/hoppscotch-sh-admin/src/components/settings/Configurations.vue` (+1 -1) 📝 `packages/hoppscotch-sh-admin/src/components/settings/DataSharing.vue` (+3 -3) 📝 `packages/hoppscotch-sh-admin/src/components/settings/Reset.vue` (+3 -3) 📝 `packages/hoppscotch-sh-admin/src/components/settings/SmtpConfiguration.vue` (+3 -6) ➕ `packages/hoppscotch-sh-admin/src/components/tokens/GenerateModal.vue` (+210 -0) ➕ `packages/hoppscotch-sh-admin/src/components/tokens/List.vue` (+130 -0) ➕ `packages/hoppscotch-sh-admin/src/components/tokens/Overview.vue` (+30 -0) ➕ `packages/hoppscotch-sh-admin/src/components/tokens/index.vue` (+188 -0) ➕ `packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/CreateInfraToken.graphql` (+12 -0) ➕ `packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/RevokeInfraToken.graphql` (+3 -0) ➕ `packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/InfraTokens.graphql` (+9 -0) 📝 `packages/hoppscotch-sh-admin/src/helpers/errors.ts` (+6 -0) ➕ `packages/hoppscotch-sh-admin/src/helpers/utils/date.ts` (+17 -0) 📝 `packages/hoppscotch-sh-admin/src/pages/settings.vue` (+4 -1) </details> ### 📄 Description ### Ticket - Closes HFE-544 - Depends on #4191 ### Description This PR introduces infra tokens to the admin dashboard. Admins can view, create and delete infra level tokens from the settings page of the admin dashboard. These tokens can be used to utilise the SH User Management APIs. ### Screenshot ![image](https://github.com/user-attachments/assets/be98f310-c70b-4fc3-b945-87f9e8a59555) ### 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 02:12:40 +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#4699
No description provided.