o2o-negosium-original/frontend/src
hbyang 1c8c4254a6 [feat] 협상 멘트 스타일 파이프라인(마커) + agent 카드 DB 소스 + supplier_items 연동
표현 아키텍처: agent 스크립트는 의미(텍스트)만 소유, 표현(굵기·색)은 프론트 소유.
Slate 는 negodata 에디터 내부에만 두고, 전송/저장은 마커 문자열 한 벌(구버전의 리치텍스트 이중관리 폐기).

- 트랙 A (negodata): serializeToMarker 추가 — Slate 마크(bold/underline/color)를 **/__/{{토큰}} 로
  인코딩해 nego_cards.script 저장. edit_script(Slate 원본)는 재편집 전용. 고정 3색 → 시맨틱 토큰(강조/안내).
- 트랙 B (agent): 카드 멘트 DB 소스 — ICardScriptRepository/CardScriptDbRepository(port+adapter),
  ScriptRepository.resolve_card_script 가 cards.source_type=backoffice_db 면 card.nego_cards.script 우선,
  없으면 파일 폴백. action_id→card_id→nego_cards.number 매칭.
- 트랙 C (양 프론트): renderEmphasis 재귀 파서 — **굵게**·__밑줄__·{{강조|빨강}}·{{안내|파랑}} 중첩 렌더.
  색은 시맨틱 토큰→디자인 토큰 클래스(다크모드 안전). negodata tokens.css 에 --info 신설. CardTable 미리보기 적용.
- supplier_items 연동: 유통코드=supplier_items.supply_type(→quotations.supplier_type 폴백),
  파트너유형=상품별 매핑 협력사 수(→세션 이력 폴백).
- 가격 수용률: 기존 공급가(item_price) 기준 양보율로 정정 — 첫 라운드부터 실값(첫 제시가 기준 0 아님).

테스트: agent 86/86, 공급사 frontend·negodata front tsc 통과.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 15:19:45 +09:00
..
apis feat(chat): 반응형 레이아웃(~1024px) + 리드타임 "일" 표시 + 완료세션 인디케이터 숨김 2026-07-06 16:37:18 +09:00
assets update(front): front 폴더명 frontend로 변경 2026-06-18 11:30:26 +09:00
components feat(chat): 프론트 로드 에러 페이지·대기 애니메이션·indicator 소비 2026-06-19 17:32:58 +09:00
core feat(frontend): 공통 토스트(sonner)·모달 컴포넌트 추가 2026-06-18 13:12:16 +09:00
features [feat] 협상 멘트 스타일 파이프라인(마커) + agent 카드 DB 소스 + supplier_items 연동 2026-07-07 15:19:45 +09:00
layouts feat(chat): 반응형 레이아웃(~1024px) + 리드타임 "일" 표시 + 완료세션 인디케이터 숨김 2026-07-06 16:37:18 +09:00
lib feat(frontend): 채팅 페이지 API 연동 + KST 시각 표시 2026-06-18 14:25:07 +09:00
pages feat(chat): 반응형 레이아웃(~1024px) + 리드타임 "일" 표시 + 완료세션 인디케이터 숨김 2026-07-06 16:37:18 +09:00
App.tsx feat(frontend): 인증 연동 (로그인/로그아웃/내정보/라우트 가드) 2026-06-18 13:12:23 +09:00
index.css fix(chat): 채팅 영역 오른쪽 끝·상단 여백 정렬 보정 2026-07-06 15:53:31 +09:00
main.tsx feat(frontend): 공통 토스트(sonner)·모달 컴포넌트 추가 2026-06-18 13:12:16 +09:00
vite-env.d.ts update(front): front 폴더명 frontend로 변경 2026-06-18 11:30:26 +09:00