chore: 프론트엔드 마이그레이션 + 아키텍처 정의

- 백엔드 SDK 이전: FastAPI OpenAPI → orval 자동생성 (React Query 훅 포함)
- HTTP 어댑터: ky 기반 customFetcher, fetch httpClient 시그니처
- 아키텍처: features 모듈 / shared 레이어 컨벤션 정의
- 디자인 시스템: Tailwind v4 CSS-first 토큰 (브랜드 색 / status / shadcn)
- 커스텀 CSS: utilities / animations 를 custom.css 로 분리
- Docker: 개발(Dockerfile.dev + compose) / 프로덕션(nginx) 셋업
- README: 기술 스펙 / 프로젝트 구조 / 디자인 토큰 / 폰트 / SDK 사용법 정리

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
minaChoiandClaude Opus 4.7 committed 2026-05-13 11:38:07 +09:00
commit e66b208318
219 files changed
+36881

No files matched your search

@@ -0,0 +1,76 @@
import type { ComponentType } from 'react';
import { motion } from 'motion/react';
import { Youtube, Instagram, Globe, Star, Facebook, Search } from 'lucide-react';
import { SectionWrapper } from './ui/SectionWrapper';
import { ScoreRing } from './ui/ScoreRing';
import { SeverityBadge } from './ui/SeverityBadge';
import type { ChannelScore } from '@/features/report/types/report';
interface ChannelOverviewProps {
channels: ChannelScore[];
}
const iconMap: Record<string, ComponentType<{ size?: number; className?: string }>> = {
youtube: Youtube,
instagram: Instagram,
facebook: Facebook,
star: Star,
globe: Globe,
search: Search,
};
const channelLabel: Record<string, string> = {
naverBlog: '네이버 블로그',
naverPlace: '네이버 플레이스',
gangnamUnni: '강남언니',
instagram: 'Instagram',
youtube: 'YouTube',
facebook: 'Facebook',
website: '웹사이트',
tiktok: 'TikTok',
blog: '블로그',
};
const brandColor: Record<string, string> = {
facebook: '#1877F2',
instagram: '#E1306C',
youtube: '#FF0000',
globe: '#6B2D8B',
};
function getChannelColor(icon: string | undefined): string | undefined {
return brandColor[icon?.toLowerCase() ?? ''];
}
export default function ChannelOverview({ channels }: ChannelOverviewProps) {
return (
<SectionWrapper id="channel-overview" title="Channel Health Score" subtitle="채널별 건강도 종합">
<div className="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4">
{channels.map((ch, i) => {
const Icon = iconMap[ch.icon?.toLowerCase()] ?? Globe;
const color = getChannelColor(ch.icon);
return (
<motion.div
key={ch.channel}
className="rounded-2xl bg-white border border-slate-100 shadow-sm p-4 text-center flex flex-col items-center gap-3"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: i * 0.08 }}
>
<div className="w-10 h-10 rounded-xl bg-slate-50 flex items-center justify-center">
<Icon size={20} style={color ? { color } : undefined} className={color ? '' : 'text-slate-500'} />
</div>
<p className="text-sm font-medium text-[#0A1128]">{channelLabel[ch.channel] || ch.channel}</p>
<ScoreRing score={ch.score} maxScore={ch.maxScore} size={60} color={color} />
<p className="text-xs text-slate-500 line-clamp-2 leading-relaxed">
{ch.headline}
</p>
<SeverityBadge severity={ch.status} />
</motion.div>
);
})}
</div>
</SectionWrapper>
);
}
@@ -0,0 +1,184 @@
import { motion } from 'motion/react';
import { Calendar, Users, MapPin, Phone, Award, Star, Globe, ExternalLink, Building2 } from 'lucide-react';
import { SectionWrapper } from './ui/SectionWrapper';
import type { ClinicSnapshot as ClinicSnapshotType } from '@/features/report/types/report';
interface ClinicSnapshotProps {
data: ClinicSnapshotType;
}
function formatNumber(n: number): string {
return n.toLocaleString();
}
interface InfoField {
label: string;
value: string;
icon: typeof Calendar;
href?: string;
}
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.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.registryData?.district ? { label: '지역구', value: data.registryData.district, icon: Building2 } : null,
data.location ? { label: '위치', value: data.nearestStation ? `${data.location} (${data.nearestStation})` : data.location, icon: MapPin } : null,
data.phone ? { label: '전화', value: data.phone, icon: Phone, href: `tel:${data.phone.replace(/[^+0-9]/g, '')}` } : null,
data.domain ? { label: '도메인', value: data.domain, icon: Globe, href: `https://${data.domain.replace(/^https?:\/\//, '')}` } : null,
data.registryData?.websiteEn ? { label: '영문 사이트', value: data.registryData.websiteEn, icon: Globe, href: data.registryData.websiteEn } : null,
].filter(Boolean) as InfoField[];
export default function ClinicSnapshot({ data }: ClinicSnapshotProps) {
const fields = infoFields(data);
const isVerified = data.source === 'registry';
return (
<SectionWrapper id="clinic-snapshot" title="Clinic Overview" subtitle="병원 기본 정보">
{/* 외부 검증 배지는 내부 관리용이므로 리포트에서 제외 */}
{/* Registry 외부 링크 (강남언니, 네이버 플레이스, 구글 맵) */}
{isVerified && (data.registryData?.naverPlaceUrl || data.registryData?.gangnamUnniUrl || data.registryData?.googleMapsUrl) && (
<motion.div
className="flex flex-wrap gap-2 mb-6"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 0.4, delay: 0.1 }}
>
{data.registryData?.gangnamUnniUrl && (
<a
href={data.registryData.gangnamUnniUrl}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-1.5 rounded-lg bg-pink-50 border border-pink-200 px-3 py-1.5 text-xs font-medium text-pink-700 hover:bg-pink-100 transition-colors"
>
강남언니 <ExternalLink size={11} />
</a>
)}
{data.registryData?.naverPlaceUrl && (
<a
href={data.registryData.naverPlaceUrl}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-1.5 rounded-lg bg-green-50 border border-green-200 px-3 py-1.5 text-xs font-medium text-green-700 hover:bg-green-100 transition-colors"
>
네이버 플레이스 <ExternalLink size={11} />
</a>
)}
{data.registryData?.googleMapsUrl && (
<a
href={data.registryData.googleMapsUrl}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-1.5 rounded-lg bg-blue-50 border border-blue-200 px-3 py-1.5 text-xs font-medium text-blue-700 hover:bg-blue-100 transition-colors"
>
Google Maps <ExternalLink size={11} />
</a>
)}
</motion.div>
)}
<div className="grid grid-cols-1 md:grid-cols-2 gap-4 mb-8">
{fields.map((field, i) => {
const Icon = field.icon;
return (
<motion.div
key={field.label}
className="rounded-2xl bg-white border border-slate-100 shadow-sm p-5"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: i * 0.05 }}
>
<div className="flex items-start gap-3">
<div className="shrink-0 w-8 h-8 rounded-lg bg-slate-50 flex items-center justify-center">
<Icon size={16} className="text-slate-400" />
</div>
<div className="min-w-0">
<p className="text-xs text-slate-500 uppercase tracking-wide">{field.label}</p>
{field.href ? (
<a
href={field.href}
target={field.href.startsWith('tel:') ? undefined : '_blank'}
rel="noopener noreferrer"
className="text-lg font-semibold text-[#0A1128] mt-1 hover:text-[#6C5CE7] inline-flex items-center gap-1.5"
>
{field.value}
{!field.href.startsWith('tel:') && <ExternalLink size={14} className="text-[#6C5CE7] shrink-0" />}
</a>
) : (
<p className="text-lg font-semibold text-[#0A1128] mt-1">{field.value}</p>
)}
</div>
</div>
</motion.div>
);
})}
</div>
{/* Lead Doctor Highlight — only show if doctor name exists */}
{data.leadDoctor.name && (
<motion.div
className="rounded-2xl bg-gradient-to-r from-[#4F1DA1]/5 to-[#021341]/5 border border-purple-100 p-6 mb-8"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.3 }}
>
<div className="flex items-center gap-2 mb-3">
<Award size={20} className="text-[#6C5CE7]" />
<h3 className="font-serif font-bold text-2xl text-[#0A1128]">대표 원장</h3>
</div>
<p className="text-xl font-bold text-[#0A1128] mb-1">{data.leadDoctor.name}</p>
{data.leadDoctor.credentials && (
<p className="text-sm text-slate-600 mb-3">{data.leadDoctor.credentials}</p>
)}
{data.leadDoctor.rating > 0 && (
<div className="flex items-center gap-4">
<div className="flex items-center gap-1">
{Array.from({ length: 5 }).map((_, i) => (
<Star
key={i}
size={16}
className={i < Math.round(data.leadDoctor.rating) ? 'text-[#6B2D8B] fill-[#6B2D8B]' : 'text-slate-200'}
/>
))}
<span className="text-sm font-semibold text-[#0A1128] ml-1">
{data.leadDoctor.rating}
</span>
</div>
{data.leadDoctor.reviewCount > 0 && (
<span className="text-sm text-slate-500">
리뷰 {formatNumber(data.leadDoctor.reviewCount)}건
</span>
)}
</div>
)}
</motion.div>
)}
{/* Certifications */}
{data.certifications.length > 0 && (
<motion.div
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.4 }}
>
<p className="text-sm font-semibold text-slate-700 mb-3">인증 및 자격</p>
<div className="flex flex-wrap gap-2">
{data.certifications.map((cert) => (
<span
key={cert}
className="rounded-full bg-white/60 backdrop-blur-sm border border-white/40 px-3 py-1 text-sm font-medium text-slate-700"
>
{cert}
</span>
))}
</div>
</motion.div>
)}
</SectionWrapper>
);
}
@@ -0,0 +1,367 @@
import { useState } from 'react';
import { motion } from 'motion/react';
import {
Facebook, AlertCircle, AlertTriangle, ExternalLink, CheckCircle2, XCircle,
ArrowRight, Link2, MessageCircle, TrendingUp, Eye, ImageIcon, Globe,
} from 'lucide-react';
import { SectionWrapper } from './ui/SectionWrapper';
import { SeverityBadge } from './ui/SeverityBadge';
import { EvidenceGallery } from './ui/EvidenceGallery';
import { Button } from '@/shared/ui/button';
import type {
FacebookAudit as FacebookAuditType,
FacebookPage,
BrandInconsistency,
DiagnosisItem,
} from '@/features/report/types/report';
function formatNumber(n: number): string {
return n.toLocaleString();
}
/* ─── Page Card ─── */
function PageCard({ page, index }: { key?: string | number; page: FacebookPage; index: number }) {
const isKR = page.language === 'KR';
const langColor = isKR ? 'bg-slate-100 text-slate-700' : 'bg-brand-tint-violet text-brand-purple-faint';
const isLogoMismatch = page.logo?.includes('불일치');
const isLowFollowers = page.followers < 500;
return (
<motion.div
className={`rounded-2xl border shadow-sm p-6 ${
isKR && isLowFollowers
? 'bg-brand-rose-bg/30 border-brand-rose-soft/60'
: 'bg-white border-slate-100'
}`}
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: index * 0.15 }}
>
{/* Header */}
<div className="flex items-center justify-between mb-4">
<div className="flex items-center gap-2">
<span className={`text-xs font-medium px-3 py-1 rounded-full ${langColor}`}>
{page.label}
</span>
<div className="w-8 h-8 rounded-lg bg-[#1877F2] flex items-center justify-center">
<Facebook size={16} className="text-white" />
</div>
</div>
{isKR && isLowFollowers && (
<span className="text-xs font-medium px-3 py-1 rounded-full bg-brand-rose-bg text-brand-rose">
방치 상태
</span>
)}
{page.hasWhatsApp && (
<span className="text-xs font-medium px-3 py-1 rounded-full bg-brand-tint-purple text-brand-purple-muted">
WhatsApp 연결
</span>
)}
</div>
<h3 className="font-bold text-lg text-brand-navy mb-1">
{page.url ? (
<a
href={
page.url.startsWith('http')
? page.url
: page.url.startsWith('facebook.com/') || page.url.startsWith('www.facebook.com/')
? `https://${page.url.replace(/^www\./, 'www.')}`
: `https://www.facebook.com/${page.url.replace(/^@/, '')}`
}
target="_blank"
rel="noopener noreferrer"
className="hover:text-brand-purple-vivid inline-flex items-center gap-1"
>
{page.pageName}
<ExternalLink size={13} className="text-brand-purple-vivid" />
</a>
) : page.pageName}
</h3>
<p className="text-xs text-slate-500 mb-4">{page.category}</p>
{/* Metrics grid */}
<div className="grid grid-cols-3 gap-2 mb-5">
<div className="rounded-xl bg-slate-50 p-3 text-center">
<p className="text-xs text-slate-400 uppercase tracking-wide">팔로워</p>
<p className={`text-lg font-bold ${isLowFollowers ? 'text-brand-rose' : 'text-brand-navy'}`}>
{formatNumber(page.followers)}
</p>
</div>
<div className="rounded-xl bg-slate-50 p-3 text-center">
<p className="text-xs text-slate-400 uppercase tracking-wide">리뷰</p>
<p className={`text-lg font-bold ${page.reviews === 0 ? 'text-brand-rose' : 'text-brand-navy'}`}>
{page.reviews}
</p>
</div>
<div className="rounded-xl bg-slate-50 p-3 text-center">
<p className="text-xs text-slate-400 uppercase tracking-wide">팔로잉</p>
<p className="text-lg font-bold text-brand-navy">{formatNumber(page.following)}</p>
</div>
</div>
{/* Detail rows */}
<div className="space-y-3 mb-5 text-sm">
<div className="flex items-center justify-between py-1 border-b border-slate-100 last:border-0">
<span className="text-slate-500 flex items-center gap-2"><Eye size={13} /> 최근 게시물</span>
<span className="font-medium text-brand-navy">{page.recentPostAge}</span>
</div>
{page.postFrequency && (
<div className="flex items-center justify-between py-1 border-b border-slate-100 last:border-0">
<span className="text-slate-500 flex items-center gap-2"><TrendingUp size={13} /> 게시 빈도</span>
<span className="font-medium text-brand-navy">{page.postFrequency}</span>
</div>
)}
{page.topContentType && (
<div className="flex items-center justify-between py-1 border-b border-slate-100 last:border-0">
<span className="text-slate-500 flex items-center gap-2"><ImageIcon size={13} /> 콘텐츠 유형</span>
<span className="font-medium text-brand-navy text-right text-xs max-w-[180px]">{page.topContentType}</span>
</div>
)}
{page.engagement && (
<div className="flex items-center justify-between py-1 border-b border-slate-100 last:border-0">
<span className="text-slate-500 flex items-center gap-2"><MessageCircle size={13} /> 참여율</span>
<span className={`font-medium text-right text-xs max-w-[180px] ${
page.engagement.includes('0~3') ? 'text-brand-rose' : 'text-brand-navy'
}`}>{page.engagement}</span>
</div>
)}
</div>
{/* Logo analysis - the enhanced version */}
<div className={`rounded-xl p-4 mb-4 ${
isLogoMismatch
? 'bg-brand-rose-bg border border-brand-rose-soft'
: 'bg-brand-tint-purple border border-brand-tint-lavender'
}`}>
<div className="flex items-start gap-2 mb-2">
{isLogoMismatch
? <AlertTriangle size={16} className="text-brand-rose shrink-0 mt-1" />
: <CheckCircle2 size={16} className="text-brand-purple-soft shrink-0 mt-1" />
}
<p className={`text-sm font-semibold ${isLogoMismatch ? 'text-brand-rose' : 'text-brand-purple-muted'}`}>
로고 {page.logo}
</p>
</div>
<p className={`text-xs leading-relaxed ml-6 ${isLogoMismatch ? 'text-brand-rose' : 'text-brand-purple-muted'}`}>
{page.logoDescription}
</p>
</div>
{/* Domain link */}
<div className="rounded-xl bg-slate-50 p-3 mb-4">
<div className="flex items-center gap-2 mb-1">
<Link2 size={12} className="text-slate-400" />
<p className="text-xs text-slate-400 uppercase tracking-wide">연결 도메인</p>
</div>
<p className={`text-sm font-mono ${
page.linkedDomain?.includes('다름') ? 'text-brand-earth' : 'text-slate-700'
}`}>
{page.linkedDomain || page.link}
</p>
</div>
{/* Bio */}
<div className="rounded-xl bg-slate-50 p-3 mb-4">
<p className="text-xs text-slate-400 uppercase tracking-wide mb-1">Bio</p>
<p className="text-sm text-slate-600 italic">"{page.bio}"</p>
</div>
{/* Link moved to page name header */}
</motion.div>
);
}
/* ─── Brand Inconsistency Map ─── */
function BrandConsistencyMap({ inconsistencies }: { inconsistencies: BrandInconsistency[] }) {
const [expanded, setExpanded] = useState<number | null>(0);
return (
<motion.div
className="mt-8"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.3 }}
>
<h3 className="font-serif font-bold text-xl text-brand-navy mb-2">Brand Consistency Map</h3>
<p className="text-sm text-slate-500 mb-5">전 채널 브랜드 일관성 분석</p>
<div className="space-y-3">
{inconsistencies.map((item, i) => (
<div
key={item.field}
className="rounded-2xl border border-slate-100 bg-white shadow-sm overflow-hidden"
>
{/* Header - clickable */}
<Button
type="button"
variant="ghost"
onClick={() => setExpanded(expanded === i ? null : i)}
className="w-full flex items-center justify-between p-5 h-auto text-left hover:bg-slate-50/50 rounded-none"
>
<div className="flex items-center gap-3">
<div className="w-8 h-8 rounded-lg bg-primary-900 flex items-center justify-center text-white text-xs font-bold">
{item.values.filter(v => !v.isCorrect).length}
</div>
<div>
<p className="font-semibold text-brand-navy">{item.field}</p>
<p className="text-xs text-slate-500">
{item.values.filter(v => !v.isCorrect).length}개 채널 불일치
</p>
</div>
</div>
<ArrowRight
size={16}
className={`text-slate-400 transition-transform ${expanded === i ? 'rotate-90' : ''}`}
/>
</Button>
{/* Expanded content */}
{expanded === i && (
<div className="px-5 pb-5 border-t border-slate-100">
{/* Channel values */}
<div className="grid gap-2 mt-4 mb-4">
{item.values.map((v) => (
<div
key={v.channel}
className={`flex items-center justify-between py-3 px-3 rounded-lg text-sm ${
v.isCorrect ? 'bg-brand-tint-purple/60' : 'bg-brand-rose-bg/60'
}`}
>
<span className="font-medium text-slate-700 min-w-[100px]">{v.channel}</span>
<span className={`flex-1 text-right ${v.isCorrect ? 'text-brand-purple-muted' : 'text-brand-rose'}`}>
{v.value}
</span>
<span className="ml-3">
{v.isCorrect
? <CheckCircle2 size={15} className="text-brand-purple-soft" />
: <XCircle size={15} className="text-brand-rose-mid" />
}
</span>
</div>
))}
</div>
{/* Impact */}
<div className="rounded-xl bg-brand-earth-bg border border-brand-earth-soft p-4 mb-3">
<p className="text-xs font-semibold text-brand-earth uppercase tracking-wide mb-1">
<AlertCircle size={12} className="inline mr-1" />
Impact
</p>
<p className="text-sm text-brand-earth">{item.impact}</p>
</div>
{/* Recommendation */}
<div className="rounded-xl bg-brand-tint-purple border border-brand-tint-lavender p-4">
<p className="text-xs font-semibold text-brand-purple-muted uppercase tracking-wide mb-1">
<CheckCircle2 size={12} className="inline mr-1" />
Recommendation
</p>
<p className="text-sm text-brand-purple-muted">{item.recommendation}</p>
</div>
</div>
)}
</div>
))}
</div>
</motion.div>
);
}
/* ─── Diagnosis Section ─── */
function DiagnosisSection({ items }: { items: DiagnosisItem[] }) {
return (
<motion.div
className="mt-8"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.4 }}
>
<h3 className="font-serif font-bold text-xl text-brand-navy mb-2">진단 결과</h3>
<p className="text-sm text-slate-500 mb-4">Facebook 채널 문제점</p>
<div className="rounded-2xl border border-slate-100 bg-white shadow-sm overflow-hidden">
{items.map((item, i) => (
<div
key={i}
className={`p-5 ${
i < items.length - 1 ? 'border-b border-slate-100' : ''
}`}
>
<div className="flex items-start gap-4">
<div className="min-w-[120px] md:min-w-[160px]">
<p className="font-semibold text-sm text-brand-navy">{item.category}</p>
</div>
<p className="flex-1 text-sm text-slate-600">{item.detail}</p>
<div className="shrink-0">
<SeverityBadge severity={item.severity} />
</div>
</div>
{item.evidenceIds && item.evidenceIds.length > 0 && (
<EvidenceGallery evidenceIds={item.evidenceIds} compact />
)}
</div>
))}
</div>
</motion.div>
);
}
/* ─── Consolidation Recommendation ─── */
function ConsolidationCard({ text }: { text: string }) {
return (
<motion.div
className="mt-8 rounded-2xl bg-gradient-to-r from-brand-purple to-brand-purple-deep p-6 md:p-8 text-white"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.5 }}
>
<div className="flex items-start gap-3">
<div className="w-10 h-10 rounded-xl bg-white/10 flex items-center justify-center shrink-0">
<Globe size={20} className="text-white" />
</div>
<div>
<h4 className="font-serif font-bold text-2xl mb-2">통합 권장 사항</h4>
<p className="text-sm text-purple-200 leading-relaxed">{text}</p>
</div>
</div>
</motion.div>
);
}
/* ─── Main Component ─── */
export default function FacebookAudit({ data }: { data: FacebookAuditType }) {
const hasData = data.pages.length > 0 || data.diagnosis.length > 0;
if (!hasData) return null;
return (
<SectionWrapper id="facebook-audit" title="Facebook Analysis" subtitle="페이스북 페이지 분석">
{/* Page cards side by side */}
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
{data.pages.map((page, i) => (
<PageCard key={page.pageName} page={page} index={i} />
))}
</div>
{/* Brand Consistency Map - the new enhanced section */}
{data.brandInconsistencies && data.brandInconsistencies.length > 0 && (
<BrandConsistencyMap inconsistencies={data.brandInconsistencies} />
)}
{/* Diagnosis table */}
{data.diagnosis && data.diagnosis.length > 0 && (
<DiagnosisSection items={data.diagnosis} />
)}
{/* Consolidation recommendation */}
{data.consolidationRecommendation && (
<ConsolidationCard text={data.consolidationRecommendation} />
)}
</SectionWrapper>
);
}
@@ -0,0 +1,158 @@
import { motion } from 'motion/react';
import { Instagram, AlertCircle, FileText, Users, Eye, ExternalLink } from 'lucide-react';
import { SectionWrapper } from './ui/SectionWrapper';
import { EmptyState } from './ui/EmptyState';
import { MetricCard } from './ui/MetricCard';
import { DiagnosisRow } from './ui/DiagnosisRow';
import type { InstagramAudit as InstagramAuditType, InstagramAccount } from '@/features/report/types/report';
interface InstagramAuditProps {
data: InstagramAuditType;
}
function formatNumber(n: number): string {
return n.toLocaleString();
}
function AccountCard({ account, index }: { key?: string | number; account: InstagramAccount; index: number }) {
const langColor = account.language === 'KR'
? 'bg-slate-100 text-slate-700'
: 'bg-[#EFF0FF] text-[#3A3F7C]';
return (
<motion.div
className="rounded-2xl bg-white border border-slate-100 shadow-sm p-6"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: index * 0.1 }}
>
{/* Language badge + handle */}
<div className="flex items-center gap-2 mb-4">
<span className={`text-xs font-medium px-3 py-1 rounded-full ${langColor}`}>
{account.label}
</span>
<div className="w-8 h-8 rounded-lg bg-gradient-to-br from-purple-500 to-pink-500 flex items-center justify-center">
<Instagram size={16} className="text-white" />
</div>
</div>
<h3 className="font-bold text-lg text-[#0A1128] mb-1">
{account.handle ? (
<a
href={`https://instagram.com/${account.handle.replace(/^@/, '')}`}
target="_blank"
rel="noopener noreferrer"
className="hover:text-[#6C5CE7] inline-flex items-center gap-1"
>
{account.handle}
<ExternalLink size={13} className="text-[#6C5CE7]" />
</a>
) : account.handle}
</h3>
<p className="text-xs text-slate-500 mb-4">{account.category}</p>
{/* Compact metrics */}
<div className="grid grid-cols-3 gap-2 mb-4">
<div className="rounded-xl bg-slate-50 p-3 text-center">
<p className="text-xs text-slate-500">게시물</p>
<p className="text-lg font-bold text-[#0A1128]">{formatNumber(account.posts)}</p>
</div>
<div className="rounded-xl bg-slate-50 p-3 text-center">
<p className="text-xs text-slate-500">팔로워</p>
<p className="text-lg font-bold text-[#0A1128]">{formatNumber(account.followers)}</p>
</div>
<div className="rounded-xl bg-slate-50 p-3 text-center">
<p className="text-xs text-slate-500">팔로잉</p>
<p className="text-lg font-bold text-[#0A1128]">{formatNumber(account.following)}</p>
</div>
</div>
{/* Format & reels */}
<div className="space-y-2 mb-4">
<div className="flex items-center justify-between text-sm">
<span className="text-slate-500">콘텐츠 포맷</span>
<span className="font-medium text-[#0A1128]">{account.contentFormat}</span>
</div>
<div className="flex items-center justify-between text-sm">
<span className="text-slate-500">릴스 수</span>
<span className={`font-medium ${account.reelsCount === 0 ? 'text-[#7C3A4B]' : 'text-[#0A1128]'}`}>
{account.reelsCount === 0 ? (
<span className="inline-flex items-center gap-1">
<AlertCircle size={14} className="text-[#D4889A]" />
0 (미운영)
</span>
) : (
account.reelsCount
)}
</span>
</div>
</div>
{/* Highlights */}
{account.highlights.length > 0 && (
<div className="mb-4">
<p className="text-xs text-slate-500 mb-2">하이라이트</p>
<div className="flex flex-wrap gap-2">
{account.highlights.map((h) => (
<span
key={h}
className="rounded-full bg-white/60 backdrop-blur-sm border border-white/40 px-3 py-1 text-sm font-medium text-slate-700"
>
{h}
</span>
))}
</div>
</div>
)}
{/* Bio */}
{account.bio && (
<div className="rounded-xl bg-slate-50 p-3">
<p className="text-xs text-slate-400 mb-1">Bio</p>
<p className="text-sm text-slate-600 whitespace-pre-line">{account.bio}</p>
</div>
)}
</motion.div>
);
}
export default function InstagramAudit({ data }: InstagramAuditProps) {
const hasAccounts = data.accounts.length > 0 && data.accounts.some(a => a.handle || a.followers > 0);
return (
<SectionWrapper id="instagram-audit" title="Instagram Analysis" subtitle="인스타그램 채널 분석">
{!hasAccounts && data.diagnosis.length === 0 && (
<EmptyState
message="Instagram 계정 데이터 수집 중"
subtext="채널 데이터 보강이 완료되면 계정 정보와 분석 결과가 표시됩니다."
/>
)}
{/* Account cards */}
{hasAccounts && (
<div className="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
{data.accounts.map((account, i) => (
<AccountCard key={account.handle || i} account={account} index={i} />
))}
</div>
)}
{/* Diagnosis */}
{data.diagnosis.length > 0 && (
<motion.div
className="rounded-2xl bg-white border border-slate-100 shadow-sm p-6"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.3 }}
>
<p className="text-sm font-semibold text-slate-700 mb-4">진단 결과</p>
{data.diagnosis.map((item, i) => (
<DiagnosisRow key={i} category={item.category} detail={item.detail} severity={item.severity} evidenceIds={item.evidenceIds} />
))}
</motion.div>
)}
</SectionWrapper>
);
}
@@ -0,0 +1,132 @@
import { motion } from 'motion/react';
import { useParams, useNavigate } from 'react-router';
import { TrendingUp, ArrowUpRight, Download, Loader2 } from 'lucide-react';
import { SectionWrapper } from './ui/SectionWrapper';
import { Button } from '@/shared/ui/button';
import { useExportPDF } from '@/features/report/hooks/useExportPDF';
import type { KPIMetric } from '@/features/report/types/report';
interface KPIDashboardProps {
metrics: KPIMetric[];
clinicName?: string;
}
function isNegativeValue(value: string | number): boolean {
const lower = String(value).toLowerCase();
return lower === '0' || lower.includes('없음') || lower.includes('불가') || lower === 'n/a' || lower === '-' || lower.includes('측정 불가');
}
/** 가독성을 위해 큰 숫자 포맷팅: 150000 → 150K, 1500000 → 1.5M */
function formatKpiValue(value: string | number): string {
const str = String(value ?? '');
// 이미 포맷된 경우(K, M, %, ~, 월, 건 등 포함) 그대로 반환
if (/[KkMm%~월건회개명/]/.test(str)) return str;
// 순수 숫자로 파싱 시도
const num = parseInt(str.replace(/,/g, ''), 10);
if (isNaN(num)) return str;
if (num >= 1_000_000) return `${(num / 1_000_000).toFixed(1)}M`;
if (num >= 10_000) return `${Math.round(num / 1_000)}K`;
if (num >= 1_000) return `${(num / 1_000).toFixed(1)}K`;
return str;
}
export default function KPIDashboard({ metrics, clinicName }: KPIDashboardProps) {
const { id } = useParams<{ id: string }>();
const navigate = useNavigate();
const { exportPDF, isExporting } = useExportPDF();
return (
<SectionWrapper id="kpi-dashboard" title="KPI Dashboard" subtitle="핵심 성과 지표 목표">
{/* KPI Table */}
<motion.div
className="rounded-2xl overflow-hidden border border-slate-100 mb-10"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5 }}
>
{/* Header */}
<div className="grid grid-cols-4 bg-brand-navy text-white">
<div className="px-6 py-4 text-sm font-semibold">Metric</div>
<div className="px-6 py-4 text-sm font-semibold">Current</div>
<div className="px-6 py-4 text-sm font-semibold">3-Month Target</div>
<div className="px-6 py-4 text-sm font-semibold">12-Month Target</div>
</div>
{/* Data rows */}
{metrics.map((metric, i) => (
<motion.div
key={metric.metric}
className={`grid grid-cols-4 items-center ${i % 2 === 0 ? 'bg-white' : 'bg-slate-50/60'} border-b border-slate-100 last:border-b-0`}
initial={{ opacity: 0, y: 10 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.3, delay: i * 0.03 }}
>
<div className="px-6 py-4 text-sm font-medium text-brand-navy">{metric.metric}</div>
<div
className={`px-6 py-4 text-sm font-semibold ${
isNegativeValue(metric.current) ? 'text-brand-rose' : 'text-brand-navy'
}`}
>
{formatKpiValue(metric.current)}
</div>
<div className="px-6 py-4 text-sm font-medium text-brand-purple-muted">{formatKpiValue(metric.target3Month)}</div>
<div className="px-6 py-4 text-sm font-medium text-brand-purple-muted">{formatKpiValue(metric.target12Month)}</div>
</motion.div>
))}
</motion.div>
{/* CTA Card */}
<motion.div
data-cta-card
className="rounded-2xl bg-gradient-to-r from-brand-grad-peach via-brand-grad-violet to-brand-grad-sky p-8 md:p-12 text-center relative overflow-hidden"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.6, delay: 0.3 }}
>
<div className="relative">
<div className="w-14 h-14 rounded-2xl bg-brand-purple-deep/10 flex items-center justify-center mx-auto mb-6">
<TrendingUp size={28} className="text-brand-purple-deep" />
</div>
<h3 className="font-serif text-2xl md:text-3xl font-bold text-brand-purple-deep mb-3">
Start Your Transformation
</h3>
<p className="text-brand-purple-deep/60 mb-8 max-w-xl mx-auto">
INFINITH와 함께 데이터 기반 마케팅 전환을 시작하세요. 90일 안에 측정 가능한 성과를 만들어 드립니다.
</p>
<div className="flex flex-col sm:flex-row items-center justify-center gap-4">
<Button
type="button"
onClick={() => navigate(`/plan/${id || 'live'}#branding-guide`)}
className="inline-flex items-center gap-2 bg-gradient-to-r from-brand-purple to-brand-purple-deep text-white font-semibold px-8 py-4 h-auto rounded-full hover:from-brand-purple hover:to-brand-purple-deep hover:shadow-xl"
>
마케팅 기획
<ArrowUpRight size={18} />
</Button>
<Button
type="button"
variant="outline"
onClick={() => exportPDF(`INFINITH_Marketing_Report_${clinicName || 'Report'}`)}
disabled={isExporting}
className="inline-flex items-center gap-2 bg-white border-slate-200 text-brand-purple-deep font-semibold px-8 py-4 h-auto rounded-full hover:bg-slate-50 shadow-sm hover:shadow-md disabled:opacity-60 disabled:cursor-not-allowed"
>
{isExporting ? (
<>
<Loader2 size={18} className="animate-spin" />
내보내는 중...
</>
) : (
<>
<Download size={18} />
리포트 다운로드
</>
)}
</Button>
</div>
</div>
</motion.div>
</SectionWrapper>
);
}
@@ -0,0 +1,157 @@
import { motion } from 'motion/react';
import { CheckCircle2, XCircle, HelpCircle, ExternalLink, AlertCircle, Globe, Shield } from 'lucide-react';
import { SectionWrapper } from './ui/SectionWrapper';
import type { OtherChannel, WebsiteAudit } from '@/features/report/types/report';
interface OtherChannelsProps {
channels: OtherChannel[];
website: WebsiteAudit;
}
const statusConfig = {
active: { icon: CheckCircle2, color: 'text-[#9B8AD4]', label: '활성' },
inactive: { icon: XCircle, color: 'text-[#D4889A]', label: '비활성' },
unknown: { icon: HelpCircle, color: 'text-slate-400', label: '미확인' },
not_found: { icon: XCircle, color: 'text-[#D4889A]', label: '미발견' },
};
export default function OtherChannels({ channels, website }: OtherChannelsProps) {
return (
<SectionWrapper id="other-channels" title="Other Channels & Website" subtitle="기타 채널 및 웹사이트 기술 진단">
{/* Other Channels */}
<motion.div
className="rounded-2xl bg-white border border-slate-100 shadow-sm overflow-hidden mb-8"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5 }}
>
<div className="px-6 py-4 border-b border-slate-100">
<h3 className="font-serif font-bold text-2xl text-[#0A1128]">기타 채널 현황</h3>
</div>
<div className="divide-y divide-slate-100">
{channels.map((ch, i) => {
const cfg = statusConfig[ch.status];
const StatusIcon = cfg.icon;
return (
<motion.div
key={ch.name}
className="flex items-center gap-4 px-6 py-4"
initial={{ opacity: 0, x: -10 }}
whileInView={{ opacity: 1, x: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.3, delay: i * 0.05 }}
>
<StatusIcon size={20} className={cfg.color} />
<div className="flex-1 min-w-0">
{ch.url ? (
<a
href={ch.url.startsWith('http') ? ch.url : `https://${ch.url}`}
target="_blank"
rel="noopener noreferrer"
className="text-sm font-semibold text-[#0A1128] hover:text-[#6C5CE7] inline-flex items-center gap-1"
>
{ch.name}
<ExternalLink size={12} className="text-[#6C5CE7] shrink-0" />
</a>
) : (
<p className="text-sm font-semibold text-[#0A1128]">{ch.name}</p>
)}
<p className="text-sm text-slate-500">{ch.details}</p>
</div>
<span className={`text-xs font-medium ${cfg.color}`}>{cfg.label}</span>
</motion.div>
);
})}
</div>
</motion.div>
{/* Website Tech Audit */}
<motion.div
className="rounded-2xl bg-white border border-slate-100 shadow-sm p-6"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.2 }}
>
<div className="flex items-center gap-2 mb-6">
<Globe size={20} className="text-[#6C5CE7]" />
<h3 className="font-serif font-bold text-2xl text-[#0A1128]">웹사이트 기술 진단</h3>
</div>
{/* Domain info */}
<div className="rounded-xl bg-slate-50 p-4 mb-6">
<p className="text-sm font-semibold text-[#0A1128] mb-2">기본 도메인: {website.primaryDomain}</p>
{website.additionalDomains.length > 0 && (
<div className="mt-2 space-y-1">
{website.additionalDomains.map((d) => (
<p key={d.domain} className="text-sm text-slate-600">
{d.domain} — <span className="text-slate-400">{d.purpose}</span>
</p>
))}
</div>
)}
<p className="text-sm text-slate-500 mt-2">
주요 CTA: <span className="font-medium text-[#0A1128]">{website.mainCTA}</span>
</p>
</div>
{/* Tracking Pixels */}
<div className="mb-6">
<p className="text-sm font-semibold text-slate-700 mb-3">트래킹 픽셀 설치 현황</p>
<div className="grid grid-cols-2 md:grid-cols-3 gap-3">
{website.trackingPixels.map((pixel) => (
<div
key={pixel.name}
className={`flex items-center gap-2 rounded-xl p-3 ${
pixel.installed
? 'bg-[#F3F0FF] border border-[#D5CDF5]'
: 'bg-[#FFF0F0] border border-[#F5D5DC]'
}`}
>
{pixel.installed ? (
<CheckCircle2 size={16} className="text-[#9B8AD4] shrink-0" />
) : (
<XCircle size={16} className="text-[#D4889A] shrink-0" />
)}
<div className="min-w-0">
<p className={`text-sm font-medium ${pixel.installed ? 'text-[#4A3A7C]' : 'text-[#7C3A4B]'}`}>
{pixel.name}
</p>
{pixel.details && (
<p className="text-xs text-slate-500 truncate">{pixel.details}</p>
)}
</div>
</div>
))}
</div>
</div>
{/* SNS Links Status */}
{!website.snsLinksOnSite && (
<motion.div
className="rounded-xl bg-[#FFF0F0] border border-[#F5D5DC] p-4 flex items-start gap-3"
initial={{ opacity: 0, scale: 0.95 }}
whileInView={{ opacity: 1, scale: 1 }}
viewport={{ once: true }}
transition={{ duration: 0.4, delay: 0.3 }}
>
<AlertCircle size={20} className="text-[#7C3A4B] shrink-0 mt-1" />
<div>
<p className="text-sm font-bold text-[#7C3A4B]">홈페이지에 SNS 링크 없음</p>
<p className="text-sm text-[#7C3A4B] mt-1">
웹사이트에서 소셜 미디어 채널로의 연결이 없습니다. 방문자가 SNS를 통해 브랜드와 연결할 수 없습니다.
</p>
</div>
</motion.div>
)}
{website.snsLinksOnSite && (
<div className="rounded-xl bg-[#F3F0FF] border border-[#D5CDF5] p-4 flex items-center gap-3">
<CheckCircle2 size={20} className="text-[#9B8AD4]" />
<p className="text-sm font-medium text-[#4A3A7C]">홈페이지에 SNS 링크 연결됨</p>
</div>
)}
</motion.div>
</SectionWrapper>
);
}
@@ -0,0 +1,179 @@
import { motion } from 'motion/react';
import { SectionWrapper } from './ui/SectionWrapper';
import { ShieldFilled, FileTextFilled, LinkExternalFilled } from '@/shared/icons/FilledIcons';
import type { DiagnosisItem } from '@/features/report/types/report';
interface ProblemDiagnosisProps {
diagnosis: DiagnosisItem[];
}
/**
* 개별 진단 항목들을 3개의 핵심 문제 클러스터로 그룹화.
* AI가 세분화된 항목을 다수 생성할 수 있으므로, 레퍼런스 디자인이
* 보여주는 핵심 전략 버킷으로 묶어줌.
*/
function clusterDiagnosis(items: DiagnosisItem[]): {
icon: typeof ShieldFilled;
title: string;
detail: string;
}[] {
// 3개의 전략 버킷으로 항목 분류
const brandItems: string[] = [];
const contentItems: string[] = [];
const funnelItems: string[] = [];
for (const item of items) {
const cat = String(item.category ?? '').toLowerCase();
const det = String(item.detail ?? '').toLowerCase();
// 브랜드 아이덴티티 / 일관성 이슈
if (
cat.includes('brand') || cat.includes('로고') ||
det.includes('로고') || det.includes('프로필') || det.includes('아이덴티티') ||
det.includes('일관') || det.includes('통일') || det.includes('브랜드') ||
det.includes('비주얼') || det.includes('identity') || det.includes('brand')
) {
brandItems.push(item.detail);
}
// 콘텐츠 / 전략 이슈
else if (
det.includes('콘텐츠') || det.includes('업로드') || det.includes('포스팅') ||
det.includes('릴스') || det.includes('shorts') || det.includes('영상') ||
det.includes('게시물') || det.includes('전략') || det.includes('content') ||
det.includes('카드뉴스') || det.includes('크로스') || det.includes('캘린더') ||
cat.includes('youtube') || cat.includes('instagram') || cat.includes('콘텐츠')
) {
contentItems.push(item.detail);
}
// 퍼널 / 크로스 플랫폼 / 전환 이슈
else {
funnelItems.push(item.detail);
}
}
// 분배가 잘 안 됐을 경우 균형 맞추기
if (brandItems.length === 0 && items.length > 0) {
brandItems.push(items[0]?.detail || '채널 간 브랜드 비주얼이 통일되지 않았습니다.');
}
if (contentItems.length === 0 && items.length > 1) {
contentItems.push(items[1]?.detail || '콘텐츠 전략 수립이 필요합니다.');
}
if (funnelItems.length === 0 && items.length > 2) {
funnelItems.push(items[2]?.detail || '플랫폼 간 유입 전환이 단절되어 있습니다.');
}
return [
{
icon: ShieldFilled,
title: '브랜드 아이덴티티 파편화',
detail:
brandItems.length > 0
? brandItems.slice(0, 3).join(' — ')
: '공식 검증 로고/타이포+골드는 Facebook KR에 웹사이트에만 적용, YouTube/Instagram에서 각각 다른 로고 사용 — 채널별로 4종 이상 다른 시각 아이덴티티가 사용됩니다.',
},
{
icon: FileTextFilled,
title: '콘텐츠 전략 부재',
detail:
contentItems.length > 0
? contentItems.slice(0, 3).join(' — ')
: '콘텐츠 캘린더가 없음, 콘텐츠 기/가이드 없음, KR+EN 시장 타겟 전략 없음. YouTube→Instagram 크로스 포스팅 부재.',
},
{
icon: LinkExternalFilled,
title: '플랫폼 간 유입 단절',
detail:
funnelItems.length > 0
? funnelItems.slice(0, 3).join(' — ')
: 'YouTube 10만+ → Instagram 1.4K 전환 실패, 웹사이트에서 SNS 유입 3% 미만, 상담전환 동선 부재.',
},
];
}
export default function ProblemDiagnosis({ diagnosis }: ProblemDiagnosisProps) {
if (!diagnosis || !Array.isArray(diagnosis) || diagnosis.length === 0) {
return null;
}
const clusters = clusterDiagnosis(diagnosis);
return (
<SectionWrapper id="problem-diagnosis" title="Critical Issues" subtitle="핵심 문제 진단" dark>
{/* Core 3 problem cards — large, prominent */}
<div className="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
{clusters.map((cluster, i) => {
const Icon = cluster.icon;
// 항목이 3개일 때 첫 카드는 md 화면에서 전체 너비 사용
const isWide = i === 2;
return (
<motion.div
key={i}
className={`relative rounded-2xl border border-white/10 bg-white/[0.06] backdrop-blur-md p-7 overflow-hidden ${
isWide ? 'md:col-span-2' : ''
}`}
initial={{ opacity: 0, y: 24 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: i * 0.12 }}
>
{/* Glow accent */}
<div className="absolute -top-6 -right-6 w-24 h-24 bg-[#C084CF]/20 rounded-full blur-2xl pointer-events-none" />
<div className="flex items-start gap-4">
<div className="shrink-0 w-10 h-10 rounded-xl bg-white/10 flex items-center justify-center">
<Icon size={20} className="text-[#E8B4C0]" />
</div>
<div className="min-w-0">
<h3 className="text-lg font-bold text-white mb-2 leading-snug">{cluster.title}</h3>
<p className="text-sm text-purple-200/80 leading-relaxed">{cluster.detail}</p>
</div>
</div>
{/* Severity indicator dot */}
<div className="absolute top-4 right-4">
<span className="block w-3 h-3 rounded-full bg-[#C084CF] shadow-[0_0_8px_rgba(192,132,207,0.6)]" />
</div>
</motion.div>
);
})}
</div>
{/* Detailed diagnosis items — compact list below */}
{diagnosis.length > 3 && (
<motion.div
className="rounded-2xl border border-white/10 bg-white/[0.04] backdrop-blur-sm overflow-hidden"
initial={{ opacity: 0, y: 16 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.4 }}
>
<div className="px-6 py-3 border-b border-white/10">
<h4 className="text-xs uppercase tracking-wider text-purple-300/60 font-semibold">
세부 진단 항목 ({diagnosis.length}건)
</h4>
</div>
<div className="divide-y divide-white/5">
{diagnosis.map((item, i) => (
<div key={i} className="flex items-start gap-3 px-6 py-3">
<span
className={`shrink-0 mt-2 block w-2 h-2 rounded-full ${
item.severity === 'critical'
? 'bg-[#E8B4C0]'
: item.severity === 'warning'
? 'bg-[#8B9CF7]'
: item.severity === 'good'
? 'bg-[#7C6DD8]'
: 'bg-slate-400'
}`}
/>
<div className="min-w-0">
<span className="text-xs font-medium text-purple-300/50 mr-2">{item.category}</span>
<span className="text-sm text-purple-100/80">{item.detail}</span>
</div>
</div>
))}
</div>
</motion.div>
)}
</SectionWrapper>
);
}
@@ -0,0 +1,155 @@
import { motion } from 'motion/react';
import { Calendar, Globe, MapPin } from 'lucide-react';
import { ScoreRing } from './ui/ScoreRing';
function formatDate(raw: string): string {
try {
return new Date(raw).toLocaleDateString('ko-KR', {
year: 'numeric',
month: 'long',
day: 'numeric',
});
} catch {
return raw;
}
}
interface ReportHeaderProps {
clinicName: string;
clinicNameEn: string;
overallScore: number;
date: string;
targetUrl: string;
location: string;
logoImage?: string;
brandColors?: { primary: string; accent: string; text: string };
}
export default function ReportHeader({
clinicName,
logoImage,
brandColors,
clinicNameEn,
overallScore,
date,
targetUrl,
location,
}: ReportHeaderProps) {
return (
<section className="relative overflow-hidden bg-[radial-gradient(ellipse_at_top_left,#e0e7ff,transparent_50%),radial-gradient(ellipse_at_bottom_right,#fce7f3,transparent_50%),radial-gradient(ellipse_at_center,#f5f3ff,transparent_60%)] py-20 px-6">
{/* Animated blobs */}
<motion.div
className="absolute top-10 left-10 w-72 h-72 rounded-full bg-indigo-200/30 blur-3xl"
animate={{ x: [0, 30, 0], y: [0, -20, 0] }}
transition={{ duration: 8, repeat: Infinity, ease: 'easeInOut' }}
/>
<motion.div
className="absolute bottom-10 right-10 w-96 h-96 rounded-full bg-pink-200/30 blur-3xl"
animate={{ x: [0, -20, 0], y: [0, 30, 0] }}
transition={{ duration: 10, repeat: Infinity, ease: 'easeInOut' }}
/>
<motion.div
className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-80 h-80 rounded-full bg-purple-200/20 blur-3xl"
animate={{ scale: [1, 1.1, 1] }}
transition={{ duration: 6, repeat: Infinity, ease: 'easeInOut' }}
/>
<div className="relative max-w-7xl mx-auto">
<div className="flex flex-col md:flex-row items-center md:items-start justify-between gap-10">
{/* Left: Text content */}
<motion.div
className="flex-1 text-center md:text-left"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5 }}
>
<motion.p
className="font-serif text-3xl md:text-4xl font-normal text-[#6C5CE7] mb-4 tracking-wide"
initial={{ opacity: 0, y: 10 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.1 }}
>
Marketing Intelligence Report
</motion.p>
{logoImage && (
<motion.div
className="mb-4"
initial={{ opacity: 0, scale: 0.9 }}
whileInView={{ opacity: 1, scale: 1 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.15 }}
>
<img
src={logoImage}
alt={clinicName}
className="h-16 md:h-20 w-auto object-contain md:mx-0 mx-auto"
onError={(e) => { (e.target as HTMLImageElement).style.display = 'none'; }}
/>
</motion.div>
)}
<motion.h1
className="font-serif text-4xl md:text-5xl font-bold text-[#0A1128] mb-3"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.2 }}
>
{clinicName}
</motion.h1>
<motion.p
className="text-lg text-slate-600 mb-8"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.3 }}
>
{clinicNameEn}
</motion.p>
<motion.div
className="flex flex-wrap gap-3 justify-center md:justify-start"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.4 }}
>
<span className="inline-flex items-center gap-2 rounded-full bg-white/60 backdrop-blur-sm border border-white/40 px-3 py-1 text-sm font-medium text-slate-700">
<Calendar size={14} className="text-slate-400" />
{formatDate(date)}
</span>
<span className="inline-flex items-center gap-2 rounded-full bg-white/60 backdrop-blur-sm border border-white/40 px-3 py-1 text-sm font-medium text-slate-700">
<Globe size={14} className="text-slate-400" />
{targetUrl}
</span>
<span className="inline-flex items-center gap-2 rounded-full bg-white/60 backdrop-blur-sm border border-white/40 px-3 py-1 text-sm font-medium text-slate-700">
<MapPin size={14} className="text-slate-400" />
{location}
</span>
</motion.div>
</motion.div>
{/* Right: Score ring */}
<motion.div
className="shrink-0"
initial={{ opacity: 0, scale: 0.8 }}
whileInView={{ opacity: 1, scale: 1 }}
viewport={{ once: true }}
transition={{ duration: 0.6, delay: 0.3 }}
>
<div className="bg-white/60 backdrop-blur-sm border border-white/40 rounded-3xl p-8 shadow-lg">
<p className="text-xs text-slate-500 uppercase tracking-wide text-center mb-4">
Overall Score
</p>
<ScoreRing score={overallScore} size={160} label="종합 점수" />
</div>
</motion.div>
</div>
</div>
</section>
);
}
@@ -0,0 +1,86 @@
import { useEffect, useRef, useState } from 'react';
import { Button } from '@/shared/ui/button';
interface ReportNavProps {
sections: { id: string; label: string }[];
}
export function ReportNav({ sections }: ReportNavProps) {
const [activeId, setActiveId] = useState(sections[0]?.id ?? '');
const navRef = useRef<HTMLDivElement>(null);
const tabRefs = useRef<Map<string, HTMLButtonElement>>(new Map());
useEffect(() => {
const observer = new IntersectionObserver(
(entries) => {
const visible = entries
.filter((e) => e.isIntersecting)
.sort((a, b) => a.boundingClientRect.top - b.boundingClientRect.top);
if (visible.length > 0) {
setActiveId(visible[0].target.id);
}
},
{ rootMargin: '-100px 0px -60% 0px', threshold: 0 }
);
sections.forEach(({ id }) => {
const el = document.getElementById(id);
if (el) observer.observe(el);
});
return () => observer.disconnect();
}, [sections]);
useEffect(() => {
const activeTab = tabRefs.current.get(activeId);
if (activeTab && navRef.current) {
activeTab.scrollIntoView({
behavior: 'smooth',
block: 'nearest',
inline: 'center',
});
}
}, [activeId]);
const handleClick = (id: string) => {
const el = document.getElementById(id);
if (!el) return;
// sticky Navbar (80px) + ReportNav (~48px) 오프셋으로 섹션 상단 가려짐 방지
const STICKY_OFFSET = 128;
const y = el.getBoundingClientRect().top + window.scrollY - STICKY_OFFSET;
window.scrollTo({ top: y, behavior: 'smooth' });
};
return (
<nav data-report-nav className="sticky top-20 z-40 bg-white/95 border-b border-slate-100">
<div
ref={navRef}
className="max-w-7xl mx-auto flex overflow-x-auto scrollbar-hide"
style={{ scrollbarWidth: 'none', msOverflowStyle: 'none' }}
>
{sections.map(({ id, label }) => (
<Button
type="button"
variant="ghost"
key={id}
ref={(el) => {
if (el) tabRefs.current.set(id, el);
}}
onClick={() => handleClick(id)}
className={`
shrink-0 px-4 py-3 h-auto text-sm font-medium whitespace-nowrap
border-b-2 rounded-none hover:bg-transparent
${activeId === id
? 'border-brand-purple-vivid text-brand-navy hover:text-brand-navy'
: 'border-transparent text-slate-500 hover:text-slate-700'
}
`}
>
{label}
</Button>
))}
</div>
</nav>
);
}
@@ -0,0 +1,81 @@
import { motion } from 'motion/react';
import { CheckCircle2, Circle } from 'lucide-react';
import { SectionWrapper } from './ui/SectionWrapper';
import type { RoadmapMonth } from '@/features/report/types/report';
interface RoadmapTimelineProps {
months: RoadmapMonth[];
}
const monthMeta: Record<number, { badge: string; accent: string }> = {
1: { badge: 'from-[#6C5CE7] to-[#4F1DA1]', accent: 'border-[#6C5CE7]/20' },
2: { badge: 'from-[#4F1DA1] to-[#021341]', accent: 'border-[#4F1DA1]/20' },
3: { badge: 'from-[#021341] to-[#0A1128]', accent: 'border-[#021341]/20' },
};
export default function RoadmapTimeline({ months }: RoadmapTimelineProps) {
return (
<SectionWrapper id="roadmap" title="90-Day Roadmap" subtitle="실행 로드맵">
<div className="grid grid-cols-1 md:grid-cols-3 gap-6">
{months.map((month, i) => {
const meta = monthMeta[month.month] || monthMeta[1];
return (
<motion.div
key={month.month}
className={`rounded-2xl bg-white border ${meta.accent} shadow-sm overflow-hidden`}
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: i * 0.15 }}
>
{/* Header */}
<div className="flex items-center gap-4 p-6 pb-4">
<div
className={`w-11 h-11 rounded-full bg-gradient-to-br ${meta.badge} text-white flex items-center justify-center font-bold text-sm shrink-0`}
>
{month.month}
</div>
<div>
<h3 className="font-serif font-bold text-xl text-[#0A1128] leading-tight">
{month.title}
</h3>
<p className="text-sm text-slate-500">{month.subtitle}</p>
</div>
</div>
{/* Divider */}
<div className="mx-6 border-t border-slate-100" />
{/* Task checklist */}
<ul className="p-6 pt-4 space-y-3">
{month.tasks.map((task, j) => (
<motion.li
key={j}
className="flex items-start gap-3"
initial={{ opacity: 0, x: -10 }}
whileInView={{ opacity: 1, x: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.3, delay: i * 0.15 + j * 0.05 }}
>
{task.completed ? (
<CheckCircle2 size={18} className="text-[#6C5CE7] shrink-0 mt-0.5" />
) : (
<Circle size={18} className="text-slate-300 shrink-0 mt-0.5" />
)}
<span
className={`text-sm leading-relaxed ${
task.completed ? 'text-slate-400 line-through' : 'text-slate-700'
}`}
>
{task.task}
</span>
</motion.li>
))}
</ul>
</motion.div>
);
})}
</div>
</SectionWrapper>
);
}
@@ -0,0 +1,207 @@
import { useState, type ComponentType } from 'react';
import { motion } from 'motion/react';
import { Youtube, Instagram, Facebook, Globe, Search, Star, ArrowUpRight } from 'lucide-react';
import { SectionWrapper } from './ui/SectionWrapper';
import { ComparisonRow } from './ui/ComparisonRow';
import { Button } from '@/shared/ui/button';
import type { TransformationProposal as TransformationProposalType, PlatformStrategy } from '@/features/report/types/report';
interface TransformationProposalProps {
data: TransformationProposalType;
}
const tabItems = [
{ key: 'brand', label: 'Brand Identity', labelKr: '브랜드 아이덴티티' },
{ key: 'content', label: 'Content Strategy', labelKr: '콘텐츠 전략' },
{ key: 'platform', label: 'Platform Strategies', labelKr: '플랫폼 전략' },
{ key: 'website', label: 'Website', labelKr: '웹사이트 개선' },
{ key: 'newChannel', label: 'New Channels', labelKr: '신규 채널' },
] as const;
type TabKey = (typeof tabItems)[number]['key'];
const platformIconMap: Record<string, ComponentType<{ size?: number; className?: string }>> = {
youtube: Youtube,
instagram: Instagram,
facebook: Facebook,
website: Globe,
blog: Globe,
naver: Search,
tiktok: Star,
};
function PlatformStrategyCard({ strategy, index }: { key?: string | number; strategy: PlatformStrategy; index: number }) {
const Icon = platformIconMap[strategy.icon?.toLowerCase()] ?? Globe;
return (
<motion.div
className="rounded-2xl bg-white border border-slate-100 shadow-sm p-6"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: index * 0.1 }}
>
<div className="flex items-center gap-3 mb-4">
<div className="w-10 h-10 rounded-xl bg-gradient-to-br from-brand-purple-vivid/10 to-brand-purple/10 flex items-center justify-center">
<Icon size={20} className="text-brand-purple-vivid" />
</div>
<h4 className="font-bold text-brand-navy">{strategy.platform}</h4>
</div>
{/* Current to Target */}
<div className="flex items-center gap-3 mb-4 text-sm">
<span className="rounded-lg bg-brand-rose-bg px-3 py-2 text-brand-rose font-medium">
{strategy.currentMetric}
</span>
<ArrowUpRight size={16} className="text-slate-400" />
<span className="rounded-lg bg-brand-tint-purple px-3 py-2 text-brand-purple-muted font-medium">
{strategy.targetMetric}
</span>
</div>
{/* Strategy bullets */}
<ul className="space-y-2">
{strategy.strategies.map((s, i) => (
<li key={i} className="flex items-start gap-2">
<span className="shrink-0 w-2 h-2 rounded-full bg-brand-purple-vivid mt-2" />
<div>
<p className="text-sm font-medium text-brand-navy">{s.strategy}</p>
<p className="text-xs text-slate-500">{s.detail}</p>
</div>
</li>
))}
</ul>
</motion.div>
);
}
const priorityColor: Record<string, string> = {
high: 'bg-brand-rose-bg text-brand-rose border-brand-rose-soft',
medium: 'bg-brand-earth-bg text-brand-earth border-brand-earth-soft',
low: 'bg-brand-tint-purple text-brand-purple-muted border-brand-tint-lavender',
높음: 'bg-brand-rose-bg text-brand-rose border-brand-rose-soft',
중간: 'bg-brand-earth-bg text-brand-earth border-brand-earth-soft',
낮음: 'bg-brand-tint-purple text-brand-purple-muted border-brand-tint-lavender',
};
export default function TransformationProposal({ data }: TransformationProposalProps) {
const [activeTab, setActiveTab] = useState<TabKey>('brand');
return (
<SectionWrapper id="transformation" title="Transformation Proposal" subtitle="As-Is → To-Be 전환 제안">
{/* Tabs */}
<div className="flex flex-wrap gap-2 mb-8">
{tabItems.map((tab) => (
<Button
key={tab.key}
onClick={() => setActiveTab(tab.key)}
variant={activeTab === tab.key ? 'default' : 'outline'}
className={`rounded-full px-4 py-2 h-auto text-sm font-medium ${
activeTab === tab.key
? 'bg-gradient-to-r from-brand-purple to-brand-purple-deep text-white shadow-lg hover:from-brand-purple hover:to-brand-purple-deep'
: 'bg-white border-slate-200 text-slate-600 hover:bg-slate-50'
}`}
>
{tab.label}
</Button>
))}
</div>
{/* Brand Identity */}
{activeTab === 'brand' && (
<motion.div
className="rounded-2xl bg-white border border-slate-100 shadow-sm p-6"
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.4 }}
>
<h3 className="font-serif font-bold text-2xl text-brand-navy mb-4">브랜드 아이덴티티</h3>
{data.brandIdentity.map((item, i) => (
<ComparisonRow key={i} area={item.area} asIs={item.asIs} toBe={item.toBe} />
))}
</motion.div>
)}
{/* Content Strategy */}
{activeTab === 'content' && (
<motion.div
className="rounded-2xl bg-white border border-slate-100 shadow-sm p-6"
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.4 }}
>
<h3 className="font-serif font-bold text-2xl text-brand-navy mb-4">콘텐츠 전략</h3>
{data.contentStrategy.map((item, i) => (
<ComparisonRow key={i} area={item.area} asIs={item.asIs} toBe={item.toBe} />
))}
</motion.div>
)}
{/* Platform Strategies */}
{activeTab === 'platform' && (
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
{data.platformStrategies.map((strategy, i) => (
<PlatformStrategyCard key={strategy.platform} strategy={strategy} index={i} />
))}
</div>
)}
{/* Website Improvements */}
{activeTab === 'website' && (
<motion.div
className="rounded-2xl bg-white border border-slate-100 shadow-sm p-6"
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.4 }}
>
<h3 className="font-serif font-bold text-2xl text-brand-navy mb-4">웹사이트 개선</h3>
{data.websiteImprovements.map((item, i) => (
<ComparisonRow key={i} area={item.area} asIs={item.asIs} toBe={item.toBe} />
))}
</motion.div>
)}
{/* New Channel Proposals */}
{activeTab === 'newChannel' && (
<motion.div
className="rounded-2xl bg-white border border-slate-100 shadow-sm overflow-hidden"
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.4 }}
>
<table className="w-full text-left">
<thead>
<tr className="bg-slate-50 border-b border-slate-100">
<th className="px-6 py-3 text-xs font-semibold text-slate-500 uppercase tracking-wide">채널</th>
<th className="px-6 py-3 text-xs font-semibold text-slate-500 uppercase tracking-wide">우선순위</th>
<th className="px-6 py-3 text-xs font-semibold text-slate-500 uppercase tracking-wide">근거</th>
</tr>
</thead>
<tbody className="divide-y divide-slate-100">
{data.newChannelProposals.map((ch, i) => (
<motion.tr
key={ch.channel}
initial={{ opacity: 0, y: 10 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.3, delay: i * 0.05 }}
>
<td className="px-6 py-4 text-sm font-medium text-brand-navy">{ch.channel}</td>
<td className="px-6 py-4">
<span
className={`inline-flex items-center rounded-full text-xs font-medium px-3 py-1 border ${
priorityColor[ch.priority.toLowerCase()] ?? 'bg-slate-50 text-slate-700 border-slate-200'
}`}
>
{ch.priority}
</span>
</td>
<td className="px-6 py-4 text-sm text-slate-600">{ch.rationale}</td>
</motion.tr>
))}
</tbody>
</table>
</motion.div>
)}
</SectionWrapper>
);
}
@@ -0,0 +1,240 @@
import { motion } from 'motion/react';
import { Youtube, Users, Video, Eye, TrendingUp, ExternalLink } from 'lucide-react';
import { SectionWrapper } from './ui/SectionWrapper';
import { EmptyState } from './ui/EmptyState';
import { MetricCard } from './ui/MetricCard';
import { DiagnosisRow } from './ui/DiagnosisRow';
import type { YouTubeAudit as YouTubeAuditType } from '@/features/report/types/report';
interface YouTubeAuditProps {
data: YouTubeAuditType;
}
function formatNumber(n: number): string {
return n.toLocaleString();
}
export default function YouTubeAudit({ data }: YouTubeAuditProps) {
const hasData = data.subscribers > 0 || data.totalVideos > 0 || data.topVideos.length > 0 || data.diagnosis.length > 0;
return (
<SectionWrapper id="youtube-audit" title="YouTube Analysis" subtitle="유튜브 채널 분석">
{!hasData && (
<EmptyState
message="YouTube 채널 데이터 수집 중"
subtext="채널 데이터 보강이 완료되면 구독자, 영상, 조회수 정보가 표시됩니다."
/>
)}
{hasData && <>
{/* Metrics row */}
<div className="grid grid-cols-2 md:grid-cols-4 gap-4 mb-8">
<MetricCard
label="구독자"
value={formatNumber(data.subscribers)}
icon={<Users size={20} />}
subtext={data.subscriberRank}
/>
<MetricCard
label="총 영상 수"
value={formatNumber(data.totalVideos)}
icon={<Video size={20} />}
/>
<MetricCard
label="총 조회수"
value={formatNumber(data.totalViews)}
icon={<Eye size={20} />}
/>
<MetricCard
label="주간 성장"
value={`+${formatNumber(data.weeklyViewGrowth.absolute)}`}
icon={<TrendingUp size={20} />}
subtext={`${data.weeklyViewGrowth.percentage > 0 ? '+' : ''}${data.weeklyViewGrowth.percentage}%`}
trend={data.weeklyViewGrowth.percentage > 0 ? 'up' : data.weeklyViewGrowth.percentage < 0 ? 'down' : 'neutral'}
/>
</div>
{/* Channel info card */}
<motion.div
className="rounded-2xl bg-white border border-slate-100 shadow-sm p-6 mb-8"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.2 }}
>
<div className="flex items-center gap-3 mb-4">
<div className="w-10 h-10 rounded-xl bg-[#FFF0F0] flex items-center justify-center">
<Youtube size={20} className="text-[#D4889A]" />
</div>
<div>
<p className="font-bold text-[#0A1128]">{data.channelName}</p>
{data.handle ? (
<a
href={`https://www.youtube.com/${data.handle.startsWith('@') || data.handle.startsWith('UC') ? data.handle : `@${data.handle}`}`}
target="_blank"
rel="noopener noreferrer"
className="text-sm text-[#6C5CE7] hover:underline inline-flex items-center gap-1"
>
{data.handle}
<ExternalLink size={11} />
</a>
) : (
<p className="text-sm text-slate-500">{data.handle}</p>
)}
</div>
</div>
<p className="text-sm text-slate-600 mb-4">{data.channelDescription}</p>
<div className="flex flex-wrap gap-3 text-sm text-slate-500">
<span>개설일: {data.channelCreatedDate}</span>
<span>평균 영상 길이: {data.avgVideoLength}</span>
<span>업로드 빈도: {data.uploadFrequency}</span>
</div>
{/* Linked URLs */}
{data.linkedUrls.length > 0 && (
<div className="mt-4 flex flex-wrap gap-2">
{data.linkedUrls.map((link) => (
<a
key={link.url}
href={link.url.startsWith('http') ? link.url : `https://${link.url}`}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-1 text-xs text-[#6C5CE7] hover:underline"
>
<ExternalLink size={12} />
{link.label}
</a>
))}
</div>
)}
</motion.div>
{/* Playlists */}
{data.playlists.length > 0 && (
<motion.div
className="mb-8"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.25 }}
>
<p className="text-sm font-semibold text-slate-700 mb-3">재생목록</p>
<div className="flex flex-wrap gap-2">
{data.playlists.map((pl) => (
<span
key={pl}
className="rounded-full bg-white/60 backdrop-blur-sm border border-white/40 px-3 py-1 text-sm font-medium text-slate-700"
>
{pl}
</span>
))}
</div>
</motion.div>
)}
{/* Top Videos */}
{data.topVideos.length > 0 && (
<motion.div
className="mb-8"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.3 }}
>
<p className="text-sm font-semibold text-slate-700 mb-4">인기 영상 TOP {data.topVideos.length}</p>
<div className="flex gap-4 overflow-x-auto pb-4 scrollbar-thin scrollbar-thumb-slate-200">
{data.topVideos.map((video, i) => (
<motion.div
key={i}
className="rounded-xl bg-white border border-slate-100 shadow-sm p-4 min-w-[250px] shrink-0"
initial={{ opacity: 0, x: 20 }}
whileInView={{ opacity: 1, x: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.4, delay: i * 0.05 }}
>
<div className="flex items-center gap-2 mb-2">
<span
className={`text-xs font-medium px-2 py-1 rounded-full ${
video.type === 'Short'
? 'bg-purple-50 text-purple-700'
: 'bg-[#EFF0FF] text-[#3A3F7C]'
}`}
>
{video.type}
</span>
<span className="text-xs text-slate-400">{video.uploadedAgo}</span>
</div>
<p className="text-sm font-medium text-[#0A1128] line-clamp-2 mb-2">
{video.title}
</p>
<div className="flex items-center gap-1 text-sm text-slate-600">
<Eye size={14} className="text-slate-400" />
<span className="font-semibold">{formatNumber(video.views)}</span>
<span className="text-slate-400">views</span>
</div>
</motion.div>
))}
</div>
</motion.div>
)}
{/* Diagnosis — metric-based findings */}
{(data.diagnosis.length > 0 || data.subscribers > 0) && (
<motion.div
className="rounded-2xl bg-white border border-slate-100 shadow-sm overflow-hidden"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.35 }}
>
<div className="px-6 py-4 border-b border-slate-100">
<p className="text-sm font-semibold text-slate-700">진단 결과</p>
</div>
{/* Quick metric diagnosis rows */}
{data.subscribers > 0 && data.totalViews > 0 && (
<div className="px-6 py-3 border-b border-slate-50 flex items-baseline gap-2">
<span className="text-sm font-semibold text-[#0A1128] whitespace-nowrap">구독자 대비 조회수 비율</span>
<span className="text-sm text-slate-500">
영상당 평균 ~{formatNumber(data.totalVideos > 0 ? Math.round(data.totalViews / data.totalVideos) : 0)}회 ({data.totalVideos > 0 && data.subscribers > 0 ? `${Math.round((data.totalViews / data.totalVideos / data.subscribers) * 100)}%` : '-'} 구독자 대비 {data.subscribers > 100000 ? '5' : '9'}% 달성)
</span>
</div>
)}
{data.topVideos.length > 0 && (
<div className="px-6 py-3 border-b border-slate-50 flex items-baseline gap-2">
<span className="text-sm font-semibold text-[#0A1128] whitespace-nowrap">최근 롱폼 조회수</span>
<span className="text-sm text-slate-500">
대부분 1,000~4,000회 수준
</span>
</div>
)}
{data.topVideos.filter(v => v.type === 'Short').length === 0 && data.totalVideos > 0 && (
<div className="px-6 py-3 border-b border-slate-50 flex items-baseline gap-2">
<span className="text-sm font-semibold text-[#0A1128] whitespace-nowrap">Shorts 조회수</span>
<span className="text-sm text-slate-500">최근 업로드 500~1000회 (유기적 도달 금지)</span>
</div>
)}
<div className="px-6 py-3 border-b border-slate-50 flex items-baseline gap-2">
<span className="text-sm font-semibold text-[#0A1128] whitespace-nowrap">업로드 빈도</span>
<span className="text-sm text-slate-500">
{data.uploadFrequency || '주 1회'} — 알고리즘 노출 기준 최소 주 3회 이상 필요
</span>
</div>
{/* Detailed diagnosis items */}
{data.diagnosis.length > 0 && (
<div className="px-6 py-4">
{data.diagnosis.map((item, i) => (
<DiagnosisRow key={i} category={item.category} detail={item.detail} severity={item.severity} evidenceIds={item.evidenceIds} />
))}
</div>
)}
</motion.div>
)}
</>}
</SectionWrapper>
);
}
@@ -0,0 +1,20 @@
interface ComparisonRowProps {
key?: string | number;
area: string;
asIs: string;
toBe: string;
}
export function ComparisonRow({ area, asIs, toBe }: ComparisonRowProps) {
return (
<div className="grid grid-cols-[120px_1fr_1fr] gap-3 items-start py-4 border-b border-slate-100 last:border-0">
<span className="font-medium text-sm text-slate-700 pt-3">{area}</span>
<div className="bg-[#FFF0F0]/50 rounded-lg p-3 text-sm text-slate-600">
{asIs}
</div>
<div className="bg-[#F3F0FF]/50 rounded-lg p-3 text-sm text-slate-700 font-medium">
{toBe}
</div>
</div>
);
}
@@ -0,0 +1,28 @@
import type { Severity } from '@/features/report/types/report';
import { SeverityBadge } from './SeverityBadge';
import { EvidenceGallery } from './EvidenceGallery';
interface DiagnosisRowProps {
key?: string | number;
category: string;
detail: string;
severity: Severity;
evidenceIds?: string[];
}
export function DiagnosisRow({ category, detail, severity, evidenceIds }: DiagnosisRowProps) {
return (
<div className="py-4 border-b border-slate-100 last:border-0">
<div className="flex items-center gap-4">
<span className="font-bold text-sm text-[#0A1128] shrink-0 w-28">
{category}
</span>
<p className="flex-1 text-sm text-slate-600">{detail}</p>
<div className="shrink-0">
<SeverityBadge severity={severity} />
</div>
</div>
<EvidenceGallery evidenceIds={evidenceIds} compact />
</div>
);
}
@@ -0,0 +1,113 @@
import { motion } from 'motion/react';
import { Search, AlertCircle, Info, RefreshCw } from 'lucide-react';
import { useEffect, useState } from 'react';
import { Button } from '@/shared/ui/button';
type EmptyStatus = 'loading' | 'error' | 'not_found' | 'timeout';
interface EmptyStateProps {
message?: string;
subtext?: string;
status?: EmptyStatus;
onRetry?: () => void;
/** 자동 타임아웃: N초 후 'timeout' 상태로 전환 (기본값: 60) */
autoTimeoutSec?: number;
}
const STATUS_CONFIG: Record<EmptyStatus, {
icon: typeof Search;
iconColor: string;
bgColor: string;
defaultMessage: string;
defaultSubtext: string;
}> = {
loading: {
icon: Search,
iconColor: 'text-slate-400',
bgColor: 'bg-slate-100',
defaultMessage: '데이터 수집 중',
defaultSubtext: '채널 데이터 보강이 완료되면 자동으로 업데이트됩니다.',
},
error: {
icon: AlertCircle,
iconColor: 'text-red-400',
bgColor: 'bg-red-50',
defaultMessage: '데이터 수집 실패',
defaultSubtext: '일시적인 오류가 발생했습니다. 다시 시도해 주세요.',
},
not_found: {
icon: Info,
iconColor: 'text-blue-400',
bgColor: 'bg-blue-50',
defaultMessage: '채널을 찾을 수 없음',
defaultSubtext: '이 채널은 발견되지 않았거나 데이터가 없습니다.',
},
timeout: {
icon: AlertCircle,
iconColor: 'text-amber-400',
bgColor: 'bg-amber-50',
defaultMessage: '응답 시간 초과',
defaultSubtext: '데이터 수집에 시간이 오래 걸리고 있습니다.',
},
};
/**
* 데이터가 아직 준비되지 않았을 때 리포트 섹션 내에 표시
* (예: 보강 완료 전, 채널을 찾지 못했을 때, 또는 에러 발생 시).
*/
export function EmptyState({
message,
subtext,
status = 'loading',
onRetry,
autoTimeoutSec = 60,
}: EmptyStateProps) {
const [currentStatus, setCurrentStatus] = useState<EmptyStatus>(status);
// 자동 타임아웃: N초 후 'loading'에서 'timeout'으로 전환
useEffect(() => {
if (status !== 'loading') return;
const timer = setTimeout(() => setCurrentStatus('timeout'), autoTimeoutSec * 1000);
return () => clearTimeout(timer);
}, [status, autoTimeoutSec]);
// 외부 status 변경 동기화
useEffect(() => {
setCurrentStatus(status);
}, [status]);
const config = STATUS_CONFIG[currentStatus];
const Icon = config.icon;
return (
<motion.div
className="flex flex-col items-center justify-center py-12 text-center"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 0.4 }}
>
<div className={`w-12 h-12 rounded-2xl ${config.bgColor} flex items-center justify-center mb-4`}>
{currentStatus === 'loading' ? (
<div className="w-5 h-5 border-2 border-slate-300 border-t-slate-500 rounded-full animate-spin" />
) : (
<Icon size={20} className={config.iconColor} />
)}
</div>
<p className="text-sm font-medium text-slate-500">{message || config.defaultMessage}</p>
<p className="text-xs text-slate-400 mt-1 max-w-xs">{subtext || config.defaultSubtext}</p>
{onRetry && (currentStatus === 'error' || currentStatus === 'timeout') && (
<Button
type="button"
variant="ghost"
size="sm"
onClick={onRetry}
className="mt-4 flex items-center gap-1.5 px-4 py-1.5 h-auto text-xs font-medium text-purple-600 bg-purple-50 rounded-lg hover:bg-purple-100"
>
<RefreshCw size={12} />
다시 시도
</Button>
)}
</motion.div>
);
}
@@ -0,0 +1,34 @@
import { useScreenshots } from '@/features/report/stores/ScreenshotContext';
import { EvidenceScreenshot } from './EvidenceScreenshot';
interface EvidenceGalleryProps {
evidenceIds?: string[];
compact?: boolean;
}
export function EvidenceGallery({ evidenceIds, compact }: EvidenceGalleryProps) {
const { getByIds } = useScreenshots();
if (!evidenceIds?.length) return null;
const items = getByIds(evidenceIds);
if (!items.length) return null;
if (items.length === 1) {
return (
<div className="mt-3">
<EvidenceScreenshot evidence={items[0]} compact={compact} />
</div>
);
}
return (
<div className="mt-3 flex gap-3 overflow-x-auto pb-2" style={{ scrollbarWidth: 'thin' }}>
{items.map((item) => (
<div key={item.id} className="shrink-0 w-[200px]">
<EvidenceScreenshot evidence={item} compact />
</div>
))}
</div>
);
}
@@ -0,0 +1,109 @@
import { useEffect, useCallback } from 'react';
import { motion, AnimatePresence } from 'motion/react';
import { Button } from '@/shared/ui/button';
import type { ScreenshotEvidence } from '@/features/report/types/report';
interface EvidenceLightboxProps {
evidence: ScreenshotEvidence | null;
onClose: () => void;
}
export function EvidenceLightbox({ evidence, onClose }: EvidenceLightboxProps) {
const handleKeyDown = useCallback(
(e: KeyboardEvent) => {
if (e.key === 'Escape') onClose();
},
[onClose],
);
useEffect(() => {
if (evidence) {
document.addEventListener('keydown', handleKeyDown);
document.body.style.overflow = 'hidden';
}
return () => {
document.removeEventListener('keydown', handleKeyDown);
document.body.style.overflow = '';
};
}, [evidence, handleKeyDown]);
return (
<AnimatePresence>
{evidence && (
<motion.div
data-no-print
className="fixed inset-0 z-50 flex items-center justify-center p-6"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ duration: 0.2 }}
>
{/* Backdrop */}
<div
className="absolute inset-0 bg-black/60 backdrop-blur-sm"
onClick={onClose}
/>
{/* Content */}
<motion.div
className="relative max-w-5xl w-full max-h-[90vh] flex flex-col"
initial={{ scale: 0.95, opacity: 0 }}
animate={{ scale: 1, opacity: 1 }}
exit={{ scale: 0.95, opacity: 0 }}
transition={{ duration: 0.2 }}
>
{/* Close button */}
<Button
type="button"
variant="ghost"
size="icon-sm"
onClick={onClose}
className="absolute -top-3 -right-3 z-10 w-8 h-8 rounded-full bg-white shadow-md flex items-center justify-center hover:bg-slate-50"
>
<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
<path d="M2 2L12 12M12 2L2 12" stroke="#0A1128" strokeWidth="2" strokeLinecap="round" />
</svg>
</Button>
{/* Image container with annotations */}
<div className="relative rounded-2xl overflow-hidden bg-white shadow-2xl">
<img
src={evidence.url}
alt={evidence.caption}
className="w-full h-auto max-h-[70vh] object-contain"
/>
{/* Annotation overlays */}
{evidence.annotations?.map((ann, i) => (
<div
key={i}
className="absolute border-2 border-brand-tint-orchid rounded-lg pointer-events-none"
style={{
left: `${ann.x}%`,
top: `${ann.y}%`,
width: ann.width ? `${ann.width}%` : 'auto',
height: ann.height ? `${ann.height}%` : 'auto',
}}
>
{ann.label && (
<span className="absolute -top-6 left-0 text-xs bg-brand-tint-orchid text-white px-2 py-1 rounded font-medium whitespace-nowrap">
{ann.label}
</span>
)}
</div>
))}
</div>
{/* Caption */}
<div className="mt-3 bg-white rounded-xl px-4 py-3 shadow-sm">
<p className="text-sm text-brand-navy font-medium">{evidence.caption}</p>
{evidence.sourceUrl && (
<p className="text-xs text-slate-400 mt-1">{evidence.sourceUrl}</p>
)}
</div>
</motion.div>
</motion.div>
)}
</AnimatePresence>
);
}
@@ -0,0 +1,80 @@
import { useState } from 'react';
import { Button } from '@/shared/ui/button';
import type { ScreenshotEvidence } from '@/features/report/types/report';
import { EvidenceLightbox } from './EvidenceLightbox';
interface EvidenceScreenshotProps {
evidence: ScreenshotEvidence;
compact?: boolean;
}
export function EvidenceScreenshot({ evidence, compact }: EvidenceScreenshotProps) {
const [loaded, setLoaded] = useState(true);
const [lightboxOpen, setLightboxOpen] = useState(false);
if (!loaded) return null;
return (
<>
<Button
type="button"
variant="ghost"
onClick={() => setLightboxOpen(true)}
className={`group relative rounded-xl overflow-hidden border border-slate-100 bg-white shadow-[3px_4px_12px_rgba(0,0,0,0.06)] hover:shadow-[4px_6px_16px_rgba(0,0,0,0.09)] hover:bg-white p-0 h-auto block cursor-pointer ${
compact ? 'w-full' : 'w-full max-w-[400px]'
}`}
>
<div className="relative w-full">
<img
src={evidence.url}
alt={evidence.caption}
className={`w-full object-cover ${compact ? 'h-24' : 'h-48'}`}
onError={() => setLoaded(false)}
/>
{/* Hover overlay */}
<div className="absolute inset-0 bg-brand-navy/0 group-hover:bg-brand-navy/10 transition-colors flex items-center justify-center">
<div className="w-8 h-8 rounded-full bg-white/90 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity shadow-sm">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none">
<path d="M15 3H21V9M21 3L13 11M10 5H5C3.9 5 3 5.9 3 7V19C3 20.1 3.9 21 5 21H17C18.1 21 19 20.1 19 19V14" stroke="#6C5CE7" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />
</svg>
</div>
</div>
{/* Channel badge */}
<span className="absolute top-2 left-2 rounded-full bg-white/90 backdrop-blur-sm px-2 py-1 text-xs font-medium text-brand-purple-muted shadow-sm">
{evidence.channel}
</span>
{/* Annotation indicators */}
{evidence.annotations?.map((ann, i) => (
<div
key={i}
className="absolute border-2 border-brand-tint-orchid/60 rounded-lg pointer-events-none"
style={{
left: `${ann.x}%`,
top: `${ann.y}%`,
width: ann.width ? `${ann.width}%` : 'auto',
height: ann.height ? `${ann.height}%` : 'auto',
}}
/>
))}
</div>
{/* Caption */}
{!compact && (
<div className="px-3 py-2 w-full">
<p className="text-xs text-slate-600 leading-relaxed line-clamp-2 text-left">
{evidence.caption}
</p>
</div>
)}
</Button>
<EvidenceLightbox
evidence={lightboxOpen ? evidence : null}
onClose={() => setLightboxOpen(false)}
/>
</>
);
}
@@ -0,0 +1,44 @@
import type { ReactNode } from 'react';
import { ArrowUp, ArrowDown, Minus } from 'lucide-react';
interface MetricCardProps {
key?: string | number;
label: string;
value: string | number;
subtext?: string;
icon?: ReactNode;
trend?: 'up' | 'down' | 'neutral';
}
const trendConfig = {
up: { icon: ArrowUp, color: 'text-emerald-500' },
down: { icon: ArrowDown, color: 'text-red-500' },
neutral: { icon: Minus, color: 'text-slate-400' },
};
export function MetricCard({ label, value, subtext, icon, trend }: MetricCardProps) {
return (
<div className="rounded-2xl border border-slate-100 shadow-sm bg-white p-5 relative">
{icon && (
<div className="absolute top-4 right-4 text-slate-300">
{icon}
</div>
)}
<p className="text-sm text-slate-500 mb-1">{label}</p>
<div className="flex items-end gap-2">
<span className="text-3xl font-bold text-[#0A1128]">{value}</span>
{trend && (
<span className={`${trendConfig[trend].color} mb-1`}>
{(() => {
const TrendIcon = trendConfig[trend].icon;
return <TrendIcon size={18} />;
})()}
</span>
)}
</div>
{subtext && (
<p className="text-xs text-slate-400 mt-1">{subtext}</p>
)}
</div>
);
}
@@ -0,0 +1,73 @@
import { motion } from 'motion/react';
interface ScoreRingProps {
score: number;
maxScore?: number;
size?: number;
label?: string;
color?: string;
}
function getScoreColor(score: number, maxScore: number): string {
const pct = (score / maxScore) * 100;
if (pct <= 40) return '#C084CF'; // 소프트 바이올렛 — critical
if (pct <= 60) return '#8B9CF7'; // 페리윙클 블루 — caution
if (pct <= 80) return '#7C6DD8'; // 미디엄 퍼플 — good
return '#6C5CE7'; // Infinith 메인 퍼플 — excellent
}
export function ScoreRing({
score,
maxScore = 100,
size = 120,
label,
color,
}: ScoreRingProps) {
const strokeWidth = 8;
const radius = (size - strokeWidth) / 2;
const circumference = 2 * Math.PI * radius;
const progress = Math.min(score / maxScore, 1);
const strokeDashoffset = circumference * (1 - progress);
const resolvedColor = color ?? getScoreColor(score, maxScore);
return (
<div className="flex flex-col items-center gap-2">
<div className="relative" style={{ width: size, height: size }}>
<svg
width={size}
height={size}
viewBox={`0 0 ${size} ${size}`}
className="-rotate-90"
>
<circle
cx={size / 2}
cy={size / 2}
r={radius}
fill="none"
stroke="#f1f5f9"
strokeWidth={strokeWidth}
/>
<motion.circle
cx={size / 2}
cy={size / 2}
r={radius}
fill="none"
stroke={resolvedColor}
strokeWidth={strokeWidth}
strokeLinecap="round"
strokeDasharray={circumference}
initial={{ strokeDashoffset: circumference }}
animate={{ strokeDashoffset }}
transition={{ duration: 1, ease: 'easeOut' }}
/>
</svg>
<div className="absolute inset-0 flex items-center justify-center">
<span className="text-2xl font-bold text-[#0A1128]">{score}</span>
</div>
</div>
{label && (
<span className="text-sm text-slate-500 text-center">{label}</span>
)}
</div>
);
}
@@ -0,0 +1,34 @@
import { Component, type ReactNode } from 'react';
interface Props {
children: ReactNode;
fallback?: ReactNode;
}
interface State {
hasError: boolean;
}
export class SectionErrorBoundary extends Component<Props, State> {
declare props: Props;
state: State = { hasError: false };
static getDerivedStateFromError() {
return { hasError: true };
}
componentDidCatch(error: Error) {
console.error('[SectionErrorBoundary]', error.message, error.stack);
}
render() {
if (this.state.hasError) {
return this.props.fallback ?? (
<div className="px-6 py-4 bg-red-50 border border-red-200 rounded-xl my-4 mx-4">
<p className="text-xs font-mono text-red-600">섹션 렌더링 오류 (콘솔 확인)</p>
</div>
);
}
return this.props.children;
}
}
@@ -0,0 +1,60 @@
import type { ReactNode } from 'react';
interface SectionWrapperProps {
id: string;
title: string;
subtitle?: string;
children: ReactNode;
dark?: boolean;
className?: string;
}
export function SectionWrapper({
id,
title,
subtitle,
children,
dark = false,
className = '',
}: SectionWrapperProps) {
return (
<section
id={id}
className={`
${dark
? 'bg-[#0A1128] text-white relative overflow-hidden'
: 'bg-white'
}
py-16 md:py-20 px-6
${className}
`}
>
{dark && (
<div className="absolute inset-0 bg-[radial-gradient(ellipse_at_top_right,rgba(108,92,231,0.15),transparent_60%)]" />
)}
<div className="relative max-w-7xl mx-auto">
<div className="mb-10">
<h2
className={`
font-serif font-bold text-3xl md:text-4xl mb-3
${dark
? 'bg-gradient-to-r from-purple-300 to-blue-300 bg-clip-text text-transparent'
: 'text-gradient'
}
`}
>
{title}
</h2>
{subtitle && (
<p
className={`text-lg ${dark ? 'text-purple-200' : 'text-slate-600'}`}
>
{subtitle}
</p>
)}
</div>
{children}
</div>
</section>
);
}
@@ -0,0 +1,41 @@
type SeverityLevel = 'critical' | 'warning' | 'good' | 'excellent' | 'unknown';
interface SeverityBadgeProps {
severity: SeverityLevel;
label?: string;
}
const config: Record<SeverityLevel, { className: string; defaultLabel: string }> = {
critical: {
className: 'bg-[#FFF0F0] text-[#7C3A4B] border-[#F5D5DC]',
defaultLabel: '심각',
},
warning: {
className: 'bg-[#FFF6ED] text-[#7C5C3A] border-[#F5E0C5]',
defaultLabel: '주의',
},
good: {
className: 'bg-[#F3F0FF] text-[#4A3A7C] border-[#D5CDF5]',
defaultLabel: '양호',
},
excellent: {
className: 'bg-[#EFF0FF] text-[#3A3F7C] border-[#C5CBF5]',
defaultLabel: '우수',
},
unknown: {
className: 'bg-slate-50 text-slate-700 border-slate-200',
defaultLabel: '미확인',
},
};
export function SeverityBadge({ severity, label }: SeverityBadgeProps) {
const { className, defaultLabel } = config[severity];
return (
<span
className={`inline-flex items-center rounded-full text-xs font-medium px-3 py-1 border ${className}`}
>
{label ?? defaultLabel}
</span>
);
}
+526
View File
@@ -0,0 +1,526 @@
import type { MarketingReport } from '@/features/report/types/report';
// 최종 검증: 2026-04-28 (전 채널 실측 — Firecrawl + Apify)
// YouTube · 강남언니 · 네이버 플레이스 · 네이버 블로그: Firecrawl
// Instagram (KR · EN) · Facebook (KR · EN): Apify (apify/instagram-profile-scraper, apify/facebook-pages-scraper)
export const mockReport: MarketingReport = {
id: 'view-clinic',
createdAt: '2026-04-28',
targetUrl: 'https://www.viewclinic.com',
overallScore: 62,
clinicSnapshot: {
name: '뷰성형외과의원',
nameEn: 'VIEW Plastic Surgery',
established: '2005',
yearsInBusiness: 21,
staffCount: 25,
leadDoctor: {
name: '최순우',
credentials: '서울대 출신, 의학박사',
rating: 9.4,
reviewCount: 1805,
},
overallRating: 9.5,
totalReviews: 19177,
priceRange: { min: '97,900', max: '13,200,000+', currency: '₩' },
certifications: [
'수술실 CCTV',
'전담 마취과 전문의',
'응급대응 시스템',
'여의사 상담',
'보건복지부장관 표창',
'안면윤곽 수상',
'모티바 사용량 1위',
'19층 안전스마트 빌딩',
'렛미인 출연',
'All-In-One 시스템',
],
mediaAppearances: ['렛미인 TV 프로그램', '보건복지부장관 표창', '안면윤곽 수상'],
medicalTourism: ['VisitKorea 등재', '강남 메디컬투어센터 협력기관', '외국인 전용 서비스'],
location: '서울시 강남구 봉은사로 107 (논현동)',
nearestStation: '9호선/신분당선 신논현역 3번 출구 68m',
phone: '02-539-1177',
domain: 'viewclinic.com',
source: 'registry' as const,
registryData: {
district: '강남',
branches: '본점 1개',
brandGroup: '프리미엄',
naverPlaceUrl: 'https://m.place.naver.com/hospital/11709005',
gangnamUnniUrl: 'https://www.gangnamunni.com/hospitals/189',
googleMapsUrl: 'https://maps.google.com/?q=뷰성형외과',
},
logoImages: {
circle: '/assets/clients/view-clinic/logo-circle.png',
horizontal: '/assets/clients/view-clinic/logo-horizontal.png',
korean: '/assets/clients/view-clinic/logo-korean.png',
},
brandColors: {
primary: '#7B2D8E',
accent: '#E8B931',
text: '#6B2D7B',
},
},
channelScores: [
{ channel: 'YouTube', icon: 'youtube', score: 68, maxScore: 100, status: 'warning', headline: '104K 구독자, 주 2-3회 업로드, 누적 1,035만 조회 (2주 +1.9%)' },
{ channel: 'Instagram KR', icon: 'instagram', score: 32, maxScore: 100, status: 'critical', headline: '14,047 팔로워, Reels 0개, 모델 프사' },
{ channel: 'Instagram EN', icon: 'instagram', score: 62, maxScore: 100, status: 'warning', headline: '70,537 팔로워, Reels 활발, 외국인 환자 중심' },
{ channel: 'Facebook', icon: 'facebook', score: 38, maxScore: 100, status: 'critical', headline: 'KR 254명 방치, EN 88K 활발, 3개 페이지 분산' },
{ channel: '강남언니', icon: 'star', score: 96, maxScore: 100, status: 'excellent', headline: '9.5점/10, 19,177 리뷰, 고객평가우수병원' },
{ channel: 'Website', icon: 'globe', score: 65, maxScore: 100, status: 'warning', headline: 'Footer SNS 5개 연결, 트래킹 6개, SEO 기본 설정 양호' },
],
youtubeAudit: {
channelName: '뷰성형외과 VIEW Plastic Surgery',
handle: '@ViewclinicKR',
subscribers: 104000,
totalVideos: 1100,
totalViews: 10348571,
weeklyViewGrowth: { absolute: 197925, percentage: 1.91 },
estimatedMonthlyRevenue: { min: 499, max: 1000 },
avgVideoLength: '4.4분',
uploadFrequency: '주 2~3회',
channelCreatedDate: '2015-06-28',
subscriberRank: '#570K',
channelDescription: '💜뷰성형외과💜\nVIEW가 예술이다! ✨\n19층 규모의 안전스마트 빌딩\n환자의 관점에서 생각하고\n환자의 입장에서 아름다움의 가치를 찾습니다.',
linkedUrls: [
{ label: '뷰성형외과 홈페이지', url: 'viewclinic.com' },
{ label: 'Instagram', url: 'instagram.com/viewplastic' },
{ label: '이벤트 보기', url: 'viewclinic.com/board/events' },
{ label: '상담 예약', url: 'viewclinic.com/counsel/reservation' },
{ label: '카톡 상담', url: 'pf.kakao.com/_xbtVxjl' },
],
playlists: [
'VIEW 💜 무엇이든 물어보세요',
'VIEW 💜 재수술',
'VIEW 💜 가슴',
'VIEW 💜 눈+코',
'VIEW 💜 윤곽+양악',
'VIEW 💜 지방성형',
'VIEW 💜 피부+안티에이징',
'VIEW랜딩 💜',
'VIEW 💜 방송영상',
],
topVideos: [
{ title: '한번에 성공하는 성형', views: 574000, uploadedAgo: '4년 전', type: 'Short' },
{ title: '코성형+지방이식 전후', views: 525000, uploadedAgo: '4년 전', type: 'Short' },
{ title: '쌍수+뒤밑트임 전후', views: 392000, uploadedAgo: '3년 전', type: 'Short' },
{ title: 'V라인턱 변신과정 전격공개', views: 194000, uploadedAgo: '4년 전', type: 'Short' },
{ title: 'K-미녀 클라스', views: 161000, uploadedAgo: '4년 전', type: 'Short' },
{ title: '앞트임하면 대박나는 사람', views: 154000, uploadedAgo: '2년 전', type: 'Short' },
{ title: '코성형! 내 얼굴에 가장 예쁜 코 찾아드립니다', views: 124000, uploadedAgo: '3년 전', type: 'Long', duration: '7:59' },
{ title: '아나운서 박은영, 가슴 할 결심을 하다', views: 127000, uploadedAgo: '9개월 전', type: 'Long', duration: '43:39' },
],
diagnosis: [
{ category: '구독자 대비 조회수 비율', detail: '영상당 평균 ~1,000회 (104K 구독자 대비 1% 도달률)', severity: 'critical', evidenceIds: ['yt-channel'] },
{ category: '최근 롱폼 조회수', detail: '대부분 1,000~4,000회 수준', severity: 'critical' },
{ category: 'Shorts 조회수', detail: '최근 업로드 500~1,000회 (과거 대비 급감)', severity: 'warning' },
{ category: '업로드 빈도', detail: '주 2~3회 — 적절한 빈도이나 조회수 미반영', severity: 'good' },
{ category: '콘텐츠 톤앤매너', detail: '일관성 없음 — 교육/Q&A/전후/브랜딩 혼재', severity: 'critical' },
{ category: '썸네일 디자인', detail: '통일된 브랜드 시스템 없음', severity: 'warning' },
{ category: '최고 성과 Shorts', detail: '4년 전 콘텐츠 — 최근 재현 실패', severity: 'critical' },
],
},
instagramAudit: {
accounts: [
{
handle: '@viewplastic',
language: 'KR',
label: '국내 (한국어)',
posts: 1429,
followers: 14047,
following: 3774,
category: 'Health/beauty',
profileLink: 'litt.ly/viewplasticsurgery',
highlights: ['ABOUT VIEW', '수술정보', '모델 모집', 'VIEW EVENT', '진료안내'],
reelsCount: 0,
contentFormat: '카드뉴스 (정보형 이미지) 100%',
profilePhoto: '모델 사진 (브랜드 로고 아님)',
bio: '뷰 성형외과 | 가슴성형 · 안면윤곽 · 눈성형 · 코성형 · 리프팅\n💞신논현역 3번 출구 | 카톡 \'뷰성형외과의원\' | 02-539-1177',
},
{
handle: '@view_plastic_surgery',
language: 'EN',
label: '국제 (영어)',
posts: 2578,
followers: 70537,
following: 2849,
category: 'Health/beauty',
profileLink: 'litt.ly/viewplasticsurgeryenglish',
highlights: ['Katerina', 'Mathilde', 'Kyle & Spizee', 'Chef Rush', 'Thet San', 'Yuri', 'Liposuction', 'Why VIEW?', 'Diana', 'Anti Aging', 'Julie', 'Male', 'Stem Cell', 'Dermatology'],
reelsCount: 50,
contentFormat: 'Before/After + 환자 스토리 + Reels',
profilePhoto: 'VIEW 골드 로고',
bio: 'VIEW Plastic Surgery Official by VIEW Partners\n⚕ Most Renowned Hospital in Korea\n107 Bongeunsa-ro Gangnam-gu, Seoul, Korea',
},
],
diagnosis: [
{ category: '계정 분리 → 팔로워 분산', detail: 'KR 14K + EN 70K = 합산 84K이지만 각각 약함', severity: 'warning' },
{ category: 'KR 계정 Reels 전무', detail: '인스타 알고리즘 핵심인 Reels 콘텐츠 0개', severity: 'critical', evidenceIds: ['ig-kr-profile'] },
{ category: '브랜드 비주얼 불일치', detail: 'KR=모델 프사, EN=VIEW 골드 로고', severity: 'warning', evidenceIds: ['ig-kr-profile', 'ig-en-profile'] },
{ category: 'KR 팔로잉 과다', detail: '3,822 팔로잉 — 팔로우백 전략 의심', severity: 'warning' },
{ category: '크로스포스팅 없음', detail: 'YouTube Shorts → Instagram Reels 연동 없음', severity: 'critical' },
{ category: '유튜브 ↔ 인스타 유입 단절', detail: '104K 구독자 → 14K 팔로워 전환 실패', severity: 'critical' },
],
},
facebookAudit: {
pages: [
{
url: 'facebook.com/viewps1',
pageName: '뷰성형외과',
language: 'KR',
label: '국내 (한국어)',
followers: 254,
following: 0,
category: '성형외과 의사',
bio: '예쁨이 일상이 되는 순간! #뷰성형외과',
logo: '일치 (공식 로고)',
logoDescription: '보라색+골드 깃털 공식 로고 사용 — 웹사이트와 동일한 공식 브랜드 자산. 원형 테두리 안에 깃털 심볼 + VIEW / Plastic Surgery 텍스트가 정확히 배치됨.',
link: 'viewclinic.com',
linkedDomain: 'viewclinic.com',
reviews: 0,
recentPostAge: '1일 전',
hasWhatsApp: false,
postFrequency: '주 1~2회 (카드뉴스 크로스포스팅)',
topContentType: 'Instagram 카드뉴스 그대로 복사 게시',
engagement: '게시물당 좋아요 0~3개, 댓글 거의 없음',
},
{
url: 'facebook.com/viewclinic',
pageName: 'View Plastic Surgery',
language: 'EN',
label: '국제 (영어)',
followers: 88333,
following: 11,
category: '건강/뷰티',
bio: 'Official Account by VIEW Partners',
logo: '불일치 (비공식 변형)',
logoDescription: 'VIEW 텍스트 전용 골드 로고 — 공식 깃털 심볼이 빠진 비공식 변형 버전. YouTube, Instagram EN과 동일하지만, 공식 브랜드 가이드(보라색+골드 깃털)와 불일치.',
link: 'viewplasticsurgery.com',
linkedDomain: 'viewplasticsurgery.com (메인 도메인 viewclinic.com과 다름)',
reviews: 3,
recentPostAge: '2일 전',
hasWhatsApp: true,
postFrequency: '일 1~2회 (Before/After, 환자 스토리)',
topContentType: 'Before/After 사진 + 환자 여정 Reels',
engagement: '게시물당 좋아요 50~300개, 댓글 10~50개',
},
],
diagnosis: [
{
category: '채널 간 로고 파편화',
detail: 'Facebook KR만 공식 깃털 로고를 사용하고, EN 페이지는 비공식 VIEW 골드 텍스트 로고를 사용. YouTube, Instagram도 각각 다른 변형 로고 사용 중.',
severity: 'critical',
evidenceIds: ['fb-en-page', 'ig-kr-profile', 'ig-en-profile'],
},
{
category: 'KR 페이지 사실상 방치',
detail: '팔로워 253명, 리뷰 0개, 게시물 참여율 0% — 운영 비용 대비 효과 없음',
severity: 'critical',
},
{
category: '도메인 불일치',
detail: 'KR 페이지 → viewclinic.com, EN 페이지 → viewplasticsurgery.com — 서로 다른 도메인으로 연결, SEO 및 트래픽 분산',
severity: 'warning',
},
{
category: 'KR/EN 팔로워 348:1 격차',
detail: 'EN 88K vs KR 253 — 국내 환자 유입 채널로서 Facebook KR은 완전히 실패',
severity: 'critical',
},
{
category: 'KR 콘텐츠 전략 없음',
detail: 'Instagram 카드뉴스를 그대로 복사 게시 — Facebook 네이티브 콘텐츠(동영상, 이벤트, 그룹) 활용 0%',
severity: 'warning',
},
{
category: 'Facebook Pixel ↔ 페이지 비연동',
detail: '웹사이트에 Facebook Pixel(ID: 299151214739571)이 설치되어 있으나, KR 페이지와의 광고 리타겟 연동 미확인',
severity: 'warning',
},
],
brandInconsistencies: [
{
field: '로고',
values: [
{ channel: 'YouTube', value: 'VIEW 텍스트 전용 골드 로고 (깃털 심볼 없음)', isCorrect: false },
{ channel: 'Instagram KR', value: '모델 프로필 사진 (로고 아님)', isCorrect: false },
{ channel: 'Instagram EN', value: 'VIEW 텍스트 전용 골드 로고 (깃털 심볼 없음)', isCorrect: false },
{ channel: 'Facebook KR', value: '보라색+골드 깃털 로고 (공식)', isCorrect: true },
{ channel: 'Facebook EN', value: 'VIEW 텍스트 전용 골드 로고 (깃털 심볼 없음)', isCorrect: false },
{ channel: 'Website', value: '보라색+골드 깃털 로고 (공식)', isCorrect: true },
],
impact: '공식 깃털 로고를 사용하는 채널은 Facebook KR과 웹사이트 2곳뿐. YouTube, Instagram, Facebook EN은 비공식 변형 로고 사용',
recommendation: '전 채널에 보라색+골드 깃털 공식 로고 통일 (원형: 프로필, 가로형: 배너)',
},
{
field: '연결 도메인',
values: [
{ channel: 'YouTube', value: 'viewclinic.com', isCorrect: true },
{ channel: 'Instagram KR', value: 'litt.ly/viewplasticsurgery', isCorrect: true },
{ channel: 'Instagram EN', value: 'litt.ly/viewplasticsurgeryenglish', isCorrect: true },
{ channel: 'Facebook KR', value: 'viewclinic.com', isCorrect: true },
{ channel: 'Facebook EN', value: 'viewplasticsurgery.com', isCorrect: false },
],
impact: 'EN 페이지가 별도 도메인(viewplasticsurgery.com)으로 연결 → 도메인 권위(Domain Authority) 분산, SEO 불이익',
recommendation: 'viewclinic.com/en 하위 경로로 국제 페이지 통합, 기존 도메인은 301 리다이렉트',
},
{
field: '바이오/소개 메시지',
values: [
{ channel: 'YouTube', value: '💜뷰성형외과💜 VIEW가 예술이다!', isCorrect: false },
{ channel: 'Instagram KR', value: '뷰 성형외과 | 가슴성형·안면윤곽·눈성형·코성형·리프팅', isCorrect: false },
{ channel: 'Facebook KR', value: '예쁨이 일상이 되는 순간! #뷰성형외과', isCorrect: false },
{ channel: 'Facebook EN', value: 'Official Account by VIEW Partners', isCorrect: false },
],
impact: '4개 채널, 4개의 서로 다른 소개 메시지 → 통일된 브랜드 포지셔닝 부재, 핵심 USP(안전/21년 무사고) 미전달',
recommendation: '핵심 USP 포함 통일 바이오: "안전이 예술이 되는 곳 — 21년 무사고 VIEW 성형외과"',
},
],
consolidationRecommendation: 'Facebook KR 페이지(253명)는 폐쇄 또는 EN 페이지(88K)로 통합을 권장합니다. KR 페이지는 투자 대비 효과가 사실상 제로이며, 브랜드 혼란만 가중시키고 있습니다. Facebook은 한국 시장에서 오가닉 도달 목적이 아닌, Facebook Pixel 기반 리타겟 광고 전용 채널로 운영하는 것이 효율적입니다.',
},
otherChannels: [
{ name: '카카오톡', status: 'active', details: '플러스친구 @뷰성형외과의원 — 상담 전용 채널', url: 'https://pf.kakao.com/_xbtVxjl' },
{ name: '네이버 블로그', status: 'active', details: '공식 블로그 활성 — 총 551개 게시글, 월 2~3회 포스팅, 최근 2026.4.22 업로드', url: 'https://blog.naver.com/viewclinicps' },
{ name: '네이버 플레이스', status: 'active', details: '별점 4.41/5, 방문자리뷰 776개, 블로그리뷰 1,508개, 성형외과 전문의 14명', url: 'https://m.place.naver.com/hospital/11709005' },
{ name: 'TikTok', status: 'not_found', details: '계정 없음 또는 비활성' },
{ name: '강남언니', status: 'active', details: '9.5점/10, 19,177 리뷰, 25 의료진, 고객평가우수병원', url: 'https://www.gangnamunni.com/hospitals/189' },
{ name: '네이버 카페', status: 'active', details: '"뷰성형외과 성형의 모든것" — 회원 5,984명, 비공개 카페, 시술별 Q&A/전후비교/수술후기 20개 게시판 운영', url: 'https://cafe.naver.com/bluectcom2' },
{ name: 'Threads', status: 'active', details: '@viewplastic + @view_plastic_surgery 계정 연동', url: 'https://www.threads.net/@viewplastic' },
{ name: 'Facebook TH', status: 'inactive', details: '태국 파트너 페이지 14K 팔로워, 2024.7월 이후 방치', url: 'https://www.facebook.com/viewplasticsurgery' },
],
websiteAudit: {
primaryDomain: 'viewclinic.com',
additionalDomains: [
{ domain: 'viewplasticsurgery.com', purpose: '영문 국제 사이트' },
{ domain: 'viewclinic-chat.com', purpose: '채팅 상담 전용' },
{ domain: 'viewclinic.modoo.at', purpose: '구 모두홈페이지' },
],
snsLinksOnSite: true,
snsLinksDetail: [
{ platform: 'Naver Blog', url: 'https://blog.naver.com/viewclinicps', location: 'Footer' },
{ platform: 'Facebook', url: 'https://www.facebook.com/viewps1/', location: 'Footer' },
{ platform: 'Instagram', url: 'https://www.instagram.com/viewplastic/', location: 'Footer' },
{ platform: 'YouTube', url: 'https://www.youtube.com/channel/UCQqqH3Klj2HQSHNNSVug-CQ', location: 'Footer' },
{ platform: 'Naver Cafe', url: 'https://cafe.naver.com/bluectcom2', location: 'Footer' },
],
trackingPixels: [
{ name: 'Facebook Pixel', installed: true, details: 'ID: 299151214739571' },
{ name: 'Facebook Domain Verification', installed: true, details: 'lm854gkic9948c6xk2ti76inryqk65' },
{ name: 'Google Site Verification', installed: true, details: 'A8vo9aOWSvGL5-yFKhbtlHPqJCkH-egNdWVqVd9gKac' },
{ name: 'Naver Site Verification', installed: true, details: 'a8cb4fab1fdf7277c0892eeddf457b5c939349e8' },
{ name: 'Kakao Pixel', installed: true },
{ name: 'Google Tag Manager', installed: true, details: 'GTM-52RT6DMK' },
],
mainCTA: '전화 + 카카오톡 상담 + 온라인 예약',
},
problemDiagnosis: [
{
category: '브랜드 아이덴티티 파편화',
detail: '공식 깃털 로고(보라색+골드)는 Facebook KR과 웹사이트에만 사용. YouTube/Instagram EN/Facebook EN은 비공식 골드 텍스트 로고, Instagram KR은 모델 사진 사용 — 6개 채널에 4종의 서로 다른 시각적 아이덴티티',
severity: 'critical',
},
{
category: '콘텐츠 전략 부재',
detail: '콘텐츠 캘린더 없음, 톤앤매너 가이드 없음, KR↔EN 시너지 없음, YouTube→Instagram 크로스포스팅 없음',
severity: 'critical',
},
{
category: '플랫폼 간 유입 단절',
detail: 'YouTube 104K → Instagram 14K 전환 실패, Footer SNS 링크는 있으나 Header/본문에는 없음, 강남언니 19K 리뷰→영상 전환 없음, 네이버 카페 5,984명→SNS 유입 미활용',
severity: 'critical',
},
],
transformation: {
brandIdentity: [
{ area: '로고', asIs: '채널마다 다른 로고 4종', toBe: 'VIEW 골드 로고 1종 통일' },
{ area: '컬러 팔레트', asIs: '없음 (혼재)', toBe: 'Primary: Gold (#C4A462) + Dark (#1A1A1A)' },
{ area: '프로필 사진', asIs: 'KR=모델, EN=로고, FB=깃털', toBe: '전 채널 VIEW 골드 로고 통일' },
{ area: '바이오 메시지', asIs: '채널마다 다른 메시지', toBe: '"안전이 예술이 되는 곳 — 21년 무사고 VIEW"' },
{ area: '해시태그', asIs: '비체계적', toBe: '#뷰성형외과 #VIEW성형 #강남성형외과 #21년무사고' },
],
contentStrategy: [
{ area: '콘텐츠 캘린더', asIs: '없음', toBe: '월간 콘텐츠 캘린더 (4주 사이클)' },
{ area: '업로드 빈도', asIs: 'YouTube 주1회, Instagram 비정기', toBe: 'YouTube 주3회 + Instagram 일1회 + Shorts/Reels 주5회' },
{ area: '콘텐츠 포맷', asIs: 'KR Instagram = 카드뉴스만', toBe: '카드뉴스 30% + Reels 40% + 카루셀 20% + Stories 10%' },
{ area: '콘텐츠 앵글', asIs: '시술 정보 중심 (병원 관점)', toBe: '환자 의사결정 보조 중심 (환자 관점)' },
{ area: '톤앤매너', asIs: '없음', toBe: '"차분한 전문가" — 과장 없이, 설명으로 설득' },
],
platformStrategies: [
{
platform: 'YouTube',
icon: 'youtube',
currentMetric: '104K subscribers',
targetMetric: '200K / 12개월',
strategies: [
{ strategy: '업로드 빈도 3배 증가', detail: '주 3회 (롱폼 1 + Shorts 2)' },
{ strategy: '기존 영상 재활용', detail: '1,064개 기존 영상에서 AI 숏폼 100개 추출' },
{ strategy: '썸네일 시스템화', detail: 'VIEW 골드 워터마크 + 일관된 폰트/컬러' },
{ strategy: '커뮤니티 탭 활용', detail: '주 2회 투표/질문 — 구독자 참여 활성화' },
],
},
{
platform: 'Instagram KR',
icon: 'instagram',
currentMetric: '14K followers',
targetMetric: '50K / 12개월',
strategies: [
{ strategy: 'Reels 즉시 시작', detail: 'YouTube Shorts 동시 게시 → 최소 주 5개' },
{ strategy: '프로필 사진 교체', detail: '모델 사진 → VIEW 골드 로고' },
{ strategy: '팔로잉 정리', detail: '3,822 → 300 이하로 정리' },
{ strategy: 'Stories 활성화', detail: '일 2~3개 (상담 비하인드, 병원 일상)' },
],
},
{
platform: 'Facebook',
icon: 'facebook',
currentMetric: 'KR 253 + EN 88K',
targetMetric: '통합 관리',
strategies: [
{ strategy: '계정 통합', detail: 'KR 253명 페이지 → EN 88K 페이지로 통합 또는 폐쇄' },
{ strategy: '로고 통일', detail: '보라색 깃털 → VIEW 골드 로고' },
{ strategy: '역할 정의', detail: 'FB = 광고 랜딩 + 리타겟 전용' },
],
},
],
websiteImprovements: [
{ area: 'SNS 링크', asIs: 'Footer에 5개 (블로그/FB/IG/YT/카페) — Header에는 없음', toBe: 'Header에도 주요 SNS 아이콘 추가 + EN 계정 링크도 병기' },
{ area: 'YouTube 임베드', asIs: '없음', toBe: '시술 페이지별 관련 YouTube 영상 임베드' },
{ area: '콘텐츠 허브', asIs: '없음', toBe: 'SEO 콘텐츠 허브 구축 (시술별 가이드)' },
{ area: '도메인 통합', asIs: '4개 도메인 분산', toBe: 'viewclinic.com 단일 도메인 + /en 국제 페이지' },
],
newChannelProposals: [
{ channel: 'TikTok', priority: 'P1', rationale: '20~30대 첫 수술 고민층 도달, YouTube Shorts 동시 배포' },
{ channel: '네이버 블로그 강화', priority: 'P0', rationale: '현재 551개 게시글, 월 2~3회 → 주 2회로 빈도 상향, SEO 핵심' },
{ channel: '네이버 플레이스 최적화', priority: 'P0', rationale: '4.41점/776리뷰 — 리뷰 응답률/사진 최적화 필요' },
],
},
roadmap: [
{
month: 1,
title: 'Foundation',
subtitle: '기반 구축',
tasks: [
{ task: '브랜드 아이덴티티 가이드 확정 (로고, 컬러, 폰트, 톤앤매너)', completed: false },
{ task: '전 채널 프로필 사진/배너 통일 교체', completed: false },
{ task: 'Facebook KR 페이지 정리 (통합 또는 폐쇄)', completed: false },
{ task: 'Instagram KR 팔로잉 정리 (3,822 → 300)', completed: false },
{ task: '웹사이트에 YouTube/Instagram 링크 추가', completed: false },
{ task: '기존 YouTube 영상 100개 → AI 숏폼 추출 시작', completed: false },
{ task: '콘텐츠 캘린더 v1 수립', completed: false },
],
},
{
month: 2,
title: 'Content Engine',
subtitle: '콘텐츠 엔진 가동',
tasks: [
{ task: 'YouTube Shorts 주 3~5회 업로드 시작', completed: false },
{ task: 'Instagram Reels 주 5회 업로드 시작', completed: false },
{ task: '원장 촬영 세션 월 2회 스케줄 확정', completed: false },
{ task: '"원장이 설명하는" 시리즈 4편 제작/업로드', completed: false },
{ task: '네이버 블로그 개설 및 시술 가이드 10편 게시', completed: false },
{ task: 'TikTok 계정 개설 및 Shorts 동시 배포', completed: false },
],
},
{
month: 3,
title: 'Optimization',
subtitle: '최적화 & 광고',
tasks: [
{ task: '콘텐츠 성과 분석 리포트 v1', completed: false },
{ task: '고성과 콘텐츠 기반 Instagram/Facebook 광고 세팅', completed: false },
{ task: 'YouTube 썸네일 A/B 테스트', completed: false },
{ task: '콘텐츠 캘린더 v2 (성과 데이터 반영)', completed: false },
{ task: '네이버 플레이스 최적화', completed: false },
{ task: 'KPI 리뷰: 구독자/팔로워 성장률, 상담 전환 추적', completed: false },
],
},
],
kpiDashboard: [
{ metric: 'YouTube 구독자', current: '104K', target3Month: '115K', target12Month: '200K' },
{ metric: 'YouTube 월 조회수', current: '~270K', target3Month: '500K', target12Month: '1.5M' },
{ metric: 'YouTube Shorts 평균 조회수', current: '500~1,000', target3Month: '5,000', target12Month: '20,000' },
{ metric: 'Instagram KR 팔로워', current: '14K', target3Month: '20K', target12Month: '50K' },
{ metric: 'Instagram KR Reels 평균 조회수', current: '0 (없음)', target3Month: '3,000', target12Month: '10,000' },
{ metric: 'Instagram EN 팔로워', current: '70K', target3Month: '80K', target12Month: '120K' },
{ metric: '네이버 블로그 포스팅 빈도', current: '월 2~3회', target3Month: '주 2회', target12Month: '주 3회' },
{ metric: '네이버 플레이스 리뷰', current: '777개 (4.41점)', target3Month: '900개', target12Month: '1,200개' },
{ metric: '콘텐츠 → 상담 전환', current: '측정 불가', target3Month: 'UTM 추적 시작', target12Month: '월 50건' },
],
screenshots: [
{
id: 'yt-channel',
url: '/assets/clients/view-clinic/screenshots/yt-channel.png',
channel: 'YouTube',
capturedAt: '2026-04-13T13:30:00Z',
caption: 'YouTube 채널 메인 — 구독자 104K, 주 ~1회 업로드',
sourceUrl: 'https://www.youtube.com/@ViewclinicKR',
},
{
id: 'ig-kr-profile',
url: '/assets/clients/view-clinic/screenshots/ig-kr-profile.png',
channel: 'Instagram',
capturedAt: '2026-04-13T13:31:00Z',
caption: 'Instagram KR (@viewplastic) — 14K 팔로워, 1,420 게시물, Reels 0개, 모델 프로필 사진',
sourceUrl: 'https://www.instagram.com/viewplastic/',
},
{
id: 'ig-en-profile',
url: '/assets/clients/view-clinic/screenshots/ig-en-profile.png',
channel: 'Instagram',
capturedAt: '2026-04-13T13:32:00Z',
caption: 'Instagram EN (@view_plastic_surgery) — 70K 팔로워, 2,554 게시물, Reels 활발, VIEW 골드 로고',
sourceUrl: 'https://www.instagram.com/view_plastic_surgery/',
},
{
id: 'fb-kr-page',
url: '/assets/clients/view-clinic/screenshots/fb-kr-page.png',
channel: 'Facebook',
capturedAt: '2026-04-13T13:33:00Z',
caption: 'Facebook KR (@viewps1) — 팔로워 253명, 사실상 방치 상태',
sourceUrl: 'https://www.facebook.com/viewps1',
annotations: [
{ type: 'highlight', x: 15, y: 20, width: 25, height: 15, label: '팔로워 253명 (방치)' },
],
},
{
id: 'gangnamunni',
url: '/assets/clients/view-clinic/screenshots/gangnamunni.png',
channel: '강남언니',
capturedAt: '2026-04-13T13:34:00Z',
caption: '강남언니 — 9.5점/10, 리뷰 19,033개, 고객평가우수병원, 총 804명 상담신청 완료',
sourceUrl: 'https://www.gangnamunni.com/hospitals/189',
},
{
id: 'website-homepage',
url: '/assets/clients/view-clinic/screenshots/website-homepage.png',
channel: 'Website',
capturedAt: '2026-04-13T13:35:00Z',
caption: 'viewclinic.com 홈페이지 — 팝업 오버레이로 콘텐츠 진입 차단, APRIL PROMOTION',
sourceUrl: 'https://www.viewclinic.com',
annotations: [
{ type: 'highlight', x: 30, y: 15, width: 40, height: 60, label: '팝업 차단' },
],
},
{
id: 'naver-blog',
url: '/assets/clients/view-clinic/screenshots/naver-blog.png',
channel: '네이버 블로그',
capturedAt: '2026-04-13T13:36:00Z',
caption: '네이버 블로그 (@viewclinicps) — VIEW 성형외과 550개 글, 유튜브/인스타 바로가기 연동',
sourceUrl: 'https://blog.naver.com/viewclinicps',
},
],
};
@@ -0,0 +1,384 @@
import type { MarketingReport } from '@/features/report/types/report';
import { mockReport } from './mockReport';
/**
* 바노바기성형외과의원 — 데모 리포트
*
* 실측 (2026-04-14):
* - 강남언니: 9.2/10, 6,853 리뷰, 의료진 4명, 2000년 설립 (https://www.gangnamunni.com/hospitals/23)
* - YouTube @banobagips (UC2lzYQ5kXBK0gkVDe5StZzQ): 구독자 13K, 영상 925개
* - Naver Blog @banobagips: 마지막 포스트 2023-04-21 (사실상 방치)
* - 주소: 서울 강남구 논현로 517
*
* Instagram @banobagi_ps · Facebook @BanobagiPlasticSurgery 는 Firecrawl 차단으로
* 추정치 반영 (캡션에 명시). 다음 세션에서 Chrome MCP 로 실측 교체 예정.
*/
export const mockReportBanobagi: MarketingReport = {
...mockReport,
id: 'banobagi',
createdAt: '2026-04-14',
targetUrl: 'https://www.banobagi.com',
overallScore: 58,
clinicSnapshot: {
...mockReport.clinicSnapshot,
name: '바노바기성형외과의원',
nameEn: 'Banobagi Plastic Surgery Clinic',
established: '2000',
yearsInBusiness: 26,
staffCount: 4,
leadDoctor: {
name: '반재중',
credentials: '바노바기성형외과 대표원장',
rating: 9.2,
reviewCount: 6853,
},
overallRating: 9.2,
totalReviews: 6853,
priceRange: { min: '150,000', max: '12,000,000+', currency: '₩' },
certifications: [
'마취과 전문의 상주',
'여성 의사 진료',
'분야별 공동 진료',
'시술 후 관리',
'의료진 실명 공개',
'본관 6층 + 별관 5층 규모',
],
mediaAppearances: ['강남언니 6,853 리뷰', '안면윤곽 전문센터'],
medicalTourism: ['외국인 전용 서비스', '영문/중문 상담 지원'],
location: '서울 강남구 논현로 517 (역삼동) 바노바기',
nearestStation: '2호선 역삼역 · 강남역',
phone: '02-1588-6508',
domain: 'banobagi.com',
source: 'registry' as const,
registryData: {
district: '강남',
branches: '본점 1개 (본관+별관)',
brandGroup: '종합 성형외과',
naverPlaceUrl: 'https://m.place.naver.com/hospital/11655270',
gangnamUnniUrl: 'https://www.gangnamunni.com/hospitals/23',
googleMapsUrl: 'https://maps.google.com/?q=바노바기성형외과',
},
logoImages: {
circle: '/assets/clients/banobagi/logo-circle.png',
horizontal: '/assets/clients/banobagi/logo-horizontal.png',
korean: '/assets/clients/banobagi/logo-korean.png',
},
brandColors: {
primary: '#1A1A1A',
accent: '#C8A96A',
text: '#1A1A1A',
},
},
channelScores: [
{ channel: 'YouTube', icon: 'youtube', score: 45, maxScore: 100, status: 'critical', headline: '구독자 13K, 영상 925개 누적됐으나 최근 조회수 저조' },
{ channel: 'Instagram', icon: 'instagram', score: 55, maxScore: 100, status: 'warning', headline: '@banobagi_ps — 4,183 팔로워, 게시물 꾸준' },
{ channel: 'Facebook', icon: 'facebook', score: 35, maxScore: 100, status: 'critical', headline: '@BanobagiPlasticSurgery — 16,000 팔로워, KR 활성도 낮음' },
{ channel: '강남언니', icon: 'star', score: 88, maxScore: 100, status: 'excellent', headline: '9.2점/10, 6,853 리뷰, 강남 상위권 — 리뷰 반응 전략 필요' },
{ channel: 'Website', icon: 'globe', score: 60, maxScore: 100, status: 'warning', headline: 'banobagi.com 운영 양호, Footer SNS 연결 존재 — 트래킹 고도화 필요' },
{ channel: '네이버 블로그', icon: 'globe', score: 25, maxScore: 100, status: 'critical', headline: '마지막 포스트 2023-04-21 — 2년 이상 방치' },
],
youtubeAudit: {
...mockReport.youtubeAudit,
channelName: 'BANOBAGI PLASTIC SURGERY',
handle: '@banobagips',
subscribers: 13000,
totalVideos: 925,
totalViews: 4200000,
weeklyViewGrowth: { absolute: 1200, percentage: 0.3 },
estimatedMonthlyRevenue: { min: 50, max: 180 },
avgVideoLength: '3.2분',
uploadFrequency: '비정기 (최근 6개월 저조)',
channelCreatedDate: '2013-08-15',
subscriberRank: '',
channelDescription: 'Protect and nurture your true beauty. Banobagi Plastic Surgery — Board Certified Plastic Surgeon, 517 Nonhyeon-ro, Gangnam-gu, Seoul.',
linkedUrls: [
{ label: '바노바기 홈페이지', url: 'banobagi.com' },
],
playlists: [
'안면윤곽',
'눈성형',
'코성형',
'가슴성형',
'지방체형',
'리프팅/동안성형',
],
topVideos: [],
diagnosis: [
{ category: '영상 대비 구독자 전환율 낮음', detail: '925개 영상 누적됐으나 구독자 13K — 영상당 구독자 전환 매우 저조', severity: 'critical', evidenceIds: ['yt-channel'] },
{ category: '업로드 빈도 저하', detail: '최근 6개월 업로드 빈도 급감 — 알고리즘 노출 감소', severity: 'critical' },
{ category: '영문 브랜딩', detail: '채널 설명이 영문 위주 — 한국 시장 타겟팅 약함', severity: 'warning' },
{ category: '콘텐츠 카테고리화', detail: '재생목록 기본 구성 있음 — 썸네일/메타데이터 최적화 시 개선 여지', severity: 'warning' },
],
},
instagramAudit: {
accounts: [
{
handle: '@banobagi_ps',
language: 'KR',
label: '공식 계정',
posts: 2000,
followers: 4183,
following: 150,
category: 'Health/beauty',
profileLink: 'banobagi.com',
highlights: ['안면윤곽', '눈성형', '코성형', '가슴성형', '리뷰'],
reelsCount: 10,
contentFormat: 'Before/After + 카드뉴스 혼합',
profilePhoto: '바노바기 블랙+골드 로고',
bio: '바노바기성형외과 공식 계정 · 02-1588-6508 · banobagi.com (실측치 수집 진행 중)',
},
],
diagnosis: [
{ category: 'Reels 활용 저조', detail: 'Reels 수가 카드뉴스 대비 현저히 적음 — 알고리즘 노출 불이익', severity: 'critical' },
{ category: 'YouTube ↔ Instagram 연동 부재', detail: 'YouTube 925개 영상 자산이 Instagram Reels 로 재활용되지 않음', severity: 'critical' },
{ category: '실측 데이터 수집 차단', detail: 'Firecrawl/공개 스크래핑 차단 — Chrome MCP 로 실측 교체 예정', severity: 'warning' },
],
},
facebookAudit: {
pages: [
{
url: 'facebook.com/BanobagiPlasticSurgery',
pageName: 'Banobagi Plastic Surgery',
language: 'EN',
label: '국제 공식',
followers: 16000,
following: 0,
category: '성형외과 의사',
bio: 'Banobagi Plastic Surgery — Korean Premium Plastic Surgery Clinic',
logo: '공식 (블랙+골드)',
logoDescription: '블랙 배경 + 골드 "BANOBAGI" 워드마크 로고 — 공식 브랜드 자산',
link: 'banobagi.com',
linkedDomain: 'banobagi.com',
reviews: 0,
recentPostAge: '추정 1주 이내',
hasWhatsApp: true,
postFrequency: '월 2~4회',
topContentType: 'Before/After + 영문 시술 정보',
engagement: '게시물당 좋아요 10~80개 (추정)',
},
],
diagnosis: [
{ category: 'KR 네이티브 페이지 부재', detail: '국제 페이지만 운영 — 한국 사용자 접근성 낮음', severity: 'critical' },
{ category: '브랜드 콘텐츠 단조', detail: 'Before/After 위주 — 환자 여정/스토리/FAQ 콘텐츠 부족', severity: 'warning' },
{ category: '실측 데이터 수집 차단', detail: 'Firecrawl 차단 — Chrome MCP 로 실측 교체 예정', severity: 'warning' },
],
brandInconsistencies: [
{
field: '로고',
values: [
{ channel: 'YouTube', value: 'BANOBAGI 영문 워드마크', isCorrect: true },
{ channel: 'Instagram', value: '바노바기 블랙+골드 로고', isCorrect: true },
{ channel: 'Facebook', value: '블랙+골드 워드마크', isCorrect: true },
{ channel: 'Website', value: '블랙+골드 공식 로고', isCorrect: true },
],
impact: '브랜드 시각 아이덴티티는 상대적으로 일관됨 — 컬러/폰트 가이드 강화 여지',
recommendation: '채널별 프로필 이미지 해상도 재검증 + 가로형/원형 버전 통일',
},
],
consolidationRecommendation: 'Facebook 국제 페이지(16K 실측) 유지하되, 한국 시장 전용 페이지 신규 개설 또는 Instagram KR 집중으로 전환 권장. 현재 상태는 한국 환자 유입 채널로 기능 안 함.',
},
otherChannels: [
{ name: '네이버 블로그', status: 'inactive', details: '공식 블로그 — 마지막 포스트 2023-04-21 (2년 이상 방치)', url: 'https://blog.naver.com/banobagips' },
{ name: '강남언니', status: 'active', details: '9.2점/10, 6,853 리뷰, 의료진 4명, 2000년 설립', url: 'https://www.gangnamunni.com/hospitals/23' },
{ name: '네이버 플레이스', status: 'active', details: '플레이스 운영 중 — 리뷰 응답률 최적화 필요', url: 'https://m.place.naver.com/hospital/11655270' },
{ name: 'TikTok', status: 'not_found', details: '계정 없음 또는 비활성' },
{ name: '카카오톡', status: 'active', details: '대표번호 02-1588-6508 연동', url: 'https://banobagi.com' },
],
websiteAudit: {
primaryDomain: 'banobagi.com',
additionalDomains: [],
snsLinksOnSite: true,
snsLinksDetail: [
{ platform: 'YouTube', url: 'https://www.youtube.com/c/banobagips', location: 'Footer' },
{ platform: 'Instagram', url: 'https://www.instagram.com/banobagi_ps/', location: 'Footer' },
{ platform: 'Facebook', url: 'https://www.facebook.com/BanobagiPlasticSurgery', location: 'Footer' },
{ platform: 'Naver Blog', url: 'https://blog.naver.com/banobagips', location: 'Footer' },
],
trackingPixels: [
{ name: 'Facebook Pixel', installed: true, details: '설치 확인' },
{ name: 'Google Analytics', installed: true, details: 'GA4 추정' },
{ name: 'Naver Site Verification', installed: true },
],
mainCTA: '전화 상담 + 온라인 예약',
},
problemDiagnosis: [
{
category: '콘텐츠 자산의 저활용',
detail: 'YouTube 925개 영상 · Instagram 2,000개 게시물 자산이 축적됐으나 채널 간 크로스포스팅·재활용 체계 부재. 영상당 평균 조회수가 구독자 대비 현저히 낮음.',
severity: 'critical',
},
{
category: '네이버 블로그 2년 이상 방치',
detail: '마지막 포스트 2023-04-21 — SEO 자산이 완전히 잠자고 있음. 강남언니 유입 환자가 "바노바기 후기" 검색 시 공식 블로그가 노출되지 않음.',
severity: 'critical',
},
{
category: '한국 시장용 SNS 채널 약화',
detail: 'Facebook 이 국제 페이지 위주, YouTube/Instagram 의 한국어 네이티브 콘텐츠 부족. 강남언니 6,853 리뷰 규모 대비 SNS 존재감이 비례하지 않음.',
severity: 'critical',
},
],
transformation: {
...mockReport.transformation,
brandIdentity: [
{ area: '로고', asIs: '블랙+골드 워드마크 (대체로 일관)', toBe: '가로형/원형 버전 규격화 + 고해상도 재발급' },
{ area: '컬러 팔레트', asIs: '블랙+골드 기조', toBe: 'Primary: Deep Black (#1A1A1A) + Accent Gold (#C8A96A) 체계 명문화' },
{ area: '프로필 사진', asIs: '채널별 해상도 편차', toBe: '모든 채널 동일 원형 로고 1080x1080 사용' },
{ area: '바이오 메시지', asIs: '영문 위주', toBe: '"26년 강남 대표 성형외과 — 바노바기" 한/영 통일' },
{ area: '해시태그', asIs: '비체계적', toBe: '#바노바기성형외과 #Banobagi #강남성형외과 #안면윤곽전문' },
],
platformStrategies: [
{
platform: 'YouTube',
icon: 'youtube',
currentMetric: '13K subscribers · 925 videos',
targetMetric: '30K / 12개월',
strategies: [
{ strategy: 'Shorts 대량 재편집', detail: '925개 기존 영상에서 Shorts 200개 추출' },
{ strategy: '업로드 빈도 복구', detail: '주 2회 고정 (Shorts 1 + 롱폼 격주)' },
{ strategy: '썸네일 시스템화', detail: '블랙+골드 워드마크 워터마크 통일' },
{ strategy: '한글 타이틀 A/B 테스트', detail: '영문 설명 → 한글 + 영문 병기' },
],
},
{
platform: 'Instagram',
icon: 'instagram',
currentMetric: '4,183 followers',
targetMetric: '60K / 12개월',
strategies: [
{ strategy: 'Reels 주 5개', detail: 'YouTube Shorts 와 동시 배포' },
{ strategy: '리뷰 스토리화', detail: '강남언니 6,853 리뷰 중 선별 → 카루셀 콘텐츠' },
{ strategy: 'Before/After 체계화', detail: '시술별 카테고리 하이라이트 재구성' },
],
},
{
platform: '네이버 블로그',
icon: 'globe',
currentMetric: '마지막 포스트 2023-04-21',
targetMetric: '주 2회 게시',
strategies: [
{ strategy: '즉시 재가동', detail: '6월 내 주 2회 정기 포스팅 시작' },
{ strategy: 'YouTube 영상 블로그 임베드', detail: '시술별 영상 + 텍스트 가이드 구조' },
{ strategy: 'SEO 키워드 맵', detail: '"바노바기 후기/안면윤곽/V라인" 검색 상위 전략' },
],
},
],
websiteImprovements: [
{ area: 'SNS 링크', asIs: 'Footer 만 존재', toBe: 'Header 에도 주요 SNS 아이콘 추가' },
{ area: 'YouTube 임베드', asIs: '없음', toBe: '시술 페이지별 관련 영상 임베드' },
{ area: '블로그 허브', asIs: '웹사이트 ↔ 네이버블로그 연결 약함', toBe: '홈페이지에 블로그 최신 글 피드 배치' },
],
newChannelProposals: [
{ channel: 'TikTok', priority: 'P1', rationale: '20~30대 첫 수술 고민층 도달, YouTube Shorts 동시 배포' },
{ channel: '네이버 블로그 재가동', priority: 'P0', rationale: '2년 이상 방치 자산 — SEO 복구 최우선' },
],
},
roadmap: [
{
month: 1,
title: 'Foundation',
subtitle: '기반 복구',
tasks: [
{ task: '브랜드 로고/컬러 가이드 명문화 (블랙+골드)', completed: false },
{ task: '전 채널 프로필/배너 고해상도 재발급', completed: false },
{ task: '네이버 블로그 재가동 — 6월 내 주 2회 시작', completed: false },
{ task: '925개 YouTube 영상 → Shorts 추출 작업 착수', completed: false },
{ task: '강남언니 리뷰 6,853개 중 50개 선별 → SNS 콘텐츠화', completed: false },
],
},
{
month: 2,
title: 'Content Engine',
subtitle: '콘텐츠 엔진 가동',
tasks: [
{ task: 'YouTube Shorts 주 2회 업로드 시작', completed: false },
{ task: 'Instagram Reels 주 5회 업로드 시작', completed: false },
{ task: '네이버 블로그 시술 가이드 10편 게시', completed: false },
{ task: 'TikTok 계정 개설 + Shorts 동시 배포', completed: false },
],
},
{
month: 3,
title: 'Optimization',
subtitle: '최적화 & 광고',
tasks: [
{ task: '콘텐츠 성과 분석 리포트 v1', completed: false },
{ task: '고성과 콘텐츠 기반 Instagram/Facebook 광고 세팅', completed: false },
{ task: '네이버 플레이스 리뷰 응답률 최적화', completed: false },
{ task: 'KPI 리뷰: 구독자/팔로워 성장률, 상담 전환 추적', completed: false },
],
},
],
kpiDashboard: [
{ metric: 'YouTube 구독자', current: '13K', target3Month: '16K', target12Month: '30K' },
{ metric: 'YouTube Shorts 업로드', current: '비정기', target3Month: '주 2회', target12Month: '주 3회' },
{ metric: 'Instagram 팔로워', current: '4,183', target3Month: '38K', target12Month: '60K' },
{ metric: 'Instagram Reels 평균 조회수', current: '낮음', target3Month: '5,000', target12Month: '20,000' },
{ metric: '네이버 블로그 포스팅 빈도', current: '방치 (2023-04)', target3Month: '주 2회', target12Month: '주 3회' },
{ metric: '강남언니 리뷰', current: '6,853', target3Month: '7,200', target12Month: '8,500' },
{ metric: '강남언니 리뷰 응답률', current: '미측정', target3Month: '50%', target12Month: '80%' },
{ metric: '콘텐츠 → 상담 전환', current: '측정 불가', target3Month: 'UTM 추적 시작', target12Month: '월 30건' },
],
screenshots: [
{
id: 'yt-channel',
url: '/assets/clients/banobagi/screenshots/yt-channel.png',
channel: 'YouTube',
capturedAt: '2026-04-14T10:00:00Z',
caption: 'YouTube @banobagips — 구독자 13K, 영상 925개 누적',
sourceUrl: 'https://www.youtube.com/c/banobagips',
},
{
id: 'ig-profile',
url: '/assets/clients/banobagi/screenshots/ig-profile.png',
channel: 'Instagram',
capturedAt: '2026-04-14T10:02:00Z',
caption: 'Instagram @banobagi_ps — 공식 계정 (실측 수집 진행 중)',
sourceUrl: 'https://www.instagram.com/banobagi_ps/',
},
{
id: 'fb-page',
url: '/assets/clients/banobagi/screenshots/fb-page.png',
channel: 'Facebook',
capturedAt: '2026-04-14T10:03:00Z',
caption: 'Facebook @BanobagiPlasticSurgery — 국제 공식 페이지 (실측 수집 진행 중)',
sourceUrl: 'https://www.facebook.com/BanobagiPlasticSurgery',
},
{
id: 'gangnamunni',
url: '/assets/clients/banobagi/screenshots/gangnamunni.png',
channel: '강남언니',
capturedAt: '2026-04-14T10:04:00Z',
caption: '강남언니 — 9.2점/10, 6,853 리뷰, 의료진 4명, 2000년 설립',
sourceUrl: 'https://www.gangnamunni.com/hospitals/23',
},
{
id: 'website-homepage',
url: '/assets/clients/banobagi/screenshots/website-homepage.png',
channel: 'Website',
capturedAt: '2026-04-14T10:05:00Z',
caption: 'banobagi.com — 공식 홈페이지',
sourceUrl: 'https://www.banobagi.com',
},
{
id: 'naver-blog',
url: '/assets/clients/banobagi/screenshots/naver-blog.png',
channel: '네이버 블로그',
capturedAt: '2026-04-14T10:06:00Z',
caption: '네이버 블로그 @banobagips — 마지막 포스트 2023-04-21 (2년 이상 방치)',
sourceUrl: 'https://blog.naver.com/banobagips',
},
],
};
@@ -0,0 +1,339 @@
import type { MarketingReport } from '@/features/report/types/report';
import { mockReport } from './mockReport';
/**
* 그랜드성형외과 — 데모 리포트
*
* 실측 (2026-04-14):
* - YouTube @grandsurgery_QnA: 구독자 2.37K, 영상 332개, 업로드 ~0/week
* - 주력: 안면거상·리프팅·코성형 Q&A 콘텐츠, 이세환 원장
* - 강남구 압구정 위치 (압구정로)
* - Instagram @grand_korea · Facebook @grandps.korea · Blog grandprs
* - 강남언니 평점/리뷰 수 실측 예정
*/
export const mockReportGrand: MarketingReport = {
...mockReport,
id: 'grand',
createdAt: '2026-04-14',
targetUrl: 'https://www.grandsurgery.com',
overallScore: 42,
clinicSnapshot: {
...mockReport.clinicSnapshot,
name: '그랜드성형외과',
nameEn: 'Grand Plastic Surgery',
established: '2005',
yearsInBusiness: 21,
staffCount: 3,
leadDoctor: {
name: '이세환',
credentials: '그랜드성형외과 대표원장 · 안면거상 전문',
rating: 9.8,
reviewCount: 1533,
},
overallRating: 9.8,
totalReviews: 1533,
priceRange: { min: '200,000', max: '15,000,000+', currency: '₩' },
certifications: [
'성형외과 전문의',
'안면거상·리프팅 전문센터',
'분야별 집중 수술',
],
mediaAppearances: ['강남언니 1,533 리뷰', '유튜브 Q&A 전문 채널'],
medicalTourism: ['외국인 상담 지원'],
location: '서울 강남구 압구정로 (압구정역)',
nearestStation: '3호선 압구정역',
phone: '02-547-5100',
domain: 'grandps.com',
source: 'registry' as const,
registryData: {
district: '강남',
branches: '본점 1개',
brandGroup: '안면거상·리프팅 전문',
gangnamUnniUrl: 'https://www.gangnamunni.com/hospitals/62',
googleMapsUrl: 'https://maps.google.com/?q=그랜드성형외과',
},
logoImages: {
circle: '/assets/clients/grand/logo-circle.png',
horizontal: '/assets/clients/grand/logo-horizontal.png',
korean: '/assets/clients/grand/logo-korean.png',
},
brandColors: {
primary: '#1B3A6B',
accent: '#4A90D9',
text: '#1B3A6B',
},
},
channelScores: [
{ channel: 'YouTube', icon: 'youtube', score: 28, maxScore: 100, status: 'critical', headline: '구독자 2.37K — 332개 영상 대비 전환율 매우 저조, 업로드 사실상 중단' },
{ channel: 'Instagram', icon: 'instagram', score: 40, maxScore: 100, status: 'critical', headline: '@grand_korea — 4,013 팔로워, Reels 활용 미흡' },
{ channel: 'Facebook', icon: 'facebook', score: 30, maxScore: 100, status: 'critical', headline: '@grandps.korea — 26,000 팔로워, 활성도 낮음' },
{ channel: '강남언니', icon: 'star', score: 72, maxScore: 100, status: 'warning', headline: '9.8점/10, 1,533 리뷰 — 응답 전략 부재' },
{ channel: 'Website', icon: 'globe', score: 55, maxScore: 100, status: 'warning', headline: 'grandps.com 운영 중 — SNS 연동·트래킹 고도화 필요' },
{ channel: '네이버 블로그', icon: 'globe', score: 35, maxScore: 100, status: 'critical', headline: 'blog.naver.com/grandprs — 최근 업로드 저조' },
],
youtubeAudit: {
...mockReport.youtubeAudit,
channelName: '그랜드성형외과Q&A',
handle: '@grandsurgery_QnA',
subscribers: 2370,
totalVideos: 332,
totalViews: 850000,
weeklyViewGrowth: { absolute: 400, percentage: 0.1 },
estimatedMonthlyRevenue: { min: 5, max: 25 },
avgVideoLength: '3.6분',
uploadFrequency: '~0/week (사실상 중단)',
channelCreatedDate: '2017-03-01',
subscriberRank: '',
channelDescription: '그랜드성형외과 Q&A 채널 — 안면거상·코성형·가슴성형 전문 의료 콘텐츠',
linkedUrls: [{ label: '그랜드성형외과', url: 'grandps.com' }],
playlists: ['그랜드 성형Q&A', '그랜드한 성형 정보', '성형 브이로그', '수술 후 주의사항'],
topVideos: [],
diagnosis: [
{ category: '구독자 전환율 극히 낮음', detail: '332개 영상 누적, 구독자 2.37K — 영상 1개당 평균 구독자 7명 수준', severity: 'critical', evidenceIds: ['yt-channel'] },
{ category: '업로드 사실상 중단', detail: '최근 업로드 빈도 주 0회 — YouTube 알고리즘 완전 이탈', severity: 'critical' },
{ category: 'Q&A 포맷 과다', detail: '짧은 Q&A 위주로 Shorts·Before/After 포맷 전환 필요', severity: 'warning' },
],
},
instagramAudit: {
accounts: [
{
handle: '@grand_korea',
language: 'KR',
label: '공식 계정',
posts: 800,
followers: 4013,
following: 200,
category: 'Health/beauty',
profileLink: 'grandps.com',
highlights: ['안면거상', '코성형', '가슴성형', '눈성형', '후기'],
reelsCount: 20,
contentFormat: '시술 설명 + Q&A 카드뉴스',
profilePhoto: '그랜드성형외과 공식 로고',
bio: '그랜드성형외과 공식 계정 · 압구정 · grandps.com',
},
],
diagnosis: [
{ category: 'Reels 비중 낮음', detail: '카드뉴스·이미지 위주 — Reels 알고리즘 혜택 미활용', severity: 'critical' },
{ category: 'YouTube 자산 미활용', detail: '332개 영상이 Instagram Reels로 재편집되지 않음', severity: 'critical' },
],
},
facebookAudit: {
pages: [
{
url: 'facebook.com/grandps.korea',
pageName: 'Grand Plastic Surgery',
language: 'KR',
label: '공식',
followers: 26000,
following: 0,
category: '성형외과',
bio: '그랜드성형외과 공식 Facebook',
logo: '공식 로고',
logoDescription: '그랜드성형외과 공식 로고',
link: 'grandps.com',
linkedDomain: 'grandps.com',
reviews: 0,
recentPostAge: '추정 수주 이내',
hasWhatsApp: false,
postFrequency: '월 2~4회',
topContentType: '시술 정보 + 이벤트',
engagement: '게시물당 좋아요 5~30개 (추정)',
},
],
diagnosis: [
{ category: 'Facebook 콘텐츠 빈도 저하', detail: '팔로워 26,000명 — 유의미한 규모이나 콘텐츠 업로드 빈도 낮음', severity: 'warning' },
],
brandInconsistencies: [],
consolidationRecommendation: 'Facebook을 유지하되 YouTube·Instagram 우선 집중 권장.',
},
otherChannels: [
{ name: '네이버 블로그', status: 'unknown', details: '공식 블로그 운영 중 — 최근 업로드 저조', url: 'https://blog.naver.com/grandprs' },
{ name: '강남언니', status: 'active', details: '9.8점/10, 1,533 리뷰 · 안면거상 전문병원', url: 'https://www.gangnamunni.com/hospitals/62' },
{ name: '네이버 플레이스', status: 'active', details: '플레이스 운영 중', url: 'https://map.naver.com/v5/search/그랜드성형외과' },
{ name: 'TikTok', status: 'not_found', details: '계정 없음 또는 비활성' },
],
websiteAudit: {
primaryDomain: 'grandps.com',
additionalDomains: [],
snsLinksOnSite: true,
snsLinksDetail: [
{ platform: 'YouTube', url: 'https://www.youtube.com/channel/UCU2o_aHqsNFuqwtdzVM3xbQ', location: 'Footer' },
{ platform: 'Instagram', url: 'https://www.instagram.com/grand_korea', location: 'Footer' },
{ platform: 'Facebook', url: 'https://www.facebook.com/grandps.korea', location: 'Footer' },
{ platform: 'Naver Blog', url: 'https://blog.naver.com/grandprs', location: 'Footer' },
],
trackingPixels: [
{ name: 'Google Analytics', installed: true, details: 'GA4 추정' },
{ name: 'Naver Site Verification', installed: true },
],
mainCTA: '전화 상담 + 온라인 예약',
},
problemDiagnosis: [
{
category: 'YouTube 332개 영상 자산 완전 방치',
detail: '6년간 누적된 332개 Q&A 영상이 구독자 2.37K에 그침. 업로드 중단 상태로 알고리즘 완전 이탈. Shorts 재편집 시 즉시 노출 회복 가능성.',
severity: 'critical',
},
{
category: '전 채널 콘텐츠 빈도 급감',
detail: 'YouTube·Instagram·Blog 모두 업로드 빈도가 현저히 줄어 신규 환자 유입 경로가 거의 없는 상태.',
severity: 'critical',
},
{
category: '안면거상 전문성이 SNS에 미반영',
detail: '이세환 원장의 안면거상 전문성은 오프라인에서 입증됐으나 SNS/YouTube에서 전문가 포지셔닝 콘텐츠가 부족.',
severity: 'critical',
},
],
transformation: {
...mockReport.transformation,
brandIdentity: [
{ area: '로고', asIs: '공식 로고 존재', toBe: '가로형/원형 고해상도 버전 표준화' },
{ area: '컬러', asIs: '블루 계열', toBe: 'Primary: Navy Blue (#1B3A6B) + Accent: Sky Blue (#4A90D9) 명문화' },
{ area: '전문성 포지셔닝', asIs: '일반 성형외과', toBe: '"압구정 안면거상·리프팅 전문" 명확화' },
],
platformStrategies: [
{
platform: 'YouTube',
icon: 'youtube',
currentMetric: '2.37K subscribers · 332 videos',
targetMetric: '10K / 12개월',
strategies: [
{ strategy: 'Shorts 재편집 즉시 시작', detail: '332개 영상에서 Shorts 100개 추출 · 안면거상 특화' },
{ strategy: '주 2회 업로드 재개', detail: 'Q&A Shorts + 롱폼 안면거상 케이스 교차' },
{ strategy: '이세환 원장 전문가 시리즈', detail: '"압구정 안면거상 전문의가 말하는" 브랜디드 시리즈' },
],
},
{
platform: 'Instagram',
icon: 'instagram',
currentMetric: '4,013 followers',
targetMetric: '25K / 12개월',
strategies: [
{ strategy: 'Before/After Reels 주 4회', detail: 'YouTube Shorts와 동시 배포' },
{ strategy: '강남언니 리뷰 스토리화', detail: '1,533 리뷰 중 선별 → 카루셀' },
],
},
{
platform: '네이버 블로그',
icon: 'globe',
currentMetric: '업로드 저조',
targetMetric: '주 2회 게시',
strategies: [
{ strategy: '안면거상 SEO 전략', detail: '"압구정 안면거상", "딥플레인 거상" 키워드 집중' },
{ strategy: 'YouTube 임베드 블로그', detail: '영상 + 텍스트 설명 구조' },
],
},
],
websiteImprovements: [
{ area: 'YouTube 임베드', asIs: '없음', toBe: '시술 페이지별 관련 Q&A 영상 임베드' },
{ area: 'SNS 링크', asIs: 'Footer만', toBe: 'Header에 YouTube 아이콘 추가' },
],
newChannelProposals: [
{ channel: 'TikTok', priority: 'P1', rationale: '30~40대 안면거상 고민층, YouTube Shorts 동시 배포' },
],
},
roadmap: [
{
month: 1,
title: 'Foundation',
subtitle: '채널 재가동',
tasks: [
{ task: 'YouTube Shorts 재편집 착수 (332개 → Shorts 50개)', completed: false },
{ task: '이세환 원장 전문가 시리즈 기획', completed: false },
{ task: 'Instagram Reels 주 3회 업로드 시작', completed: false },
{ task: '네이버 블로그 주 2회 재가동', completed: false },
],
},
{
month: 2,
title: 'Content Engine',
subtitle: '콘텐츠 엔진',
tasks: [
{ task: 'YouTube Shorts 주 3회 업로드', completed: false },
{ task: '안면거상 Before/After 시리즈 10편', completed: false },
{ task: '강남언니 리뷰 응답률 50% 달성', completed: false },
],
},
{
month: 3,
title: 'Optimization',
subtitle: '최적화',
tasks: [
{ task: '성과 리포트 v1 — 구독자·팔로워 성장률 측정', completed: false },
{ task: 'Instagram·Facebook 유료 광고 세팅', completed: false },
{ task: 'KPI 리뷰 및 전략 조정', completed: false },
],
},
],
kpiDashboard: [
{ metric: 'YouTube 구독자', current: '2.37K', target3Month: '4K', target12Month: '10K' },
{ metric: 'YouTube Shorts 업로드', current: '사실상 0/week', target3Month: '주 3회', target12Month: '주 4회' },
{ metric: 'Instagram 팔로워', current: '4,013', target3Month: '8K', target12Month: '20K' },
{ metric: '네이버 블로그 포스팅', current: '저조', target3Month: '주 2회', target12Month: '주 3회' },
{ metric: '강남언니 리뷰', current: '1,533', target3Month: '1,700', target12Month: '2,500' },
{ metric: '강남언니 리뷰 응답률', current: '미측정', target3Month: '50%', target12Month: '80%' },
],
screenshots: [
{
id: 'yt-channel',
url: '/assets/clients/grand/screenshots/yt-channel.png',
channel: 'YouTube',
capturedAt: '2026-04-14T10:00:00Z',
caption: '그랜드성형외과Q&A @grandsurgery_QnA — 구독자 2.37K, 영상 332개, 업로드 ~0/week',
sourceUrl: 'https://www.youtube.com/channel/UCU2o_aHqsNFuqwtdzVM3xbQ',
},
{
id: 'ig-profile',
url: '/assets/clients/grand/screenshots/ig-profile.png',
channel: 'Instagram',
capturedAt: '2026-04-14T10:02:00Z',
caption: 'Instagram @grand_korea — 4,013 팔로워',
sourceUrl: 'https://www.instagram.com/grand_korea/',
},
{
id: 'fb-page',
url: '/assets/clients/grand/screenshots/fb-page.png',
channel: 'Facebook',
capturedAt: '2026-04-14T10:03:00Z',
caption: 'Facebook @grandps.korea — 26,000 팔로워',
sourceUrl: 'https://www.facebook.com/grandps.korea',
},
{
id: 'gangnamunni',
url: '/assets/clients/grand/screenshots/gangnamunni.png',
channel: '강남언니',
capturedAt: '2026-04-14T10:04:00Z',
caption: '강남언니 — 그랜드성형외과 9.8점, 1,533 리뷰',
sourceUrl: 'https://www.gangnamunni.com/hospitals/62',
},
{
id: 'website-homepage',
url: '/assets/clients/grand/screenshots/website-homepage.png',
channel: 'Website',
capturedAt: '2026-04-14T10:05:00Z',
caption: 'grandps.com — 공식 홈페이지',
sourceUrl: 'https://www.grandps.com',
},
{
id: 'naver-blog',
url: '/assets/clients/grand/screenshots/naver-blog.png',
channel: '네이버 블로그',
capturedAt: '2026-04-14T10:06:00Z',
caption: '네이버 블로그 @grandprs — 최근 업로드 저조',
sourceUrl: 'https://blog.naver.com/grandprs',
},
],
};
+347
View File
@@ -0,0 +1,347 @@
import type { MarketingReport } from '@/features/report/types/report';
import { mockReport } from './mockReport';
/**
* 이룸성형외과 (서울아이) — 데모 리포트
*
* 실측 (2026-04-14):
* - YouTube @SEOULiPS. (서울아이 Seoul i Plastic Surgery): 구독자 322명, 영상 155개
* - Instagram: @seoulips (KR) · @seouli_ps_th (태국) · @seouli_jp (일본)
* - Facebook: 서울아이성형외과 페이지
* - Blog: blog.naver.com/seoulips · 카페: cafe.naver.com/seoulips
* - 홈페이지: seoulips.com (seoulipsmedical.com도 운영)
* - 특징: 코성형·눈밑지방·실리프팅 전문, KR/TH/JP 3개국 다국어 계정
*/
export const mockReportIrum: MarketingReport = {
...mockReport,
id: 'irum',
createdAt: '2026-04-14',
targetUrl: 'https://www.seoulips.com',
overallScore: 35,
clinicSnapshot: {
...mockReport.clinicSnapshot,
name: '이룸성형외과 (서울아이)',
nameEn: 'Seoul i Plastic Surgery',
established: '2015',
yearsInBusiness: 11,
staffCount: 3,
leadDoctor: {
name: '서울아이 의료진',
credentials: '서울아이성형외과 · 코성형·눈밑지방·리프팅 전문',
rating: 9.4,
reviewCount: 86,
},
overallRating: 9.4,
totalReviews: 86,
priceRange: { min: '100,000', max: '8,000,000+', currency: '₩' },
certifications: [
'성형외과 전문의',
'코성형·눈밑지방 전문',
'한·태·일 다국어 상담',
'리팟레이저 도입',
],
mediaAppearances: ['강남언니 86 리뷰', '태국·일본 외국인 환자 특화'],
medicalTourism: ['태국어·일본어 Instagram 계정 운영', '외국인 전용 코디네이터'],
location: '서울 강남구 (강남역 인근)',
nearestStation: '2호선 강남역',
phone: '02-555-0900',
domain: 'seoulips.com',
source: 'registry' as const,
registryData: {
district: '강남',
branches: '본점 1개',
brandGroup: '코성형·외국인 환자 특화',
gangnamUnniUrl: 'https://www.gangnamunni.com/hospitals/839',
googleMapsUrl: 'https://maps.google.com/?q=서울아이성형외과',
},
logoImages: {
circle: '/assets/clients/irum/logo-circle.png',
horizontal: '/assets/clients/irum/logo-horizontal.png',
korean: '/assets/clients/irum/logo-korean.png',
},
brandColors: {
primary: '#0D4F3C',
accent: '#2ECC71',
text: '#0D4F3C',
},
},
channelScores: [
{ channel: 'YouTube', icon: 'youtube', score: 18, maxScore: 100, status: 'critical', headline: '@SEOULiPS. — 구독자 322명 · 155개 영상 · 성장 정체' },
{ channel: 'Instagram', icon: 'instagram', score: 52, maxScore: 100, status: 'warning', headline: '3개국 계정 운영 (KR/TH/JP) — 강점, 채널간 연계 전략 부재' },
{ channel: 'Facebook', icon: 'facebook', score: 10, maxScore: 100, status: 'critical', headline: '서울아이성형외과 페이지 — 비공개/삭제 상태 확인됨' },
{ channel: '강남언니', icon: 'star', score: 65, maxScore: 100, status: 'warning', headline: '9.4점/10, 86 리뷰 — 리뷰 응답·마케팅 활용 미흡' },
{ channel: 'Website', icon: 'globe', score: 45, maxScore: 100, status: 'warning', headline: 'seoulips.com 운영 — 다국어 랜딩 최적화 필요' },
{ channel: '네이버 블로그', icon: 'globe', score: 38, maxScore: 100, status: 'critical', headline: 'blog.naver.com/seoulips — 업로드 저조' },
],
youtubeAudit: {
...mockReport.youtubeAudit,
channelName: '서울아이 Seoul i Plastic Surgery',
handle: '@SEOULiPS.',
subscribers: 322,
totalVideos: 155,
totalViews: 180000,
weeklyViewGrowth: { absolute: 200, percentage: 0.1 },
estimatedMonthlyRevenue: { min: 0, max: 10 },
avgVideoLength: '4.5분',
uploadFrequency: '비정기 (월 1~2회)',
channelCreatedDate: '2019-06-01',
subscriberRank: '',
channelDescription: '안전하고 바른 성형을 위해 서울아이는 항상 노력합니다. — 코성형·눈밑지방·실리프팅',
linkedUrls: [{ label: '서울아이성형외과', url: 'seoulipsmedical.com' }],
playlists: ['Before & After', '리얼모델', '1분 지식', '전문의가 알려주는 성형'],
topVideos: [],
diagnosis: [
{ category: 'YouTube 성장 사실상 정체', detail: '155개 영상, 구독자 322명 — 영상당 평균 구독자 2명 미만. YouTube 전략 전면 재설계 필요', severity: 'critical', evidenceIds: ['yt-channel'] },
{ category: '다국어 YouTube 콘텐츠 부재', detail: '태국·일본 Instagram 계정 운영 중이나 YouTube에는 다국어 자막/콘텐츠 없음', severity: 'critical' },
{ category: '전문의 Q&A 콘텐츠 발굴 필요', detail: '코성형·눈밑지방 전문성을 YouTube에서 전달하는 교육 콘텐츠 부재', severity: 'warning' },
],
},
instagramAudit: {
accounts: [
{
handle: '@seoulips',
language: 'KR',
label: 'KR 공식',
posts: 600,
followers: 826,
following: 200,
category: 'Health/beauty',
profileLink: 'seoulips.com',
highlights: ['코성형', '눈밑지방', '리프팅', '후기', '이벤트'],
reelsCount: 30,
contentFormat: 'Before/After + 시술 설명',
profilePhoto: '서울아이 공식 로고',
bio: '서울아이성형외과 KR 공식',
},
{
handle: '@seouli_ps_th',
language: 'EN',
label: '태국',
posts: 200,
followers: 5000,
following: 100,
category: 'Health/beauty',
profileLink: 'seoulips.com',
highlights: [],
reelsCount: 15,
contentFormat: '태국어 시술 정보',
profilePhoto: '서울아이 로고',
bio: '서울아이성형외과 태국 채널',
},
],
diagnosis: [
{ category: 'Instagram 다국어 강점 미최적화', detail: 'KR/TH/JP 3개 계정 운영은 강점이나 채널 간 콘텐츠 공유 체계 없음', severity: 'warning' },
{ category: 'Reels 부족', detail: '국제 계정에서 Reels 활용이 낮아 알고리즘 노출 손실', severity: 'critical' },
],
},
facebookAudit: {
pages: [
{
url: 'facebook.com/서울아이성형외과-105199207892670',
pageName: '서울아이성형외과',
language: 'KR',
label: '공식',
followers: 0,
following: 0,
category: '성형외과',
bio: '서울아이성형외과 Facebook (비공개/삭제 상태)',
logo: '공식 로고',
logoDescription: '서울아이성형외과 로고',
link: 'seoulips.com',
linkedDomain: 'seoulips.com',
reviews: 0,
recentPostAge: '추정 수주 이내',
hasWhatsApp: false,
postFrequency: '월 1~3회',
topContentType: '시술 정보',
engagement: '게시물당 좋아요 5~20개 (추정)',
},
],
diagnosis: [
{ category: 'Facebook 채널 비공개/삭제', detail: '공식 페이지 접근 불가 확인 — 외국인 환자 FB 채널 신규 개설 필요', severity: 'critical' },
],
brandInconsistencies: [],
consolidationRecommendation: 'Facebook 공식 페이지 비공개/삭제 확인 — 외국인 환자 광고 채널로 신규 페이지 개설 후 태국·일본어 타겟 광고 세팅 필요.',
},
otherChannels: [
{ name: '네이버 블로그', status: 'unknown', details: '공식 블로그 운영 중 — 업로드 저조', url: 'https://blog.naver.com/seoulips' },
{ name: '네이버 카페', status: 'active', details: '서울아이 카페 운영 중', url: 'https://cafe.naver.com/seoulips' },
{ name: '강남언니', status: 'active', details: '9.4점/10, 86 리뷰', url: 'https://www.gangnamunni.com/hospitals/839' },
{ name: '네이버 플레이스', status: 'active', details: '플레이스 운영 중', url: 'https://map.naver.com/v5/search/서울아이성형외과' },
],
websiteAudit: {
primaryDomain: 'seoulips.com',
additionalDomains: [{ domain: 'seoulipsmedical.com', purpose: '영문 홈페이지' }],
snsLinksOnSite: true,
snsLinksDetail: [
{ platform: 'YouTube', url: 'https://www.youtube.com/channel/UCYcssdFunRLmD8b376Y6ykg', location: 'Footer' },
{ platform: 'Instagram', url: 'https://www.instagram.com/seoulips/', location: 'Footer' },
{ platform: 'Facebook', url: 'https://www.facebook.com/서울아이성형외과-105199207892670/', location: 'Footer' },
{ platform: 'Naver Blog', url: 'https://blog.naver.com/seoulips', location: 'Footer' },
],
trackingPixels: [
{ name: 'Google Analytics', installed: true, details: 'GA4 추정' },
],
mainCTA: '전화 상담 + 카카오톡',
},
problemDiagnosis: [
{
category: 'YouTube 성장 완전 정체 — 즉각적 전략 재설계 필요',
detail: '155개 영상 누적, 구독자 322명. 태국·일본 인스타그램 계정을 운영하는 글로벌 강점이 YouTube에 전혀 반영 안 됨. 다국어 자막 추가만으로도 즉시 도달 확장 가능.',
severity: 'critical',
},
{
category: '다국어 SNS 강점의 크로스채널 미연계',
detail: 'KR·TH·JP 3개 Instagram 계정이라는 희귀한 강점이 있으나 YouTube·Blog·강남언니와 연동 없음. 채널 간 시너지 0% 상태.',
severity: 'critical',
},
{
category: '외국인 환자 디지털 전환 경로 부재',
detail: '태국·일본 계정 팔로워가 있으나 예약·상담으로 이어지는 랜딩 경로가 다국어로 준비되지 않음. 유입 대비 전환 극히 낮을 것으로 추정.',
severity: 'critical',
},
],
transformation: {
...mockReport.transformation,
brandIdentity: [
{ area: '브랜드 아이덴티티', asIs: '서울아이 / 이룸 혼용', toBe: '"Seoul i Plastic Surgery" 영문 브랜드 통일 + 다국어 로고 버전 제작' },
{ area: '컬러', asIs: '미확인', toBe: 'Primary: Forest Green (#0D4F3C) + Accent: Mint (#2ECC71) 명문화' },
{ area: '글로벌 포지셔닝', asIs: '국내 위주', toBe: '"서울 강남 K-Beauty 전문 — 태국·일본 환자 환영"' },
],
platformStrategies: [
{
platform: 'YouTube',
icon: 'youtube',
currentMetric: '322 subscribers · 155 videos',
targetMetric: '3K / 12개월',
strategies: [
{ strategy: '다국어 자막 추가', detail: '기존 155개 영상에 EN/TH/JP 자막 추가 → 즉시 글로벌 노출' },
{ strategy: '주 2회 업로드 정착', detail: '코성형·눈밑지방 전문의 Q&A + 외국인 환자 브이로그' },
{ strategy: 'Shorts 전환', detail: '기존 영상에서 Shorts 50개 추출' },
],
},
{
platform: 'Instagram',
icon: 'instagram',
currentMetric: 'KR @seoulips 826명 (실측) · TH/JP 계정 운영 중',
targetMetric: '@seoulips KR 30K / 12개월',
strategies: [
{ strategy: '계정 간 콘텐츠 연계 자동화', detail: 'KR → TH/JP 번역 배포 파이프라인 구축' },
{ strategy: 'Reels 주 5회 (전 계정)', detail: 'YouTube Shorts 동시 다국어 배포' },
{ strategy: '86 리뷰 콘텐츠화', detail: '강남언니 리뷰 → Instagram Story' },
],
},
],
websiteImprovements: [
{ area: '다국어 랜딩페이지', asIs: '한국어 위주', toBe: 'TH·JP 전용 랜딩페이지 제작' },
{ area: 'YouTube 임베드', asIs: '없음', toBe: '시술 페이지별 다국어 자막 영상 임베드' },
],
newChannelProposals: [
{ channel: 'LINE (일본)', priority: 'P0', rationale: '일본 환자 전환 채널 — 현재 일본 인스타는 있으나 직접 상담 경로 없음' },
{ channel: 'TikTok', priority: 'P1', rationale: '태국/동남아 10~20대 도달, Shorts 동시 배포' },
],
},
roadmap: [
{
month: 1,
title: 'Foundation',
subtitle: '다국어 기반',
tasks: [
{ task: '브랜드 아이덴티티 통일 (Seoul i 영문 브랜드)', completed: false },
{ task: '기존 YouTube 영상 EN/TH 자막 추가 (우선 30개)', completed: false },
{ task: 'Instagram KR/TH/JP 크로스 배포 루틴 구축', completed: false },
{ task: '강남언니 86 리뷰 SNS 콘텐츠화', completed: false },
],
},
{
month: 2,
title: 'Content Engine',
subtitle: '글로벌 노출',
tasks: [
{ task: 'YouTube 주 2회 업로드 정착 (다국어 자막 포함)', completed: false },
{ task: 'TikTok 계정 개설 + Shorts 동시 배포', completed: false },
{ task: '태국·일본어 랜딩페이지 v1 제작', completed: false },
],
},
{
month: 3,
title: 'Optimization',
subtitle: '전환 추적',
tasks: [
{ task: '국가별 환자 유입·전환율 분석', completed: false },
{ task: 'Facebook 태국·일본 광고 캠페인 시작', completed: false },
{ task: 'KPI 리뷰', completed: false },
],
},
],
kpiDashboard: [
{ metric: 'YouTube 구독자', current: '322', target3Month: '800', target12Month: '3,000' },
{ metric: 'YouTube 업로드 빈도', current: '월 1~2회', target3Month: '주 2회', target12Month: '주 3회' },
{ metric: 'Instagram @seoulips 팔로워', current: '826', target3Month: '3K', target12Month: '10K' },
{ metric: 'Instagram 태국(@seouli_ps_th) 팔로워', current: '~5K', target3Month: '8K', target12Month: '15K' },
{ metric: '강남언니 리뷰', current: '86', target3Month: '1,000', target12Month: '1,500' },
{ metric: '외국인 환자 전환', current: '측정 불가', target3Month: '랜딩 UTM 시작', target12Month: '월 15건' },
],
screenshots: [
{
id: 'yt-channel',
url: '/assets/clients/irum/screenshots/yt-channel.png',
channel: 'YouTube',
capturedAt: '2026-04-14T10:00:00Z',
caption: '서울아이 Seoul i @SEOULiPS. — 구독자 322명, 영상 155개',
sourceUrl: 'https://www.youtube.com/channel/UCYcssdFunRLmD8b376Y6ykg',
},
{
id: 'ig-profile',
url: '/assets/clients/irum/screenshots/ig-profile.png',
channel: 'Instagram',
capturedAt: '2026-04-14T10:02:00Z',
caption: 'Instagram @seoulips — 826 팔로워 (KR 공식)',
sourceUrl: 'https://www.instagram.com/seoulips/',
},
{
id: 'fb-page',
url: '/assets/clients/irum/screenshots/fb-page.png',
channel: 'Facebook',
capturedAt: '2026-04-14T10:03:00Z',
caption: 'Facebook 서울아이성형외과 — 페이지 비공개/삭제 확인',
sourceUrl: 'https://www.facebook.com/서울아이성형외과-105199207892670/',
},
{
id: 'gangnamunni',
url: '/assets/clients/irum/screenshots/gangnamunni.png',
channel: '강남언니',
capturedAt: '2026-04-14T10:04:00Z',
caption: '강남언니 — 이룸(서울아이)성형외과 9.4점, 86 리뷰',
sourceUrl: 'https://www.gangnamunni.com/hospitals/839',
},
{
id: 'website-homepage',
url: '/assets/clients/irum/screenshots/website-homepage.png',
channel: 'Website',
capturedAt: '2026-04-14T10:05:00Z',
caption: 'seoulips.com — 공식 홈페이지',
sourceUrl: 'https://www.seoulips.com',
},
{
id: 'naver-blog',
url: '/assets/clients/irum/screenshots/naver-blog.png',
channel: '네이버 블로그',
capturedAt: '2026-04-14T10:06:00Z',
caption: '네이버 블로그 @seoulips — 업로드 저조',
sourceUrl: 'https://blog.naver.com/seoulips',
},
],
};
+392
View File
@@ -0,0 +1,392 @@
import type { MarketingReport } from '@/features/report/types/report';
import { mockReport } from './mockReport';
/**
* O2O Clinic — 가상 데모 리포트 (마케팅·광고 소재용)
*
* 실제 병원이 아닌 가상 클리닉. 의료광고법·개인정보 우려 없이
* 자유롭게 외부 노출 가능한 INFINITH 솔루션 데모 자산.
*
* 설정:
* - 이름: O2O Clinic (오투오 클리닉)
* - 원장: 오투오 (Dr. O2O)
* - 개원: 2017년 (9년차)
* - 시술: 눈·코·윤곽 전문
* - 컬러: Indigo Deep (#1E1B4B) + Cyan (#06B6D4)
*
* 6개 실제 병원 분석 패턴에서 흥미로운 요소를 발췌·재구성:
* - 균형 잡힌 채널 운영 점수 (78/100)
* - 다국어 Instagram 운영 (원진/이룸 패턴)
* - YouTube 콘텐츠 아카이브 (바노바기/티에스 패턴)
* - 강남언니 9.5점 + 2,547 리뷰
* - 명확한 강점 + 개선 기회 균형 — 솔루션 가치를 가장 잘 보여줄 사례
*/
export const mockReportO2O: MarketingReport = {
...mockReport,
id: 'o2o',
createdAt: '2026-04-14',
targetUrl: 'https://www.o2oclinic.com',
overallScore: 78,
clinicSnapshot: {
...mockReport.clinicSnapshot,
name: 'O2O Clinic',
nameEn: 'O2O Plastic Surgery Clinic',
established: '2017',
yearsInBusiness: 9,
staffCount: 8,
leadDoctor: {
name: '오투오',
credentials: 'O2O Clinic 대표원장 · 눈·코·윤곽 전문',
rating: 9.6,
reviewCount: 2547,
},
overallRating: 9.5,
totalReviews: 2547,
priceRange: { min: '300,000', max: '15,000,000+', currency: '₩' },
certifications: [
'성형외과 전문의',
'대한성형외과학회 정회원',
'안면윤곽·코성형 다년 임상',
'국제 환자 영문/중문 상담',
],
mediaAppearances: ['강남언니 9.5점 / 2,547 리뷰', '국제 환자 의료관광 인증'],
medicalTourism: ['영어·중국어·일본어 코디네이터 상주', '의료관광 인증 클리닉'],
location: '서울 강남구 (강남역 인근)',
nearestStation: '2호선 강남역',
phone: '02-2020-2020',
domain: 'o2oclinic.com',
source: 'registry' as const,
registryData: {
district: '강남',
branches: '본원 1개',
brandGroup: '눈·코·윤곽 전문 · 글로벌',
gangnamUnniUrl: 'https://www.gangnamunni.com/hospitals/o2o',
googleMapsUrl: 'https://maps.google.com/?q=O2O+Clinic',
},
logoImages: {
circle: '/assets/clients/o2o/logo-circle.png',
horizontal: '/assets/clients/o2o/logo-horizontal.png',
korean: '/assets/clients/o2o/logo-korean.png',
},
brandColors: {
primary: '#1E1B4B',
accent: '#06B6D4',
text: '#0F172A',
},
},
channelScores: [
{ channel: 'YouTube', icon: 'youtube', score: 76, maxScore: 100, status: 'good', headline: '@o2oclinic — 5,840 구독자 · 280 영상 · 주 2회 안정 업로드' },
{ channel: 'Instagram', icon: 'instagram', score: 82, maxScore: 100, status: 'good', headline: '@o2o_clinic — 8,210 팔로워 · Reels 활성 · 다국어 운영' },
{ channel: 'Facebook', icon: 'facebook', score: 65, maxScore: 100, status: 'warning', headline: '@O2OClinicGlobal — 3,025 팔로워 · 국제 환자 광고 채널' },
{ channel: '강남언니', icon: 'star', score: 90, maxScore: 100, status: 'good', headline: '9.5점 / 2,547 리뷰 — 응답률 88% · 강남 상위 10%' },
{ channel: 'Website', icon: 'globe', score: 78, maxScore: 100, status: 'good', headline: 'o2oclinic.com — 다국어 랜딩 · 픽셀 설치 완료' },
{ channel: '네이버 블로그', icon: 'globe', score: 72, maxScore: 100, status: 'good', headline: 'blog.naver.com/o2oclinic — 주 2회 SEO 포스팅' },
],
youtubeAudit: {
...mockReport.youtubeAudit,
channelName: 'O2O Clinic',
handle: '@o2oclinic',
subscribers: 5840,
totalVideos: 280,
totalViews: 1240000,
weeklyViewGrowth: { absolute: 4200, percentage: 3.4 },
estimatedMonthlyRevenue: { min: 50, max: 180 },
avgVideoLength: '6분',
uploadFrequency: '주 2회 (Long 1 + Shorts 1)',
channelCreatedDate: '2017-08-15',
subscriberRank: '강남 성형외과 채널 상위 25%',
channelDescription: 'O2O Clinic — 눈·코·윤곽 전문. 9년의 임상, 2,547개의 검증된 후기. 국제 환자 환영.',
linkedUrls: [
{ label: 'O2O Clinic 공식 홈페이지', url: 'o2oclinic.com' },
{ label: '강남언니 프로필', url: 'gangnamunni.com/hospitals/o2o' },
],
playlists: ['눈성형 가이드', '코성형 시리즈', '윤곽수술 케이스', '오투오 원장 Q&A', '국제 환자 브이로그', 'Shorts'],
topVideos: [
{ title: '오투오 원장이 알려주는 자연스러운 눈성형 5원칙', views: 84200, uploadedAgo: '3개월 전', type: 'Long', duration: '8:42' },
{ title: '코성형 붓기, 솔직히 얼마나 가나요? — 30일 타임라인', views: 67500, uploadedAgo: '1개월 전', type: 'Long', duration: '6:15' },
{ title: 'V라인 윤곽수술 회복 일기 — 환자 동의 케이스', views: 52300, uploadedAgo: '2주 전', type: 'Long', duration: '12:08' },
{ title: '쌍수 vs 눈매교정 차이 60초', views: 124000, uploadedAgo: '2개월 전', type: 'Short', duration: '0:60' },
{ title: '코끝 성형 전후 — Real Case', views: 98700, uploadedAgo: '3주 전', type: 'Short', duration: '0:45' },
],
diagnosis: [
{ category: '안정적 업로드 빈도 — 강점', detail: '주 2회 정기 업로드로 알고리즘 신호 양호. 9년간 누적 280개 영상 = 콘텐츠 자산 풍부', severity: 'good' },
{ category: 'Shorts 활용 우수', detail: 'Long-form 영상에서 Shorts 추출 비율 35% — 평균 (15%) 대비 2배 이상', severity: 'good' },
{ category: '다국어 자막 추가 권장', detail: '영문/중문 자막을 추가하면 글로벌 도달 즉시 1.8~2.5배 확대 예상', severity: 'warning' },
],
},
instagramAudit: {
accounts: [
{
handle: '@o2o_clinic',
language: 'KR',
label: 'KR 메인 공식',
posts: 1850,
followers: 8210,
following: 312,
category: 'Health/beauty',
profileLink: 'o2oclinic.com',
highlights: ['눈성형', '코성형', '윤곽수술', '리뷰', '글로벌'],
reelsCount: 142,
contentFormat: 'Reels (50%) + Carousel (30%) + Story (20%)',
profilePhoto: 'O2O 로고 (Indigo + Cyan)',
bio: 'O2O Clinic 공식 · 눈·코·윤곽 전문 · 강남역 · 영문/중문 상담 가능 · o2oclinic.com',
},
{
handle: '@o2o_clinic_global',
language: 'EN',
label: 'Global 공식',
posts: 480,
followers: 6320,
following: 215,
category: 'Health/beauty',
profileLink: 'o2oclinic.com',
highlights: ['Eye', 'Nose', 'Contouring', 'Reviews', 'Booking'],
reelsCount: 95,
contentFormat: 'English / Chinese / Japanese subtitled Reels',
profilePhoto: 'O2O Global 로고',
bio: 'O2O Clinic Global · Eye · Nose · Facial Contouring · Gangnam Seoul · DM for consultation',
},
],
diagnosis: [
{ category: 'Reels 활용도 우수', detail: '게시물 중 Reels 비율 50% — 알고리즘 친화적 콘텐츠 믹스', severity: 'good' },
{ category: '글로벌 계정 운영 — 차별화 강점', detail: '국내 + 영문 글로벌 계정 분리 운영으로 외국인 환자 직접 도달 가능', severity: 'good' },
{ category: '인플루언서 협업 미흡', detail: '뷰티 크리에이터 협업 콘텐츠 0편 — 신규 도달 확장 기회', severity: 'warning' },
],
},
facebookAudit: {
pages: [
{
url: 'facebook.com/O2OClinicGlobal',
pageName: 'O2O Clinic Global',
language: 'EN',
label: 'Global 공식',
followers: 3025,
following: 0,
category: 'Plastic Surgeon',
bio: 'O2O Clinic — Eye, Nose, Facial Contouring | Gangnam Seoul | Multilingual Consultation',
logo: 'O2O Global 로고',
logoDescription: 'Indigo + Cyan O2O 워드마크',
link: 'o2oclinic.com',
linkedDomain: 'o2oclinic.com',
reviews: 142,
recentPostAge: '5일 전',
hasWhatsApp: true,
postFrequency: '주 2~3회',
topContentType: 'Patient journey + Before/After (consent verified)',
engagement: '게시물당 평균 좋아요 80~150 / 댓글 10~25',
},
],
diagnosis: [
{ category: '국제 환자 광고 채널로 활성화 양호', detail: 'WhatsApp 연동 + 영문 콘텐츠 정기 업로드로 글로벌 환자 직접 상담 경로 확보', severity: 'good' },
{ category: '리타겟팅 광고 운영 부재', detail: 'Pixel은 설치되어 있으나 리타겟팅 캠페인 미운영 — 즉시 ROAS 기회', severity: 'warning' },
],
brandInconsistencies: [],
consolidationRecommendation: 'Facebook은 글로벌 채널로 명확히 포지셔닝되어 운영 중. 리타겟팅 캠페인 도입 시 ROAS 즉시 개선 가능.',
},
otherChannels: [
{ name: '네이버 블로그', status: 'active', details: '주 2회 SEO 포스팅 · 키워드 상위 노출 30+', url: 'https://blog.naver.com/o2oclinic' },
{ name: '네이버 카페', status: 'active', details: 'O2O Clinic 카페 운영 중 · 회원 1,200+', url: 'https://cafe.naver.com/o2oclinic' },
{ name: '강남언니', status: 'active', details: '9.5점 / 2,547 리뷰 · 응답률 88%', url: 'https://www.gangnamunni.com/hospitals/o2o' },
{ name: '네이버 플레이스', status: 'active', details: '플레이스 운영 · 사진 80+ · 별점 4.8', url: 'https://map.naver.com/v5/search/O2O+Clinic' },
{ name: '카카오톡', status: 'active', details: '카카오 채널 친구 4,200+ · 자동응답 운영', url: 'https://o2oclinic.com' },
{ name: 'TikTok', status: 'active', details: '@o2oclinic · 팔로워 3,400 · Shorts 크로스포스팅', url: 'https://www.tiktok.com/@o2oclinic' },
],
websiteAudit: {
primaryDomain: 'o2oclinic.com',
additionalDomains: [{ domain: 'o2oclinic.com/en', purpose: '영문 랜딩' }, { domain: 'o2oclinic.com/zh', purpose: '중문 랜딩' }],
snsLinksOnSite: true,
snsLinksDetail: [
{ platform: 'YouTube', url: 'https://www.youtube.com/@o2oclinic', location: 'Footer + Header' },
{ platform: 'Instagram', url: 'https://www.instagram.com/o2o_clinic', location: 'Footer + Header' },
{ platform: 'Instagram Global', url: 'https://www.instagram.com/o2o_clinic_global', location: 'Footer (EN page)' },
{ platform: 'Facebook', url: 'https://www.facebook.com/O2OClinicGlobal', location: 'Footer (EN page)' },
{ platform: 'Naver Blog', url: 'https://blog.naver.com/o2oclinic', location: 'Footer' },
{ platform: 'TikTok', url: 'https://www.tiktok.com/@o2oclinic', location: 'Footer' },
],
trackingPixels: [
{ name: 'Google Analytics 4', installed: true, details: 'GA4 + GTM 정상 운영' },
{ name: 'Meta Pixel', installed: true, details: 'Facebook/Instagram 광고 픽셀 설치 완료' },
{ name: 'Naver Analytics', installed: true, details: '네이버 검색광고 전환 추적' },
{ name: 'TikTok Pixel', installed: false, details: '미설치 — 도입 권장' },
],
mainCTA: '온라인 상담 예약 + 카카오톡 + WhatsApp (글로벌)',
},
problemDiagnosis: [
{
category: 'TikTok 픽셀 미설치 — 광고 ROAS 측정 불가',
detail: '@o2oclinic TikTok 계정에 트래픽이 발생하고 있으나 픽셀이 없어 광고 캠페인 ROAS 측정·최적화 불가. 즉시 설치 권장.',
severity: 'warning',
},
{
category: '인플루언서 협업 미운영 — 신규 도달 기회 손실',
detail: '뷰티/메디컬 크리에이터 협업 콘텐츠 0편. 6개월 내 5~8명 협업 시 신규 팔로워 30~50% 증가 예상.',
severity: 'warning',
},
{
category: '리타겟팅 광고 미운영 — Meta Pixel 설치되어 있으나 활용 부족',
detail: 'o2oclinic.com 방문자 누적 데이터가 있으나 Facebook/Instagram 리타겟팅 캠페인 미운영. ROAS 즉시 200~300% 개선 기회.',
severity: 'warning',
},
{
category: '글로벌 콘텐츠 — 강점 확장 여지',
detail: '영문 Instagram + Global Facebook 운영 중이나, YouTube 채널은 한국어 위주. 영문/중문 자막 추가 시 도달 1.8~2.5배 확대 예상.',
severity: 'warning',
},
],
transformation: {
...mockReport.transformation,
brandIdentity: [
{ area: '브랜드 포지셔닝', asIs: '눈·코·윤곽 전문', toBe: '"O2O Clinic — 9년의 임상, 2,547개의 진심"' },
{ area: '컬러 시스템', asIs: 'Indigo Deep + Cyan 명문화 완료', toBe: '전 채널 디자인 가이드 SOP 발급' },
{ area: '글로벌 메시지', asIs: '국문/영문 분리 운영', toBe: 'YouTube 다국어 자막 추가 → 한국어 콘텐츠로 글로벌 도달' },
],
platformStrategies: [
{
platform: 'YouTube',
icon: 'youtube',
currentMetric: '5,840 subscribers · 280 videos',
targetMetric: '20K / 12개월',
strategies: [
{ strategy: '다국어 자막 우선 50개', detail: '기존 영상에 EN/ZH/JP 자막 추가 → 글로벌 검색 도달 즉시 확대' },
{ strategy: '오투오 원장 Q&A 시리즈 정기화', detail: '월 2회 롱폼 + 월 4회 Shorts 추출 → 권위 콘텐츠' },
{ strategy: '인플루언서 컬래버 분기 1회', detail: '뷰티/메디컬 크리에이터 협업으로 신규 구독자 유입' },
],
},
{
platform: 'Instagram',
icon: 'instagram',
currentMetric: 'KR 8,210 + Global 6,320 · Reels 활성',
targetMetric: 'KR 25K + Global 18K / 12개월',
strategies: [
{ strategy: 'Reels 주 5회로 증가', detail: 'YouTube Shorts와 동시 다국어 배포 — 자산 재활용' },
{ strategy: '인플루언서 카루셀 시리즈', detail: '월 2회 협업 콘텐츠 — 신규 팔로워 유입' },
{ strategy: '강남언니 리뷰 → Story 자동 변환', detail: '2,547개 리뷰 자산을 Story 카드로 주 2회 발행' },
],
},
{
platform: 'Facebook',
icon: 'facebook',
currentMetric: 'Global 3,025 followers · WhatsApp 연동 완료',
targetMetric: 'Global 12K + 리타겟팅 ROAS 4x / 6개월',
strategies: [
{ strategy: '리타겟팅 광고 캠페인 즉시 시작', detail: 'o2oclinic.com 방문자 픽셀 데이터 활용 — 영문/중문 광고 소재 4종' },
{ strategy: 'WhatsApp 자동응답 시나리오 확대', detail: '눈/코/윤곽 시술별 FAQ 자동응답 — 글로벌 환자 1차 응대' },
],
},
],
websiteImprovements: [
{ area: '다국어 랜딩페이지', asIs: 'EN/ZH 운영 중', toBe: '일본어 랜딩 추가 + 채널별 UTM 추적 강화' },
{ area: 'TikTok Pixel', asIs: '미설치', toBe: 'TikTok Pixel 즉시 설치 → 광고 ROAS 측정 가능' },
],
newChannelProposals: [
{ channel: 'LINE (일본)', priority: 'P1', rationale: '일본 환자 직접 상담 경로 — Instagram JP 콘텐츠와 연동' },
{ channel: 'WeChat 공식 계정 (중국)', priority: 'P1', rationale: '중국 환자 의료관광 전환 채널 — 위챗 미니프로그램 검토' },
{ channel: '인플루언서 협업 시스템화', priority: 'P0', rationale: '단발성 협업이 아닌 분기별 5~8명 정기 협업 SOP 구축' },
],
},
roadmap: [
{
month: 1,
title: 'Foundation',
subtitle: '광고 인프라 + 다국어',
tasks: [
{ task: 'TikTok Pixel 설치 + 광고 캠페인 시작', completed: false },
{ task: 'YouTube 기존 영상 EN/ZH 자막 30개 추가', completed: false },
{ task: 'Facebook 리타겟팅 광고 캠페인 v1 런칭', completed: false },
{ task: '인플루언서 협업 SOP 문서화 + 1차 5명 컨택', completed: false },
],
},
{
month: 2,
title: 'Content Engine',
subtitle: '자산 재활용 + 협업',
tasks: [
{ task: 'YouTube 주 2회 정착 + Shorts 주 3회로 증가', completed: false },
{ task: 'Instagram Reels 주 5회 (KR + Global 동시)', completed: false },
{ task: '인플루언서 협업 카루셀 1차 발행', completed: false },
{ task: '강남언니 Story 자동 발행 시스템 구축', completed: false },
],
},
{
month: 3,
title: 'Optimization',
subtitle: '성과 측정 + 확장',
tasks: [
{ task: 'TikTok·Facebook ROAS 분석 + 예산 재배분', completed: false },
{ task: 'LINE/WeChat 채널 개설 검토 → 결정', completed: false },
{ task: '월간 KPI 리뷰 + 다음 분기 전략', completed: false },
],
},
],
kpiDashboard: [
{ metric: 'YouTube 구독자', current: '5,840', target3Month: '9,000', target12Month: '20,000' },
{ metric: 'YouTube 다국어 자막 영상', current: '0', target3Month: '50', target12Month: '150' },
{ metric: 'Instagram KR 팔로워', current: '8,210', target3Month: '12,500', target12Month: '25,000' },
{ metric: 'Instagram Global 팔로워', current: '6,320', target3Month: '9,500', target12Month: '18,000' },
{ metric: '강남언니 리뷰', current: '2,547', target3Month: '2,800', target12Month: '3,800' },
{ metric: '인플루언서 협업', current: '0', target3Month: '5건', target12Month: '20건' },
{ metric: '리타겟팅 광고 ROAS', current: '미측정', target3Month: '2.5x', target12Month: '4.0x' },
],
screenshots: [
{
id: 'yt-channel',
url: '/assets/clients/o2o/screenshots/yt-channel.png',
channel: 'YouTube',
capturedAt: '2026-04-14T10:00:00Z',
caption: 'O2O Clinic @o2oclinic — 5,840 구독자, 280 영상',
sourceUrl: 'https://www.youtube.com/@o2oclinic',
},
{
id: 'ig-profile',
url: '/assets/clients/o2o/screenshots/ig-profile.png',
channel: 'Instagram',
capturedAt: '2026-04-14T10:02:00Z',
caption: 'Instagram @o2o_clinic — 8,210 팔로워 (KR 메인)',
sourceUrl: 'https://www.instagram.com/o2o_clinic',
},
{
id: 'ig-global',
url: '/assets/clients/o2o/screenshots/ig-global.png',
channel: 'Instagram Global',
capturedAt: '2026-04-14T10:03:00Z',
caption: 'Instagram @o2o_clinic_global — 6,320 팔로워 (영문)',
sourceUrl: 'https://www.instagram.com/o2o_clinic_global',
},
{
id: 'fb-page',
url: '/assets/clients/o2o/screenshots/fb-page.png',
channel: 'Facebook',
capturedAt: '2026-04-14T10:04:00Z',
caption: 'Facebook O2O Clinic Global — 3,025 팔로워 + WhatsApp',
sourceUrl: 'https://www.facebook.com/O2OClinicGlobal',
},
{
id: 'gangnamunni',
url: '/assets/clients/o2o/screenshots/gangnamunni.png',
channel: '강남언니',
capturedAt: '2026-04-14T10:05:00Z',
caption: '강남언니 — O2O Clinic 9.5점, 2,547 리뷰',
sourceUrl: 'https://www.gangnamunni.com/hospitals/o2o',
},
{
id: 'website-homepage',
url: '/assets/clients/o2o/screenshots/website-homepage.png',
channel: 'Website',
capturedAt: '2026-04-14T10:06:00Z',
caption: 'o2oclinic.com — 다국어 공식 홈페이지',
sourceUrl: 'https://www.o2oclinic.com',
},
],
};
+331
View File
@@ -0,0 +1,331 @@
import type { MarketingReport } from '@/features/report/types/report';
import { mockReport } from './mockReport';
/**
* 티에스성형외과 — 데모 리포트
*
* 실측 (2026-04-14):
* - YouTube 티에스TV (@TV-jm9dy): 구독자 8K, 영상 715개, 주 1~2회 업로드
* - 주력: 눈·코·가슴 종합, 신사역 강남구
* - Instagram: @tsprs_official · Facebook: @tsprs
* - Blog: blog.naver.com/tsprs
* - 홈페이지: tsprs.com (tsprs.co.kr 오류 확인 → tsprs.com이 올바른 URL)
* - 강남언니: 평점/리뷰 실측 예정
*/
export const mockReportTs: MarketingReport = {
...mockReport,
id: 'ts',
createdAt: '2026-04-14',
targetUrl: 'https://www.tsprs.com',
overallScore: 55,
clinicSnapshot: {
...mockReport.clinicSnapshot,
name: '티에스성형외과',
nameEn: 'TS Plastic Surgery',
established: '2010',
yearsInBusiness: 16,
staffCount: 5,
leadDoctor: {
name: 'TS 성형팀',
credentials: '티에스성형외과 의료진 · 눈·코·가슴 종합',
rating: 9.5,
reviewCount: 12509,
},
overallRating: 9.5,
totalReviews: 12509,
priceRange: { min: '100,000', max: '10,000,000+', currency: '₩' },
certifications: [
'성형외과 전문의',
'눈·코·가슴 종합 성형',
'리얼모델 시스템',
],
mediaAppearances: ['강남언니 12,509 리뷰', '유튜브 리얼모델 콘텐츠'],
medicalTourism: ['외국인 상담 지원 (인도네시아 인플루언서 방문 기록)'],
location: '서울 강남구 신사동 (신사역)',
nearestStation: '3호선 신사역',
phone: '02-512-7580',
domain: 'tsprs.com',
source: 'registry' as const,
registryData: {
district: '강남',
branches: '본점 1개',
brandGroup: '눈·코·가슴 종합 성형',
gangnamUnniUrl: 'https://www.gangnamunni.com/hospitals/116',
googleMapsUrl: 'https://maps.google.com/?q=티에스성형외과',
},
logoImages: {
circle: '/assets/clients/ts/logo-circle.png',
horizontal: '/assets/clients/ts/logo-horizontal.png',
korean: '/assets/clients/ts/logo-korean.png',
},
brandColors: {
primary: '#1A1A2E',
accent: '#E94560',
text: '#1A1A2E',
},
},
channelScores: [
{ channel: 'YouTube', icon: 'youtube', score: 58, maxScore: 100, status: 'warning', headline: '티에스TV 구독자 8K · 715개 영상 — 활발하나 전환율 개선 필요' },
{ channel: 'Instagram', icon: 'instagram', score: 62, maxScore: 100, status: 'warning', headline: '@tsprs_official — 리얼모델 콘텐츠 강점, Reels 빈도 증대 필요' },
{ channel: 'Facebook', icon: 'facebook', score: 38, maxScore: 100, status: 'critical', headline: '@tsprs — 3,900 팔로워, 활성도 낮음' },
{ channel: '강남언니', icon: 'star', score: 78, maxScore: 100, status: 'warning', headline: '9.5점/10, 12,509 리뷰 — 응답 전략 강화 필요' },
{ channel: 'Website', icon: 'globe', score: 60, maxScore: 100, status: 'warning', headline: 'tsprs.com 운영 — SNS 연동 및 트래킹 개선 여지' },
{ channel: '네이버 블로그', icon: 'globe', score: 45, maxScore: 100, status: 'warning', headline: 'blog.naver.com/tsprs — 업로드 있으나 빈도 보완 필요' },
],
youtubeAudit: {
...mockReport.youtubeAudit,
channelName: '티에스TV',
handle: '@TV-jm9dy',
subscribers: 8000,
totalVideos: 715,
totalViews: 5200000,
weeklyViewGrowth: { absolute: 3000, percentage: 0.6 },
estimatedMonthlyRevenue: { min: 40, max: 150 },
avgVideoLength: '3.2분',
uploadFrequency: '주 1~2회',
channelCreatedDate: '2018-01-01',
subscriberRank: '',
channelDescription: '지금, 예뻐져라! 티에스성형외과 — 눈·코·가슴·리프팅 전문',
linkedUrls: [{ label: '티에스성형외과', url: 'tsprs.com' }],
playlists: ['티에스 Real Model', '티에스 Lab', '티에스 Play', '티에스 소개'],
topVideos: [],
diagnosis: [
{ category: '구독자 전환율 낮음', detail: '715개 영상 대비 구독자 8K — Shorts와 롱폼 균형 재조정 필요', severity: 'warning', evidenceIds: ['yt-channel'] },
{ category: '리얼모델 콘텐츠 강점 활용 미흡', detail: '리얼모델 시리즈가 강점이나 검색 최적화·썸네일 시스템화가 부족', severity: 'warning' },
{ category: '업로드 일관성 유지', detail: '주 1~2회 업로드 — 주 3회로 상향 시 알고리즘 노출 증가 기대', severity: 'warning' },
],
},
instagramAudit: {
accounts: [
{
handle: '@tsprs_official',
language: 'KR',
label: '공식 계정',
posts: 1500,
followers: 2626,
following: 250,
category: 'Health/beauty',
profileLink: 'tsprs.com',
highlights: ['눈성형', '코성형', '가슴성형', '리얼모델', '이벤트'],
reelsCount: 60,
contentFormat: 'Reels + 리얼모델 Before/After',
profilePhoto: '티에스성형외과 공식 로고',
bio: '지금, 예뻐져라! 티에스성형외과 @tsprs_official',
},
],
diagnosis: [
{ category: 'Reels 비중 확대 여지', detail: '60개 Reels — 목표 100개+ 달성 시 알고리즘 노출 2배 기대', severity: 'warning' },
{ category: '리얼모델 계정 연계', detail: 'YouTube 리얼모델 브이로그 → Instagram 하이라이트 연계 미흡', severity: 'warning' },
],
},
facebookAudit: {
pages: [
{
url: 'facebook.com/tsprs',
pageName: 'TS Plastic Surgery',
language: 'KR',
label: '공식',
followers: 3900,
following: 0,
category: '성형외과',
bio: '티에스성형외과 공식 Facebook — 강남 신사역',
logo: '공식 로고',
logoDescription: '티에스성형외과 공식 로고',
link: 'tsprs.com',
linkedDomain: 'tsprs.com',
reviews: 0,
recentPostAge: '추정 수주 이내',
hasWhatsApp: false,
postFrequency: '월 2~4회',
topContentType: '이벤트 + 시술 정보',
engagement: '게시물당 좋아요 10~50개 (추정)',
},
],
diagnosis: [
{ category: 'Facebook 활성도 낮음', detail: 'Instagram에 집중된 콘텐츠 전략 — Facebook 공동 배포 검토', severity: 'warning' },
],
brandInconsistencies: [],
consolidationRecommendation: 'Facebook은 Instagram 콘텐츠 자동 연동으로 최소 유지, 주력은 YouTube·Instagram 집중.',
},
otherChannels: [
{ name: '네이버 블로그', status: 'active', details: '공식 블로그 운영 중 — 빈도 보완 필요', url: 'https://blog.naver.com/tsprs' },
{ name: '강남언니', status: 'active', details: '9.5점/10, 12,509 리뷰', url: 'https://www.gangnamunni.com/hospitals/116' },
{ name: '네이버 까페', status: 'active', details: '연탐 네이버 카페 운영', url: 'https://cafe.naver.com/yeuntalk' },
{ name: '네이버 플레이스', status: 'active', details: '플레이스 운영 중', url: 'https://map.naver.com/v5/search/티에스성형외과' },
],
websiteAudit: {
primaryDomain: 'tsprs.com',
additionalDomains: [],
snsLinksOnSite: true,
snsLinksDetail: [
{ platform: 'YouTube', url: 'https://www.youtube.com/@TV-jm9dy', location: 'Footer' },
{ platform: 'Instagram', url: 'https://www.instagram.com/tsprs_official/', location: 'Footer' },
{ platform: 'Facebook', url: 'https://www.facebook.com/tsprs', location: 'Footer' },
{ platform: 'Naver Blog', url: 'https://blog.naver.com/tsprs', location: 'Footer' },
],
trackingPixels: [
{ name: 'Google Analytics', installed: true, details: 'GA4 추정' },
{ name: 'Naver Site Verification', installed: true },
],
mainCTA: '전화 상담 + 카카오톡 상담',
},
problemDiagnosis: [
{
category: '715개 영상 대비 구독자 전환율 낮음',
detail: 'YouTube 715개 영상 누적, 구독자 8K — 영상당 평균 구독자 11명 수준. SEO 최적화·썸네일 시스템화로 즉시 개선 가능.',
severity: 'critical',
},
{
category: '리얼모델 콘텐츠 강점의 크로스채널 미활용',
detail: '리얼모델 브이로그가 YouTube에서 강점이나 Instagram·Blog·강남언니 리뷰 연동이 체계화되지 않아 콘텐츠 파급 효과가 제한됨.',
severity: 'critical',
},
{
category: '네이버 카페 자산 미활용',
detail: '연탐 네이버 카페 운영 중이나 공식 채널과 연동 미흡 — 카페 리뷰/후기를 SNS 콘텐츠로 재활용하는 체계 부재.',
severity: 'warning',
},
],
transformation: {
...mockReport.transformation,
brandIdentity: [
{ area: '브랜드 슬로건', asIs: '"지금, 예뻐져라!"', toBe: '슬로건 유지 + 채널 통일 적용' },
{ area: '컬러', asIs: '다크 계열', toBe: 'Primary: Dark Navy (#1A1A2E) + Accent: Crimson (#E94560) 명문화' },
{ area: '리얼모델 포지셔닝', asIs: '일부 콘텐츠', toBe: '"리얼모델로 증명하는 티에스" 채널 전략 중심화' },
],
platformStrategies: [
{
platform: 'YouTube',
icon: 'youtube',
currentMetric: '8K subscribers · 715 videos',
targetMetric: '20K / 12개월',
strategies: [
{ strategy: 'Shorts 재편집 가속', detail: '715개 영상에서 Shorts 200개 추출' },
{ strategy: '썸네일 시스템화', detail: '리얼모델 비포/애프터 통일 썸네일' },
{ strategy: 'SEO 메타데이터 일괄 최적화', detail: '"강남 눈코가슴" 타이틀 패턴 적용' },
],
},
{
platform: 'Instagram',
icon: 'instagram',
currentMetric: '2,626 followers',
targetMetric: '60K / 12개월',
strategies: [
{ strategy: 'Reels 주 5회', detail: 'YouTube Shorts 동시 배포' },
{ strategy: '리얼모델 하이라이트 강화', detail: '시술별 Before/After 하이라이트 재구성' },
{ strategy: '카페 후기 → Instagram 재편집', detail: '연탐 카페 후기 → 카루셀 콘텐츠' },
],
},
],
websiteImprovements: [
{ area: 'YouTube 임베드', asIs: '없음', toBe: '시술 페이지별 리얼모델 영상 임베드' },
{ area: '카카오톡 상담 버튼', asIs: '일부 페이지', toBe: '전 페이지 플로팅 버튼' },
],
newChannelProposals: [
{ channel: 'TikTok', priority: 'P1', rationale: '20~30대 첫 수술 고민층, Shorts 동시 배포' },
],
},
roadmap: [
{
month: 1,
title: 'Foundation',
subtitle: 'SEO & 썸네일',
tasks: [
{ task: 'YouTube 715개 영상 SEO 메타데이터 일괄 최적화', completed: false },
{ task: '리얼모델 썸네일 통일 디자인 시스템 구축', completed: false },
{ task: 'Instagram Reels 주 5회 업로드 시작', completed: false },
{ task: '연탐 카페 후기 SNS 콘텐츠화 착수', completed: false },
],
},
{
month: 2,
title: 'Content Engine',
subtitle: '리얼모델 확장',
tasks: [
{ task: 'YouTube Shorts 200개 추출 완료', completed: false },
{ task: 'Instagram 리얼모델 Before/After 하이라이트 재구성', completed: false },
{ task: '강남언니 리뷰 응답률 50% 달성', completed: false },
],
},
{
month: 3,
title: 'Optimization',
subtitle: '광고 & 전환',
tasks: [
{ task: '고성과 리얼모델 콘텐츠 유료 광고 세팅', completed: false },
{ task: '전환 추적 체계 구축 (UTM + GA4)', completed: false },
{ task: 'KPI 리뷰', completed: false },
],
},
],
kpiDashboard: [
{ metric: 'YouTube 구독자', current: '8K', target3Month: '12K', target12Month: '20K' },
{ metric: 'YouTube Shorts 업로드', current: '주 1~2회', target3Month: '주 3회', target12Month: '주 5회' },
{ metric: 'Instagram 팔로워', current: '2,626', target3Month: '6K', target12Month: '15K' },
{ metric: 'Instagram Reels 평균 조회수', current: '낮음', target3Month: '8,000', target12Month: '25,000' },
{ metric: '강남언니 리뷰', current: '12,509', target3Month: '2,500', target12Month: '3,500' },
{ metric: '카카오톡 상담 전환', current: '측정 불가', target3Month: 'UTM 시작', target12Month: '월 50건' },
],
screenshots: [
{
id: 'yt-channel',
url: '/assets/clients/ts/screenshots/yt-channel.png',
channel: 'YouTube',
capturedAt: '2026-04-14T10:00:00Z',
caption: '티에스TV @TV-jm9dy — 구독자 8K, 영상 715개',
sourceUrl: 'https://www.youtube.com/channel/UCgnizu8p7lbCnfIs76O8J-A',
},
{
id: 'ig-profile',
url: '/assets/clients/ts/screenshots/ig-profile.png',
channel: 'Instagram',
capturedAt: '2026-04-14T10:02:00Z',
caption: 'Instagram @tsprs_official — 2,626 팔로워, 리얼모델 콘텐츠',
sourceUrl: 'https://www.instagram.com/tsprs_official/',
},
{
id: 'fb-page',
url: '/assets/clients/ts/screenshots/fb-page.png',
channel: 'Facebook',
capturedAt: '2026-04-14T10:03:00Z',
caption: 'Facebook @tsprs — 3,900 팔로워',
sourceUrl: 'https://www.facebook.com/tsprs',
},
{
id: 'gangnamunni',
url: '/assets/clients/ts/screenshots/gangnamunni.png',
channel: '강남언니',
capturedAt: '2026-04-14T10:04:00Z',
caption: '강남언니 — 티에스성형외과 9.5점, 12,509 리뷰',
sourceUrl: 'https://www.gangnamunni.com/hospitals/116',
},
{
id: 'website-homepage',
url: '/assets/clients/ts/screenshots/website-homepage.png',
channel: 'Website',
capturedAt: '2026-04-14T10:05:00Z',
caption: 'tsprs.com — 공식 홈페이지',
sourceUrl: 'https://www.tsprs.com',
},
{
id: 'naver-blog',
url: '/assets/clients/ts/screenshots/naver-blog.png',
channel: '네이버 블로그',
capturedAt: '2026-04-14T10:06:00Z',
caption: '네이버 블로그 @tsprs — 업로드 중',
sourceUrl: 'https://blog.naver.com/tsprs',
},
],
};
@@ -0,0 +1,347 @@
import type { MarketingReport } from '@/features/report/types/report';
import { mockReport } from './mockReport';
/**
* 원진성형외과 — 데모 리포트
*
* 실측 (2026-04-14):
* - YouTube @wjwonjin (WJ원진성형외과): 구독자 1.41만 (14,100), Shorts 매우 활발
* - Instagram: @wonjin_official (KR) · @wonjin_ps · @wj_cosmetic (3개 계정)
* - Facebook: @KwonjinPS
* - Blog: blog.naver.com/popokpop
* - 홈페이지: k-wonjin.co.kr
* - 강남언니: 평점/리뷰 실측 예정
*/
export const mockReportWonjin: MarketingReport = {
...mockReport,
id: 'wonjin',
createdAt: '2026-04-14',
targetUrl: 'https://www.k-wonjin.co.kr',
overallScore: 62,
clinicSnapshot: {
...mockReport.clinicSnapshot,
name: '원진성형외과',
nameEn: 'Wonjin Plastic Surgery',
established: '2001',
yearsInBusiness: 25,
staffCount: 10,
leadDoctor: {
name: '권진',
credentials: '원진성형외과 대표원장 · 코성형 전문',
rating: 9.3,
reviewCount: 11846,
},
overallRating: 9.3,
totalReviews: 11846,
priceRange: { min: '100,000', max: '20,000,000+', currency: '₩' },
certifications: [
'성형외과 전문의',
'코성형·눈성형 전문',
'국제 의료 관광 인증',
'다국어 상담 지원 (한/영/중/일/태)',
],
mediaAppearances: ['강남언니 11,846 리뷰', '국제 성형 의료 관광 병원'],
medicalTourism: ['영어·중국어·일어·태국어 상담', '외국인 전용 코디네이터'],
location: '서울 강남구 강남대로 (강남역)',
nearestStation: '2호선 강남역',
phone: '02-544-0404',
domain: 'k-wonjin.co.kr',
source: 'registry' as const,
registryData: {
district: '강남',
branches: '본점 1개',
brandGroup: '코성형·국제환자 특화',
gangnamUnniUrl: 'https://www.gangnamunni.com/hospitals/2500',
googleMapsUrl: 'https://maps.google.com/?q=원진성형외과',
},
logoImages: {
circle: '/assets/clients/wonjin/logo-circle.png',
horizontal: '/assets/clients/wonjin/logo-horizontal.svg',
korean: '/assets/clients/wonjin/logo-korean.png',
},
brandColors: {
primary: '#2C1654',
accent: '#8B5CF6',
text: '#2C1654',
},
},
channelScores: [
{ channel: 'YouTube', icon: 'youtube', score: 68, maxScore: 100, status: 'warning', headline: '@wjwonjin — 구독자 1.41만, Shorts 매우 활발, 롱폼 전략 보완 필요' },
{ channel: 'Instagram', icon: 'instagram', score: 72, maxScore: 100, status: 'warning', headline: '3개 계정 운영 — KR/글로벌 분리, 채널 간 연계 전략 부재' },
{ channel: 'Facebook', icon: 'facebook', score: 45, maxScore: 100, status: 'warning', headline: '@KwonjinPS — 운영 중이나 국내 도달 낮음' },
{ channel: '강남언니', icon: 'star', score: 85, maxScore: 100, status: 'good', headline: '9.3점/10, 11,846 리뷰 — 강남 상위 5% 수준, 리뷰 리마케팅 미활용' },
{ channel: 'Website', icon: 'globe', score: 65, maxScore: 100, status: 'warning', headline: 'k-wonjin.co.kr 다국어 운영 양호 — 전환 추적 고도화 필요' },
{ channel: '네이버 블로그', icon: 'globe', score: 40, maxScore: 100, status: 'critical', headline: 'blog.naver.com/popokpop — 업로드 빈도 저조' },
],
youtubeAudit: {
...mockReport.youtubeAudit,
channelName: 'WJ원진성형외과',
handle: '@wjwonjin',
subscribers: 14100,
totalVideos: 350,
totalViews: 8500000,
weeklyViewGrowth: { absolute: 5000, percentage: 0.8 },
estimatedMonthlyRevenue: { min: 80, max: 300 },
avgVideoLength: '4.2분',
uploadFrequency: '주 3~5회 (Shorts 중심)',
channelCreatedDate: '2018-05-01',
subscriberRank: '',
channelDescription: 'WJ원진성형외과 — 코성형·눈성형·국제환자 전문 성형외과',
linkedUrls: [{ label: '원진성형외과', url: 'k-wonjin.co.kr' }],
playlists: ['코성형', '눈성형', '브이로그', '해외환자'],
topVideos: [],
diagnosis: [
{ category: 'Shorts 과다 집중', detail: 'Shorts 위주 업로드로 채널 전문성 희석 — 롱폼 Before/After 강화 필요', severity: 'warning', evidenceIds: ['yt-channel'] },
{ category: '3개 Instagram 계정 연계 부재', detail: '@wonjin_official · @wonjin_ps · @wj_cosmetic 간 콘텐츠 연계 전략 없음', severity: 'warning' },
{ category: '구독자 대비 조회수 잠재력', detail: '1.41만 구독자 — 적극적 롱폼 + SEO 최적화 시 30K 달성 가능', severity: 'warning' },
],
},
instagramAudit: {
accounts: [
{
handle: '@wonjin_official',
language: 'KR',
label: 'KR 공식',
posts: 1200,
followers: 23400,
following: 300,
category: 'Health/beauty',
profileLink: 'k-wonjin.co.kr',
highlights: ['코성형', '눈성형', '후기', '이벤트', '글로벌'],
reelsCount: 80,
contentFormat: 'Reels + Before/After',
profilePhoto: '원진성형외과 공식 로고',
bio: '원진성형외과 공식 KR 계정',
},
{
handle: '@wonjin_ps',
language: 'KR',
label: 'KR 서브',
posts: 500,
followers: 18000,
following: 150,
category: 'Health/beauty',
profileLink: 'k-wonjin.co.kr',
highlights: [],
reelsCount: 30,
contentFormat: 'Before/After + 시술 정보',
profilePhoto: '원진 로고',
bio: '원진성형외과 서브 계정',
},
],
diagnosis: [
{ category: '다계정 전략 비효율', detail: '3개 계정 분산으로 팔로워·콘텐츠 파편화 — 통합 또는 역할 명확화 필요', severity: 'critical' },
{ category: '글로벌 계정 활용도 낮음', detail: '@wj_cosmetic 글로벌 계정이 국제 환자 유입에 충분히 활용되지 않음', severity: 'warning' },
],
},
facebookAudit: {
pages: [
{
url: 'facebook.com/KwonjinPS',
pageName: 'Wonjin Plastic Surgery',
language: 'EN',
label: '국제',
followers: 19000,
following: 0,
category: '성형외과',
bio: 'Wonjin Plastic Surgery — International Patients Welcome',
logo: '공식 로고',
logoDescription: '원진성형외과 공식 로고',
link: 'k-wonjin.co.kr',
linkedDomain: 'k-wonjin.co.kr',
reviews: 0,
recentPostAge: '추정 1주 이내',
hasWhatsApp: true,
postFrequency: '주 2~4회',
topContentType: 'Before/After + 국제 환자 후기',
engagement: '게시물당 좋아요 20~150개 (추정)',
},
],
diagnosis: [
{ category: 'KR 전용 페이지 부재', detail: '국제 페이지만 운영 — 국내 환자용 KR 콘텐츠 별도 필요', severity: 'warning' },
],
brandInconsistencies: [],
consolidationRecommendation: '국제 페이지 유지 + 국내 콘텐츠 강화를 위한 Instagram KR 집중 권장.',
},
otherChannels: [
{ name: '네이버 블로그', status: 'unknown', details: '공식 블로그 운영 중 — 최근 업로드 저조', url: 'https://blog.naver.com/popokpop' },
{ name: '강남언니', status: 'active', details: '9.3점/10, 11,846 리뷰 · 코성형 강남 상위', url: 'https://www.gangnamunni.com/hospitals/2500' },
{ name: '네이버 플레이스', status: 'active', details: '플레이스 운영 중', url: 'https://map.naver.com/v5/search/원진성형외과' },
{ name: '카카오톡', status: 'active', details: '채널 운영 중', url: 'https://k-wonjin.co.kr' },
],
websiteAudit: {
primaryDomain: 'k-wonjin.co.kr',
additionalDomains: [],
snsLinksOnSite: true,
snsLinksDetail: [
{ platform: 'YouTube', url: 'https://www.youtube.com/@wjwonjin', location: 'Footer' },
{ platform: 'Instagram', url: 'https://www.instagram.com/wonjin_official/', location: 'Footer' },
{ platform: 'Facebook', url: 'https://www.facebook.com/KwonjinPS', location: 'Footer' },
{ platform: 'Naver Blog', url: 'https://blog.naver.com/popokpop', location: 'Footer' },
],
trackingPixels: [
{ name: 'Facebook Pixel', installed: true, details: '설치 확인 (추정)' },
{ name: 'Google Analytics', installed: true, details: 'GA4 추정' },
],
mainCTA: '전화 상담 + 다국어 온라인 예약',
},
problemDiagnosis: [
{
category: '3개 Instagram 계정 분산으로 브랜드 파워 희석',
detail: '@wonjin_official(23.4K 실측) + @wonjin_ps(18K) + @wj_cosmetic 3개 계정이 분산 운영돼 팔로워 합산 대비 실제 도달이 낮음. 통합 또는 역할 명확화 필수.',
severity: 'critical',
},
{
category: 'Shorts 과다 의존 — 롱폼 전문성 콘텐츠 부족',
detail: 'YouTube Shorts 위주 업로드로 알고리즘 노출은 높으나, 코성형 전문 병원으로서의 신뢰도를 높이는 롱폼 Before/After·수술 과정 영상이 부족.',
severity: 'critical',
},
{
category: '국제 환자 디지털 여정 미설계',
detail: '글로벌 Instagram · Facebook 영문 페이지가 있으나 랜딩페이지 다국어 전환 추적 체계 없음. 외국인 유입 대비 전환율 측정 불가.',
severity: 'critical',
},
],
transformation: {
...mockReport.transformation,
brandIdentity: [
{ area: '다계정 전략', asIs: 'Instagram 3개 계정 역할 불명확', toBe: '@wonjin_official KR 메인 · @wj_cosmetic 글로벌 전용으로 역할 명확화' },
{ area: '컬러', asIs: '퍼플 계열 추정', toBe: 'Primary: Deep Purple (#2C1654) + Accent: Violet (#8B5CF6) 명문화' },
{ area: '전문성 포지셔닝', asIs: '종합 성형외과', toBe: '"25년 강남 코성형 전문 · 국제 환자 1위"' },
],
platformStrategies: [
{
platform: 'YouTube',
icon: 'youtube',
currentMetric: '14.1K subscribers · Shorts 활발',
targetMetric: '30K / 12개월',
strategies: [
{ strategy: '롱폼 Before/After 시리즈 강화', detail: '코성형 케이스 스터디 월 4편 — Shorts와 균형' },
{ strategy: '외국인 환자 브이로그 시리즈', detail: '영어·중국어 자막 추가 — 글로벌 노출' },
{ strategy: '원장 전문의 해설 시리즈', detail: '"코성형 전문의가 말하는" 롱폼 에듀케이션 콘텐츠' },
],
},
{
platform: 'Instagram',
icon: 'instagram',
currentMetric: '@wonjin_official 23,400 팔로워 (실측)',
targetMetric: '@wonjin_official 80K / 12개월',
strategies: [
{ strategy: '계정 역할 재정의', detail: '@wonjin_official KR 메인, @wj_cosmetic 글로벌 전용' },
{ strategy: '11,846 리뷰 콘텐츠화', detail: '강남언니 리뷰 → Instagram Story/Highlight' },
{ strategy: '다국어 캡션 시스템', detail: 'KR + EN 이중 캡션으로 글로벌 도달' },
],
},
],
websiteImprovements: [
{ area: '다국어 랜딩 UTM 추적', asIs: '전환 추적 없음', toBe: '언어별 UTM 파라미터 + GA4 이벤트 세팅' },
{ area: 'YouTube 임베드', asIs: '없음', toBe: '시술 페이지별 관련 YouTube 영상 임베드' },
],
newChannelProposals: [
{ channel: 'TikTok', priority: 'P1', rationale: '국제 환자 10~30대, YouTube Shorts 동시 배포' },
{ channel: 'LINE (일본)', priority: 'P2', rationale: '일본인 환자 유입 채널 확장' },
],
},
roadmap: [
{
month: 1,
title: 'Foundation',
subtitle: '계정 구조 재편',
tasks: [
{ task: 'Instagram 3개 계정 역할 재정의 (KR/글로벌 분리)', completed: false },
{ task: 'YouTube 롱폼 Before/After 시리즈 기획 시작', completed: false },
{ task: '강남언니 11,846 리뷰 SNS 콘텐츠화 50개', completed: false },
{ task: 'UTM 추적 체계 구축', completed: false },
],
},
{
month: 2,
title: 'Content Engine',
subtitle: '글로벌 콘텐츠',
tasks: [
{ task: 'YouTube 롱폼 월 4편 + Shorts 주 3회 병행', completed: false },
{ task: 'Instagram @wj_cosmetic 글로벌 콘텐츠 주 3회', completed: false },
{ task: 'Facebook 국제 광고 캠페인 세팅', completed: false },
],
},
{
month: 3,
title: 'Optimization',
subtitle: '전환 최적화',
tasks: [
{ task: '국가별 환자 유입 채널 분석', completed: false },
{ task: '고성과 콘텐츠 유료 광고 전환', completed: false },
{ task: 'KPI 리뷰 및 조정', completed: false },
],
},
],
kpiDashboard: [
{ metric: 'YouTube 구독자', current: '14.1K', target3Month: '18K', target12Month: '30K' },
{ metric: 'YouTube 롱폼 업로드', current: '불규칙', target3Month: '월 4편', target12Month: '월 8편' },
{ metric: 'Instagram @wonjin_official 팔로워', current: '23,400', target3Month: '35K', target12Month: '60K' },
{ metric: '강남언니 리뷰', current: '11,846', target3Month: '4,700', target12Month: '6,000' },
{ metric: '외국인 환자 전환율', current: '측정 불가', target3Month: 'UTM 추적 시작', target12Month: '월 20건' },
],
screenshots: [
{
id: 'yt-channel',
url: '/assets/clients/wonjin/screenshots/yt-channel.png',
channel: 'YouTube',
capturedAt: '2026-04-14T10:00:00Z',
caption: 'WJ원진성형외과 @wjwonjin — 구독자 1.41만, Shorts 활발',
sourceUrl: 'https://www.youtube.com/@wjwonjin',
},
{
id: 'ig-profile',
url: '/assets/clients/wonjin/screenshots/ig-profile.png',
channel: 'Instagram',
capturedAt: '2026-04-14T10:02:00Z',
caption: 'Instagram @wonjin_official — 23,400 팔로워 (KR 공식)',
sourceUrl: 'https://www.instagram.com/wonjin_official/',
},
{
id: 'fb-page',
url: '/assets/clients/wonjin/screenshots/fb-page.png',
channel: 'Facebook',
capturedAt: '2026-04-14T10:03:00Z',
caption: 'Facebook @KwonjinPS — 19,000 팔로워 (국제 공식)',
sourceUrl: 'https://www.facebook.com/KwonjinPS',
},
{
id: 'gangnamunni',
url: '/assets/clients/wonjin/screenshots/gangnamunni.png',
channel: '강남언니',
capturedAt: '2026-04-14T10:04:00Z',
caption: '강남언니 — 원진성형외과 9.3점, 11,846 리뷰',
sourceUrl: 'https://www.gangnamunni.com/hospitals/2500',
},
{
id: 'website-homepage',
url: '/assets/clients/wonjin/screenshots/website-homepage.png',
channel: 'Website',
capturedAt: '2026-04-14T10:05:00Z',
caption: 'k-wonjin.co.kr — 다국어 공식 홈페이지',
sourceUrl: 'https://www.k-wonjin.co.kr',
},
{
id: 'naver-blog',
url: '/assets/clients/wonjin/screenshots/naver-blog.png',
channel: '네이버 블로그',
capturedAt: '2026-04-14T10:06:00Z',
caption: '네이버 블로그 @popokpop — 최근 업로드 저조',
sourceUrl: 'https://blog.naver.com/popokpop',
},
],
};
+285
View File
@@ -0,0 +1,285 @@
import { useState, useCallback } from 'react';
/**
* PDF Export — 블록 기반 전략.
*
* 각 섹션은 페이지 간에 분할되지 않는 원자적 서브 블록으로 분리됨.
* framer-motion 애니메이션이 있는 다크 섹션은 별도 처리 필요:
* 모든 섹션을 뷰포트에 스크롤해서 `whileInView`를 트리거한 뒤,
* html2canvas 캡처 전에 인라인 opacity/transform을 최종 상태로 강제 설정.
*/
function isDarkSection(section: HTMLElement): boolean {
const bg = window.getComputedStyle(section).backgroundColor;
if (!bg || bg === 'rgba(0, 0, 0, 0)' || bg === 'transparent') return false;
// rgb(r, g, b) 파싱 — 휘도가 낮으면 다크로 판단
const match = bg.match(/(\d+),\s*(\d+),\s*(\d+)/);
if (!match) return section.classList.contains('bg-[#0A1128]');
const [, r, g, b] = match.map(Number);
return (r * 0.299 + g * 0.587 + b * 0.114) < 50;
}
function collectSubBlocks(section: HTMLElement): HTMLElement[] {
// 다크 섹션은 통째로 캡처 — 서브 블록으로 나누면 다크 배경이 사라짐
if (isDarkSection(section)) return [section];
if (section.offsetHeight <= 900) return [section];
const children = Array.from(section.children) as HTMLElement[];
if (children.length <= 1) return [section];
const blocks: HTMLElement[] = [];
for (const child of children) {
if (child.offsetHeight === 0 || child.offsetWidth === 0) continue;
blocks.push(child);
}
return blocks.length > 0 ? blocks : [section];
}
/**
* 모든 섹션을 스크롤하여 `whileInView` 애니메이션을 트리거한 뒤,
* 안정화될 때까지 대기. 스냅샷 캡처 전에 framer-motion이 최종
* 인라인 스타일을 적용하도록 보장.
*/
async function triggerAllAnimations(contentEl: HTMLElement): Promise<void> {
const sections = Array.from(contentEl.children) as HTMLElement[];
for (const section of sections) {
section.scrollIntoView({ behavior: 'instant' as ScrollBehavior });
// framer-motion이 intersection을 감지하고 스타일을 적용할 시간 부여
await new Promise((r) => setTimeout(r, 80));
// 중첩된 whileInView를 위해 서브 자식 요소도 뷰포트로 스크롤
const motionChildren = section.querySelectorAll('[style]');
for (let i = 0; i < Math.min(motionChildren.length, 20); i++) {
(motionChildren[i] as HTMLElement).scrollIntoView({ behavior: 'instant' as ScrollBehavior });
await new Promise((r) => setTimeout(r, 30));
}
}
// 최상단으로 스크롤하고 모두 안정화될 때까지 대기
window.scrollTo(0, 0);
await new Promise((r) => setTimeout(r, 200));
}
/**
* 모든 요소를 완전히 보이도록 강제 — opacity 1, transform 없음.
* whileInView가 도달하지 못한 잔여 요소를 처리.
*/
function forceVisible(contentEl: HTMLElement): (() => void) {
document.documentElement.style.setProperty('--motion-duration', '0s');
const saved: { el: HTMLElement; cssText: string }[] = [];
contentEl.querySelectorAll('*').forEach((node) => {
const el = node as HTMLElement;
const s = el.style;
// 인라인과 computed 모두 확인
const needsFix =
(s.opacity !== '' && s.opacity !== '1') ||
(s.transform !== '' && s.transform !== 'none') ||
s.visibility === 'hidden';
if (needsFix) {
saved.push({ el, cssText: s.cssText });
s.opacity = '1';
s.transform = 'none';
s.visibility = 'visible';
}
});
// 2차 패스: computed opacity < 1 처리 (motion이 클래스로 설정했을 수도)
contentEl.querySelectorAll('*').forEach((node) => {
const el = node as HTMLElement;
const computed = window.getComputedStyle(el);
if (parseFloat(computed.opacity) < 0.99) {
if (!saved.find((s) => s.el === el)) {
saved.push({ el, cssText: el.style.cssText });
}
el.style.opacity = '1';
el.style.transform = 'none';
}
});
return () => {
saved.forEach(({ el, cssText }) => {
el.style.cssText = cssText;
});
document.documentElement.style.removeProperty('--motion-duration');
};
}
/**
* Export용 CSS 오버라이드: overflow 해제, 클리핑 방지.
*/
function addExportCSS(): (() => void) {
const style = document.createElement('style');
style.id = 'pdf-export-overrides';
style.textContent = `
[data-report-content] .overflow-x-auto,
[data-plan-content] .overflow-x-auto {
overflow: visible !important;
flex-wrap: wrap !important;
}
[data-report-content] .scrollbar-thin,
[data-plan-content] .scrollbar-thin {
overflow: visible !important;
}
[data-report-content] .shrink-0,
[data-plan-content] .shrink-0 {
flex-shrink: 1 !important;
min-width: 0 !important;
}
`;
document.head.appendChild(style);
return () => style.remove();
}
export function useExportPDF() {
const [isExporting, setIsExporting] = useState(false);
const exportPDF = useCallback(async (filename = 'INFINITH_Marketing_Intelligence_Report') => {
setIsExporting(true);
try {
const [{ default: html2canvas }, { jsPDF }] = await Promise.all([
import('html2canvas-pro'),
import('jspdf'),
]);
const contentEl =
(document.querySelector('[data-report-content]') as HTMLElement) ||
(document.querySelector('[data-plan-content]') as HTMLElement);
if (!contentEl) throw new Error('Report content element not found');
// Step 1: whileInView 애니메이션 트리거를 위해 모든 섹션 스크롤
await triggerAllAnimations(contentEl);
// Step 2: 모든 요소를 강제로 visible 처리 (잔여 요소 처리)
const restoreVisible = forceVisible(contentEl);
// Step 3: CSS 오버라이드
const restoreCSS = addExportCSS();
// Step 4: UI 요소 숨기기
const hideSelectors = [
'[data-report-nav]',
'[data-plan-nav]',
'nav',
'[data-cta-card]',
'[data-no-print]',
];
const hiddenEls: { el: HTMLElement; display: string }[] = [];
hideSelectors.forEach((sel) => {
document.querySelectorAll(sel).forEach((el) => {
const htmlEl = el as HTMLElement;
hiddenEls.push({ el: htmlEl, display: htmlEl.style.display });
htmlEl.style.display = 'none';
});
});
await new Promise((r) => setTimeout(r, 150));
// Step 5: PDF 생성
const pdf = new jsPDF('p', 'mm', 'a4');
const pageWidth = 210;
const pageHeight = 297;
const margin = 8;
const usableWidth = pageWidth - margin * 2;
const footerSpace = 10;
const maxContentY = pageHeight - margin - footerSpace;
let currentY = margin;
const sections = Array.from(contentEl.children) as HTMLElement[];
for (const section of sections) {
if (section.offsetHeight === 0 || section.offsetWidth === 0) continue;
if (window.getComputedStyle(section).display === 'none') continue;
const blocks = collectSubBlocks(section);
for (const block of blocks) {
if (block.offsetHeight === 0) continue;
const canvas = await html2canvas(block, {
scale: 2,
useCORS: true,
logging: false,
backgroundColor: null,
windowWidth: 1280,
removeContainer: true,
});
const blockHeightMM = (canvas.height * usableWidth) / canvas.width;
// 블록이 안 들어가면 새 페이지
if (currentY + blockHeightMM > maxContentY && currentY > margin + 5) {
pdf.addPage();
currentY = margin;
}
// 긴 블록: 페이지 단위로 슬라이싱
if (blockHeightMM > maxContentY - margin) {
const pxPerMM = canvas.width / usableWidth;
let srcY = 0;
let remainPx = canvas.height;
let isFirst = true;
while (remainPx > 0) {
if (!isFirst) { pdf.addPage(); currentY = margin; }
isFirst = false;
const availPx = (maxContentY - currentY) * pxPerMM;
const sliceH = Math.min(remainPx, availPx);
const sliceCanvas = document.createElement('canvas');
sliceCanvas.width = canvas.width;
sliceCanvas.height = Math.ceil(sliceH);
const ctx = sliceCanvas.getContext('2d');
if (ctx) {
ctx.drawImage(canvas, 0, srcY, canvas.width, Math.ceil(sliceH), 0, 0, canvas.width, Math.ceil(sliceH));
}
const sliceMM = sliceH / pxPerMM;
pdf.addImage(sliceCanvas.toDataURL('image/jpeg', 0.9), 'JPEG', margin, currentY, usableWidth, sliceMM);
currentY += sliceMM;
srcY += sliceH;
remainPx -= sliceH;
}
} else {
pdf.addImage(canvas.toDataURL('image/jpeg', 0.9), 'JPEG', margin, currentY, usableWidth, blockHeightMM);
currentY += blockHeightMM;
}
}
currentY += 2; // 섹션 간 여백
}
// Step 6: 복원
hiddenEls.forEach(({ el, display }) => { el.style.display = display; });
restoreCSS();
restoreVisible();
// Step 7: 푸터
const totalPages = pdf.getNumberOfPages();
const footerLabel = filename.includes('Plan')
? 'INFINITH Marketing Plan'
: 'INFINITH Marketing Intelligence Report';
for (let i = 1; i <= totalPages; i++) {
pdf.setPage(i);
pdf.setFontSize(7);
pdf.setTextColor(180);
pdf.text(`${footerLabel} | Page ${i} / ${totalPages}`, pageWidth / 2, pageHeight - 5, { align: 'center' });
}
pdf.save(`${filename}.pdf`);
} catch (err) {
console.error('PDF export failed:', err);
} finally {
setIsExporting(false);
}
}, []);
return { exportPDF, isExporting };
}
+195
View File
@@ -0,0 +1,195 @@
import { useState, useEffect } from 'react';
import { useLocation } from 'react-router';
import type { MarketingReport } from '@/features/report/types/report';
import { getReport } from '@/shared/api/generated/reports/reports';
import { transformApiReport, mergeEnrichment, type EnrichmentData } from '@/features/report/lib/transformReport';
import { normalizeInstagramHandle } from '@/features/channels/lib/normalizeHandles';
import { mockReport } from '../data/mockReport';
import { mockReportBanobagi } from '../data/mockReport_banobagi';
import { mockReportGrand } from '../data/mockReport_grand';
import { mockReportWonjin } from '../data/mockReport_wonjin';
import { mockReportTs } from '../data/mockReport_ts';
import { mockReportIrum } from '../data/mockReport_irum';
import { mockReportO2O } from '../data/mockReport_o2o';
const DEMO_REPORTS: Record<string, MarketingReport> = {
'view-clinic': mockReport,
'banobagi': mockReportBanobagi,
'grand': mockReportGrand,
'wonjin': mockReportWonjin,
'ts': mockReportTs,
'irum': mockReportIrum,
'o2o': mockReportO2O,
};
const DEMO_HANDLES: Record<string, Record<string, string | null>> = {
'view-clinic': { instagram: '@viewplastic', youtube: '@ViewclinicKR', facebook: 'viewps1' },
'banobagi': { instagram: '@banobagi_ps', youtube: '@banobagips', facebook: 'BanobagiPlasticSurgery' },
'grand': { instagram: '@grand_korea', youtube: '@grandsurgery_QnA', facebook: 'grandps.korea' },
'wonjin': { instagram: '@wonjin_official', youtube: '@wjwonjin', facebook: 'KwonjinPS' },
'ts': { instagram: '@tsprs_official', youtube: '@TV-jm9dy', facebook: 'tsprs' },
'irum': { instagram: '@seoulips', youtube: '@SEOULiPS.', facebook: null },
'o2o': { instagram: '@o2o_clinic', youtube: '@o2oclinic', facebook: 'O2OClinicGlobal' },
};
interface UseReportResult {
data: MarketingReport | null;
isLoading: boolean;
error: string | null;
/** channelEnrichment이 이미 DB에 있으면 true — 재보강 불필요 */
isEnriched: boolean;
/** DB 또는 API 메타데이터에서 복원한 정규화된 소셜 핸들 */
socialHandles: Record<string, string | null> | null;
}
interface LocationState {
report?: Record<string, unknown>;
metadata?: {
url: string;
clinicName: string;
generatedAt: string;
socialHandles?: Record<string, string | null>;
address?: string;
services?: string[];
};
reportId?: string;
}
export function useReport(id: string | undefined): UseReportResult {
const [data, setData] = useState<MarketingReport | null>(null);
const [isLoading, setIsLoading] = useState(true);
const [error, setError] = useState<string | null>(null);
const [isEnriched, setIsEnriched] = useState(false);
const [socialHandles, setSocialHandles] = useState<Record<string, string | null> | null>(null);
const location = useLocation();
useEffect(() => {
// Source 0: 데모 모드 — 다른 어떤 소스보다 항상 우선
if (id && id in DEMO_REPORTS) {
setData(DEMO_REPORTS[id]);
setIsEnriched(true);
setSocialHandles(DEMO_HANDLES[id] ?? null);
setIsLoading(false);
return;
}
const state = location.state as LocationState | undefined;
// Source 1: 네비게이션 state로 전달된 리포트 데이터 (AnalysisLoadingPage에서)
if (state?.report && state?.metadata) {
try {
const reportId = state.reportId || id || 'live';
const transformed = transformApiReport(
reportId,
state.report,
state.metadata,
);
// V2 파이프라인: 리포트에 Phase 2의 channelEnrichment 이미 포함됨
const enrichment = state.report.channelEnrichment as EnrichmentData | undefined;
if (enrichment) {
const merged = mergeEnrichment(transformed, enrichment);
setData(merged);
setIsEnriched(true);
} else {
setData(transformed);
setIsEnriched(false);
}
setSocialHandles(state.metadata.socialHandles || null);
setIsLoading(false);
} catch (err) {
setError(err instanceof Error ? err.message : 'Failed to parse report data');
setIsLoading(false);
}
return;
}
// Source 2: 리포트 ID로 백엔드에서 조회 (북마크/공유 링크)
if (id) {
getReport(id)
.then((res) => {
if (res.status !== 200) {
throw new Error('리포트 조회에 실패했습니다.');
}
const row = res.data as unknown as Record<string, unknown>;
const reportJson = (row.report as Record<string, unknown>) || row;
// V2 파이프라인: 리포트가 비어있지만 status가 'complete'가 아니면 메시지 표시
if (!reportJson || Object.keys(reportJson).length === 0 || reportJson.parseError) {
const status = (row as Record<string, unknown>).status as string | undefined;
if (status && status !== 'complete') {
throw new Error(`리포트 생성 중입니다 (${status}). 잠시 후 새로고침 해주세요.`);
}
throw new Error('리포트 데이터가 비어있습니다. 분석을 다시 실행해주세요.');
}
const scrapeData = row.scrape_data as Record<string, unknown> | undefined;
const transformed = transformApiReport(
(row.id as string) || id,
reportJson,
{
url: (row.url as string) || '',
clinicName: (row.clinic_name as string) || '',
generatedAt: (row.created_at as string) || new Date().toISOString(),
// ClinicSnapshot이 verified 배지 + district를 표시할 수 있도록 Registry 메타데이터 전달
source: (scrapeData?.source as 'registry' | 'scrape' | undefined) ?? 'scrape',
registryData: (scrapeData?.registryData as Record<string, string> | null | undefined) ?? null,
},
);
// 소셜 핸들 복원 우선순위: report.socialHandles > AI clinicInfo.socialMedia > scrape_data
let handles = (reportJson.socialHandles as Record<string, string | null | string[]>) || null;
if (!handles) {
// clinicInfo의 AI 생성 socialMedia 시도
const aiSocial = (reportJson.clinicInfo as Record<string, unknown>)?.socialMedia as Record<string, unknown> | undefined;
const scrapeSocial = scrapeData
? (scrapeData.clinic as Record<string, unknown>)?.socialMedia as Record<string, string> | undefined
: undefined;
const igSource = aiSocial?.instagramAccounts || aiSocial?.instagram || scrapeSocial?.instagram;
const ytSource = (aiSocial?.youtube as string) || scrapeSocial?.youtube;
if (igSource || ytSource) {
handles = {
instagram: Array.isArray(igSource)
? igSource.map((h: string) => normalizeInstagramHandle(h)).filter(Boolean)
: normalizeInstagramHandle(igSource as string),
youtube: ytSource || null,
facebook: (aiSocial?.facebook as string) || scrapeSocial?.facebook || null,
blog: (aiSocial?.naverBlog as string) || scrapeSocial?.blog || null,
};
}
}
setSocialHandles(handles as Record<string, string | null> | null);
// V2: channel_data 컬럼 (report JSONB와 분리)
// V1 호환: report JSONB 내부의 channelEnrichment
const channelData = row.channel_data as Record<string, unknown> | undefined;
const enrichment =
(channelData && Object.keys(channelData).length > 0 ? channelData : null) as EnrichmentData | null
|| (reportJson.channelEnrichment as EnrichmentData | undefined)
|| null;
if (enrichment) {
const merged = mergeEnrichment(transformed, enrichment);
setData(merged);
setIsEnriched(true);
} else {
setData(transformed);
setIsEnriched(false);
}
})
.catch((err) => {
setError(err instanceof Error ? err.message : 'Failed to fetch report');
})
.finally(() => setIsLoading(false));
return;
}
// 사용 가능한 데이터 소스 없음
setError('리포트 데이터를 찾을 수 없습니다. 새 분석을 시작해주세요.');
setIsLoading(false);
}, [id, location.state]);
return { data, isLoading, error, isEnriched, socialHandles };
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,428 @@
import { useState, useEffect, useRef, useCallback } from 'react';
import { useNavigate, useLocation, useParams } from 'react-router';
import { motion } from 'motion/react';
import { Check, AlertCircle, RefreshCw, ShieldX } from 'lucide-react';
import { useStartAnalysis, getAnalysisStatus } from '@/shared/api/generated/analyses/analyses';
import { getReport } from '@/shared/api/generated/reports/reports';
// 분석 파이프라인은 단일 startAnalysis + 폴링 모델로 통합됨.
// 기존의 discoverChannels / collectChannelData / generateReportV2 / generateContentPlan
// 단계는 백엔드(FastAPI) 비동기 워커가 수행하므로 여기서는 startAnalysis 1회 호출 후
// /api/analyses/{run_id}/status 폴링으로 대체.
export type ManualChannels = {
instagram?: string;
youtube?: string;
facebook?: string;
};
type Phase = 'resuming' | 'discovering' | 'collecting' | 'generating' | 'planning' | 'complete';
const PHASE_STEPS = [
{ key: 'discovering' as Phase, label: 'Scanning website & discovering channels...', labelDone: 'Channels discovered' },
{ key: 'collecting' as Phase, label: 'Collecting channel data & market analysis...', labelDone: 'Data collected' },
{ key: 'generating' as Phase, label: 'Generating AI marketing report...', labelDone: 'Report generated' },
{ key: 'planning' as Phase, label: 'Generating AI content strategy...', labelDone: 'Content plan generated' },
{ key: 'complete' as Phase, label: 'Finalizing report...', labelDone: 'Complete' },
];
// 파이프라인 resume용 세션 키
const SESSION_KEYS = {
reportId: 'infinith_reportId',
clinicId: 'infinith_clinicId',
runId: 'infinith_runId',
url: 'infinith_url',
};
function saveSession(data: { reportId: string; clinicId?: string; runId?: string; url?: string }) {
sessionStorage.setItem(SESSION_KEYS.reportId, data.reportId);
if (data.clinicId) sessionStorage.setItem(SESSION_KEYS.clinicId, data.clinicId);
if (data.runId) sessionStorage.setItem(SESSION_KEYS.runId, data.runId);
if (data.url) sessionStorage.setItem(SESSION_KEYS.url, data.url);
}
function loadSession() {
return {
reportId: sessionStorage.getItem(SESSION_KEYS.reportId),
clinicId: sessionStorage.getItem(SESSION_KEYS.clinicId),
runId: sessionStorage.getItem(SESSION_KEYS.runId),
url: sessionStorage.getItem(SESSION_KEYS.url),
};
}
function clearSession() {
Object.values(SESSION_KEYS).forEach(k => sessionStorage.removeItem(k));
}
export default function AnalysisLoadingPage() {
const [phase, setPhase] = useState<Phase>('discovering');
const [error, setError] = useState<string | null>(null);
const [errorCode, setErrorCode] = useState<string | null>(null);
const [errorDomain, setErrorDomain] = useState<string | null>(null);
const [errorDetails, setErrorDetails] = useState<Record<string, string> | null>(null);
const navigate = useNavigate();
const location = useLocation();
const { reportId: urlReportId } = useParams<{ reportId?: string }>();
const locState = (location.state as {
url?: string;
manualChannels?: ManualChannels;
}) ?? {};
const url = locState.url;
const manualChannels = locState.manualChannels;
const hasStarted = useRef(false);
const { mutateAsync: startAnalysisAsync } = useStartAnalysis();
const phaseIndex = PHASE_STEPS.findIndex(s => s.key === phase);
const runPipeline = useCallback(async (
startUrl?: string,
resumeFrom?: { reportId: string; clinicId?: string; runId?: string; phase: Phase },
) => {
try {
let reportId = resumeFrom?.reportId || '';
let clinicId = resumeFrom?.clinicId;
let runId = resumeFrom?.runId;
// Phase 1: 백엔드 분석 시작 (기존 runId로 resume 중이면 스킵)
if (!resumeFrom?.runId) {
if (!startUrl) throw new Error('No URL provided');
setPhase('discovering');
const startRes = await startAnalysisAsync({
data: {
url: startUrl,
// manualChannels는 백엔드에서 verified_channels로 주입
manual_channels: manualChannels,
} as unknown as Parameters<typeof startAnalysisAsync>[0]['data'],
});
if (startRes.status !== 202) {
throw new Error('분석 시작에 실패했습니다.');
}
const startData = startRes.data as unknown as { run_id?: string; report_id?: string; clinic_id?: string };
runId = startData.run_id || '';
reportId = startData.report_id || runId;
clinicId = startData.clinic_id;
saveSession({ reportId, clinicId, runId, url: startUrl });
window.history.replaceState(null, '', `/report/loading/${reportId}`);
}
if (!runId) throw new Error('runId 없음');
// Phase 2-4: 완료될 때까지 상태 폴링
const phaseFromStatus = (s: string): Phase => {
if (['discovering', 'discovered'].includes(s)) return 'collecting';
if (['collecting', 'collected', 'partial'].includes(s)) return 'generating';
if (['generating'].includes(s)) return 'planning';
if (['complete'].includes(s)) return 'complete';
return 'discovering';
};
// backoff 적용 폴링 루프
const maxAttempts = 120; // ~2분
let attempts = 0;
while (attempts < maxAttempts) {
attempts++;
const statusRes = await getAnalysisStatus(runId);
if (statusRes.status !== 200) {
throw new Error('분석 상태 조회에 실패했습니다.');
}
const statusData = statusRes.data as unknown as { status: string; channel_errors?: Record<string, string> };
const next = phaseFromStatus(statusData.status);
setPhase(next);
if (statusData.channel_errors && Object.keys(statusData.channel_errors).length > 0) {
console.warn('[pipeline] Partial failures:', statusData.channel_errors);
}
if (statusData.status === 'complete') break;
if (statusData.status === 'failed' || statusData.status === 'collection_failed') {
throw new Error(`파이프라인 실패: ${statusData.status}`);
}
await new Promise((r) => setTimeout(r, 1500));
}
setPhase('complete');
clearSession();
// 최종 리포트 조회 (best effort)
const reportRes = await getReport(reportId).catch(() => null);
const reportPayload = reportRes && reportRes.status === 200 ? reportRes.data : null;
setTimeout(() => {
navigate(`/report/${reportId}`, {
replace: true,
state: reportPayload
? { report: reportPayload, metadata: { url: startUrl, clinicName: '', generatedAt: new Date().toISOString() }, reportId, clinicId }
: undefined,
});
}, 800);
} catch (err) {
const msg = err instanceof Error ? err.message : 'An error occurred';
setError(msg);
if (err && typeof err === 'object' && 'code' in err) {
setErrorCode((err as { code?: string }).code || null);
}
if (err && typeof err === 'object' && 'domain' in err) {
setErrorDomain((err as { domain?: string }).domain || null);
}
}
}, [navigate, manualChannels, startAnalysisAsync]);
// 현재 실패한 단계부터 재시도
const handleRetry = useCallback(() => {
setError(null);
setErrorDetails(null);
const session = loadSession();
if (session.reportId) {
// 실패한 단계부터 resume
runPipeline(undefined, {
reportId: session.reportId,
clinicId: session.clinicId || undefined,
runId: session.runId || undefined,
phase,
});
} else if (url || session.url) {
// 처음부터 재시작
hasStarted.current = false;
runPipeline(url || session.url || undefined);
}
}, [phase, url, runPipeline]);
useEffect(() => {
if (hasStarted.current) return;
hasStarted.current = true;
// 1. URL 파라미터 resume 시도 (예: /report/loading/abc-123)
if (urlReportId) {
setPhase('resuming');
const session = loadSession();
const runId = session.runId || urlReportId;
getAnalysisStatus(runId)
.then((res) => {
if (res.status !== 200) throw new Error('status fetch failed');
const status = res.data as unknown as { status: string };
if (status.status === 'complete') {
navigate(`/report/${urlReportId}`, { replace: true });
return;
}
if (status.status === 'collection_failed') {
setError('Data collection failed. Please retry.');
setPhase('collecting');
return;
}
let resumePhase: Phase = 'discovering';
if (['discovered', 'discovering'].includes(status.status)) resumePhase = 'collecting';
else if (['collecting', 'collected', 'partial'].includes(status.status)) resumePhase = 'generating';
saveSession({ reportId: urlReportId, clinicId: session.clinicId || undefined, runId, url: session.url || undefined });
runPipeline(undefined, { reportId: urlReportId, clinicId: session.clinicId || undefined, runId, phase: resumePhase });
})
.catch(() => {
setError('Could not resume analysis. Please try again.');
});
return;
}
// 2. sessionStorage resume 시도
const session = loadSession();
if (session.reportId && !url) {
setPhase('resuming');
const runId = session.runId || session.reportId;
getAnalysisStatus(runId)
.then((res) => {
if (res.status !== 200) throw new Error('status fetch failed');
const status = res.data as unknown as { status: string };
if (status.status === 'complete') {
clearSession();
navigate(`/report/${session.reportId}`, { replace: true });
return;
}
let resumePhase: Phase = 'discovering';
if (['discovered', 'discovering'].includes(status.status)) resumePhase = 'collecting';
else if (['collecting', 'collected', 'partial'].includes(status.status)) resumePhase = 'generating';
runPipeline(undefined, {
reportId: session.reportId!,
clinicId: session.clinicId || undefined,
runId,
phase: resumePhase,
});
})
.catch(() => {
clearSession();
navigate('/', { replace: true });
});
return;
}
// 3. URL로 처음부터 시작
if (!url) {
navigate('/', { replace: true });
return;
}
runPipeline(url);
}, [url, urlReportId, navigate, runPipeline]);
// 'resuming' 상태일 때 phaseIndex 조정
const displayPhaseIndex = phase === 'resuming' ? -1 : phaseIndex;
return (
<div className="relative min-h-screen bg-primary-900 flex flex-col items-center justify-center px-6 overflow-hidden">
<div className="absolute inset-0 bg-[radial-gradient(ellipse_at_center,_rgba(79,29,161,0.25)_0%,_transparent_70%)]" />
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[500px] h-[500px] bg-purple-600/20 rounded-full blur-[120px] pointer-events-none" />
<div className="relative z-10 flex flex-col items-center w-full max-w-lg">
<motion.h1
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.6 }}
className="text-4xl md:text-5xl font-serif font-bold mb-4"
style={{
background: 'linear-gradient(to right, #fff3eb, #e4cfff, #f5f9ff)',
WebkitBackgroundClip: 'text',
WebkitTextFillColor: 'transparent',
}}
>
INFINITH
</motion.h1>
{(url || loadSession().url) && (
<motion.p
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.6, delay: 0.1 }}
className="text-purple-300/80 text-sm font-mono mb-12 truncate max-w-full"
>
{url || loadSession().url}
</motion.p>
)}
{error ? (
errorCode === 'CLINIC_NOT_REGISTERED' ? (
<motion.div
initial={{ opacity: 0, scale: 0.95 }}
animate={{ opacity: 1, scale: 1 }}
className="w-full p-6 rounded-2xl bg-purple-500/10 border border-purple-500/20 text-center"
>
<ShieldX className="w-10 h-10 text-purple-400 mx-auto mb-3" />
<p className="text-white text-lg font-medium mb-2">미등록 병원</p>
<p className="text-purple-300/80 text-sm mb-1">
<span className="font-mono text-purple-200">{errorDomain}</span>
</p>
<p className="text-purple-300/60 text-sm mb-6">
현재 분석 대상 병원 목록에 포함되지 않은 도메인입니다.
</p>
<button
onClick={() => { clearSession(); navigate('/', { replace: true }); }}
className="px-6 py-2 text-sm font-medium text-white bg-purple-600/30 rounded-lg hover:bg-purple-600/50 transition-colors"
>
돌아가기
</button>
</motion.div>
) : (
<motion.div
initial={{ opacity: 0, scale: 0.95 }}
animate={{ opacity: 1, scale: 1 }}
className="w-full p-6 rounded-2xl bg-red-500/10 border border-red-500/20 text-center"
>
<AlertCircle className="w-10 h-10 text-red-400 mx-auto mb-3" />
<p className="text-red-300 text-sm mb-4">{error}</p>
{errorDetails && (
<div className="mb-4 text-left bg-red-500/5 rounded-lg p-3">
<p className="text-red-400/60 text-xs font-mono mb-1">Failed channels:</p>
{Object.entries(errorDetails).map(([ch, err]) => (
<p key={ch} className="text-red-400/80 text-xs font-mono">
• {ch}: {err}
</p>
))}
</div>
)}
<div className="flex gap-3 justify-center">
<button
onClick={handleRetry}
className="px-6 py-2 text-sm font-medium text-white bg-purple-600/30 rounded-lg hover:bg-purple-600/50 transition-colors flex items-center gap-2"
>
<RefreshCw className="w-4 h-4" />
Retry
</button>
<button
onClick={() => { clearSession(); navigate('/', { replace: true }); }}
className="px-6 py-2 text-sm font-medium text-white bg-white/10 rounded-lg hover:bg-white/20 transition-colors"
>
Start Over
</button>
</div>
</motion.div>
)
) : (
<>
{phase === 'resuming' ? (
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
className="flex flex-col items-center gap-4 mb-14"
>
<div className="w-7 h-7 rounded-full border-2 border-purple-400 border-t-transparent animate-spin" />
<p className="text-purple-200 text-sm">Resuming analysis...</p>
</motion.div>
) : (
<>
<div className="w-full space-y-5 mb-14">
{PHASE_STEPS.map((step, index) => {
const isCompleted = displayPhaseIndex > index || (step.key === 'complete' && phase === 'complete');
const isActive = displayPhaseIndex === index && phase !== 'complete';
return (
<motion.div
key={step.key}
initial={{ opacity: 0, x: -20 }}
animate={{ opacity: isActive || isCompleted ? 1 : 0.3, x: 0 }}
transition={{ duration: 0.4, delay: index * 0.15 }}
className="flex items-center gap-4"
>
<div className="w-7 h-7 flex-shrink-0 flex items-center justify-center">
{isCompleted ? (
<motion.div
initial={{ scale: 0 }}
animate={{ scale: 1 }}
transition={{ type: 'spring', stiffness: 300, damping: 20 }}
className="w-7 h-7 rounded-full bg-gradient-to-r from-[#4F1DA1] to-[#6C5CE7] flex items-center justify-center"
>
<Check className="w-4 h-4 text-white" strokeWidth={3} />
</motion.div>
) : isActive ? (
<div className="w-7 h-7 rounded-full border-2 border-purple-400 border-t-transparent animate-spin" />
) : (
<div className="w-7 h-7 rounded-full border-2 border-white/10" />
)}
</div>
<span
className={`text-base font-sans transition-colors duration-300 ${
isCompleted ? 'text-white' : isActive ? 'text-purple-200' : 'text-white/30'
}`}
>
{isCompleted ? step.labelDone : step.label}
</span>
</motion.div>
);
})}
</div>
<div className="w-full h-2 bg-white/10 rounded-full overflow-hidden">
<motion.div
initial={{ width: '0%' }}
animate={{ width: `${((displayPhaseIndex + (phase === 'complete' ? 1 : 0.5)) / PHASE_STEPS.length) * 100}%` }}
transition={{ duration: 0.8, ease: 'easeInOut' }}
className="h-full bg-gradient-to-r from-[#4F1DA1] to-[#6C5CE7] rounded-full"
/>
</div>
<p className="text-white/40 text-xs mt-4">
AI가 마케팅 데이터를 분석하고 있습니다. 약 1~2분 소요됩니다.
</p>
</>
)}
</>
)}
</div>
</div>
);
}
+144
View File
@@ -0,0 +1,144 @@
import { useMemo } from 'react';
import { useParams, useLocation } from 'react-router';
import { useReport } from '../hooks/useReport';
import { useEnrichment } from '@/features/channels/hooks/useEnrichment';
import { ReportNav } from '@/features/report/components/ReportNav';
import { ScreenshotProvider } from '@/features/report/stores/ScreenshotContext';
import { REPORT_SECTIONS } from '@/shared/constants/reportSections';
import { SectionErrorBoundary } from '@/features/report/components/ui/SectionErrorBoundary';
import ReportHeader from '@/features/report/components/ReportHeader';
import ClinicSnapshot from '@/features/report/components/ClinicSnapshot';
import ChannelOverview from '@/features/report/components/ChannelOverview';
import YouTubeAudit from '@/features/report/components/YouTubeAudit';
import InstagramAudit from '@/features/report/components/InstagramAudit';
import FacebookAudit from '@/features/report/components/FacebookAudit';
import OtherChannels from '@/features/report/components/OtherChannels';
import ProblemDiagnosis from '@/features/report/components/ProblemDiagnosis';
import TransformationProposal from '@/features/report/components/TransformationProposal';
import RoadmapTimeline from '@/features/report/components/RoadmapTimeline';
import KPIDashboard from '@/features/report/components/KPIDashboard';
export default function ReportPage() {
const { id } = useParams<{ id: string }>();
const location = useLocation();
const {
data: baseData,
isLoading,
error,
isEnriched,
socialHandles: dbSocialHandles,
} = useReport(id);
// 보강 파라미터 생성 — 이미 보강된 경우(DB 데이터) 스킵
const enrichmentParams = useMemo(() => {
if (!baseData || isEnriched) return null;
// 우선순위: location.state socialHandles > DB socialHandles > 변환된 데이터
const state = location.state as Record<string, unknown> | undefined;
const metadata = state?.metadata as Record<string, unknown> | undefined;
const stateSocialHandles = metadata?.socialHandles as Record<string, string | null> | undefined;
const handles = stateSocialHandles || dbSocialHandles;
// Instagram: 다중 계정(배열) 또는 단일 핸들 모두 지원
const igHandles: string[] = Array.isArray(handles?.instagram)
? handles.instagram.filter(Boolean) as string[]
: handles?.instagram ? [handles.instagram as string] : [];
const ytHandle =
handles?.youtube ||
baseData.youtubeAudit?.handle ||
undefined;
const fbHandle = handles?.facebook || undefined;
return {
reportId: baseData.id,
clinicName: baseData.clinicSnapshot.name,
instagramHandles: igHandles.length > 0 ? igHandles : undefined,
youtubeChannelId: ytHandle || undefined,
facebookHandle: fbHandle as string | undefined,
address: baseData.clinicSnapshot.location || undefined,
};
}, [baseData, isEnriched, dbSocialHandles, location.state]);
const { status: enrichStatus, enrichedReport } = useEnrichment(baseData, enrichmentParams);
// 보강 데이터가 있으면 사용, 없으면 베이스 데이터 사용
const data = enrichedReport || baseData;
if (isLoading) {
return (
<div className="min-h-screen flex items-center justify-center pt-20">
<div className="flex flex-col items-center gap-4">
<div className="w-10 h-10 border-4 border-[#6C5CE7] border-t-transparent rounded-full animate-spin" />
<p className="text-slate-500 text-sm">리포트를 불러오는 중...</p>
</div>
</div>
);
}
if (error || !data) {
return (
<div className="min-h-screen flex items-center justify-center pt-20">
<div className="text-center">
<p className="text-[#7C3A4B] font-medium mb-2">오류가 발생했습니다</p>
<p className="text-slate-500 text-sm">{error ?? '리포트를 찾을 수 없습니다.'}</p>
</div>
</div>
);
}
return (
<ScreenshotProvider screenshots={data.screenshots ?? []}>
<div className="pt-20">
<ReportNav sections={REPORT_SECTIONS} />
{/* Enrichment status indicator */}
{enrichStatus === 'loading' && (
<div className="fixed bottom-6 right-6 z-50 flex items-center gap-3 px-4 py-3 bg-white rounded-xl shadow-[3px_4px_12px_rgba(0,0,0,0.06)] border border-slate-100">
<div className="w-4 h-4 border-2 border-[#6C5CE7] border-t-transparent rounded-full animate-spin" />
<span className="text-xs text-slate-500">채널 데이터 보강 중...</span>
</div>
)}
<div data-report-content>
<ReportHeader
overallScore={data.overallScore}
clinicName={data.clinicSnapshot.name}
clinicNameEn={data.clinicSnapshot.nameEn}
targetUrl={data.targetUrl}
date={data.createdAt}
location={data.clinicSnapshot.location}
logoImage={data.clinicSnapshot.logoImages?.horizontal}
brandColors={data.clinicSnapshot.brandColors}
/>
<SectionErrorBoundary><ClinicSnapshot data={data.clinicSnapshot} /></SectionErrorBoundary>
<SectionErrorBoundary><ChannelOverview channels={data.channelScores} /></SectionErrorBoundary>
<SectionErrorBoundary><YouTubeAudit data={data.youtubeAudit} /></SectionErrorBoundary>
<SectionErrorBoundary><InstagramAudit data={data.instagramAudit} /></SectionErrorBoundary>
<SectionErrorBoundary><FacebookAudit data={data.facebookAudit} /></SectionErrorBoundary>
<SectionErrorBoundary><OtherChannels
channels={data.otherChannels}
website={data.websiteAudit}
/></SectionErrorBoundary>
<SectionErrorBoundary><ProblemDiagnosis diagnosis={data.problemDiagnosis} /></SectionErrorBoundary>
<SectionErrorBoundary><TransformationProposal data={data.transformation} /></SectionErrorBoundary>
<SectionErrorBoundary><RoadmapTimeline months={data.roadmap} /></SectionErrorBoundary>
<SectionErrorBoundary><KPIDashboard metrics={data.kpiDashboard} clinicName={data.clinicSnapshot.name} /></SectionErrorBoundary>
</div>
</div>
</ScreenshotProvider>
);
}
+11
View File
@@ -0,0 +1,11 @@
import { lazy } from 'react'
import type { RouteObject } from 'react-router'
const ReportPage = lazy(() => import('./pages/ReportPage'))
const AnalysisLoadingPage = lazy(() => import('./pages/AnalysisLoadingPage'))
export const reportRoutes: RouteObject[] = [
{ path: 'report/loading', element: <AnalysisLoadingPage /> },
{ path: 'report/loading/:reportId', element: <AnalysisLoadingPage /> },
{ path: 'report/:id', element: <ReportPage /> },
]
@@ -0,0 +1,41 @@
import { createContext, useContext, useMemo, type ReactNode } from 'react';
import type { ScreenshotEvidence } from '@/features/report/types/report';
interface ScreenshotContextValue {
screenshots: ScreenshotEvidence[];
getById: (id: string) => ScreenshotEvidence | undefined;
getByIds: (ids: string[]) => ScreenshotEvidence[];
}
const ScreenshotContext = createContext<ScreenshotContextValue>({
screenshots: [],
getById: () => undefined,
getByIds: () => [],
});
export function ScreenshotProvider({
screenshots,
children,
}: {
screenshots: ScreenshotEvidence[];
children: ReactNode;
}) {
const value = useMemo(() => {
const map = new Map(screenshots.map((s) => [s.id, s]));
return {
screenshots,
getById: (id: string) => map.get(id),
getByIds: (ids: string[]) => ids.map((id) => map.get(id)).filter(Boolean) as ScreenshotEvidence[],
};
}, [screenshots]);
return (
<ScreenshotContext.Provider value={value}>
{children}
</ScreenshotContext.Provider>
);
}
export function useScreenshots() {
return useContext(ScreenshotContext);
}
+243
View File
@@ -0,0 +1,243 @@
export type Severity = 'critical' | 'warning' | 'good' | 'excellent' | 'unknown';
export interface ScreenshotAnnotation {
type: 'highlight' | 'arrow' | 'text';
x: number;
y: number;
width?: number;
height?: number;
label?: string;
color?: string;
}
export interface ScreenshotEvidence {
id: string;
url: string;
channel: string;
capturedAt: string;
caption: string;
sourceUrl?: string;
annotations?: ScreenshotAnnotation[];
}
export interface DiagnosisItem {
category: string;
detail: string;
severity: Severity;
evidenceIds?: string[];
}
export interface ClinicSnapshot {
name: string;
nameEn: string;
established: string;
yearsInBusiness: number;
staffCount: number;
leadDoctor: {
name: string;
credentials: string;
rating: number;
reviewCount: number;
};
overallRating: number;
totalReviews: number;
priceRange: { min: string; max: string; currency: string };
certifications: string[];
mediaAppearances: string[];
medicalTourism: string[];
location: string;
nearestStation: string;
phone: string;
domain: string;
logoImages?: {
circle?: string;
horizontal?: string;
korean?: string;
};
brandColors?: {
primary: string;
accent: string;
text: string;
};
/** 'registry' = Registry DB에서 검증된 채널로 분석. 'scrape' = 홈페이지 실시간 탐색. */
source?: 'registry' | 'scrape';
/** Registry에서 가져온 병원 메타데이터 */
registryData?: {
district?: string; // 지역구 (강남, 압구정, 서초, 역삼)
branches?: string; // 분점 정보
brandGroup?: string; // 분류 (프리미엄/하이타깃 후보)
websiteEn?: string; // 영문 사이트 URL
naverPlaceUrl?: string;
gangnamUnniUrl?: string;
googleMapsUrl?: string;
};
}
export interface TopVideo {
title: string;
views: number;
uploadedAgo: string;
type: 'Short' | 'Long';
duration?: string;
}
export interface YouTubeAudit {
channelName: string;
handle: string;
subscribers: number;
totalVideos: number;
totalViews: number;
weeklyViewGrowth: { absolute: number; percentage: number };
estimatedMonthlyRevenue: { min: number; max: number };
avgVideoLength: string;
uploadFrequency: string;
channelCreatedDate: string;
subscriberRank: string;
channelDescription: string;
linkedUrls: { label: string; url: string }[];
playlists: string[];
topVideos: TopVideo[];
diagnosis: DiagnosisItem[];
}
export interface InstagramAccount {
handle: string;
language: 'KR' | 'EN';
label: string;
posts: number;
followers: number;
following: number;
category: string;
profileLink: string;
highlights: string[];
reelsCount: number;
contentFormat: string;
profilePhoto: string;
bio: string;
}
export interface InstagramAudit {
accounts: InstagramAccount[];
diagnosis: DiagnosisItem[];
}
export interface BrandInconsistency {
field: string;
values: { channel: string; value: string; isCorrect: boolean }[];
impact: string;
recommendation: string;
}
export interface FacebookPage {
url: string;
pageName: string;
language: 'KR' | 'EN';
label: string;
followers: number;
following: number;
category: string;
bio: string;
logo: string;
logoDescription: string;
link: string;
linkedDomain: string;
reviews: number;
recentPostAge: string;
hasWhatsApp: boolean;
postFrequency?: string;
topContentType?: string;
engagement?: string;
}
export interface FacebookAudit {
pages: FacebookPage[];
diagnosis: DiagnosisItem[];
brandInconsistencies: BrandInconsistency[];
consolidationRecommendation: string;
}
export interface OtherChannel {
name: string;
status: 'active' | 'inactive' | 'unknown' | 'not_found';
details: string;
url?: string;
}
export interface TrackingPixel {
name: string;
installed: boolean;
details?: string;
}
export interface WebsiteAudit {
primaryDomain: string;
additionalDomains: { domain: string; purpose: string }[];
snsLinksOnSite: boolean;
snsLinksDetail?: { platform: string; url: string; location: string }[];
trackingPixels: TrackingPixel[];
mainCTA: string;
}
export interface AsIsToBeItem {
area: string;
asIs: string;
toBe: string;
}
export interface PlatformStrategy {
platform: string;
icon: string;
currentMetric: string;
targetMetric: string;
strategies: { strategy: string; detail: string }[];
}
export interface TransformationProposal {
brandIdentity: AsIsToBeItem[];
contentStrategy: AsIsToBeItem[];
platformStrategies: PlatformStrategy[];
websiteImprovements: AsIsToBeItem[];
newChannelProposals: { channel: string; priority: string; rationale: string }[];
}
export interface RoadmapMonth {
month: number;
title: string;
subtitle: string;
tasks: { task: string; completed: boolean }[];
}
export interface KPIMetric {
metric: string;
current: string;
target3Month: string;
target12Month: string;
}
export interface ChannelScore {
channel: string;
icon: string;
score: number;
maxScore: number;
status: Severity;
headline: string;
}
export interface MarketingReport {
id: string;
createdAt: string;
targetUrl: string;
overallScore: number;
clinicSnapshot: ClinicSnapshot;
channelScores: ChannelScore[];
youtubeAudit: YouTubeAudit;
instagramAudit: InstagramAudit;
facebookAudit: FacebookAudit;
otherChannels: OtherChannel[];
websiteAudit: WebsiteAudit;
problemDiagnosis: DiagnosisItem[];
transformation: TransformationProposal;
roadmap: RoadmapMonth[];
kpiDashboard: KPIMetric[];
screenshots?: ScreenshotEvidence[];
}