-
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(organizations): handle user removes itself flow TASK-1354 (#5393)
### 📣 Summary The navigation and data flow is improved when an MMO organization admin removes itself from the organization. ### 📖 Description The objective of this PR is to: - Minimize wrong API calls due to permissions and session data that needs to be updated - Present a better flow for the user, redirecting them to the correct view after the removal There's still a big margin for improving, mainly due to some work needed in `useUsage`, but it unfolds into several other files and flows, so it's better to be handled in a separated PR ### 👀 Preview steps 1. ℹ️ have an account and a project 2. Be the admin in an MMO 3. Navigate to Account Settings > Members 4. Remove yourself from the organization 5. 🔴 [on main] notice that the user is not redirected and there are some failed attempts to API calls due to permissions 6. 🟢 [on PR] notice that the user is redirected and there's only 1 failed attempt to usage API
- Loading branch information
1 parent
36b4484
commit c85150b
Showing
5 changed files
with
65 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters