Repository navigation
[DONE] Pattern Lab 의 창 안에서 글을 끌어 고르다 창 밖에서 놓아도 창이 닫히지 않는다 - #204
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KrwPAQrXtjp1YkhF57Z6rc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KrwPAQrXtjp1YkhF57Z6rc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KrwPAQrXtjp1YkhF57Z6rc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KrwPAQrXtjp1YkhF57Z6rc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KrwPAQrXtjp1YkhF57Z6rc
patternflow-bot
marked this pull request as ready for review
October 24, 2026 04:13
This was referenced Oct 24, 2026
engmung
pushed a commit
to engmung/Patternflow
that referenced
this pull request
Oct 25, 2026
engmung
pushed a commit
to engmung/Patternflow
that referenced
this pull request
Oct 25, 2026
Patternflow-lab#183 Patternflow-lab#184 Patternflow-lab#186 Patternflow-lab#187 Patternflow-lab#189 Patternflow-lab#191 Patternflow-lab#192 Patternflow-lab#193 Patternflow-lab#194 Patternflow-lab#196 Patternflow-lab#197 Patternflow-lab#198 Patternflow-lab#199 Patternflow-lab#200 Patternflow-lab#202 Patternflow-lab#203 Patternflow-lab#204 Patternflow-lab#205 Patternflow-lab#206 Patternflow-lab#208 Patternflow-lab#209 Patternflow-lab#210 Patternflow-lab#214 Patternflow-lab#217 Patternflow-lab#218 Patternflow-lab#221 Patternflow-lab#222 Patternflow-lab#223 Patternflow-lab#227 Patternflow-lab#237 Patternflow-lab#238 Patternflow-lab#239 Patternflow-lab#240
7 tasks done
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.
ops / https://claude.ai/code/session_01KrwPAQrXtjp1YkhF57Z6rc
Pattern Lab 의 To hardware, Code guide, Import image 창에서 글을 끌어 고르다 창 밖에서 손을 떼면 창이 닫혔어요. 이제 누름이 바깥 판에서 시작했을 때만 닫혀서, 붙인 헤더를 고르거나 그림 자리를 끌다 밖으로 나가도 창이 그대로 있어요.
좋아지는 것: 창 안 글을 끌어 고르다 밖에서 놓아도 창이 남는다 — 하던 일을 잃지 않는다
체크리스트
12 는 바퀴 6677 이 했어요)44c7f78그대로라 merge 할 것이 없었어요)69429a1에서 Web CI, Drift checks 둘 다 success한 일
web/src/lib/hooks/useBackdropClose.ts. 바깥 판의onPointerDownCapture가 누름이 판 자신에서 시작했는지 적어 두고,onClick은 그 누름이 판에서 시작했고 click 도 판 자신에 떨어졌을 때만onClose를 불러요. 잡기 단계에서 들으니 안의 캔버스가 pointerdown 을 혼자 가져도 지난 값이 남지 않아요.app/pattern-lab/HardwareModal.tsx,panels/CodeGuideModal.tsx,panels/ImportImageModal.tsx의 바깥 판이 이 훅을 써요.useBackdropClose.test.tsx), To hardware 의 「헤더 칸에서 시작한 끌기가 바깥 판에서 끝나도 열려 있다」, Import image 의 「미리보기를 끌다 바깥에서 떼도 열려 있다」. To hardware 의 바깥 판 시험 넷은 click 만 쏘던 것을 pointerdown 다음 click 으로 바꿨어요. 실제 누름이 그 차례예요.증거
새 시험 둘은 옛 판에서 빨개요. 고침을 커밋한 뒤 세 파일만
git show origin/dev:<경로> > <경로>로 깔고 돌렸어요.크로미움에서 잰 것.
NEXT_PUBLIC_BUILD_ENABLED=1 npx next build로 빌드해서 To hardware 단추를 띄우고, 창 안 글에서 마우스를 눌러 카드 왼쪽 14px 바깥까지 끌고 뗐어요. 그다음 같은 자리를 한 번 눌렀어요.To hardware 에 헤더를 붙이고 끌어 고르다 바깥에서 뗀 뒤예요. 창이 남고 고른 글이 그대로예요.
다섯 검사 끝줄 (
web/):check:ci를 돌린 뒤 브라우저가 하지 않는 click 을 쏘던 훅 시험 하나를 뺐어요(아래 「가정」). 그래서check:panels만 다시 돌렸어요.실행법
# web/ 에서 npx vitest run src/lib/hooks/useBackdropClose.test.tsx src/app/pattern-lab/HardwareModal.test.tsx src/app/pattern-lab/panels/ImportImageModal.test.tsx손으로는
npm run dev에서 Pattern Lab 의 Code guide 를 열고, 코드 글을 끌어 고르며 창 밖에서 떼요. 창이 남아요. 바깥 판을 그냥 누르면 닫혀요.가정
onPointerDown을 달라고 했는데, 세 창이 같은 일을 해서lib/hooks/의 훅 하나로 묶었어요. 누름은 잡기 단계(onPointerDownCapture)에서 들어요. 끌어 옮기는 캔버스처럼 안쪽이 pointerdown 을 멈춰도 바깥 판이 들어요.components/community/의 창 열한 곳(SendModuleModal,PublishModal처럼 To hardware 안에서 여는 둘도)은 바깥 판이 아직onClick={onClose}라 같은 끌기에 닫혀요. 이 바퀴는 후보 13 의 Lab 창 셋만 고쳤어요.Changelog
Web
경험
언제: 바퀴에서 Pattern Lab 의 To hardware 창을 실제 브라우저로 재거나 찍을 때
교훈:
NEXT_PUBLIC_BUILD_ENABLED=1 npx next build로 빌드해야 머리에 To hardware 단추가 생기니, 낱장 HTML 로 흉내 내지 말고 그렇게 빌드해서 잰다 (평소npm run build엔 단추가 없다)근거: #204 에서 그렇게 빌드한 옛 판과 고친 판으로 To hardware 끌기를 390·1440 에서 쟀어요 (후보 13 을 적은 #188 은 단추가 없어 낱장 HTML 로 쟀어요)
바퀴
바퀴 78 · 후보 13 「Lab 의 창 안에서 글을 끌어 고르다 창 밖에서 놓아도 창이 닫히지 않는다」
다음 바퀴
lang="en"쪽에 한국어window.prompt가 뜨고, 텍스트 레이어를 「pixel art」 라고 불러요.step="0.001"이라 Freq 끝에서 끝이 화살표 110,000번이에요.https://claude.ai/code/session_01KrwPAQrXtjp1YkhF57Z6rc
Generated by Claude Code