diff --git a/docs/reports/~$Taeha_AI_Answer_Readiness_Report.pptx b/docs/reports/~$Taeha_AI_Answer_Readiness_Report.pptx deleted file mode 100644 index f490df2..0000000 Binary files a/docs/reports/~$Taeha_AI_Answer_Readiness_Report.pptx and /dev/null differ diff --git a/src/components/MultiChannelInput.tsx b/src/components/MultiChannelInput.tsx index 6aedfa8..103bfda 100644 --- a/src/components/MultiChannelInput.tsx +++ b/src/components/MultiChannelInput.tsx @@ -132,7 +132,7 @@ export default function MultiChannelInput({ variant = 'hero', onAnalyze }: Multi gangnamUnni: aggregated.gangnamUnni.length ? aggregated.gangnamUnni : undefined, }, rawInput: Object.entries(urls) - .filter(([, v]) => v.trim()) + .filter(([, v]) => typeof v === 'string' && v.trim() !== '') .map(([k, v]) => `${k}: ${v}`) .join('\n'), }; diff --git a/src/components/plan/BrandingGuide.tsx b/src/components/plan/BrandingGuide.tsx index 406aad3..085e880 100644 --- a/src/components/plan/BrandingGuide.tsx +++ b/src/components/plan/BrandingGuide.tsx @@ -55,7 +55,7 @@ const statusLabel: Record = { }; /* ─── Color Swatch Editor Popover ─── */ -function ColorSwatchCard({ swatch, onUpdate }: { swatch: ColorSwatch; onUpdate: (newHex: string) => void }) { +function ColorSwatchCard({ swatch, onUpdate }: { key?: string; swatch: ColorSwatch; onUpdate: (newHex: string) => void }) { const [open, setOpen] = useState(false); const [hexInput, setHexInput] = useState(swatch.hex); const popoverRef = useRef(null); diff --git a/src/components/plan/WorkflowTracker.tsx b/src/components/plan/WorkflowTracker.tsx index f589028..1a39191 100644 --- a/src/components/plan/WorkflowTracker.tsx +++ b/src/components/plan/WorkflowTracker.tsx @@ -79,6 +79,7 @@ function StageBar({ currentStage }: { currentStage: WorkflowStage }) { } function WorkflowCard({ item, onStageChange, onNotesChange }: { + key?: string; item: WorkflowItem; onStageChange: (id: string, stage: WorkflowStage) => void; onNotesChange: (id: string, notes: string) => void; diff --git a/src/lib/transformPlan.ts b/src/lib/transformPlan.ts index af7ceec..56609e2 100644 --- a/src/lib/transformPlan.ts +++ b/src/lib/transformPlan.ts @@ -194,8 +194,10 @@ function buildAssets(enrichment: EnrichmentData | undefined): { assets: AssetCar // Instagram posts → photo assets const igAccounts = enrichment.instagramAccounts || (enrichment.instagram ? [enrichment.instagram] : []); for (const ig of igAccounts) { - if (ig.latestPosts) { - for (const p of (ig.latestPosts as { type?: string; likes?: number; caption?: string }[]).slice(0, 3)) { + const igPosts = (ig as { latestPosts?: { type?: string; likes?: number; caption?: string }[] }) + .latestPosts; + if (igPosts) { + for (const p of igPosts.slice(0, 3)) { assets.push({ id: `ig-${assetIdx++}`, source: 'social', diff --git a/src/lib/transformReport.ts b/src/lib/transformReport.ts index 2664445..12584aa 100644 --- a/src/lib/transformReport.ts +++ b/src/lib/transformReport.ts @@ -159,7 +159,7 @@ function buildDiagnosis(report: ApiReport): DiagnosisItem[] { } if (ch.issues) { for (const issue of ch.issues) { - const issueObj = issue as Record; + const issueObj = issue as unknown as Record; const detail = typeof issue === 'string' ? issue : typeof issueObj.issue === 'string' diff --git a/src/pages/ApiDashboardPage.tsx b/src/pages/ApiDashboardPage.tsx index 379affa..5921a5e 100644 --- a/src/pages/ApiDashboardPage.tsx +++ b/src/pages/ApiDashboardPage.tsx @@ -262,7 +262,7 @@ function CategoryBadge({ category }: { category: ApiConfig['category'] }) { ); } -function EnvKeyRow({ envKey, present, isServerSide }: { envKey: string; present: boolean; isServerSide: boolean }) { +function EnvKeyRow({ envKey, present, isServerSide }: { key?: string; envKey: string; present: boolean; isServerSide: boolean }) { const [showKey, setShowKey] = useState(false); const [copied, setCopied] = useState(false); @@ -303,7 +303,7 @@ function EnvKeyRow({ envKey, present, isServerSide }: { envKey: string; present: ); } -function ApiCard({ api, index }: { api: ApiStatusInfo; index: number }) { +function ApiCard({ api, index }: { key?: string; api: ApiStatusInfo; index: number }) { const [expanded, setExpanded] = useState(false); return ( diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts new file mode 100644 index 0000000..11f02fe --- /dev/null +++ b/src/vite-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/tsconfig.json b/tsconfig.json index d88f175..8f348a1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,5 +22,6 @@ }, "allowImportingTsExtensions": true, "noEmit": true - } + }, + "exclude": ["node_modules", "dist", "supabase"] }