Skip to content

Say since when a parked vehicle has not moved: its latest trip's end - #429

Merged
vcanuel merged 1 commit into
mainfrom
feat/parked-since
Nov 19, 2026
Merged

vcanuel merged 1 commit into
mainfrom
feat/parked-since

Conversation

@vcanuel

@vcanuel vcanuel commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

The state's headline said "Parked", but not since when. For a parked car, how long it has not moved is what matters most; a source that tells no sleep gave no way to know it.

Changes

  • Front end: the headline says "Parked since 18 Nov 2026, 18:44", the end (end.before) of the vehicle's latest trip, read with the trips list's first page (useTrips, newest first, from its cache). It holds for every make and needs nothing guessed. Not since the engine reading's fetched_at: a source that reconnects reads stopped again as a new value, though the vehicle never moved. Charging and driving are said as before; no trip known, "Parked" alone.
  • Docs: the guide's vehicle page.

Screenshots

A car parked since yesterday evening, its charge done, checked a minute ago.

Desktop Phone
desktop phone

Taken on Vite's dev server, the API answered by Playwright from the reference responses (internal/api/testdata), timestamps moved to now. The tiles still repeat their freshness: #427 handles that, independently.

Tests

  • task unit-web: lint, Vitest (2033 tests, a new case: parked without a trip, since its latest trip, and charging), audit, build: passed.
  • Not run: the Go side (untouched), the e2e and system tests.

Closes #428

🤖 Generated with Claude Code

The state's headline says "Parked since 18 Nov, 18:44", from the end of the
vehicle's latest trip, which holds for every make and needs nothing
guessed: where the source tells no sleep, it is what says how long the
vehicle was left. Not since the engine's reading, which a source that
reconnects reads again as new though the vehicle never moved.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 25 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between f84b167 and 3e079b8.

Files selected for processing: 3

  • documentation/guide/index.md
  • web/src/widgets/vehicle-state/ui/VehicleState.vue
  • web/test/widgets/vehicle-state/VehicleState.test.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@vcanuel
vcanuel merged commit c3a6bef into main Nov 19, 2026
8 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.

State page: parked since the latest trip, and fewer times on the tiles

1 participant