From 2a3510814956edaf074d2585e031e01479a0cc48 Mon Sep 17 00:00:00 2001 From: Haewon Kam Date: Sat, 4 Apr 2026 16:21:10 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20'=EC=9D=98=EB=A3=8C=EC=A7=84=203?= =?UTF-8?q?=EB=AA=85'=20=E2=86=92=20'=EC=A0=84=EB=AC=B8=EC=9D=98=203?= =?UTF-8?q?=EB=AA=85'=20=E2=80=94=20staffCount=EB=8A=94=20=EA=B0=95?= =?UTF-8?q?=EB=82=A8=EC=96=B8=EB=8B=88=20=EB=93=B1=EB=A1=9D=20=EC=9D=98?= =?UTF-8?q?=EC=82=AC=20=EC=88=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit staffCount is the number of registered doctors from 강남언니, not total staff. Label changed from 의료진(medical staff) to 전문의(specialists) to accurately reflect the data source. Diagnosis message also updated. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/components/report/ClinicSnapshot.tsx | 2 +- src/lib/transformReport.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/report/ClinicSnapshot.tsx b/src/components/report/ClinicSnapshot.tsx index 0c0b48e..a2ffc0a 100644 --- a/src/components/report/ClinicSnapshot.tsx +++ b/src/components/report/ClinicSnapshot.tsx @@ -20,7 +20,7 @@ interface InfoField { const infoFields = (data: ClinicSnapshotType): InfoField[] => [ data.established ? { label: '개원', value: `${data.established} (${data.yearsInBusiness}년)`, icon: Calendar } : null, - data.staffCount > 0 ? { label: '의료진', value: `${data.staffCount}명`, icon: Users } : null, + data.staffCount > 0 ? { label: '전문의', value: `${data.staffCount}명`, icon: Users } : null, data.overallRating > 0 ? { label: '강남언니 평점', value: data.overallRating > 5 ? `${data.overallRating} / 10` : `${data.overallRating} / 5.0`, icon: Star } : null, data.totalReviews > 0 ? { label: '리뷰 수', value: formatNumber(data.totalReviews), icon: Star } : null, data.location ? { label: '위치', value: data.nearestStation ? `${data.location} (${data.nearestStation})` : data.location, icon: MapPin } : null, diff --git a/src/lib/transformReport.ts b/src/lib/transformReport.ts index 0695118..3f5b8bf 100644 --- a/src/lib/transformReport.ts +++ b/src/lib/transformReport.ts @@ -808,7 +808,7 @@ function generateEnrichmentDiagnosis(enrichment: EnrichmentData): DiagnosisItem[ items.push({ category: '강남언니', detail: `평점 ${gu.rating}/10 — 업계 상위권(9.5+) 대비 개선 여지가 있습니다.`, severity: 'warning' }); } if (gu.doctors && gu.doctors.length < 3) { - items.push({ category: '강남언니', detail: `등록 의사 ${gu.doctors.length}명 — 의료진 프로필을 더 등록하면 신뢰도가 높아집니다.`, severity: 'good' }); + items.push({ category: '강남언니', detail: `등록 전문의 ${gu.doctors.length}명 — 전문의 프로필을 더 등록하면 신뢰도가 높아집니다.`, severity: 'good' }); } if (gu.totalReviews && gu.totalReviews > 5000) { items.push({ category: '강남언니', detail: `리뷰 ${gu.totalReviews.toLocaleString()}건 — 우수한 리뷰 수입니다. 리뷰 관리와 답변에 집중하세요.`, severity: 'excellent' }); @@ -1013,7 +1013,7 @@ export function mergeEnrichment( overallRating: gu.rating ?? merged.clinicSnapshot.overallRating, totalReviews: gu.totalReviews ?? merged.clinicSnapshot.totalReviews, certifications: gu.badges?.length ? gu.badges : merged.clinicSnapshot.certifications, - staffCount: gu.doctors?.length ?? merged.clinicSnapshot.staffCount, + staffCount: gu.doctors?.length ?? merged.clinicSnapshot.staffCount, // 전문의 수 (강남언니 등록 의사 기준) }; // Extract nearest station from address (Korean station name pattern)