fix: Improve ux when deleting user from dashboard #137
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of change
Problem Statement
When a user account is deleted and navigated back to the users list, we still show the deleted user in the list which is not correct.
Please merge this PR first into this branch.
#138
Summary of solution
We should refetch the user list data from backend when user is deleted or account linked to a user is deleted.
(Overview of how the problem is solved by this PR)
Related issues
Test Plan
Tested on all primary browsers for:
Feature tests:
Dashboard Admin access.
POST
,PUT
andDELETE
endpoints with admins only access enabled for the dashboard recipe.POST
,PUT
andDELETE
endpoints without the admins only access enabled.Search
General UI testing
Multi tenant testing
User Roles and Permissions testing
feature_not_enabled
state on both userDetails page and user roles page.User creation
emailpassword
andthirdpartyemailpassword
together and individually.passwordless
andthirdpartypasswordless
together and individually.contactMethod
's ensure that the frontend displays relevant UI based on thecontactMethod
selected.emailpassword
andpasswordless
user with the same email and make sure that the accounts are linked.Documentation changes
(If relevant, please create a PR in our docs repo, or create a checklist here highlighting the necessary changes)
Checklist for important updates
package.json
package-lock.json
src/version.ts
npm run build
Remaining TODOs for this PR