lekss361
|
1d82a56a6a
|
feat(tradein): /scrapers/avito — 5-я секция City sweep (auto + cancel + runs list)
- City sweep form: pages_per_anchor (1-10), detail_top_n (0-30), request_delay_sec (3-15),
radius_m, enrich_houses checkbox -> POST /admin/scrape/avito-city-sweep
- 'Запустить sweep' button -> returns run_id (background task)
- Recent runs table (auto-poll 5s): status badge, started/heartbeat, counters
(anchors_done/total, lots, houses_enriched/unique, detail_enriched/attempted, errors)
- 'Отменить' button per running run -> POST /scrape/avito-city-sweep/{run_id}/cancel
- Status badges с цветами (running/done/failed/cancelled/zombie)
- translateStatus helper (RU labels), formatTime helper (ru-RU locale)
- CSS: .scraper-section--highlight (синий border для city-sweep section),
.city-sweep-runs, .runs-table с tabular-nums, .run-badge variants, .cancel-btn
Backend контракт: 3 endpoints из parallel PR (avito-city-sweep start/runs/cancel).
TS strict + next build pass.
|
2026-05-23 17:32:28 +03:00 |
|