Skip to content

Time-machine: scrub the last 10 minutes of plane positions #3

@vnmoorthy

Description

@vnmoorthy

Skylog keeps the last ~60 seconds of each plane's trail (in the trail array on PlaneMarkerRef). Extending that to a full 10-minute rolling buffer lets us offer a "time machine" slider at the bottom of the map: drag left to see the sky as it looked 10 minutes ago.

Scope:

  • In src/components/LiveMap.tsx, raise the per-marker trail cap from 8 samples to ~60 (10s poll interval × 60 = 10 min).
  • New component TimeMachineSlider.tsx — a horizontal slider (0=now, -600s=10 min ago).
  • When slider is < 0, all plane markers jump to their nearest-time trail sample (no dead-reckoning during scrub).
  • Status badge shows "replaying − 5:30".
  • Pause the live poller during scrub, resume when slider returns to 0.

Why this is cool: if you miss a plane going over, you can rewind and catch it. Nobody else has this.

Relevant files: LiveMap.tsx, App.tsx, plus a new component.

This is "enhancement" + "good first issue" because the plumbing is small but the UX is visible and rewarding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions