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