Skip to content

Conversation

@Bori-github
Copy link
Collaborator

📌 요약

  • 플레이그라운드 별 코드 실행 로직 적용 및 로컬 스토리지 내 코드 가져오기

📝 작업 내용

  • 플레이그라운드 별 코드 실행 로직 적용
  • 플레이그라운드 별 로컬 스토리지 내 코드 가져오기

🔍 스크린샷

2025-10-30.9.10.35.mov

💡 참고 사항

  • 없음

@Bori-github Bori-github self-assigned this Oct 30, 2025
@Bori-github Bori-github added the enhancement New feature or request label Oct 30, 2025
@ohah ohah requested a review from Copilot October 30, 2025 12:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 executeCode method from useExecutionStore to usePlaygroundStore to support playground-specific execution
  • Migrated getInitialCode function to support per-playground code initialization using playgroundId
  • Introduced PLAYGROUND_STORAGE_KEY constant 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.

@Bori-github Bori-github merged commit ea129bf into main Oct 31, 2025
3 checks passed
ohah pushed a commit that referenced this pull request Dec 12, 2025
* feat: playground store에 플레이그라운드 별 코드 실행 로직 추가 및 적용

* feat: 플레이그라운드 별 로컬 스토리지 내 코드 가져오기

* chore: 플레이그라운드 별 코드 실행 로직 내 실행 상태, 결과 set하는 코드 Map set 으로 변경

* refactor: 초기 코드 스토어에서 가져오도록 수정 및 디폴트 코드 상수화
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants