mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #4044] [MERGED] refactor(sh-admin): improved error handling and dynamic user actions in admin dashboard #4644
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4644
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/4044
Author: @joeljstephen
Created: 5/7/2024
Status: ✅ Merged
Merged: 6/3/2024
Merged by: @nivedin
Base:
patch← Head:refactor/dashboard-improvements📝 Commits (10+)
54a4f4bfeat: new helper functions for better error management5009e02refactor: new i18n strings296d436refactor: better error handling in invite modal and members component87aa129refactor: better user managementc17be80refactor: better error handling in config handler0c8effdrefactor: updated logic of dynamic action row813e487refactor: better naming for computed properties8698bb7feat: new error message when an admin tries to invite himself909eb38refactor: updated error message when user is already invitedb0f1692refactor: reverted i18n string for user already invited back to the old string📊 Changes
8 files changed (+154 additions, -73 deletions)
View changed files
📝
packages/hoppscotch-sh-admin/locales/en.json(+3 -1)📝
packages/hoppscotch-sh-admin/src/components.d.ts(+42 -41)📝
packages/hoppscotch-sh-admin/src/components/teams/Members.vue(+8 -1)📝
packages/hoppscotch-sh-admin/src/components/users/InviteModal.vue(+0 -10)📝
packages/hoppscotch-sh-admin/src/composables/useConfigHandler.ts(+7 -1)📝
packages/hoppscotch-sh-admin/src/helpers/errors.ts(+55 -1)📝
packages/hoppscotch-sh-admin/src/helpers/userManagement.ts(+10 -8)📝
packages/hoppscotch-sh-admin/src/pages/users/index.vue(+29 -10)📄 Description
Ticket
Closes HFE-514
Description
This PR focuses on improving error handling and user actions in the admin dashboard. Recurring errors returned from the backend are stored, and are paired with appropriate error messages to improve error handling in the dashboard. The action bar in the users page is made to be more dynamic where buttons appear only when the action is relevant based on the selection made by the user
Example:
Make Adminbutton is not shown when selected users are all adminsObjectives
Recording
https://github.com/hoppscotch/hoppscotch/assets/70131076/b83e7471-7e68-48ae-a5b8-5d9a137e3681
Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.