Skip to content

fix(data): fresher fallback feed and honest unavailable state - #182

Merged
sbc1-code merged 1 commit into
mainfrom
claude/fresher-fallback-20261109
Nov 10, 2026
Merged

sbc1-code merged 1 commit into
mainfrom
claude/fresher-fallback-20261109

Conversation

@sbc1-code

Copy link
Copy Markdown
Owner

What

Resumes the Nov 5 BorderPulse fallback findings, rebuilt from current main (the Nov 5 candidate was never pushed).

  1. Stale backup. When /api/public/crossings fails, the client now also reads the collector's committed feed through a same-origin rewrite (/data/latest/crossings.json -> GitHub main/public/data/crossings.json) and keeps whichever valid backup is newer: collector feed or bundled copy. The bundled copy only refreshes on daily Vercel deploys. Readings stay labeled as fallback with their original clock.
  2. Both sources down. Map notice and list empty states no longer claim saved fallback data or a filter result. EN/ES say current reports could not load and no waits are shown.

Checks

  • 2 new regression tests (fail on old code, pass now). Full npm test passes after a prerendered build.
  • Headless Chrome, all sources returning 503: EN 1280px and ES 390px show the unavailable copy, no saved-data/filter wording, no overflow.
  • Entry budget 62 -> 62.25 KB gzip (+0.19 KB measured).

Not verified

  • The Vercel external rewrite itself in production. Check /data/latest/crossings.json on this PR's preview before merging.
  • Native Safari, physical devices.

Not merged. Needs owner approval.


Generated by Claude Code

When the live CBP endpoint fails, read the collector's committed feed via a
same-origin rewrite and keep the newer of it and the bundled copy (which only
refreshes on daily Vercel deploys). When nothing loads, stop labeling the empty
state as saved fallback data or a filter result (EN/ES).

Entry budget 62 -> 62.25 KB gzip (+0.19 KB measured) for this fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JB1Z5Jn58ixqZtx1YGzvmC
@sbc1-code
sbc1-code marked this pull request as ready for review November 10, 2026 03:57
@sbc1-code
sbc1-code merged commit b447388 into main Nov 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants