wordpress-mobile / gutenberg-mobile

Mobile version of Gutenberg - native iOS and Android
GNU General Public License v2.0
242 stars 55 forks source link

Adding the option to keep homepage content when switching theme #3174

Open rezzap opened 3 years ago

rezzap commented 3 years ago

Describe the bug

When activating a new theme, the content of the Home Page I had been editing is completely re-written and replaced with the themes homepage layout. Your existing page is moved to draft mode, but it's not clear at all to users that this is happening.

When switching themes on Desktop, a pop-up appears to give you the option and a similar thing should also appear in the app.

To Reproduce Steps to reproduce the behavior:

  1. Create a homepage for your site and save it as a draft or published. Make sure this page is assigned as your Static Front Page.
  2. Click on My Sites > Themes and switch to a new block based theme like Canvas.
  3. Go back to your Site Page List and try to find your existing home page.
  4. If your page was called home, a new 'home' page is created to replace it and the page is empty. You'll need to go to your drafts to find the page and then re-assign it in your settings as the Static Front page.

Expected behavior

It took me a while to figure out where the homepage content had gone.

When I checked on desktop, I noticed this pop-up. Image 2021-02-18 at 8 57 19 am

I was then able to go look through my drafts to find the page and restore it. If we're making changes to this on mobile with theme activation, I would expect a similar clarification.

Smartphone (please complete the following information):

Additional context User reported losing their homepage content in 750416-zen

eduardozulian commented 3 years ago

Related discussion (for Calypso) in https://github.com/Automattic/wp-calypso/issues/36378

iamgabrielma commented 3 years ago

Another case at 3764582-zen

chipsnyder commented 3 years ago

This was discussed in pb3aDo-HW-p2

eduardozulian commented 3 years ago

Another report: 3811999-zen

thabotswana commented 3 years ago

Another report here: 4080443-zen

thabotswana commented 3 years ago

Another report: 4097160-zen

mrfoxtalbot commented 6 months ago

This seems to be a duplicate of https://github.com/Automattic/wp-calypso/pull/39700

Also, I am not sure why this issue is in the correct repo. Please feel free to reopen if I am misunderstanding something, @rezzap.