Hide per-date rescrape button for past columns

Scraping a past date via the hotel-page backend wouldn't return anything
useful (Booking.com shows no availability for dates gone by). The ↻
button is now only rendered for today and future dates.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-10 00:13:38 +00:00
parent c49985bec7
commit 0721769e03

View file

@ -1729,6 +1729,7 @@ const RateMatrixTab: React.FC = () => {
<span style={styles.scrapeAge}>{scrapeAge}</span>
) : null}
<div style={{ display: 'flex', gap: 2, alignItems: 'center', justifyContent: 'center' }}>
{d >= todayStr && (
<button
onClick={() => enqueueScrape(d, d)}
disabled={queuePos >= 0}
@ -1744,6 +1745,7 @@ const RateMatrixTab: React.FC = () => {
>
{scrapingDate === d ? '...' : queuePos >= 0 ? `#${queuePos + 1}` : '↻'}
</button>
)}
{locationName && d >= todayStr && (
<a
href={buildSearchUrl(locationName, d)}