Repository navigation
feat(settings): 연보라(Lilac) 팔레트 추가 - #443
Conversation
Light is a lavender canvas under paler lavender chrome with indigo ink and an indigo accent; dark is the same hue at night. Every surface is flat. The light agent states are darkened until their badges pass AA on a hovered row, and the terminal colors are mirrored for xterm. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (6)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughAdds light and dark Lilac palettes. The Appearance selector, settings sanitization, terminal colors, and theme colors support Lilac. Tests, translations, design documentation, and the changelog include the option. ChangesLilac palette
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Suggested reviewers: Merge Risk: ⚪ Minimal · up to Lilac is included across the settings and appearance paths, with no identified material risk to merging. Security Architecture ReviewSecurity architecture risk: ⚪ Minimal · up to Lilac remains a browser appearance preference. It adds no permissions or remote operations, and unsupported values retain the existing safe fallback. No material security risk was identified in the changed flow. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 6 files. (3 skipped: 3 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
The light canvas, chrome, hover, borders and terminal move one step paler. Ink, accent and the agent states are unchanged and stay AA on every surface. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # CHANGELOG.md # src/lib/settings.ts # src/styles.css
올려둔 물방울 테마랑 어울리는 연보라 테마입니다!
Change
설정 → 모양 → 색상에 다섯 번째 팔레트 연보라(Lilac) 를 추가합니다. 차분한 연보라 한 가지 색으로, 그라데이션이나 반투명 없이 모든 표면이 단색입니다.
--bg#f0eefc) 위에 더 옅은 연보라 크롬(--bg-panel#f6f5fe: 사이드바, 헤더, 탭)을 얹었습니다. 호버는#e8e5f8입니다. 글자는 남색 계열(#2b2d4d/#545779/#17193a), 강조색과 기본 버튼은 남보라#4a42c2(흰 글자)입니다. 터미널은#f8f7fe, 커서#4a42c2, 선택 영역#dcd7f8입니다.#16152b, 보랏빛 크롬#1c1b34, 옅은 라일락 강조색#b3abff(#17163a글자), 터미널#18172f, 선택 영역#3a3768입니다.#1f4aa6, 입력 대기#9c2044, 완료#1f5c39, 대기#545779입니다. 모서리와 카드 그림자는 앰버를 따르고, 라이트의 그림자만 남색 기운으로 바꿨습니다.바뀐 곳은 다음과 같습니다.
src/styles.css:[data-theme="dark"][data-palette="lilac"],[data-theme="light"][data-palette="lilac"]블록src/lib/settings.ts:Palette타입, 저장값 확인(모르는 값은 앰버로), xterm 색terminalTheme(), PWA 제목 표시줄 색src/components/SettingsDialog.tsx: 색상 버튼과 설명 문구. 새 문구Lilac과 바뀐 설명은i18n.ko/ja/zh에 번역했습니다.DESIGN.md(선택형 팔레트 설명, 설정 목록)와 변경 이력(Unreleased → Added)HTTP/WS 계약과 서버는 바뀌지 않습니다.
Validation
대비 검사:
settings.test.ts의 기존 검사(모든 팔레트의 모든 표면에서 본문·흐린 글자와 상태 배지가 WCAG AA 4.5:1 이상)에 연보라 다크·라이트를 추가했습니다. 라이트의 상태 색은 마우스를 올린 행(--bg-hover) 위 배지에서도 통과하도록 색조를 유지한 채 어둡게 정했습니다. 라이트 기준 가장 낮은 값은 상태 배지 5.2:1, 흐린 글자 5.6:1, 강조색 6.0:1입니다.실제 앱 확인: 데모 빌드(
site/demo/transport.ts의 가상 세션, herdr 세션 사용 안 함)를 연보라 라이트와 다크로 각각 띄워 Chromium에서 확인했습니다. 두 모드 모두data-palette="lilac"이 적용되고, 사이드바·헤더·탭 줄·채팅·입력창이 의도한 색으로 그려졌으며 페이지 오류는 없었습니다.검증 환경: Linux(WSL), Bun 1.4.2.
bun run generate:types --check: 통과bun run typecheck: 통과bun run build: 통과bun run test:unit: 실패 0 (settings.test.ts에 연보라 저장값과 다크·라이트 대비 검사 케이스 추가)bun run test:ui: 이 환경에서는 돌리지 않았습니다(live herdr 필요). 팔레트 색만 바꾸는 변경이라 CI 결과로 확인하겠습니다.🤖 Generated with Claude Code