-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Website] Rename Create a similar Playground to Edit Playground settings #1834
Conversation
packages/playground/website/src/components/site-manager/start-similar-site-button/index.tsx
Outdated
Show resolved
Hide resolved
@bgrgicak, I think our original plan was to support both "Edit Playground settings" and "Create a similar Playground". The reason IIUC is that we want to allow people to change their selected WordPress version without having to destroy their current Playground instance. But maybe that doesn't make sense because switching to a site with a different WP version means they have to leave the current temporary site behind, unless we do something to bring its data into the fork. If we do this PR, maybe we should add a warning if the WordPress version is changed that it is a destructive action. What do you think? |
@brandonpayton it's not a destructive action, it just creates another Playground. The "Edit Playground Settings" label is slightly confusing, but I think that's an okay price to pay for getting the user to the modal they're looking for. I also can't think of any better alternative for now – any ideas? |
Ah, you're right. Thanks. Ultimately, maybe it would be good to keep WP source files and Until we are able to swap out WP versions, I wonder if we should edit site settings in place and make saving with a new WordPress version a destructive action with a warning. As a user, I might find it confusing that editing settings led to a new entry in the Playground Manager. |
Oh that sounds lovely, I like that!
@brandonpayton Interestingly, that's how this PR started! It went back to just changing the label upon discussing that's not actually a destructive change, but I see how actually making it destructive could, paradoxically, make for a more intuitive behavior. 🤔 Yeah, let's try that. |
Yeah, this is tricky territory whichever way we go, until we can swap WP versions in-place. |
What about just Settings? |
5acd0d7
to
5719a49
Compare
@brandonpayton @adamziel what do you think about this modal? I wanted to add a modal and implement resetting, but then realized there is a TODO to allow users to choose, so I made this. I'm not sure if it's a good flow for users and would also like to check with @jarekmorawski. |
TODO:
|
IMO if the user was able to click into the WordPress Version and switch, which then prompted the confirmation modal, that makes the most sense. Though I'd also settle for calling it "Settings" as well :) |
@bgrgicak thanks for the picture. I think that seems like a reasonable dialog to have with users. If we only show it when certain settings change, it would probably be good to mention specifically why they are being prompted. Alternately, maybe we should invest some time into separating WordPress source files from If we were able to do that, could we skip the prompt entirely? Any thoughts on that? |
@mattreport, thanks for chiming in! I think you might be right that we could just prompt when making changes that require a reset. Hopefully we can get to a place that doesn't require resetting site state as well. |
We would need to cover the full list of settings. I don't think that we support switching language today or toggling multisites after the site is created. Alternativly we could remove some of these from editing settings and offer them only in the Add Playground modal. |
680cd19
to
2e376d2
Compare
Motivation for the change, related issues
@annezazu asked why we don't support changing settings on temporary Playgrounds after the redesign.
We do, but the label is called Create a similar Playground which is technically correct but might not be clear to users.
We concluded that the label should be Edit Playground settings even if it's not 100% technically correct.
Suggested improvement
For users it might not be fully expected that the site will be cloned, so I added a modal that clarifies what clone does and added support for resetting the site with new settings.
Ideally, we would only change the settings and keep the same site, but we can't do it until we implement site cloning.
Implementation details
TBD
Testing Instructions (or ideally a Blueprint)