Repository navigation
[DONE] 커뮤니티 창 안에서 글을 끌어 고르다 창 밖에서 놓아도 창이 닫히지 않고 쓴 글이 남는다 - #281
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q8sw7T4oHSw5ysxeUb19Nk
A drag that started in a field and let go outside closed the window and lost what was typed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q8sw7T4oHSw5ysxeUb19Nk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q8sw7T4oHSw5ysxeUb19Nk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q8sw7T4oHSw5ysxeUb19Nk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q8sw7T4oHSw5ysxeUb19Nk
patternflow-bot
marked this pull request as ready for review
October 26, 2026 14:44
This was referenced Oct 26, 2026
engmung
pushed a commit
to engmung/Patternflow
that referenced
this pull request
Oct 27, 2026
engmung
pushed a commit
to engmung/Patternflow
that referenced
this pull request
Oct 27, 2026
Patternflow-lab#268 Patternflow-lab#271 Patternflow-lab#275 Patternflow-lab#276 Patternflow-lab#277 Patternflow-lab#279 Patternflow-lab#280 Patternflow-lab#281 Patternflow-lab#283 Patternflow-lab#284 Patternflow-lab#285 Patternflow-lab#286 Patternflow-lab#287 Patternflow-lab#288 Patternflow-lab#289 Patternflow-lab#290 Patternflow-lab#291 Patternflow-lab#292 Patternflow-lab#293 Patternflow-lab#294 Patternflow-lab#295 Patternflow-lab#296 Patternflow-lab#297 Patternflow-lab#298 Patternflow-lab#299 Patternflow-lab#300 Patternflow-lab#301 Patternflow-lab#302 Patternflow-lab#303
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.
lsh / https://claude.ai/code/session_01Q8sw7T4oHSw5ysxeUb19Nk
커뮤니티 창 열둘이 Pattern Lab 의 창처럼 바깥 판에서 누르고 놓았을 때만 닫혀요. 지금까지는 편집 창의 설명 칸에서 글을 끌어 고르다 창 밖에서 손을 떼면 창이 닫히고, 다시 열면 쓴 글이 비어 있었어요. 머지하면 패턴 · 덱 편집, 신고, 로그인, 덱 창에서 글을 고르다 실수로 닫는 일이 없어요.
좋아지는 것: 창 안 글을 끌어 고르다 밖에서 놓아도 창이 남는다 — 쓰던 글을 잃지 않는다
87e7552) · GitHub 검사 Drift checks 와 Web CI 초록 · 겹치는 [DONE] PR 없음한 일
바깥 판의
onClick={onClose}를useBackdropClose(lib/hooks/useBackdropClose.ts)로 바꿨어요. 바퀴 78(#204)이 Lab 의 창 셋에 만든 그 훅이에요. 누름이 바깥 판에서 시작했고 click 도 바깥 판 자체에 떨어질 때만 닫아요.바꾼 창은 표 6위가 적은 열둘이에요.
PublishModal,EditDetailsModal,ReportModal,AddHeaderModal,AddPerformanceModal,ShareDeckModal,ShareDeckPackModal,AuthModal(혼자 뜰 때의AuthWindow),SendModuleModal,DeckPanel, 그리고 덱 쪽(app/community/d/[id]/DeckDetailClient.tsx)의PerformanceModal과EditDeckModal이에요. 카드의stopPropagation은 Lab 의 창들처럼 그대로 뒀어요.새 시험
components/community/backdropClose.test.tsx는dialogKeys.test.tsx옆이에요. 창마다 그 쪽이 여는 길로 열고, 카드의 첫 글 칸(없으면 카드)에서 누른 뒤 바깥 판에서 click 을 보내요. 바깥 판에서 누르고 놓으면 닫히는 것도 같이 봐요. 편집 창은 설명에 쓴 글이 남는지도 읽어요.증거
고친 뒤 사진은 설명 칸에 「Two waves that cross」 를 쓰고, 칸 안에서 눌러 창 왼쪽 위 바깥 판(6, 6)까지 끌어 놓은 바로 뒤예요. 끌림이 고른 글이 파랗게 남아 있어요. 고치기 전 사진은 같은 끌림에 창이 닫혀서 Edit details 로 다시 연 모습이에요. 설명이 비어 있어요.
새 시험을 dev 의 창으로 돌렸을 때(
a362c19, 시험 파일만 더함):고친 뒤(
e8d6243):Pi 와 같은
NEXT_PUBLIC_COMMUNITY_URL,NEXT_PUBLIC_BUILD_ENABLED로 빌드해 스크래치 DB 서버를 띄우고 Chromium 으로 쟀어요. ada 와 eve 가입, ada 의 공개 패턴 하나와 공개 덱 하나를 HTTP 로 넣었어요. 창을 열고 글 칸에 쓰고, 칸 안에서 마우스를 눌러 바깥 판까지 끌어 놓았어요. 그 뒤 바깥 판을 한 번 눌렀어요. 고치기 전은 같은 트리에서 창 파일 열하나만 dev 판으로 돌려 따로 빌드했어요.다섯 검사(
web/에서,e8d6243· 그 뒤 dev 를 merge 한87e7552는incoming/pattern-study/만 더해서 새 시험만 다시 돌려 25 passed):실행법
그 서버에
/api/auth/sign-up/email,/api/community/patterns,/api/community/decks로 가입과 패턴, 덱을 넣고, 컨테이너의 Playwright 로page.mouse.down()과page.mouse.up()을 글 칸과 바깥 판에 나눠 눌렀어요. 데스크톱에선 덱 칩이 숨어 있어서, 덱 독의 Build 단추가 보내는pf-open-deck-panel이벤트로 덱 창을 열었어요.package.json은 그대로예요.가정
DeckDetailClient.tsx가 내보내지 않는 함수라서, 시험을 위해 내보내지 않고 주인으로 쪽째 그려 주인 줄의 Edit details 와 Attach performance 로 열었어요.components/guide/desk/community/SendDialog.tsx:42)도 바깥 판에onClick={close}를 두고 기기 주소 칸이 있어 같은 꼴이에요. 표 6위는 커뮤니티 창 열둘이라 고치지 않았어요.Changelog
Web
경험
언제: 띄운
next start서버를 Bash 한 줄 안에서 끄고 그 뒤 일을 이어 갈 때교훈:
pkill -f·pgrep -f에 서버 이름을 주면 그 줄을 돌리는 셸의 명령줄도 걸려 셸째 죽으니,ps -eo pid,comm의 comm 칸(next-server)으로 골라 꺼요근거: #281 에서
pkill -f "next start -p 3100"과kill $(pgrep -f next-server)가 둘 다 exit 144 로 셸을 끊어, 같은 줄의git checkout과 빌드가 돌지 않았어요바퀴
바퀴 111 · 후보 6 「커뮤니티 창 안에서 글을 끌어 고르다 창 밖에서 놓아도 창이 닫히지 않고 쓴 글이 남는다」
다음 바퀴
.headerSpacer를 숨기는 폰 규칙이 여덟 곳의 빈 칸까지 지워요.app/community/아래not-found.tsx가 없어 사이트 뿌리의 404 쪽이 떠요.https://claude.ai/code/session_01Q8sw7T4oHSw5ysxeUb19Nk
Generated by Claude Code