Skip to content

[DONE] Pattern Lab 의 붙여넣기 상자가 영어로 묻고, 텍스트 레이어를 고르면 Code·Pixel 패널이 Text 패널로 보낸다 - #206

Merged
patternflow-bot merged 5 commits into
devfrom
claude/studio-pf-round80-8gb0it
Oct 24, 2026
Merged

patternflow-bot merged 5 commits into
devfrom
claude/studio-pf-round80-8gb0it

Conversation

@patternflow-bot

@patternflow-bot patternflow-bot commented Oct 24, 2026 •

Copy link
Copy Markdown

studio / https://claude.ai/code/session_01SbJr8zoSv6G9gAD1i784uA

Pattern Lab 의 Paste 가 클립보드를 못 읽어 여는 상자가 영어 쪽에서 한국어로 묻던 것을 영어로 바꿨어요. 텍스트 레이어를 고르면 Code 패널은 픽셀 아트라고, Pixel 패널은 코드 패턴이라고 하던 안내도 고른 레이어의 종류와 그걸 고치는 패널을 말해요.

좋아지는 것: 텍스트 레이어를 고르면 어느 패널로 가야 하는지 맞게 알려 준다 — 엉뚱한 패널을 헤매지 않는다

할 일

  • incoming/ROUND.md 읽기
  • 앞 바퀴 PR 댓글(OWNER·MEMBER·COLLABORATOR) 읽기 — 따를 글 없음
  • 「후보」 표에서 남은 줄 고르기 — 후보 15
  • 고치고 시험·검사
  • 증거(화면) 남기기
  • dev merge
  • CI 초록 뒤 [DONE]

한 일

CodePanel.tsx 의 window.prompt 글을 「Paste the pattern code here and press OK.」 로 바꿨어요. Make 가이드(components/guide/copy/lab.ts:61)가 「paste into the box the Lab opens instead and press OK」 라고 보내는 그 상자예요.

두 패널의 빈 안내는 layer.type 을 열쇠로 하는 표(OTHER_LAYER_HINT)에서 꺼내요. 열쇠가 Exclude<Layer["type"], …> 라 레이어 종류가 하나 더 생기면 타입 검사가 안내 글을 달라고 해요. 글은 이렇게 돼요.

패널 고른 레이어 안내
Code text The selected layer is text. Edit it in the Text panel, or select a code layer.
Code pixel The selected layer is pixel art. Edit it in the Pixel panel, or select a code layer.
Pixel text The selected layer is text. Edit it in the Text panel, or select a pixel layer to draw.
Pixel code The selected layer is a code pattern. Edit it in the Code panel, or select a pixel layer to draw.

시험은 다섯 개를 더했어요. CodePanel.test.tsx 에 readText 를 거절시키고 window.prompt 를 엿보는 것 둘(상자 글과 붙인 코드, 취소하면 레이어 그대로), 텍스트와 픽셀 레이어를 고른 안내 둘이에요. PixelPanel.test.tsx 엔 코드와 텍스트 레이어를 고른 안내 하나예요. 고치기 전 코드로 돌리면 넷이 빨갰어요(취소 시험만 그때도 초록).

증거

고치기 전 코드로 새 시험을 돌린 끝:

   × CodePanel paste > asks in English when the clipboard can't be read, and pastes what goes in the box
   × CodePanel on another layer > names a text layer and sends it to the Text panel
   × CodePanel on another layer > names a pixel layer and sends it to the Pixel panel
   × PixelPanel > names the selected layer's kind and the panel that edits it

고친 뒤 web/ 에서:

$ npx vitest run src/app/pattern-lab/panels/CodePanel.test.tsx src/app/pattern-lab/panels/PixelPanel.test.tsx
      Tests  38 passed (38)
$ npm ci
(exit 0)
$ npm run lint -- --max-warnings=0
lint exit 0
$ npm run typecheck
tc exit 0
$ npm run build
build exit 0
$ npm run check:ci
 Test Files  96 passed (96)
      Tests  1218 passed (1218)
passed   virtual-panel
[exited with code 0]
$ npm run check:voice
check:voice: nothing found

check:ci 의 drift 는 14개 passed, roadmap 과 links-absolute 둘은 책상에서처럼 skipped 예요.

dev 를 merge 한 head c82dc35 의 GitHub 검사:

Drift checks | completed | success
Web CI | completed | success

