Repository navigation
[DONE] 기기 주소 칸을 비우거나 http:// 를 붙여 넣어도 「Send over Wi-Fi」 링크가 그 보드로 간다 - #150
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hgcm29v2NjCuKz27EzDv9m
An emptied field made http:///patterns and a pasted http://192.168.0.44/ made a host called http. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hgcm29v2NjCuKz27EzDv9m
patternflow-bot
marked this pull request as ready for review
October 22, 2026 02:20
This was referenced Oct 22, 2026
engmung
pushed a commit
to engmung/Patternflow
that referenced
this pull request
Oct 22, 2026
engmung
pushed a commit
to engmung/Patternflow
that referenced
this pull request
Oct 22, 2026
Patternflow-lab#108 Patternflow-lab#109 Patternflow-lab#110 Patternflow-lab#111 Patternflow-lab#112 Patternflow-lab#113 Patternflow-lab#114 Patternflow-lab#115 Patternflow-lab#116 Patternflow-lab#117 Patternflow-lab#118 Patternflow-lab#119 Patternflow-lab#120 Patternflow-lab#121 Patternflow-lab#122 Patternflow-lab#123 Patternflow-lab#124 Patternflow-lab#125 Patternflow-lab#126 Patternflow-lab#127 Patternflow-lab#128 Patternflow-lab#130 Patternflow-lab#131 Patternflow-lab#132 Patternflow-lab#133 Patternflow-lab#134 Patternflow-lab#135 Patternflow-lab#136 Patternflow-lab#137 Patternflow-lab#138 Patternflow-lab#139 Patternflow-lab#140 Patternflow-lab#141 Patternflow-lab#142 Patternflow-lab#144 Patternflow-lab#145 Patternflow-lab#146 Patternflow-lab#147 Patternflow-lab#148 Patternflow-lab#149 Patternflow-lab#150 Patternflow-lab#151 Patternflow-lab#152 Patternflow-lab#153 Patternflow-lab#154 Patternflow-lab#155 Patternflow-lab#156 Patternflow-lab#157 Patternflow-lab#158 Patternflow-lab#159
This was referenced Oct 25, 2026
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_01Hgcm29v2NjCuKz27EzDv9m
기기 주소 칸을 비우면 「Send over Wi-Fi」가
http:///patterns로 가서 브라우저가patterns라는 호스트를 찾았고, 콘솔 탭에서http://192.168.0.44/를 복사해 붙이면http라는 호스트로 갔다. 주소를 다듬는 함수 하나를deviceHost.ts에 두고 보내는 링크 여섯 곳과 설치 링크 네 곳이 다 그걸 쓰게 했으니, 머지하면 빈 칸은 patternflow.local 로, 붙여 넣은 주소는 그 보드로 간다.좋아지는 것: 보드 주소를 붙여 넣은 그대로 보내도 보드에 닿는다 — 주소를 손으로 다듬지 않아도 된다
체크리스트
6 은 바퀴 4550 이 했다, 7번patterns,http://192.168.0.44/→ 호스트http)deviceHost.test.ts6개,ZipDownload.test.tsx에 1개)776387d)가 이미 들어 있어 merge 할 것 없음 · [DONE]한 일
web/src/lib/community/deviceHost.ts에deviceHostName(value)를 둔다. 앞뒤 공백과 앞의http://·https://를 떼고, 첫/·?·#뒤를 버리고, 비면patternflow.local이다.useDeviceHost()가 그 값을host로 돌려주고patternsUrl이 그걸로 링크를 만든다. 그래서patternsUrl을 쓰는 여섯 곳(DeckPanel.tsx:178,SendModuleModal.tsx:131·:240,DeckDock.tsx:474,DeckDetailClient.tsx:382·:549)은 고치지 않아도 따라온다.deviceHost.trim() || "patternflow.local"을 저마다 적던 네 곳(ZipDownload.tsx,ShippedPackCard.tsx,app/update/UpdateClient.tsx,app/features/TryInstall.tsx)이 훅의host를 쓴다./api/community/builds/[id]/firmware라우트도 없는updateUrl을 뺀다.증거
dev(
776387d)에서 새 시험을 먼저 돌렸다. 고치기 전 출력:고친 코드를 되돌린 채
ZipDownload.test.tsx의 새 시험만:고친 뒤
npx vitest run src/lib/community/deviceHost.test.ts src/components/community/:web/에서 다섯 검사(headb10fa61):PR 의 Actions(head
b10fa61):빌드한 사이트(
next start -p 3100)를 Chromium 390×844 로 열고 칸에 값을 넣은 뒤 링크의new URL(href).host를 쟀다:화면 모양은 그대로이고 링크가 가는 곳만 바뀌어서 사진은 없다. 보내기 창과 덱 쪽은 커뮤니티 DB 가 있는 Pi 배포에서만 열려서 jsdom 시험으로 쟀다.
실행법
cd web npx vitest run src/lib/community/deviceHost.test.ts src/components/community/ZipDownload.test.tsx손으로 볼 때는
npm run build && npx next start -p 3100뒤/update의 주소 칸에http://192.168.0.44/를 붙이고 「Update over Wi-Fi」 단추 링크가http://192.168.0.44/update?src=…인지 본다.가정
/를 뗀다」고 했는데, 첫/·?·#뒤를 다 버리게 했다. 콘솔의 Patterns 쪽 주소(http://192.168.0.44/patterns)를 붙여도 보드로 가게 하려고다.updateUrl은 줄이 「부르는 곳도 라우트도 없다」고 적은 함수라 다듬는 함수로 고치지 않고 뺐다. 펌웨어 갱신 링크는/update,/features, editions 가 저마다 만든다.EditionCard.tsx:109도trim() || "patternflow.local"만 해서 붙여 넣은http://에 같은 일이 난다. 창작자 영역이라 고치지 않았다.deviceHostName을 부르면 된다(incoming/ROUND.md 「창작자가 열어야 하는 것」의 editions 줄).components/guide/desk/community/SendDialog.tsx:34)가http://{shownHost}/patterns를 글로 보여 주는데, 칸에http://를 붙이면http://http://…로 찍힌다. 링크는 아니다.Changelog
Web
http://address. An emptied field madehttp:///patterns, which a browser reads as a host calledpatterns, andhttp://192.168.0.44/made a host calledhttp. Every handoff and install link now cleans the address the same way, inlib/community/deviceHost.ts.바퀴
바퀴 51 · 후보 7 「기기 주소 칸을 비우거나
http://를 붙여 넣어도 「Send over Wi-Fi」 링크가 그 보드로 간다」경험
언제: 바퀴에서 /features 쪽의 「Try it」 주소 칸이나 링크를 브라우저로 잴 때
교훈: 그 칸은 닫힌
<details>안이라 Playwrightfill이 「element is not visible」로 30초를 기다리니, 먼저document.querySelectorAll("details").forEach(d => d.open = true)로 연다근거: #150 에서 /update 는 바로 재졌는데 /features 는
locator.fill: Timeout 30000ms exceeded로 멈췄고, details 를 연 뒤 링크 2개의 호스트가 재졌다다음 바퀴
🤖 Generated with Claude Code
https://claude.ai/code/session_01Hgcm29v2NjCuKz27EzDv9m