Repository navigation
[DONE] Pattern Lab 에 두세 번 적힌 도우미 다섯이 한 곳에서 온다 - #238
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017uwozb36EhjHzHsJQiTQPU
The FNV-1a hash, the file download, commentSafe, roundRangeValue and sortedLane each had two or three bodies; a new test pins the paste and shader keys the hash files under. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017uwozb36EhjHzHsJQiTQPU
patternflow-bot
marked this pull request as ready for review
October 25, 2026 02:52
This was referenced Oct 25, 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.
lsh / https://claude.ai/code/session_017uwozb36EhjHzHsJQiTQPU
Pattern Lab 에 두세 벌씩 적혀 있던 도우미 다섯이 한 벌씩만 남아요. 화면은 그대로이고, To hardware 의 .h 와 Director 의 .pfs, .mid 는 이제 Graphic Export 와 같은 함수로 내려받아요.
좋아지는 것: 없음
lib/lab/hash.ts의fnv1a하나로lib/lab/capture/download.ts의downloadBlob하나로commentSafe둘을lib/lab/flatten.ts하나로roundRangeValue둘을lib/pattern/controls.ts하나로sortedLane둘을lib/lab/director/bake.ts하나로lib/lab/hash.test.ts), 고치기 전 코드에서 먼저 통과check:voice225e0d1의 Drift checks 와 Web CI 가 둘 다 success한 일
몸이 같은 함수를 하나만 남기고, 나머지 자리는 그 하나를 불러요. 어디에 남겼는지는 부르는 쪽이 이미 무엇을 불러오는지로 정했어요.
capture/probe.ts,capture/shaderStore.ts,hardwarePastes.ts의promptKey가 같은 32비트 FNV-1a 를 제각기 적었어요. 새 파일lib/lab/hash.ts의fnv1a하나가 됐어요. 셋 가운데 둘은 브라우저에 남는 것의 이름이에요. To hardware 의 붙여 넣기는 sessionStorage 에128:1q359yv꼴로, 셰이더는 localStorage 에code:968204348꼴로 들어가요. 해시가 한 글자라도 달라지면 새로 고친 뒤 둘 다 못 찾아요.app/pattern-lab/panels/director/showFiles.ts의downloadBlob과HardwareModal.tsx의downloadH가capture/download.ts의downloadBlob을 불러요. 셋은 두 곳이 달랐어요. 남긴 하나는 링크를 문서에 붙였다 떼고, 주소를 30초 뒤에 거둬요(Firefox 는 내려받기를 늦게 시작해요). 지운 둘은 붙이지 않고click()하고 주소를 바로 거뒀어요. 이제 셋 다 앞의 길로 가요.commentSafe.flatten.ts것을 export 하고,pixelToCode.ts가 이미flatten.ts에서rleEncodeRGBA를 받던 줄에 더했어요.roundRangeValue.KnobsPanel.tsx와cppPrompt.ts가 둘 다 이미lib/pattern/controls.ts에서 노브 셈을 받아서knobDetentStep옆에 두었어요.sortedLane.bake.ts것을 export 하고,useShowEditing.ts가 이미bake.ts를 부르던 줄에 더했어요. 바퀴 91 이 다음 바퀴에 적은 그대로예요.증거
키 시험은 고치기 전에 썼어요. 고친 소스 셋만
git stash push로 dev 판으로 돌려 놓고 돌렸어요.바뀐 내려받기 둘은 Chromium 으로 1440×900 의 Lab 을 열어 눌러 봤어요. To hardware 에 헤더를 붙여 넣고 Download .h 를 누르고, Director 의 첫 레인에 키 둘을 더블클릭으로 넣고 .pfs 와 MIDI 단추를 눌렀어요. 셋 다
download이벤트가 오고 파일이 저장됐어요.GitHub 에서도
225e0d1의 Drift checks 와 Web CI 가 둘 다 success 예요.화면을 바꾸지 않아서 사진은 없어요.
실행법
가정
roundRangeValue는 Lab 밖의lib/pattern/controls.ts에 두었어요. 부르는 두 파일이 다 그 파일에서 노브 셈을 받고 있었고,cppPrompt.ts에 두면 Knobs 패널이 프롬프트 파일을 불러와야 해요.capture/download.ts판이라서, .h, .pfs, .mid 는 그 두 가지가 달라져요. 파일 이름과 내용은 그대로예요.probe.ts의 해시는 메모리 안의 판정 캐시 키라 브라우저에 남지 않아요. 그래서 시험은 붙여 넣기와 셰이더 키만 못 박고, 해시 자체는 FNV-1a 표준 값 셋("","a","foobar")으로 봐요.components/sections/InsideGlobe/Globe.tsx:193에 네 번째 FNV-1a 가 있어요.lib/community/download.ts:42의triggerDownload도 내려받기를 따로 적었고 주소를 바로 거둬요.components/sections/variantPrompt.ts:19의roundStep은roundRangeValue와 몸이 같아요.lib/lab/cppPrompt.ts:80).Changelog
Web
commentSafe,roundRangeValueandsortedLanehad two or three bodies. The.h,.pfsand.middownloads now take the Graphic Export path, and a test pins the keys a To hardware paste and a shader are filed under.경험
언제: 바퀴에서 To hardware 창이나 그 안의 단추를 브라우저로 확인할 때
교훈:
next start빌드엔NEXT_PUBLIC_BUILD_ENABLED가 없어 To hardware 단추가 그려지지 않으니next dev로 열고 끝나면git checkout -- web/AGENTS.md로 되돌려요(next dev가 그 파일을 고쳐 써요). Download .h 는#pragma once로 시작하는 헤더를 붙여 넣어야 켜져요근거: #238 에서
next start의 Lab 에서 To hardware 단추를 30초 기다리다 실패했고,next dev에서 헤더를 붙여 넣은 뒤에야code_1.h103바이트를 받았어요바퀴
바퀴 92 · 후보 2 「Pattern Lab 에 두세 번 적힌 도우미 다섯이 한 곳에서 온다」
다음 바퀴
getComputedStyle비교를 그대로 써요.PatternLab.module.css에서 셸의 CSS 로 간다」: 3위와 같은 비교에labCss.test.ts의 새 시험 하나예요. 머리줄의 To hardware 단추는next dev에서만 그려져요.https://claude.ai/code/session_017uwozb36EhjHzHsJQiTQPU
Generated by Claude Code