Spaces:
Runtime error
Runtime error
Commit History
-
feat: add Campaign-level drill-down, anomaly alerts, and pacing curve
wen QiuPhase 1 - Campaign drill-down in daily monitor: - _build_hierarchy now builds 4 layers: Country > Platform > Funnel > Campaign Name (Top 10) - Each campaign shows Cost/Revenue/ROAS with vs-7d-avg changes - Frontend renders collapsible campaign rows under each funnel type Phase 2 - Campaign anomaly alerts: - _build_campaign_alerts detects 3 types: cost spike (>2x), ROAS drop (>50%), spending stopped - New "Campaign 异动" alert card in monitor tab with red/yellow severity Phase 3 - Budget pacing curve: - budget.py returns daily cumulative spend vs ideal pace line - ECharts area chart in budget tab shows actual vs planned spending trajectory Made-with: Cursorec533d1 -
fix: compute ROAS using only Conversion funnel data in budget tracking
wen QiuROAS target corresponds to Conversion campaigns only. Previously the calculation included Awareness and Consideration spend/revenue which diluted the actual ROAS figure. Now filters to campaign_type=Conversion before computing ROAS and DM revenue achievement. Made-with: Cursor90719f1
-
refactor: consolidate repo structure, remove upload_to_github duplication
unknownMade-with: Cursor3291500