feat: Content Director engine + report diagnosis/roadmap/KPI overhaul + PDF export fix
- Content Director (contentDirector.ts): deterministic 4-week editorial calendar engine — pillar-service matrix, channel-format slots, weekly themes (브랜드 정비 → 콘텐츠 엔진 → 소셜 증거 → 전환 최적화) - transformPlan.ts: buildCalendar() delegates to Content Director with enrichment data (YouTube videos for repurposing) - transformReport.ts: buildTransformation() generates rich per-channel platform strategies; buildRoadmap() creates Foundation/Content Engine/ Optimization 3-phase plan; buildKpiDashboard() generates 10+ channel- specific metrics with targets - ProblemDiagnosis: clustered 3 core issues (brand/content/funnel) in glass cards + expandable detail list - RoadmapTimeline: Foundation/Content Engine/Optimization structure - KPIDashboard: formatKpiValue() for human-readable numbers (150K, 1.5M) - YouTubeAudit: metric-based diagnosis rows (subscriber ratio, upload freq) - ContentCalendar: week theme labels, channel symbols, compact entries - useExportPDF: triggerAllAnimations() scrolls all sections to fire whileInView before capture; isDarkSection() keeps dark sections whole; forceVisible() 2-pass opacity/transform override Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
e32b8766de
commit
da267fd744
12 files changed
+1159
-340
No files matched your search
@@ -33,6 +33,17 @@ const contentTypeIcons: Record<ContentCategory, typeof VideoFilled> = {
|
||||
ad: MegaphoneFilled,
|
||||
};
|
||||
|
||||
const channelEmojiMap: Record<string, string> = {
|
||||
youtube: '▶',
|
||||
instagram: '◎',
|
||||
facebook: 'f',
|
||||
blog: '✎',
|
||||
globe: '◉',
|
||||
star: '★',
|
||||
map: '◇',
|
||||
video: '▷',
|
||||
};
|
||||
|
||||
const dayHeaders = ['월', '화', '수', '목', '금', '토', '일'];
|
||||
|
||||
export default function ContentCalendar({ data }: ContentCalendarProps) {
|
||||
@@ -88,7 +99,9 @@ export default function ContentCalendar({ data }: ContentCalendarProps) {
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.4, delay: weekIdx * 0.1 }}
|
||||
>
|
||||
<p className="text-sm font-semibold text-[#0A1128] mb-3">{week.label}</p>
|
||||
{/* Week header with theme */}
|
||||
<p className="text-sm font-bold text-[#0A1128] mb-3">{week.label}</p>
|
||||
|
||||
<div className="grid grid-cols-7 gap-2">
|
||||
{/* Day headers */}
|
||||
{dayHeaders.map((day) => (
|
||||
@@ -104,7 +117,7 @@ export default function ContentCalendar({ data }: ContentCalendarProps) {
|
||||
{dayCells.map((entries, dayIdx) => (
|
||||
<div
|
||||
key={dayIdx}
|
||||
className={`min-h-[80px] rounded-xl p-2 ${
|
||||
className={`min-h-[80px] rounded-xl p-1.5 ${
|
||||
entries.length > 0
|
||||
? 'bg-slate-50/50 border border-slate-100'
|
||||
: 'border border-dashed border-slate-200/60'
|
||||
@@ -113,15 +126,19 @@ export default function ContentCalendar({ data }: ContentCalendarProps) {
|
||||
{entries.map((entry, entryIdx) => {
|
||||
const colors = contentTypeColors[entry.contentType];
|
||||
const Icon = contentTypeIcons[entry.contentType];
|
||||
const channelSymbol = channelEmojiMap[entry.channelIcon] || '·';
|
||||
return (
|
||||
<div
|
||||
key={entryIdx}
|
||||
className={`${colors.entry} border rounded-lg p-2 mb-1 shadow-[2px_2px_6px_rgba(0,0,0,0.04)]`}
|
||||
className={`${colors.entry} border rounded-lg p-1.5 mb-1 last:mb-0`}
|
||||
>
|
||||
<div className="flex items-center gap-1 mb-1">
|
||||
<Icon size={11} className={colors.text} />
|
||||
<div className="flex items-center gap-1 mb-0.5">
|
||||
<span className={`text-[9px] font-bold ${colors.text} leading-none`}>
|
||||
{channelSymbol}
|
||||
</span>
|
||||
<Icon size={10} className={colors.text} />
|
||||
</div>
|
||||
<p className="text-sm text-slate-700 leading-tight">
|
||||
<p className="text-[11px] text-slate-700 leading-tight line-clamp-2">
|
||||
{entry.title}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user