Skip to content

Show in-progress trip on the map with a live car marker#223

Merged
joszz merged 1 commit into
mainfrom
feature/map-in-progress-trip
Jul 6, 2026
Merged

Show in-progress trip on the map with a live car marker#223
joszz merged 1 commit into
mainfrom
feature/map-in-progress-trip

Conversation

@joszz

@joszz joszz commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • On MapView, when the selected trip is still being driven (backend reports currentJourneyDistance > 0 for the vehicle's last trip), the checkered-flag end marker is replaced with the CarDiagram car silhouette, rotated to the live heading and tracking the live position as new telemetry arrives.
  • Extracted the car silhouette SVG paths out of CarDiagram.vue into a shared module (frontend/src/assets/carSilhouette.ts) so CarDiagram and the map marker render the exact same asset instead of duplicating the path data.
  • The trip sidebar marks the in-progress trip with a pulsing dot and an "In progress" / "Rit onderweg" badge instead of a time.
  • Seeded the demo dataset (DemoTelemetryRepository) with an active trip and a matching "driving now" live status, so the feature is visible out of the box in demo mode.

Test plan

  • dotnet test — 268 backend tests pass
  • pnpm test:unit — 144 frontend tests pass
  • vue-tsc --noEmit — no type errors
  • Manually verified in the demo instance via a headless browser: sidebar shows the pulsing "Trip in progress" badge, and selecting that trip renders the car icon (not a flag) at the route's end

🤖 Generated with Claude Code

Replace the checkered-flag end marker with the CarDiagram car
silhouette, rotated to heading and tracking live position, whenever
the selected trip is still being driven. The car silhouette paths are
now shared between CarDiagram.vue and the map marker via one module so
they can't drift apart. The sidebar also flags the in-progress trip
with a pulsing dot and an "in progress" badge.

Also seeds the demo dataset with an active trip so the feature is
visible out of the box in demo mode.
@joszz joszz merged commit 78f8dc7 into main Jul 6, 2026
21 checks passed
@joszz joszz deleted the feature/map-in-progress-trip branch July 6, 2026 14:32
@joszz joszz restored the feature/map-in-progress-trip branch July 6, 2026 14:32
@joszz joszz deleted the feature/map-in-progress-trip branch July 6, 2026 14:33
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