Repository navigation
[DONE] Pattern Lab 에서 AI 갤러리와 Gemini 키 칸이 없어지고, Copy prompt 옆에서 v-field · rgb 를 고른다 - #183
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01958sgyYvwXm2u3Qc2X8pqL
Copy prompt 는 남기고, 색 방식(v-field · rgb) 고르기를 Code 도구 줄로 옮긴다. 랩을 열면 브라우저에 남은 갤러리와 키를 지우고, 저장된 배치에서 Gallery 탭만 뺀다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01958sgyYvwXm2u3Qc2X8pqL
색 방식 고르기와 Copy prompt 를 한 묶음으로 두어 폰에서 같이 줄바꿈한다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01958sgyYvwXm2u3Qc2X8pqL
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01958sgyYvwXm2u3Qc2X8pqL
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01958sgyYvwXm2u3Qc2X8pqL
patternflow-bot
marked this pull request as ready for review
October 23, 2026 20:08
This was referenced Oct 23, 2026
patternflow-bot
pushed a commit
that referenced
this pull request
Oct 24, 2026
The site calls no AI itself now; Copy prompt stays in the Code tab with the v-field/rgb choice beside it. From #183 (fdf93b4). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018UVYCb1MrQw24EVctgkChz
This was referenced Oct 24, 2026
engmung
pushed a commit
to engmung/Patternflow
that referenced
this pull request
Oct 25, 2026
From Patternflow-lab#183 (fdf93b4). Rebuilt on dev in Patternflow-lab#215 at ee04c0c
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
6 tasks done
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_01958sgyYvwXm2u3Qc2X8pqL
Pattern Lab 에서 AI 갤러리와 Gemini API 키 칸을 통째로 걷었어요(창작자 지시 1). Copy prompt 는 그대로 있고, 갤러리에 있던 v-field · rgb 고르기는 Code 탭의 Copy prompt 옆으로 왔어요. 머지하면 랩을 처음 여는 순간 브라우저에 남은 갤러리 패턴과 키가 지워지고, 저장해 둔 패널 배치는 Gallery 탭만 빠진 채 그대로 열려요.
좋아지는 것: Lab 에서 안 쓰는 AI 갤러리와 키 칸이 없어진다 — 화면이 가벼워지고 키가 브라우저에 남지 않는다
건드린 「안 하는 것」:
web/package.json과web/package-lock.json에서@google/genai하나를 뺐어요. ROUND.md 「안 하는 것」 둘째 줄이 지시 1 에만 열어 둔 예외예요.체크리스트
GalleryPanel.tsx·.module.css, 스토어의gallery·jobs· 갤러리 슬라이스, 배치 생성 흐름(generatePatternVariants), 갤러리 저장(loadGallery·saveGallery)lib/ai/gemini.ts, 키 입력 · 저장(loadGeminiKey·saveGeminiKey),@google/genai, PostHog 의 Google 주소 가리기, 키 안내 글(가이드 Lab 화면)lib/ai/variantPrompt.ts로 옮기고, v-field · rgb 고르기를 Code 탭 Copy prompt 옆에 둠dropAiGallerydropRetiredPanelsweb/ARCHITECTURE.md,README.md의 Pattern Lab 문단 한 줄,PATTERN_GUIDE.md두 곳한 일
갤러리를 걷으면 Copy prompt 가 기대던 것 둘이 같이 없어져요. 프롬프트를 만드는
buildVariantCopyPrompt가gemini.ts안에 있었고, 프롬프트가 v-field 로 갈지 rgb 로 갈지 고르는 칸이 Gallery 탭에 있었어요. 앞의 것은 글자 하나 바꾸지 않고web/src/lib/ai/variantPrompt.ts로 옮겼어요. 뒤의 것은 Code 탭 도구 줄의 Copy prompt 바로 왼쪽에 같은Color mode선택으로 두었고, 폰에서는 둘이 한 묶음으로 다음 줄에 내려가요.프로젝트의
gen은 갤러리의 개수 · thinking · refs 를 버리고colorMode하나만 남겼어요. 예전에 저장한 프로젝트와 Recent 세션은 그 셋을 읽지 않고 그대로 열려요.랩을 열면
hydrate가patternflow_lab_gallery_v1과patternflow_gemini_key를 지워요. 키는 그 이름을 알아야 지울 수 있어서,persist.ts의 키 목록에 이름을 남기고 언제부터 아무도 안 쓰는지 적어 두었어요.저장된 dock 배치에는 Gallery 탭이 들어 있어요(기본 배치에도 있었어요). dockview 는 모르는 패널 이름을 만나면 던지고, 랩은 그걸 잡아 기본 배치로 다시 깔아요. 그대로 두면 배치를 손본 사람 모두가 한 번씩 배치를 잃어요. 그래서 복원 전에 레지스트리에 없는 패널을 빼고(
dropRetiredPanels), 그 탭이 앞에 나와 있었으면 옆 탭을 앞으로 내요. Gallery 만 있던 그룹이 비게 되면 빈 칸이 생기니 그때만 기본 배치로 가요.가이드 Make · 02 의 Lab 화면은 둘째 단계에서 Gallery 화면(Generate · Key, Gemini 키 안내)을 뺐어요.
code.webp에는 Gallery 탭이 보여서 새 랩으로 다시 찍었고, Paste 와 Copy prompt 고리 자리도 다시 쟀어요. 셋째 단계 글의 「Gallery 의 v-field 를 rgb 로」는 「Copy prompt 옆의 v-field 를 rgb 로」로 고쳤어요.증거
web/에서, 이 브랜치 머리로:GitHub 검사(머리
b313c09, dev 는 그새 움직이지 않아 merge 할 것이 없었어요):새 시험은
web/src/lib/lab/retiredGallery.test.ts(6개 · Gallery 탭이 든 배치, Gallery 만 있던 그룹, 떠 있는 그룹, 옛gen의 프로젝트, 랩 열기의 키 · 갤러리 지우기)와CodePanel.test.tsx의 「copies a v-field prompt until rgb is picked, then an rgb one」이에요.check:panels출력에✓ src/lib/lab/retiredGallery.test.ts (6 tests)·✓ src/app/pattern-lab/panels/CodePanel.test.tsx (5 tests)로 있어요.남은 이름(다 됨 기준):
git grep -i gemini -- web/src web/scripts에는 세 갈래가 남아요. 챗 AI 이름으로 쓴 곳(Code 탭 Copy prompt 의 title 「ChatGPT / Claude / Gemini」, 가이드 글copy/lab.ts두 줄 · 프롬프트를 붙여 넣을 곳이라 맞는 말), 창작자 영역의 로드맵 노드tools-gemini(아래 「가정」), 지우려면 이름이 있어야 하는 키patternflow_gemini_key와 그 주석 · 시험이에요.브라우저(빌드한 사이트, 새 프로필)에서 옛 배치를 넣고 다시 연 결과:
빌드한
/guide/make의 Lab 화면 그림은 20장이고gallery가 든 주소는 0장이에요(390 · 1440 둘 다, 페이지 오류 없음). 가이드 카드 자체는 3D 무대를 지나 둘째 단계까지 가야 보여서 찍지 않았고, 카드에 들어가는 그림(위 셋째 사진)을 대신 올렸어요.실행법
가정
PATTERN_GUIDE.md·firmware/CUSTOM_PATTERNS.md·docs/panel-compatibility.md)는 키 없이 쓰는 길이라 그대로 두었어요.share.ts)은 남기고 이름만LAB_AI_FOOTER_RE로 바꿨어요. 그 패턴들은 아직 저장된 레이어와 커뮤니티 코드에 있어요.LabShots.tsx의 GEO 는 「lab_shots.py 가 쓴다」고 적혀 있지만 그 스크립트는 저장소에 없어요.code.webp와 그 두 줄만 같은 규칙(2x, 버튼 둘레 4px 고리)으로 내 캡처 스크립트가 쓴 값으로 바꿨어요. 폭은 v-field 선택이 들어가 485 에서 539 로 늘었어요.tools-gemini(「Gemini generation」, status done, 2026-06-24 · 랩 안 Gemini 생성을 지금 있는 것처럼 말해요), journal 세 편의 Gemini 언급(그때의 기록),docs/releases/의 Gemini 언급.AGENTS.md의 저장소 지도도 「lib/ai/the Gemini client」라고 말하는데 바퀴가 못 고치는 파일이에요.PatternLab.module.css의.editorHeader·.viewToggle규칙은 쓰는 곳이 없어요(옛 code/gallery 전환). 갤러리 이름이 붙은 규칙만 지웠어요.Changelog
Web
@google/genaidependency: the site calls no AI itself. Copy prompt stays, with the v-field/rgb choice beside it in the Code tab now. Opening the Lab removes the gallery's saved patterns and the key from the browser, and a saved dock layout opens without the Gallery tab instead of falling back to the default.경험
언제: 바퀴에서 Pattern Lab 화면을 Playwright 로 찍을 때
교훈: 이 컨테이너는 jsdelivr 를 막아 Monaco 편집기가 빈 칸으로 찍히니
context.route로cdn.jsdelivr.net/npm/monaco-editor@*/min/요청을web/node_modules/monaco-editor/min/파일로 돌려준 뒤 찍는다근거: #183 에서 Code 탭 사진의 편집기 자리가 비어 나왔고
curl이 jsdelivr CONNECT 403 을 받았어요. route 를 건 뒤 같은 스크립트로 코드가 든 화면이 찍혔어요바퀴
바퀴 61 · 지시 1 「AI 갤러리 · Gemini 걷기」
다음 바퀴
FontFace로 읽어요..pfm으로 내보내요.https://claude.ai/code/session_01958sgyYvwXm2u3Qc2X8pqL
Generated by Claude Code