플레이그라운드 별 코드 실행 로직 적용 및 로컬 스토리지 내 코드 가져오기#10
Merged
Bori-github merged 4 commits intomainfrom Oct 31, 2025
Merged
Conversation
ohah
reviewed
Oct 30, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR refactors code execution functionality to support multiple playgrounds by moving execution logic from a global store into the playground store. The change enables per-playground code execution and state management.
- Moved
executeCodemethod fromuseExecutionStoretousePlaygroundStoreto support playground-specific execution - Migrated
getInitialCodefunction to support per-playground code initialization usingplaygroundId - Introduced
PLAYGROUND_STORAGE_KEYconstant for consistent storage key usage
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| apps/executeJS/src/widgets/playground/playground-widget.tsx | Updated to use playground-specific props and store methods for code execution |
| apps/executeJS/src/features/playground/utils.ts | Added utility function to retrieve initial code per playground from storage |
| apps/executeJS/src/features/playground/store.ts | Added executeCode method to manage per-playground execution state |
| apps/executeJS/src/features/playground/index.ts | Exported new utils and constants |
| apps/executeJS/src/features/playground/const.ts | Defined storage key constant |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ohah
approved these changes
Oct 30, 2025
Enjoywater
approved these changes
Oct 31, 2025
ohah
pushed a commit
that referenced
this pull request
Dec 12, 2025
* feat: playground store에 플레이그라운드 별 코드 실행 로직 추가 및 적용 * feat: 플레이그라운드 별 로컬 스토리지 내 코드 가져오기 * chore: 플레이그라운드 별 코드 실행 로직 내 실행 상태, 결과 set하는 코드 Map set 으로 변경 * refactor: 초기 코드 스토어에서 가져오도록 수정 및 디폴트 코드 상수화
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.
📌 요약
📝 작업 내용
🔍 스크린샷
2025-10-30.9.10.35.mov
💡 참고 사항