studio icon indicating copy to clipboard operation
studio copied to clipboard

Feature Request: Refresh button for the site preview

Open zdenys opened this issue 1 year ago • 3 comments

What

The site preview doesn't refresh automatically after making changes to the site. It would be nice to have a refresh button/icon to trigger the refresh manually to see the most accurate preview.

Why

The site preview doesn't refresh automatically after making changes to the site.

How

It would be nice to have a refresh button/icon somewhere here:

Screenshot on 2024-04-25 at 12:07:28

zdenys avatar Apr 25 '24 10:04 zdenys

I'm not sure we should add a button for this; that seems like cruft.

Instead, we might want to:

  1. Refresh more frequently.
  2. Listen to key WordPress actions and refresh when one of them is fired.

danielbachhuber avatar Apr 25 '24 11:04 danielbachhuber

@danielbachhuber @zdenys it partially works - the thumbnail is refreshed when:

  • the site starts
  • Studio notices theme was changed

wojtekn avatar Apr 25 '24 13:04 wojtekn

Yet, when I change the Style or update the Template part on the homepage it doesn't refresh. These events are good candidates for a refresh.

https://github.com/Automattic/studio/assets/39308239/78e1869f-4b12-4dd8-a4d9-ac116566e62a

zdenys avatar Apr 25 '24 13:04 zdenys