Add consolidated onboarding SEO task health API and dashboard panel

This commit is contained in:
ي
2026-03-08 23:09:02 +05:30
parent 5d49351c2d
commit 936dd14e0d
5 changed files with 298 additions and 363 deletions

View File

@@ -130,7 +130,8 @@ from api.seo_dashboard import (
analyze_urls_ai,
AnalyzeURLsRequest,
get_analyzed_pages,
get_semantic_health # Phase 2B: Semantic health monitoring
get_semantic_health, # Phase 2B: Semantic health monitoring
get_onboarding_task_health,
)
@@ -316,6 +317,13 @@ async def refresh_analytics_data_endpoint(current_user: dict = Depends(get_curre
"""Refresh analytics data by invalidating cache and fetching fresh data."""
return await refresh_analytics_data(current_user, site_url)
@app.get("/api/seo-dashboard/onboarding-task-health")
async def onboarding_task_health_endpoint(current_user: dict = Depends(get_current_user), site_url: str = None):
"""Get consolidated health for onboarding-scheduled SEO tasks."""
return await get_onboarding_task_health(current_user, site_url)
@app.get("/api/seo-dashboard/health")
async def seo_dashboard_health():
"""Health check for SEO dashboard."""