feat(chat): 협상 유의사항 안내 팝업 2종 이식 + 팝업 숨김 저장 API

KT-NEGOWIZ fe_v2 의 서비스 안내 팝업을 우리 구조로 이식.

- frontend: GuideContent(공용 본문, VAT/배송비는 chat init 메타로 동적 표시)
  + ServiceInfoPopup(채팅 진입 시 자동 — 안내 보지 않기/오늘 하루 보지 않기)
  + ServiceGuidePopup(메뉴 유의사항·이용 가이드 버튼 수동 — X/배경/ESC 닫기)
  + useServiceInfoPopup 훅(서버 상태 + localStorage 오늘 하루)
  + apis/auth 에 popupStatus 쿼리·hidePopup 뮤테이션, 헬프데스크 연락처 반영,
    한국어 단어 잘림 방지(break-keep)
- backend: GET /v1/auth/popup/status, POST /v1/auth/popup/hide
  (authenticate 공통 인증 + supplier_users.hide_service_info 영구 저장), 테스트 4건
- db: supplier_users.hide_service_info 컬럼 — 00-init 테이블 정의 갱신,
  기존 DB 보정은 alters/2026-07-07-supplier-users-hide-service-info.sql 별도 파일
  (기준선 이후 보정 ALTER 는 alters/ 파일로 관리하도록 규칙 변경)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
민헌andClaude Fable 5 committed 2026-07-07 13:41:46 +09:00
1 parent dc0e78ec73
commit 3c8923c075
21 files changed
+488 -21

No files matched your search

@@ -1,22 +1,28 @@
import { useState } from 'react'
import { interactive, cn } from '@/lib'
import { ServiceGuidePopup } from '@/features/chat/components/popup/ServiceGuidePopup'
// 헬프데스크 (TODO: 이용가이드 팝업 연동, 연락처는 추후 설정값으로 교체)
// 헬프데스크 — 이용 가이드 버튼 클릭 시 안내 팝업을 연다.
export function Contact() {
const [isOpen, setIsOpen] = useState(false)
return (
<div className="flex flex-col w-full pl-[24px] pb-[24px]">
<div className="flex flex-col w-full gap-2">
<div className="title-5 text-neutral-80">헬프 데스크</div>
<button
type="button"
onClick={() => setIsOpen(true)}
className={cn('body-5 text-neutral-80 bg-neutral-40 rounded-[8px] px-[12px] py-[6px] w-fit', interactive)}
>
이용 가이드
</button>
<div className="flex flex-col gap-1">
<div className="body-5 text-neutral-60">-</div>
<div className="body-5 text-neutral-60">-</div>
<div className="body-5 text-neutral-60">010-0000-0000</div>
<div className="body-5 text-neutral-60">o2odev@o2o.kr</div>
</div>
</div>
{isOpen && <ServiceGuidePopup onClose={() => setIsOpen(false)} />}
</div>
)
}
@@ -1,18 +1,26 @@
import { useState } from 'react'
import { ChevronRight } from 'lucide-react'
import { interactive, cn } from '@/lib'
import { ServiceGuidePopup } from '@/features/chat/components/popup/ServiceGuidePopup'
// 유의사항 및 이용방법 (TODO: 이용가이드 팝업 연동)
// 유의사항 및 이용방법 — 클릭 시 안내 팝업을 연다.
export function Guide() {
const [isOpen, setIsOpen] = useState(false)
return (
<button
type="button"
className={cn(
'flex w-full bg-white rounded-[28px] py-[20px] pl-[24px] pr-[16px] justify-between items-center text-left',
interactive,
)}
>
<span className="menu-title text-neutral-80 break-keep">유의사항 및 이용방법</span>
<ChevronRight size={20} className="text-neutral-70" />
</button>
<>
<button
type="button"
onClick={() => setIsOpen(true)}
className={cn(
'flex w-full bg-white rounded-[28px] py-[20px] pl-[24px] pr-[16px] justify-between items-center text-left',
interactive,
)}
>
<span className="menu-title text-neutral-80 break-keep">유의사항 및 이용방법</span>
<ChevronRight size={20} className="text-neutral-70" />
</button>
{isOpen && <ServiceGuidePopup onClose={() => setIsOpen(false)} />}
</>
)
}