feat: 뷰성형외과 실제 데이터 기반 세일즈 프로토타입 완성
- 9개 채널 실제 데이터 수집 (Firecrawl + Chrome MCP) - mockReport.ts: 강남언니 9.5점/19,030리뷰 (TODO 해결), 채널 점수 갱신, Instagram 70K/14K 실제 수치, Facebook TH 페이지 발견, Naver Blog 활성화 - mockPlan.ts: Naver Blog 미확인→활성 550개, YouTube 104K 반영 - useReport: id='view-clinic' demo fallback 추가 - useMarketingPlan: id='view-clinic' demo fallback 추가 - Viewclinic Plan.md: 수집 데이터 전체 기록 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
2a1a6f20fb
commit
15099e8e1a
5 files changed
+419
-57
No files matched your search
@@ -89,7 +89,7 @@ export function useMarketingPlan(id: string | undefined): UseMarketingPlanResult
|
||||
async function loadPlan() {
|
||||
try {
|
||||
// ─── Dev / Demo: return mock data immediately ───
|
||||
if (id === 'demo') {
|
||||
if (id === 'demo' || id === 'view-clinic') {
|
||||
setData(mockPlan);
|
||||
setIsLoading(false);
|
||||
return;
|
||||
|
||||
+11
-1
@@ -4,6 +4,7 @@ import type { MarketingReport } from '../types/report';
|
||||
import { fetchReportById } from '../lib/supabase';
|
||||
import { transformApiReport, mergeEnrichment, type EnrichmentData } from '../lib/transformReport';
|
||||
import { normalizeInstagramHandle } from '../lib/normalizeHandles';
|
||||
import { mockReport } from '../data/mockReport';
|
||||
|
||||
interface UseReportResult {
|
||||
data: MarketingReport | null;
|
||||
@@ -67,7 +68,16 @@ export function useReport(id: string | undefined): UseReportResult {
|
||||
return;
|
||||
}
|
||||
|
||||
// Source 2: Fetch from Supabase by report ID (bookmarked/shared link)
|
||||
// Source 2: Demo mode — return hardcoded mock data for sales prototype
|
||||
if (id === 'view-clinic') {
|
||||
setData(mockReport);
|
||||
setIsEnriched(true);
|
||||
setSocialHandles({ instagram: '@viewplastic', youtube: '@ViewclinicKR', facebook: 'viewps1' });
|
||||
setIsLoading(false);
|
||||
return;
|
||||
}
|
||||
|
||||
// Source 3: Fetch from Supabase by report ID (bookmarked/shared link)
|
||||
if (id) {
|
||||
fetchReportById(id)
|
||||
.then((row) => {
|
||||
|
||||
Reference in new issue
Block a user