Skip to content

feat(settings): 연보라(Lilac) 팔레트 추가 - #443

Merged
devswha merged 4 commits into
devswha:mainfrom
WOULDU-pres:feat/lilac-palette
Oct 6, 2026
Merged

devswha merged 4 commits into
devswha:mainfrom
WOULDU-pres:feat/lilac-palette

Conversation

@WOULDU-pres

@WOULDU-pres WOULDU-pres commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

올려둔 물방울 테마랑 어울리는 연보라 테마입니다!

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

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]>
@coderabbitai

coderabbitai Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2a1a92bb-c483-4734-9e4e-635ef5b9c538
📥 Commits

Reviewing files that changed from the base of the PR and between d9ace7f and ffdade6.

📒 Files selected for processing (6)
  • CHANGELOG.md
  • DESIGN.md
  • src/components/SettingsDialog.tsx
  • src/lib/settings.test.ts
  • src/lib/settings.ts
  • src/styles.css
🚧 Files skipped from review as they are similar to previous changes (1)
  • CHANGELOG.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Summary

Summary by CodeRabbit

  • New Features
    • Added the Lilac palette to Appearance settings, with light and dark variants.
    • Lilac themes apply coordinated colors to interface surfaces, text, accents, status indicators, overlays, and terminal displays.
    • Added translated Lilac labels and palette descriptions in Japanese, Korean, and Simplified Chinese.

Walkthrough

Adds 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.

Changes

Lilac palette

Layer / File(s) Summary
Palette values and theme tokens
src/lib/settings.ts, src/styles.css, src/lib/settings.test.ts
Adds Lilac to the palette type and settings sanitizer. Defines light and dark CSS, terminal, and theme colors. Tests cover sanitization and CSS token selection.
Settings option and documentation
src/components/SettingsDialog.tsx, src/lib/i18n.*.ts, DESIGN.md, CHANGELOG.md
Adds Lilac to the Appearance selector and translations. Updates the palette documentation and Unreleased changelog.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Suggested reviewers: devswha

Merge Risk: ⚪ Minimal · up to ffdad

Lilac is included across the settings and appearance paths, with no identified material risk to merging.

Security Architecture Review

Security architecture risk: ⚪ Minimal · up to ffdad

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
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The added value affects browser appearance preferences and terminal rendering within the existing client. The traced palette flow does not gain service, tenant, credential or command-execution authority.

Trust Boundaries and Controls

  • observed — Stored JSON passes through explicit palette validation before use. The UI emits supported literals, and accepted values select fixed color definitions rather than arbitrary CSS, resource URLs or executable content.

Resilience and Maintainability Implications

  • observed — Existing load and save exception handling contains storage failures. Functional updates merge against current state; repeated saves write sanitized snapshots. Failed persistence may lose an appearance change on restart but does not create a privileged partial state. These mechanics predate this PR; cross-tab reconciliation remains absent.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning 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… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the addition of the Lilac palette.
Description check ✅ Passed The description includes the required Change and Validation sections and gives detailed behavior and test results. It describes Chromium UI checks but does not include the screenshot or recording requ…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

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.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@WOULDU-pres
WOULDU-pres marked this pull request as draft October 4, 2026 18:11
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]>
@WOULDU-pres
WOULDU-pres marked this pull request as ready for review October 4, 2026 18:15
# Conflicts:
#	CHANGELOG.md
#	src/lib/settings.ts
#	src/styles.css
@devswha
devswha merged commit 258fc7a into devswha:main Oct 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants