fix(organizations): adjust loading process for invite responses TASK-1602 #5547
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.
🗒️ Checklist
<type>(<scope>)<!>: <title> TASK-1234
frontend
orbackend
unless it's global📣 Summary
Introduces a delay in refreshing user data after an MMO invitation is accepted to allow for initial backend project transfers and separates the loading state of the accept/decline buttons.
💭 Notes
Combines work for both TASK-1602 and TASK-1603. The impacted code is closely related and it will be quicker to preview/test both at the same time.
👀 Preview steps
As an MMO owner/admin invite a new member to organization
As invitee, navigate to emailed invitation link
Decline invite (you might want to throttle your network connection in devtools first for easier observation)
Observe that only the "decline" button loading spinner is activated
As an MMO owner/admin invite a new member to organization
As invitee, create an empty project ("invitee's project")
navigate to emailed invitation link
Accept invite (you might want to throttle your network connection in devtools first for easier observation)
Observe that only the "Accept" button loading spinner is activated
Observe that once invitation patch has been successful, the modal displays a loading spinner for 1 second before disappearing, following which session and project list data are refreshed (with a loading spinner on the data table) and "invitee's project" is now shown to belong to MMO