[fix] negodata·frontend·backend: 회사별 브랜드 색(primary_color) 기능 전면 제거 — 편집 UI 없이 값만 남아 적용되던 구현 정리(포털·메일·사이드바 색 솔루션 고정, 시드·응답 필드 제거)

This commit is contained in:
minaChoi committed 2026-08-07 13:45:23 +09:00
1 parent 4ed23c56b8
commit 11b29b45e3
15 files changed
+19 -78

No files matched your search

@@ -1,7 +1,7 @@
"""협상 초청 메일 미리보기(/v1/company/settings/email-preview) 테스트 — 회사 CI 슬롯 렌더 확인.
- 실제 발송(services/quotation/invites.py)과 같은 build_invite_email 을 타므로 미리보기 검증 = 발송물 검증.
- 헤더·색은 회사 CI(logo_url·service_name·primary_color)를 그대로 쓴다 — 메일 전용 설정은 인사 문구뿐.
- 헤더는 회사 CI(logo_url·service_name)를 그대로 쓰고 색은 솔루션 고정 — 메일 전용 설정은 인사 문구뿐.
- 색은 hex 만 통과한다(이상값이 style 을 깨거나 CSS 주입되는 것 방지).
"""
@@ -32,13 +32,13 @@ async def test_preview_default_branding(client, auth_headers):
async def test_preview_ci_branding(client, auth_headers):
"""검증: 회사 CI(서비스명·로고·브랜드 색)와 인사 문구를 채워 미리보기 호출.
기대결과: 헤더는 로고 이미지(서비스명은 alt), 액센트·버튼은 브랜드 색으로 렌더되고 기본색은 사라진다."""
"""검증: 회사 CI(서비스명·로고)와 인사 문구를 채워 미리보기 호출(브랜드 색을 넣어도 무시).
기대결과: 헤더는 로고 이미지(서비스명은 alt), 색은 회사 값과 무관하게 솔루션 기본색으로 렌더."""
h = await auth_headers("previewer2")
branding = {
"service_name": "아이좋아네고",
"logo_url": "https://cdn.example.com/ci.png",
"primary_color": "#f551a0",
"primary_color": "#f551a0", # 제거된 기능 — 값을 보내도 반영되지 않아야 한다
"email_greeting": "협상에 초대합니다.",
}
r = await client.post(PREVIEW_URL, json={"branding": branding}, headers=h)
@@ -46,8 +46,8 @@ async def test_preview_ci_branding(client, auth_headers):
html = r.json()["html"]
assert '<img src="https://cdn.example.com/ci.png"' in html
assert 'alt="아이좋아네고"' in html
assert "#f551a0" in html
assert "#3182f6" not in html
assert "#f551a0" not in html
assert "#3182f6" in html
assert "협상에 초대합니다." in html