Skip to content

feat: add extract-code-connect package - #726

Open
noahchoii wants to merge 20 commits into
correct-dialog-code-connectfrom
extract-figma-code-connect
Open

feat: add extract-code-connect package#726
noahchoii wants to merge 20 commits into
correct-dialog-code-connectfrom
extract-figma-code-connect

Conversation

@noahchoii

Copy link
Copy Markdown
Contributor

Description of Changes

@coderabbitai summary

  • code-connect 추출용 인터널 패키지를 추가했습니다.
  • 사용이 필요한 패키지에서 직접 설치 후 사용할 수 있습니다.
# 설치
pnpm --filter @vapor-ui/composites add @vapor-ui/extract-code-connect --workspace

# 사용
pnpm --filter @vapor-ui/composites exec extract-code-connect <figma-url>

규칙

  • 루트에서 DFS 방식으로 자식 노드를 탐색합니다.
  • 자식 노드를 탐색하며 중첩 인스턴스를 탐색하고, 💙, 🟨 등의 계약 이모지를 만나면 순회를 중단하고 다음 노드를 탐색합니다.
  • 괄호 인스턴스 (Instance Name)
    • 변수명은 괄호 제거 후 lower case로 변환한다. (Popup)popup
  • 속성 매핑 시에는 다음과 같은 규칙을 따른다.
    • TEXT→string, BOOLEAN→boolean, VARIANT→enum, SLOT→slot, INSTANCE_SWAP→TODO 주석.
    • 이름이 (로 시작하는 속성은 추출하지 않는다.
    • 다만, SLOT은 이름 무관하게 항상 children에 포함시킨다.
    • variantOptions가 존재하는 경우 identity 매핑 { md: 'md', lg: 'lg' }. 빈 배열이면 에러.
  • 비괄호 인스턴스 (Assistive)
    • 인스턴스로 직접 추가한다.

Checklist

Before submitting the PR, please make sure you have checked all of the following items.

  • The PR title follows the Conventional Commits convention. (e.g., feat, fix, docs, style, refactor, test, chore)
  • I have added tests for my changes.
  • I have updated the Storybook or relevant documentation.
  • I have added a changeset for this change. (e.g., for any changes that affect users, such as component prop changes or new features).
  • I have performed a self-code review.
  • I have followed the project's coding conventions and component patterns.

@changeset-bot

changeset-bot Bot commented Sep 3, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6784633

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
vapor-ui Ready Ready Preview Sep 7, 2026 7:43am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: 282cdb31-b51b-4a23-880c-0653d0f01457

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant