[PR #3537] [MERGED] feat: introducing shared requests to admin dashboard #4421

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3537
Author: @joeljstephen
Created: 11/10/2023
Status: Merged
Merged: 12/5/2023
Merged by: @AndrewBastin

Base: release/2023.12.0Head: feat/dashboard-shared-requests


📝 Commits (10+)

  • 484d853 feat: new sidebar entry for shared requests
  • dafa82a feat: new clipboard helper util
  • 5de17c5 feat: new graphql query to fetch shared requests data
  • 9f6def4 feat: new graphql mutation to delete shared requests
  • aaedac9 feat: new shared request component to display shared requests
  • 1cd4cca chore: removed unncessary code
  • 882c6a6 feat: introduced the ability to filter shared requests
  • 40ffb7e refactor: new i18n strings for shared requests
  • 6b913b1 refactor: updated missing i18n translations
  • c5ea90f refactor: improvements made to code readability throughout the shared requests related files

📊 Changes

11 files changed (+485 additions, -132 deletions)

View changed files

📝 packages/hoppscotch-sh-admin/locales/en.json (+25 -1)
📝 packages/hoppscotch-sh-admin/src/components.d.ts (+5 -5)
packages/hoppscotch-sh-admin/src/components/ui/AutoResetIcon.vue (+47 -0)
packages/hoppscotch-sh-admin/src/components/users/Details.vue (+127 -0)
packages/hoppscotch-sh-admin/src/components/users/SharedRequests.vue (+191 -0)
📝 packages/hoppscotch-sh-admin/src/composables/usePagedQuery.ts (+14 -11)
packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/RevokeShortcodeByAdmin.graphql (+3 -0)
packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/SharedRequests.graphql (+13 -0)
packages/hoppscotch-sh-admin/src/helpers/utils/clipboard.ts (+18 -0)
📝 packages/hoppscotch-sh-admin/src/pages/teams/index.vue (+1 -1)
📝 packages/hoppscotch-sh-admin/src/pages/users/_id.vue (+41 -114)

📄 Description

Ticket

  • Closes HFE-280
  • Depends on #3504

Description

This PR introduces Shared Requests to the Admin Dashboard. The Individual User's page is now modified to include the shared requests created by that particular user. The new Shared Requests module allows admins to:

  1. View shared requests created by any user
  2. Open the shared requests in a new tab
  3. Copy the link of the selected shared request
  4. Delete any shared request

Screenshot

image

Objectives

  • Allow admins to view shared requests created by any user
  • Add the ability to open a shared requests in a new tab
  • Add the abiility to copy the link of the selected shared request
  • Add the ability to delete any shared request

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/3537 **Author:** [@joeljstephen](https://github.com/joeljstephen) **Created:** 11/10/2023 **Status:** ✅ Merged **Merged:** 12/5/2023 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `release/2023.12.0` ← **Head:** `feat/dashboard-shared-requests` --- ### 📝 Commits (10+) - [`484d853`](https://github.com/hoppscotch/hoppscotch/commit/484d8533a33facf35e6c5595de606de1d3ea5a13) feat: new sidebar entry for shared requests - [`dafa82a`](https://github.com/hoppscotch/hoppscotch/commit/dafa82ada03133de15aa14e04603ffc82f8e15f3) feat: new clipboard helper util - [`5de17c5`](https://github.com/hoppscotch/hoppscotch/commit/5de17c5165efb5f788491f965579cbf5586d9d6e) feat: new graphql query to fetch shared requests data - [`9f6def4`](https://github.com/hoppscotch/hoppscotch/commit/9f6def49a92b2f0d977a113568c25d90d8faa1f0) feat: new graphql mutation to delete shared requests - [`aaedac9`](https://github.com/hoppscotch/hoppscotch/commit/aaedac9c337dfa3dc7c062d15206f1b0637d5180) feat: new shared request component to display shared requests - [`1cd4cca`](https://github.com/hoppscotch/hoppscotch/commit/1cd4ccaa649c27c393f78190da534ebce54cf589) chore: removed unncessary code - [`882c6a6`](https://github.com/hoppscotch/hoppscotch/commit/882c6a61b1ebe726036bd3cb54855f5c301b551b) feat: introduced the ability to filter shared requests - [`40ffb7e`](https://github.com/hoppscotch/hoppscotch/commit/40ffb7ece714143226202382f25457bb87ab3c28) refactor: new i18n strings for shared requests - [`6b913b1`](https://github.com/hoppscotch/hoppscotch/commit/6b913b16c4909ebf51c2bcf7d905e0d6eff1a384) refactor: updated missing i18n translations - [`c5ea90f`](https://github.com/hoppscotch/hoppscotch/commit/c5ea90fce99ecd51da2d86e6565b64c06f96ef90) refactor: improvements made to code readability throughout the shared requests related files ### 📊 Changes **11 files changed** (+485 additions, -132 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-sh-admin/locales/en.json` (+25 -1) 📝 `packages/hoppscotch-sh-admin/src/components.d.ts` (+5 -5) ➕ `packages/hoppscotch-sh-admin/src/components/ui/AutoResetIcon.vue` (+47 -0) ➕ `packages/hoppscotch-sh-admin/src/components/users/Details.vue` (+127 -0) ➕ `packages/hoppscotch-sh-admin/src/components/users/SharedRequests.vue` (+191 -0) 📝 `packages/hoppscotch-sh-admin/src/composables/usePagedQuery.ts` (+14 -11) ➕ `packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/RevokeShortcodeByAdmin.graphql` (+3 -0) ➕ `packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/SharedRequests.graphql` (+13 -0) ➕ `packages/hoppscotch-sh-admin/src/helpers/utils/clipboard.ts` (+18 -0) 📝 `packages/hoppscotch-sh-admin/src/pages/teams/index.vue` (+1 -1) 📝 `packages/hoppscotch-sh-admin/src/pages/users/_id.vue` (+41 -114) </details> ### 📄 Description ### Ticket - Closes HFE-280 - Depends on #3504 ### Description This PR introduces Shared Requests to the Admin Dashboard. The Individual User's page is now modified to include the shared requests created by that particular user. The new Shared Requests module allows admins to: 1. View shared requests created by any user 2. Open the shared requests in a new tab 3. Copy the link of the selected shared request 4. Delete any shared request ### Screenshot <img width="1467" alt="image" src="https://github.com/hoppscotch/hoppscotch/assets/70131076/80f3e032-cb36-4d24-b1a1-b37382cdc966"> ### Objectives - [x] Allow admins to view shared requests created by any user - [x] Add the ability to open a shared requests in a new tab - [x] Add the abiility to copy the link of the selected shared request - [x] Add the ability to delete any shared request ### 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:57: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#4421
No description provided.