Skip to content

Fix stale "Arriving" countdown on arrived flights (v1.18.1)#83

Merged
asubowo merged 1 commit into
v1from
dev
Jul 3, 2026
Merged

Fix stale "Arriving" countdown on arrived flights (v1.18.1)#83
asubowo merged 1 commit into
v1from
dev

Conversation

@asubowo

@asubowo asubowo commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Patch fix for a regression where an Arrived flight (no live telemetry, but progressPct 100 / negative minsRemaining) rendered a stale ARRIVING IN / Arriving countdown tile.

  • Add isArrived() + a shared progressTile() helper used by full and half variants; once landed the tile shows ARRIVED + the actual landing time.
  • Regression test in renderers.test.ts (full + half + Likely Arrived).
  • New "Arrived, no telemetry" preview scenario.
  • Expanded a few shorthand locals (cdcountdownState, ptfallbackTile).

50 tests pass, build clean.

🤖 Generated with Claude Code

…instead

Once a flight has landed it still carries progressPct/minsRemaining, so the
no-telemetry fallback rendered "ARRIVING IN / Arriving" for a flight that
arrived hours ago. Add an isArrived() check and a shared progressTile() helper
(used by full + half variants) that shows ARRIVED + the landing time in the
terminal state. Adds a regression test and an "Arrived" preview scenario, and
expands a few shorthand locals (cd -> countdownState, pt -> fallbackTile).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@asubowo asubowo merged commit 900b9a9 into v1 Jul 3, 2026
4 checks 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.

1 participant