Studio: Replace button loading indicator with full window one - #362
Conversation
wojtekn
left a comment
There was a problem hiding this comment.
The code change looks clear and works as expected. It works on Windows as well.
One note regarding UX - as creating a site on Windows takes more time than on MacOS, should we make the progress bar more dynamic to show some extrapolated progress?
sejas
left a comment
There was a problem hiding this comment.
Thanks for the changes, I tested it again and it looks great.
7oEQ3D.mp4
I also tested the edge case where you create a site and then select another one. 👍
| loadingSites, | ||
| } = useAddSite(); | ||
|
|
||
| const isSiteAdding = data.some( ( site ) => site.isAddingSite ); |
It's better now, as the progress bar progresses for most of the process. We could improve it even more by adjusting the starting position to be closer to 20%, as now it almost immediately goes to ~50%, and we could make the progress slightly slower. Or maybe it should be enough to adjust starting position. |
|
Sounds good @wojtekn - I will add a separate PR to beautify this 👍 Added an issue here: https://github.com/Automattic/dotcom-forge/issues/8340 |
Related to https://github.com/Automattic/dotcom-forge/issues/8167
Proposed Changes
This PR replaces the loading state on the
Add sitemodal with a full screen loading indicator:Testing Instructions
From "Add site" modal:
nvm use && npm install && npm startAdd sitebutton to open the modalAdd siteto add a siteAdd sitebutton is blocked for a given site when the site is being createdFrom "Onboarding" screen:
Add siteTesting for an error:
nvm use && npm install && npm startAdd sitebutton to open the modalAdd siteto add a siteNotes:
Pre-merge Checklist