[Website] Create stored Playgrounds from URLs or bundles - #4025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a Redux thunk to create a new OPFS-backed stored Playground from an in-memory, editable Blueprint bundle (intended for future “edited blueprint runs in a new Playground” behavior), ensuring the bundle is persisted before site metadata.
Changes:
- Introduces
setStoredSiteSpecFromBlueprintBundle()thunk to persist an edited bundle then create a new stored site entry. - Adds unit tests verifying persistence order (bundle before metadata) and failure behavior when runtime resolution fails.
- Extends test helper
createSiteInfo()to allow custom slug/name to support new test scenarios.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| packages/playground/website/src/lib/state/redux/slice-sites.ts | Adds thunk to create a new OPFS stored site from an editable Blueprint bundle and persist bundle before metadata. |
| packages/playground/website/src/lib/state/redux/slice-sites.spec.ts | Adds tests for the new thunk (success path + invalid runtime path) and updates helpers to support them. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stored-site creation only accepted setup URLs. The Blueprint editor needs to create a separate Playground from its in-memory edited bundle.
Expose
createStoredSite()for both inputs. KeepsetStoredSiteSpecas the URL-compatible alias. Bundle creation persists the bundle before metadata and removes it if metadata creation fails.No UI action is wired yet.