빌드한 사이트(next start -p 3100)를 Playwright 로 열어, 클립보드 권한 없이 Paste 를 누르고 dialog 글을 받았어요. 상자에 display.setPixel(1, 1, 255, 0, 0) 코드를 넣고 OK 했더니 미리보기 (1,1) 에 빨간 점이 섰어요(아래 사진 왼쪽 위). 그다음 Layers 에서 「+ Text」 를 누르고 Code, Pixel 탭으로 갔어요.

390: dialog ["Paste the pattern code here and press OK."]
390: code hint The selected layer is text. Edit it in the Text panel, or select a code layer.
390: pixel hint The selected layer is text. Edit it in the Text panel, or select a pixel layer to draw.
1440: dialog ["Paste the pattern code here and press OK."]
1440: code hint The selected layer is text. Edit it in the Text panel, or select a code layer.
1440: pixel hint The selected layer is text. Edit it in the Text panel, or select a pixel layer to draw.

폰 390 · 텍스트 레이어를 고른 Code 패널
데스크톱 1440 · 텍스트 레이어를 고른 Code 패널
폰 390 · 텍스트 레이어를 고른 Pixel 패널
데스크톱 1440 · 텍스트 레이어를 고른 Pixel 패널

실행법

web/ 에서 npm run dev 로 /pattern-lab 을 열고, Layers 의 「+ Text」 를 누른 뒤 Code 탭과 Pixel 탭을 봐요. 붙여넣기 상자는 사이트 설정에서 클립보드를 막고 Code 탭의 Paste 를 누르면 떠요.

가정

Changelog

Web

  • Pattern Lab's paste box asks in English, and the Code and Pixel panels name a selected text layer. When the browser refused the clipboard, Paste opened a box that asked in Korean on an English page. With a text layer selected, the Code panel called it pixel art and the Pixel panel called it a code pattern; each now names the layer's kind and the panel that edits it.

경험

언제: 바퀴에서 Pattern Lab 의 Paste 처럼 클립보드를 읽는 단추를 Playwright 로 확인할 때
교훈: 권한을 주지 않은 헤드리스 크로미움은 navigator.clipboard.readText 를 거절하니, page.on("dialog") 로 대신 뜨는 window.prompt 글을 받고 accept(코드) 로 붙여 넣기까지 해 본다
근거: #206 에서 그렇게 상자 글 「Paste the pattern code here and press OK.」 를 받고, 넣은 코드의 빨간 점이 미리보기 (1,1) 에 서는 것까지 봤어요

바퀴

바퀴 80 · 후보 15 「Code 패널의 붙여넣기 상자와 안내가 영어로, 고른 레이어의 종류대로 말한다」

다음 바퀴

  • 16 「Knobs 패널에서 화살표 키 한 번이 기기의 노브 한 칸만큼 움직인다」: 화살표 10번에 Freq 가 10 에서 10.01 로만 가서, 키보드로는 노브를 쓸 수 없어요.
  • 17 「폰에서 Layers 와 Knobs 의 단추가 손가락 크기다」: 390px 터치에서 막대 단추가 28px, 레이어 눈이 20×17px, Push 가 40×22px 예요.
  • 18 「폰에서 Pixel 패널이 그림을 1× 대신 2× 로 맞춰 연다」: 터치에 없는 마우스 손짓 안내가 두 줄로 접혀 그림 칸을 51px 먹어요.

https://claude.ai/code/session_01SbJr8zoSv6G9gAD1i784uA


Generated by Claude Code

@patternflow-bot patternflow-bot changed the title [WIP] pf 80바퀴 — 고를 일을 찾는 중 [WIP] Pattern Lab 의 붙여넣기 상자가 영어로 묻고, 텍스트 레이어를 고르면 Code·Pixel 패널이 Text 패널로 보낸다 Oct 24, 2026
@patternflow-bot patternflow-bot changed the title [WIP] Pattern Lab 의 붙여넣기 상자가 영어로 묻고, 텍스트 레이어를 고르면 Code·Pixel 패널이 Text 패널로 보낸다 [DONE] Pattern Lab 의 붙여넣기 상자가 영어로 묻고, 텍스트 레이어를 고르면 Code·Pixel 패널이 Text 패널로 보낸다 Oct 24, 2026
@patternflow-bot
patternflow-bot marked this pull request as ready for review October 24, 2026 04:56
@patternflow-bot
patternflow-bot merged commit 856d7d8 into dev Oct 24, 2026
2 checks passed
@patternflow-bot
patternflow-bot deleted the claude/studio-pf-round80-8gb0it branch October 24, 2026 04:58
engmung pushed a commit to engmung/Patternflow that referenced this pull request Oct 25, 2026
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.

2 participants