Skip to content

[Website] Create stored Playgrounds from URLs or bundles - #4025

Merged
adamziel merged 5 commits into
trunkfrom
support-create-playground-from-bundle
Jul 12, 2026
Merged

[Website] Create stored Playgrounds from URLs or bundles#4025
adamziel merged 5 commits into
trunkfrom
support-create-playground-from-bundle

Conversation

@adamziel

@adamziel adamziel commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

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. Keep setStoredSiteSpec as the URL-compatible alias. Bundle creation persists the bundle before metadata and removes it if metadata creation fails.

No UI action is wired yet.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread packages/playground/website/src/lib/state/redux/slice-sites.ts Outdated
Comment thread packages/playground/website/src/lib/state/redux/slice-sites.ts Outdated
Comment thread packages/playground/website/src/lib/state/redux/slice-sites.ts Outdated
Comment thread packages/playground/website/src/lib/state/redux/slice-sites.ts Outdated
Comment thread packages/playground/website/src/lib/state/redux/slice-sites.ts Outdated
Comment thread packages/playground/website/src/lib/state/redux/slice-sites.ts Outdated
@adamziel adamziel changed the title [Website] Store edited Blueprint bundles for new Playgrounds Jul 12, 2026
@adamziel
adamziel merged commit 506e013 into trunk Jul 12, 2026
53 checks passed
@adamziel
adamziel deleted the support-create-playground-from-bundle branch July 12, 2026 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment