[PR #3814] [MERGED] feat(sh-admin): enhanced user management in admin dashboard #4535

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3814
Author: @joeljstephen
Created: 2/8/2024
Status: Merged
Merged: 3/13/2024
Merged by: @AndrewBastin

Base: release/2024.3.0Head: feat/dashboard-user-management


📝 Commits (10+)

  • 8809c3b feat: new mutations for bulk delete, and enabling and disabling of the admin status
  • 23ceb11 refactor: implemented bulk actions in users page
  • 0083cb7 refactor: updated index component to support selected rows as a useVmodel
  • 50f4888 feat: new users list mutation
  • fdeb4b1 refactor: updated index to support new search operation in users table
  • 9702b2e feat: new pagination system implemented in users table
  • f66c78f feat: ability to revoke user invitations
  • 7021feb style: ui fixes in users page
  • 94d77a1 chore: updated debounce value for users table
  • f107c18 feat: new error messages in dashboard

📊 Changes

23 files changed (+2712 additions, -2183 deletions)

View changed files

📝 packages/hoppscotch-common/src/components.d.ts (+208 -208)
📝 packages/hoppscotch-sh-admin/locales/en.json (+41 -7)
📝 packages/hoppscotch-sh-admin/package.json (+2 -2)
📝 packages/hoppscotch-sh-admin/src/components.d.ts (+4 -0)
📝 packages/hoppscotch-sh-admin/src/components/users/Details.vue (+99 -4)
📝 packages/hoppscotch-sh-admin/src/components/users/InviteModal.vue (+7 -1)
📝 packages/hoppscotch-sh-admin/src/components/users/SharedRequests.vue (+73 -76)
📝 packages/hoppscotch-sh-admin/src/composables/usePagedQuery.ts (+24 -17)
packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/DemoteUsersByAdmin.graphql (+3 -0)
packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/MakeUserAdmin.graphql (+0 -3)
packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/MakeUsersAdmin.graphql (+3 -0)
packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/RemoveUserAsAdmin.graphql (+0 -3)
packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/RemoveUserByAdmin.graphql (+0 -3)
packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/RemoveUsersByAdmin.graphql (+7 -0)
packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/RevokeUserInvitationsByAdmin.graphql (+3 -0)
packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/UpdateUserDisplayNameByAdmin.graphql (+3 -0)
packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/UsersListV2.graphql (+12 -0)
📝 packages/hoppscotch-sh-admin/src/helpers/errors.ts (+10 -0)
📝 packages/hoppscotch-sh-admin/src/pages/teams/index.vue (+79 -75)
📝 packages/hoppscotch-sh-admin/src/pages/users/_id.vue (+70 -47)

...and 3 more files

📄 Description

Ticket

  • Closes HFE-406
  • Depends on #3786

Description

This PR brings a ton of features to improve user management in Admin Dashboard.

New Features

  1. Admins can now update the name of any user,
  2. Bulk actions are now possible in the users table. These actions include:
    • Elevation of multiple users to admin status,
    • Removal of admin status from multiple users,
    • Deletion of multiple users,
  3. Ability to search through the users table by name or email address of the users.
  4. New page based pagination system for the users table replacing the previous used scroll based pagination system.
  5. Ability to revoke pending invites from the pending invites page.

Additional Changes

Due to the changes introduced in HoppSmartTable, all tables in the admin dashboard have been updated to adhere to the new changes.

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/3814 **Author:** [@joeljstephen](https://github.com/joeljstephen) **Created:** 2/8/2024 **Status:** ✅ Merged **Merged:** 3/13/2024 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `release/2024.3.0` ← **Head:** `feat/dashboard-user-management` --- ### 📝 Commits (10+) - [`8809c3b`](https://github.com/hoppscotch/hoppscotch/commit/8809c3b77920eb1352b43197ad282a4f08ff6b12) feat: new mutations for bulk delete, and enabling and disabling of the admin status - [`23ceb11`](https://github.com/hoppscotch/hoppscotch/commit/23ceb116b9ece1b0e1f9f93bf49ead80e55fa064) refactor: implemented bulk actions in users page - [`0083cb7`](https://github.com/hoppscotch/hoppscotch/commit/0083cb767264d1e70fcf64999313b2629e6c52e8) refactor: updated index component to support selected rows as a useVmodel - [`50f4888`](https://github.com/hoppscotch/hoppscotch/commit/50f488828aeb43e18ada5bb04ee5c4092252d51d) feat: new users list mutation - [`fdeb4b1`](https://github.com/hoppscotch/hoppscotch/commit/fdeb4b1a1cda57f1fb8c4e7b50ee6760574f5962) refactor: updated index to support new search operation in users table - [`9702b2e`](https://github.com/hoppscotch/hoppscotch/commit/9702b2e5aec6a5b3f7ed9fbafc24c87e7e1ce91a) feat: new pagination system implemented in users table - [`f66c78f`](https://github.com/hoppscotch/hoppscotch/commit/f66c78f0c9e35dd39bcffca1b5d053f4c02694c3) feat: ability to revoke user invitations - [`7021feb`](https://github.com/hoppscotch/hoppscotch/commit/7021feb55299e981697d6e047693553c68b1ffb2) style: ui fixes in users page - [`94d77a1`](https://github.com/hoppscotch/hoppscotch/commit/94d77a18ca724895de7bbe8e0374088852d449e6) chore: updated debounce value for users table - [`f107c18`](https://github.com/hoppscotch/hoppscotch/commit/f107c186c3a5e04f0eba9c29698816222521104c) feat: new error messages in dashboard ### 📊 Changes **23 files changed** (+2712 additions, -2183 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/components.d.ts` (+208 -208) 📝 `packages/hoppscotch-sh-admin/locales/en.json` (+41 -7) 📝 `packages/hoppscotch-sh-admin/package.json` (+2 -2) 📝 `packages/hoppscotch-sh-admin/src/components.d.ts` (+4 -0) 📝 `packages/hoppscotch-sh-admin/src/components/users/Details.vue` (+99 -4) 📝 `packages/hoppscotch-sh-admin/src/components/users/InviteModal.vue` (+7 -1) 📝 `packages/hoppscotch-sh-admin/src/components/users/SharedRequests.vue` (+73 -76) 📝 `packages/hoppscotch-sh-admin/src/composables/usePagedQuery.ts` (+24 -17) ➕ `packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/DemoteUsersByAdmin.graphql` (+3 -0) ➖ `packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/MakeUserAdmin.graphql` (+0 -3) ➕ `packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/MakeUsersAdmin.graphql` (+3 -0) ➖ `packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/RemoveUserAsAdmin.graphql` (+0 -3) ➖ `packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/RemoveUserByAdmin.graphql` (+0 -3) ➕ `packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/RemoveUsersByAdmin.graphql` (+7 -0) ➕ `packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/RevokeUserInvitationsByAdmin.graphql` (+3 -0) ➕ `packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/UpdateUserDisplayNameByAdmin.graphql` (+3 -0) ➕ `packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/UsersListV2.graphql` (+12 -0) 📝 `packages/hoppscotch-sh-admin/src/helpers/errors.ts` (+10 -0) 📝 `packages/hoppscotch-sh-admin/src/pages/teams/index.vue` (+79 -75) 📝 `packages/hoppscotch-sh-admin/src/pages/users/_id.vue` (+70 -47) _...and 3 more files_ </details> ### 📄 Description ### Ticket - Closes HFE-406 - Depends on #3786 ### Description This PR brings a ton of features to improve user management in Admin Dashboard. ### New Features 1. Admins can now update the name of any user, 2. Bulk actions are now possible in the users table. These actions include: - Elevation of multiple users to admin status, - Removal of admin status from multiple users, - Deletion of multiple users, 3. Ability to search through the users table by name or email address of the users. 4. New page based pagination system for the users table replacing the previous used scroll based pagination system. 5. Ability to revoke pending invites from the pending invites page. ### Additional Changes Due to the changes introduced in `HoppSmartTable`, all tables in the admin dashboard have been updated to adhere to the new changes. ### Screenshot ![image](https://github.com/hoppscotch/hoppscotch/assets/70131076/fde5c994-6bb1-46e0-a879-234454afd3fd) ### 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:03: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#4535
No description provided.