Skip to content

Conversation

@adamziel
Copy link
Collaborator

@adamziel adamziel commented Dec 5, 2025

Summary

This PR introduces a new "Saved Playgrounds" overlay that replaces the sidebar for site management. The overlay provides a centralized place for:

  • Creating new Playgrounds: Quick access buttons for Fresh WordPress, WordPress PR, Gutenberg PR, GitHub import, Blueprint URL, and zip import
  • Browsing Blueprints: Preview featured blueprints with a "View all" option to browse the full gallery with search and tag filtering
  • Managing saved sites: View and switch between your saved Playgrounds with site names and creation dates

The site manager panel, file editor etc. are still available like before.

CleanShot.2025-12-05.at.02.56.50.mp4

Follow-up work

  • Add a "Download as zip" button to per-site hamburger menu in the overlay
  • Remove the hamburger menu in the site info sidebar and make those buttons more visible
  • Add a "Vanilla WordPress" first Blueprint to make starting over more convenient visually
  • Store the last 5 temporary Playgrounds in OPFS to avoid data loss on accidental refreshes
  • Move "Import from GitHub" OAuth flow to a popup for smoother UX and also to avoid data loss

Test plan

  • Open the Saved Playgrounds overlay from the toolbar
  • Create a new Playground using each creation option
  • Browse blueprints, use search and tag filters
  • Switch between saved Playgrounds via the overlay
  • Verify the overlay works well on mobile viewports
  • Verify no "No site is selected" flash when creating sites
  • Run e2e tests: npx nx e2e playground-website

The "View all blueprints" button was being hidden on mobile due to CSS
rules that hide blueprint preview cards beyond a certain position. Fixed
by excluding the last child (the View all button) from the hiding rule.

Updated e2e tests to work with the new saved playgrounds overlay instead
of the old sidebar. The site list has moved from the sidebar to the overlay,
so tests that switch between sites or verify site names now use the overlay.
Added helper methods openSavedPlaygroundsOverlay() and closeSavedPlaygroundsOverlay()
to the test fixtures.
Always shows a "Temporary Playground" row at the top of the Your Playgrounds section in the overlay. When clicked, it either switches to an existing temporary playground or creates a new one if none exists.
@adamziel adamziel force-pushed the manage-sites-blueprints branch from ed92e82 to cb59f08 Compare December 6, 2025 00:17
The rename button was only opening the modal without telling it which
site to rename. The RenameSiteModal needs siteSlugToRename in state to
work - without it, the modal renders nothing.
The saved playgrounds overlay now shows the Temporary Playground row at
the top of the list. The test was using .first() to get the renamed site,
but that now returns the temporary playground. Changed to look for the
specific renamed name instead.
The website vite build was sometimes starting before the blueprints
schema validator file was fully generated, causing intermittent CI
failures with 'invalid JS syntax' errors. Adding an explicit dependency
ensures the schema generation completes first.
@adamziel adamziel force-pushed the manage-sites-blueprints branch from cc17c61 to aa48a13 Compare December 8, 2025 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants