feat(playground-url): add package to generate playground share links#1381
Conversation
Add @opendatacapture/playground-url, which encodes an instrument's source files into a shareable playground link (lz-string compressed, matching the playground's existing URL scheme). Exposes a library (generatePlaygroundURL, encodeShareURL, decodeShareURL, isFullscreenShareURL) and a `playground-url` CLI that points at an instrument directory and emits the link. Move the share-URL encode/decode logic out of apps/playground into the new package so the app and CLI share one implementation, and have the playground consume it (passing baseURL: window.location.origin to preserve dev behavior). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (15)
WalkthroughExtracts share URL encoding/decoding logic from the playground app into a new reusable ChangesPlayground URL Package Extraction
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add @opendatacapture/playground-url, which encodes an instrument's source
files into a shareable playground link (lz-string compressed, matching the
playground's existing URL scheme). Exposes a library (generatePlaygroundURL,
encodeShareURL, decodeShareURL, isFullscreenShareURL) and a
playground-urlCLI that points at an instrument directory and emits the link.
Move the share-URL encode/decode logic out of apps/playground into the new
package so the app and CLI share one implementation, and have the playground
consume it (passing baseURL: window.location.origin to preserve dev behavior).
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Summary by CodeRabbit
New Features
Chores