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

Playground Previews #118

Merged
merged 18 commits into from
Jun 28, 2024
Merged

Playground Previews #118

merged 18 commits into from
Jun 28, 2024

Conversation

dd32
Copy link
Member

@dd32 dd32 commented Jun 11, 2024

See #14

This is a companion to WordPress/wordpress.org#329 exploring adding Theme Previews using Playground to the new theme.

Notes:

  • This relies upon the above PR for the rest api endpoint. Merged
  • Some changes in the above PR are irrelevant with the new theme
  • This is assuming that w.org/themes/$theme/preview/ is only used on WordPress.org and is NOT the core previewer
    • WordPress.org shouldn't be loaded within an iframe for core, so the /preview/ endpoint included in the new theme is unlikely to replace wp-themes.com immediately, and it's probably likely that we'd duplicate the previewer offered here onto wp-themes.com.
  • Took some shortcuts in just deleting some of the previewer code with the overlays to speed up development (I was frustrated with Playground enough, I couldn't determine if playground was at fault or I was using interactivity api wrong)

This is actually a very small change code-wise, but the user-experience is not at all ideal IMHO, based on the load times.

@dd32 dd32 force-pushed the try/playground-previewer branch from eb92088 to 54c6c58 Compare June 19, 2024 06:47
bazza pushed a commit to WordPress/wordpress.org that referenced this pull request Jun 24, 2024
@dd32 dd32 marked this pull request as ready for review June 27, 2024 02:24
@dd32
Copy link
Member Author

dd32 commented Jun 27, 2024

After this is merged, you'll be able to compare these two urls:

@dd32 dd32 force-pushed the try/playground-previewer branch from a092e22 to 92e6cfa Compare June 27, 2024 02:28
@dd32
Copy link
Member Author

dd32 commented Jun 27, 2024

@ryelle This has removed the Invalid URL: The preview could not be loaded. notice and code, but I'm not sure why it exists in the first place.

Is this fine to do? Is there an edge-case that I'm not aware of that we care about?

@dd32 dd32 merged commit cc6fa38 into WordPress:trunk Jun 28, 2024
@ryelle
Copy link
Collaborator

ryelle commented Jun 28, 2024

This has removed the Invalid URL: The preview could not be loaded. notice and code, but I'm not sure why it exists in the first place.

Is this fine to do? Is there an edge-case that I'm not aware of that we care about?

I added it assuming we would want to avoid showing non-wporg sites in the previewer, but never followed up to see if that was even possible from the plugin code— so no, I was just trying to be extra-cautious.

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 this pull request may close these issues.

2 participants