Skip to content
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

Add ability to close "all changes are gone" notification #1076

Closed
ellatrix opened this issue Feb 29, 2024 · 0 comments · Fixed by #1082
Closed

Add ability to close "all changes are gone" notification #1076

ellatrix opened this issue Feb 29, 2024 · 0 comments · Fixed by #1082

Comments

@ellatrix
Copy link
Member

Would be nice to be able to hide this message, maybe with a close button.

This is a cool fun experimental WordPress running in your browser :) All your changes are private and gone after a page refresh.

On mobile especially this gets in the way of testing and taking screenshots.

adamziel added a commit that referenced this issue Mar 5, 2024
Removes the "This is a cool fun experimental WordPress" notice either
when it's clicked, or after 20 seconds of using Playground. Once hidden,
a cookie is set to prevent the notice from showing up again.

 ## Testing instructions

* Open Playground
* Click the notice, confirm it got hidden
* Refresh the page, confirm it isn't there
* Open Playground again in a private mode
* Wait 20 seconds and confirm the notice gets hidden

Closes #1076
adamziel added a commit that referenced this issue Mar 5, 2024
Removes the "This is a cool fun experimental WordPress" notice either
when it's clicked, or after 20 seconds of using Playground. Once hidden,
a cookie is set to prevent the notice from showing up again.

## Testing instructions

* Open Playground
* Click the notice, confirm it got hidden
* Refresh the page, confirm it isn't there
* Open Playground again in a private mode
* Wait 20 seconds and confirm the notice gets hidden

![CleanShot 2024-03-05 at 10 31
07@2x](https://github.com/WordPress/wordpress-playground/assets/205419/05a6214b-7168-42aa-96b5-fe31aafa60eb)

Closes #1076

cc @ellatrix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant