diff --git a/backend/router/v1/auth/protocol.py b/backend/router/v1/auth/protocol.py index a4d3d21..74bd60a 100644 --- a/backend/router/v1/auth/protocol.py +++ b/backend/router/v1/auth/protocol.py @@ -72,5 +72,4 @@ class Res_HidePopup(Res_WebPacketProtocol): class Res_SessionBranding(Res_WebPacketProtocol): service_name: str = Field("", description="회사 서비스명(companies.settings.branding.service_name). 미설정 시 빈 값") logo_url: str = Field("", description="회사 로고 URL") - primary_color: str = Field("", description="브랜드 색상(hex)") helpdesk: list = Field(default_factory=list, description="헬프데스크 연락처 줄 목록(companies.settings.branding.helpdesk). 한 줄 = 담당자 한 명") diff --git a/backend/services/auth_service.py b/backend/services/auth_service.py index 4862af8..12d874e 100644 --- a/backend/services/auth_service.py +++ b/backend/services/auth_service.py @@ -279,7 +279,6 @@ class AuthService: branding = branding or {} res.service_name = branding.get("service_name") or "" res.logo_url = branding.get("logo_url") or "" - res.primary_color = branding.get("primary_color") or "" res.helpdesk = branding.get("helpdesk") or [] return res diff --git a/frontend/src/apis/auth/auth.type.ts b/frontend/src/apis/auth/auth.type.ts index 1654294..ec40986 100644 --- a/frontend/src/apis/auth/auth.type.ts +++ b/frontend/src/apis/auth/auth.type.ts @@ -57,7 +57,6 @@ export interface RefreshTokenResponse { export interface Branding { service_name?: string logo_url?: string - primary_color?: string helpdesk?: string[] // 헬프데스크 연락처 — 한 줄 = 담당자 한 명. 비면 연락처 영역을 렌더하지 않는다 } @@ -66,7 +65,6 @@ export interface SessionBrandingResponse { result: ApiResult service_name: string logo_url: string - primary_color: string helpdesk?: string[] } diff --git a/frontend/src/features/auth/hooks/usePreLoginBranding.ts b/frontend/src/features/auth/hooks/usePreLoginBranding.ts index 932735a..aa1c16b 100644 --- a/frontend/src/features/auth/hooks/usePreLoginBranding.ts +++ b/frontend/src/features/auth/hooks/usePreLoginBranding.ts @@ -43,10 +43,9 @@ export function usePreLoginBranding(): Branding | null { const next: Branding = { service_name: res.service_name || undefined, logo_url: res.logo_url || undefined, - primary_color: res.primary_color || undefined, helpdesk: res.helpdesk?.length ? res.helpdesk : undefined, } - if (!next.service_name && !next.logo_url && !next.primary_color && !next.helpdesk) return + if (!next.service_name && !next.logo_url && !next.helpdesk) return setBranding(next) writeCached(next) // 다음 진입에 session_id 가 없어도 이 회사로 보이게 한다 }) diff --git a/frontend/src/layouts/MainLayout.tsx b/frontend/src/layouts/MainLayout.tsx index 4809727..68097a4 100644 --- a/frontend/src/layouts/MainLayout.tsx +++ b/frontend/src/layouts/MainLayout.tsx @@ -1,7 +1,7 @@ import { type ReactNode } from 'react' import { Logo } from '@/components' import { useMeQuery } from '@/apis' -import { cn, useBrandColor } from '@/lib' +import { cn } from '@/lib' // 좌측 폭: list=반응형 비율 / chat=고정폭 단계 축소 const SIDEBAR_WIDTH = { @@ -44,8 +44,7 @@ export function MainLayout({ header, children, }: MainLayoutProps) { - const { data: user } = useMeQuery() // 회사 브랜딩(서비스명/로고/브랜드 색) 주입 - useBrandColor(user?.branding?.primary_color) + const { data: user } = useMeQuery() // 회사 브랜딩(서비스명/로고) 주입 — 색은 솔루션 고정 const panes = ( <>