Repository navigation
[DONE] Pattern Lab 의 To hardware 가 숨긴 레이어 대신 보이는 레이어를 번역한다 - #196
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W2r5W5G8pHm7FHtzrQW3NZ
The prompt took the layer picked in Layers even when it was hidden or at 0%, while the community upload took the one showing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W2r5W5G8pHm7FHtzrQW3NZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W2r5W5G8pHm7FHtzrQW3NZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W2r5W5G8pHm7FHtzrQW3NZ
patternflow-bot
marked this pull request as ready for review
October 24, 2026 01:23
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
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_01W2r5W5G8pHm7FHtzrQW3NZ
Pattern Lab 의 To hardware 가 이제 화면에 보이는 코드 레이어를 번역해요. 전엔 Layers 에서 고른 코드 레이어가 숨김이거나 0% 여도 번역 프롬프트에 그 레이어 코드만 들어서, 보드엔 미리보기와 커뮤니티에 올리는 것과 다른 패턴이 갔어요. 이제 To hardware 와 커뮤니티 올리기가 같은 함수로 레이어를 골라요.
좋아지는 것: 숨긴 레이어를 골라 둬도 보이는 패턴이 보드로 간다 — 미리보기와 다른 그림이 안 올라간다
5위는 바퀴 6670)HardwareModal.test.tsx에 둘, 옛 코드에선 둘 다 빨강)d3c3b13그대로라 합칠 것이 없었어요)0793305에서 Drift checks · Web CI 둘 다 success)한 일
web/src/lib/lab/flatten.ts에loneCodeLayer를 더했어요. 보이는 레이어(숨김이 아니고, 마스크거나 불투명도가 0 보다 큰 것)가 하나뿐이고 그게 마스크 아닌 코드 레이어면 그 레이어를, 아니면null을 돌려줘요.needsFlatten은 이 함수가null인지만 봐요. 조건은 그대로예요.web/src/app/pattern-lab/HardwareModal.tsx는 레이어 하나 길의 프롬프트를 이 레이어로 지어요. 전엔 고른 레이어가 코드 레이어면 숨김이든 0% 든 그것을, 아니면 목록의 첫 코드 레이어를 썼어요. 보드로 보낼 때 빌드에 붙는 이름(label)도 이 레이어 이름이에요. 전엔 숨김이어도 목록 맨 위 코드 레이어의 이름이었어요. 레이어를 쌓은 길은 그대로예요.web/src/app/pattern-lab/PatternLabClient.tsx의buildExportCode는 같은 레이어를state.layers.find(…) as CodeLayer로 따로 찾고 있었어요. 이것도loneCodeLayer를 부르게 바꿔서, 두 길이 레이어를 고르는 곳이 한 곳이 됐어요.증거
사진을 찍은 스크립트가 처음 연 Lab 에서 「+ Code」 를 누르고, 고른 채인 새 레이어 Code 2 의 눈을 끄고, To hardware 의 「Copy the conversion prompt」 를 눌러 클립보드를 읽었어요. 프롬프트 끝의 「JavaScript source」 엔 보이는 Code 1 의 코드가 들었고, Code 2 의 시작 코드(「New layer — draws scrolling bands」)는 없었어요.
새 시험은 고른 레이어를 숨긴 것과 0% 로 둔 것 둘이에요. 프롬프트에 보이는 레이어 코드가 들고 숨긴 레이어 코드가 없는지, 보드로 보낼 때 빌드 요청의 이름이 보이는 레이어 이름인지 봐요. 고치기 전 코드에선 둘 다 빨갰어요. 프롬프트에 숨긴 레이어 코드만 들었어요.
web/에서 다섯 검사의 끝줄이에요.links-absolute와roadmap은gh가 원래 레포를 못 읽는 컨테이너라skipped예요. PR 의drift.yml이 다시 돌려요.실행법
web/에서NEXT_PUBLIC_BUILD_ENABLED=1 npm run build && npx next start -p 3100다음/pattern-lab을 열어요. Layers 에서 「+ Code」 를 누르고, 고른 채인 새 레이어의 눈을 꺼요. 머리의 To hardware 에서 「Copy the conversion prompt」 를 누르면 프롬프트 끝의 JavaScript 는 밑의 보이는 레이어 코드예요. 시험만은npx vitest run src/app/pattern-lab/HardwareModal.test.tsx예요.가정
HardwareModal.tsx와 그 시험이지만flatten.ts와PatternLabClient.tsx도 고쳤어요. 표 줄이 「같은 조건으로 고르고」 라고 해서, 조건을 두 곳에 따로 쓰지 않고 함수 하나로 모았어요. 커뮤니티 올리기가 고르는 레이어는 전과 같아요.needsFlatten이 거짓일 때 보이는 코드 레이어는 하나뿐이라find가 찾던 것과 같은 레이어예요.loneCodeLayer가 늘 레이어를 돌려줘서 닿지 않는 값이었어요. 쌓은 길은 전처럼 패턴 이름이에요.components/guide/tutorials/lab.ts:118의stackOf는needsFlatten을 베낀 것이고 조건이 그대로라 고치지 않았어요.lab.test.ts가 둘이 같은지 봐요.NEXT_PUBLIC_BUILD_ENABLED=1로 다시 빌드해 찍었어요. 그 값이 없으면 To hardware 단추가 머리에 없어요. Code 패널의 편집기가 「Loading...」 인 것은 이 컨테이너가 jsdelivr 를 막아서예요.Changelog
Web
경험
언제: 바퀴에서 Pattern Lab 을 폰 390 으로 몰며 Layers 패널의 단추를 누를 때
교훈: 「+ Code」 를 누르면 Code 탭이 앞으로 와서 Layers 가 뒤로 숨으니, 레이어를 더한 뒤
.dv-tab의 Layers 를 한 번 더 누르고 나서 레이어 줄의 「Hide layer」 를 찾는다근거: #196 에서 390 폭만
button[aria-label="Hide layer"]를 30초 기다리다 끝났고, 더한 뒤 Layers 탭을 다시 누르니 두 폭 다 지나갔어요바퀴
바퀴 71 · 후보 6 「To hardware 가 숨긴 레이어 대신 보이는 레이어를 번역하게 한다」
다음 바퀴
63f처럼.0없이 나와 g++ 가 멈춰요.loneCodeLayer하나를 보니, 거기서 고치면 두 길이 같이 맞아요.const draw = …로 쓴 코드 레이어를 다른 레이어와 쌓아 올려도 그 패턴이 돈다」 · 쌓아 내보낸 코드가 「Identifier 'draw' has already been declared」 로 불러오기부터 실패해요.https://claude.ai/code/session_01W2r5W5G8pHm7FHtzrQW3NZ
Generated by Claude Code