Wire up direct-rates column; remove dormant pause-on-block flow

Direct-rates sub-row in Market View was dead: the frontend filters
competitors on direct_hotel_id but /matrix and /hotels never returned it.
Add direct_hotel_id to both queries (+ HotelResponse), and only render the
"Direct" sub-row when a hotel actually has a non-null direct rate (was
rendering all-dashes on an empty {} object).

Remove the pause-on-block flow entirely — dormant since rotate-on-block
replaced it (nothing set booking_scraper_paused=true after set_scraper_paused
was dropped): is_scraper_paused, /config/unpause, the /scrape paused guard,
ScraperStatusResponse.paused/pause_until, and the frontend Paused badge +
Unpause button. Trim now-unused datetime import.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-06 06:01:56 +00:00
parent 1dc8c0a945
commit 74ae94671b
5 changed files with 15 additions and 103 deletions

View file

@ -38,8 +38,6 @@ export interface RateMatrixEntry {
export interface ScraperStatus {
enabled: boolean
paused: boolean
pause_until: string | null
backend: string
daily_time: string
last_batch: {