[PR #3755] [CLOSED] feat: allow admins to delete invitations sent to users in the admin dashboard #4518

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3755
Author: @joeljstephen
Created: 1/17/2024
Status: Closed

Base: release/2023.12.3Head: feat/dashboard-user-invitation-revoke


📝 Commits (8)

  • b9c36fa feat: revokeUserInviteByAdmin mutation added and invitedUsers query updated
  • 5fc9b56 test: update test case for fetchInvitedUsers
  • 20e8b50 chore: pass adminUid to service function
  • ac0f3ba test: added test case for revokeUserInvite function
  • f3387d0 chore: update mutation name to revokeUserInvitationByAdmin
  • 0146d26 refactor: implemented deletion for user invites
  • 3009d63 refactor: new i18n strings for invited users
  • 58e0d56 refactor: updated styles and i18n strings in invited users component

📊 Changes

10 files changed (+281 additions, -85 deletions)

View changed files

📝 packages/hoppscotch-backend/src/admin/admin.resolver.ts (+29 -0)
📝 packages/hoppscotch-backend/src/admin/admin.service.spec.ts (+60 -3)
📝 packages/hoppscotch-backend/src/admin/admin.service.ts (+58 -6)
📝 packages/hoppscotch-backend/src/admin/invited-user.model.ts (+6 -0)
📝 packages/hoppscotch-backend/src/errors.ts (+5 -0)
📝 packages/hoppscotch-backend/src/pubsub/topicsDefs.ts (+1 -1)
📝 packages/hoppscotch-sh-admin/locales/en.json (+3 -0)
📝 packages/hoppscotch-sh-admin/src/components.d.ts (+3 -53)
packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/RevokeUserInvitationByAdmin.graphql (+3 -0)
📝 packages/hoppscotch-sh-admin/src/pages/users/invited.vue (+113 -22)

📄 Description

Ticket

  • Closes HFE-398
  • Depends on #3740

Description

This PR adds the ability for admins to delete invitations sent to users and remove the entries from the invited users table in the Admin Dashboard

Objectives

  • Allow admins to delete invitations sent to users in the invited users page

Screenshots

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/3755 **Author:** [@joeljstephen](https://github.com/joeljstephen) **Created:** 1/17/2024 **Status:** ❌ Closed **Base:** `release/2023.12.3` ← **Head:** `feat/dashboard-user-invitation-revoke` --- ### 📝 Commits (8) - [`b9c36fa`](https://github.com/hoppscotch/hoppscotch/commit/b9c36faaa4126d04e29ba4f2f9c2e1572d9d2e70) feat: revokeUserInviteByAdmin mutation added and invitedUsers query updated - [`5fc9b56`](https://github.com/hoppscotch/hoppscotch/commit/5fc9b5660a8e3f863dfd2f7fc8d34251d88703b1) test: update test case for fetchInvitedUsers - [`20e8b50`](https://github.com/hoppscotch/hoppscotch/commit/20e8b50524158ddf45cbe88a1575bf1f5f70ab83) chore: pass adminUid to service function - [`ac0f3ba`](https://github.com/hoppscotch/hoppscotch/commit/ac0f3babbbd27dc1047948cc8398e3fc5efdd41d) test: added test case for revokeUserInvite function - [`f3387d0`](https://github.com/hoppscotch/hoppscotch/commit/f3387d06e31aa61c3a4e74d030f19f9108a68f73) chore: update mutation name to revokeUserInvitationByAdmin - [`0146d26`](https://github.com/hoppscotch/hoppscotch/commit/0146d26cd11be6a69c53c4cf58008f06d8c9ded4) refactor: implemented deletion for user invites - [`3009d63`](https://github.com/hoppscotch/hoppscotch/commit/3009d63eb27dfc2ed35ec5e7cbd7f0ca283cd7ff) refactor: new i18n strings for invited users - [`58e0d56`](https://github.com/hoppscotch/hoppscotch/commit/58e0d56e6a61dfcc70cea2574e9865d71f5a9b54) refactor: updated styles and i18n strings in invited users component ### 📊 Changes **10 files changed** (+281 additions, -85 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-backend/src/admin/admin.resolver.ts` (+29 -0) 📝 `packages/hoppscotch-backend/src/admin/admin.service.spec.ts` (+60 -3) 📝 `packages/hoppscotch-backend/src/admin/admin.service.ts` (+58 -6) 📝 `packages/hoppscotch-backend/src/admin/invited-user.model.ts` (+6 -0) 📝 `packages/hoppscotch-backend/src/errors.ts` (+5 -0) 📝 `packages/hoppscotch-backend/src/pubsub/topicsDefs.ts` (+1 -1) 📝 `packages/hoppscotch-sh-admin/locales/en.json` (+3 -0) 📝 `packages/hoppscotch-sh-admin/src/components.d.ts` (+3 -53) ➕ `packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/RevokeUserInvitationByAdmin.graphql` (+3 -0) 📝 `packages/hoppscotch-sh-admin/src/pages/users/invited.vue` (+113 -22) </details> ### 📄 Description ### Ticket - Closes HFE-398 - Depends on #3740 ### Description This PR adds the ability for admins to delete invitations sent to users and remove the entries from the invited users table in the Admin Dashboard ### Objectives - [x] Allow admins to delete invitations sent to users in the invited users page ### Screenshots ![image](https://github.com/hoppscotch/hoppscotch/assets/70131076/15381dbd-e959-4c3a-aea5-8856385159d4) ### 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:02:51 +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#4518
No description provided.