fix: beauty frontend server-side filtering and bulk actions
- add keyword and tld params to get_enriched() in db.py (LIKE on domain + page_title) - forward keyword/tld through /api/enriched in beauty_main.py - rewrite beauty/index.html loadDomains() to pass all filters server-side via URLSearchParams - track domainsTotal from API response for correct pagination display - add Pre-screen Selected and B2B Assess Selected bulk action buttons - add per-row Screen and Assess buttons - goSearch() resets to page 1 before fetching Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -153,12 +153,15 @@ async def enriched(
|
||||
prescreen_status: str = Query(None),
|
||||
niche: str = Query(None),
|
||||
site_type: str = Query(None),
|
||||
keyword: str = Query(None),
|
||||
tld: str = Query(None),
|
||||
page: int = Query(1, ge=1),
|
||||
limit: int = Query(100, ge=1, le=1000),
|
||||
):
|
||||
total, rows = await get_enriched(
|
||||
min_score=min_score, country=country,
|
||||
prescreen_status=prescreen_status, niche=niche, site_type=site_type,
|
||||
keyword=keyword, tld=tld,
|
||||
page=page, limit=limit,
|
||||
)
|
||||
return {"page": page, "limit": limit, "total": total, "results": rows}
|
||||
|
||||
Reference in New Issue
Block a user