Repository navigation
[DONE] Preview 에서 댓글을 올리면 글 칸이 Write 로 돌아온다 - #295
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J5j7aPV1oKscciRBA8cSh8
Posting from Preview left an empty preview box with the tab greyed out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J5j7aPV1oKscciRBA8cSh8
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J5j7aPV1oKscciRBA8cSh8
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J5j7aPV1oKscciRBA8cSh8
patternflow-bot
marked this pull request as ready for review
October 26, 2026 21:01
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_01J5j7aPV1oKscciRBA8cSh8
댓글을 쓰고 Preview 를 누른 뒤 Post 하면 댓글은 올라가는데, 그 뒤 글 칸 자리에 빈 점선 상자만 남았어요. Preview 탭은 고른 채 흐리게 꺼져 있어서, 다음 댓글을 쓰려면 「Write」 를 찾아 눌러야 했어요. 머지하면 Post 뒤에 글 칸이 비어서 Write 로 돌아와요.
좋아지는 것: 미리 보고 올린 뒤 바로 다음 댓글을 쓴다 — Write 를 찾아 누르지 않는다
BodyComposer.tsx가 글이 비면 미리보기를 끄기BodyComposer.test.tsx(dev 에서 빨갛고 고친 뒤 초록)한 일
components/community/BodyComposer.tsx는previewing을 글과 따로 들고 있었어요. CommentSection 이 Post 뒤에setBody("")로 글을 비워도previewing은true로 남았고, 그래서 빈PostBody를 미리보기 상자에 그렸어요. Preview 탭은 글이 비면disabled라서 고른 채 꺼져 있었어요.이제 그리는 동안 글이 비었는데
previewing이면false로 돌려요.AuthStatus.tsx:33의answered와HeroScene.tsx의picked가 이미 쓰는 꼴(조건을 건 렌더 중 setState)이에요. 상태를 돌려 두니 다음 글자를 칠 때 옛 미리보기가 다시 뜨지 않아요. 글이 있는지는hasText하나로 셈해서 Preview 탭의disabled도 같이 읽어요.시험은 새
components/community/BodyComposer.test.tsx예요. 미리보기 중에 글을 비우면 글 칸과 Write 가 돌아오는지, 그 뒤 한 글자를 쳐도 Write 에 머무는지, 글이 있으면 미리보기가 그대로인지 봐요. 마지막 하나는 CommentSection 을 그대로 그려 쓰고, Preview, Post(201) 차례로 눌러 빈 글 칸이 Write 로 돌아오는지 봐요.증거
이 브랜치와 dev 의
BodyComposer.tsx를 따로next build했어요.NEXT_PUBLIC_BUILD_ENABLED=1이고NEXT_PUBLIC_COMMUNITY_URL은 띄운 서버http://localhost:3100이에요. 스크래치 DB 에 ada 와 프리셋 0510 코드로 된 공개 패턴 하나를 HTTP 로 넣었어요. Playwright 가 ada 로 패턴 쪽을 열어 글을 쓰고, Preview 와 Post 를 차례로 누르고, 댓글 수가 늘기를 기다린 뒤 글 칸을 쟀어요. 서버는 가로채지 않았어요.새 시험을 dev 의
BodyComposer.tsx로 돌렸을 때:이 브랜치에서:
다섯 검사(
web/에서):links-absolute와roadmap은 이 컨테이너에gh로 원래 레포를 읽을 길이 없어서skipped예요. PR 의drift.yml이 다시 돌려요. 문서는 고치지 않아서check:human-lock은 돌리지 않았어요.PR 의 검사는
fb3fa5f에서Drift checks와Web CI둘 다 success 예요.실행법
# web/ 에서 npx vitest run src/components/community/BodyComposer.test.tsx화면으로 보려면 커뮤니티에 로그인해 패턴 쪽을 열고, 댓글을 쓴 뒤 Preview 와 Post 를 차례로 눌러요. 글 칸이 비어서 Write 로 돌아와요.
가정
useAutoGrow는 미리보기 동안""를 받고, 돌아온 뒤에도 글이""라 다시 재지 않아요. 빈 칸은.commentForm .bodyComposer .postBodyInput의min-height: 84px가 높이를 정해서 다시 재도 같은 값이에요. 위 표의 84px 가 그 값이에요.:56,:67은 따로 고치지 않았어요.:56의disabled는hasText를 읽게 바꿨고,:67의 갈림은 돌려 둔previewing을 그대로 읽어요.Changelog
Web
경험
언제: 바퀴에서 띄운
next start를 Bash 로 멈출 때교훈:
pkill -f "next start …"나kill $(pgrep -f next-server)를 쓰지 말고next start의 pid 를 받아kill <pid>해요,-f는 그 명령을 돌리는 셸의 명령줄에도 맞아서 셸이 같이 죽어요근거: #295 에서 두 번 다 exit 144 로 셸이 죽어 뒤 명령(dev 판 빌드, 사진 커밋)이 돌지 않았어요
바퀴
바퀴 124 · 후보 19 「Preview 에서 댓글을 올리면 칸이 Write 로 돌아온다」
다음 바퀴
safeHref를 부르는 시험이 0곳이고, 각주 링크가target="_blank"로 같은 쪽을 새 탭에 열어요.useDialog를 쓰지 않아 Esc 가 아무것도 하지 않아요.step="0.001"이라 Knob 1 을 끝에서 끝까지 돌리는 데 화살표 1,000번이 들어요. Lab 은knobArrowValue로 48번이에요.https://claude.ai/code/session_01J5j7aPV1oKscciRBA8cSh8
Generated by Claude Code