Planning (the Design canvas' Plan and GridToday, ideas from azedler/roadplanner): a stop's type as its NPS pictogram (marker and list), notes on the trip, its days and stops, + on a leg inserts the next point there; a parking spot per stop (P marker, the route goes there, the walk shown); a link pasted into the search becomes a place (/api/link: the URL's coordinates, else the page's geo meta / JSON-LD / a map link; public addresses only, logged in), added on the leg it lengthens least; avoids for the trip (+ ferries, unpaved) or a day (routed in pieces, joined); Check and Costs folds in the Route panel (no leave time, long days, arriving after sunset, long walks, missing vignettes; fuel from km × consumption × price, stop costs / paid, the budget); Today in drive mode's Menu (stops left, tonight, sunset, Open-Meteo weather, the day's notes, Skip next, Tomorrow). Plugins along the trip's route (Maptool::Corridor, a corridor width; Overpass around:) and plugin settings saved server-side; p4n via a host Firefox's cookies (docs/deployment.adoc). The recording's days (cut where the car stood ≥ 4 h, or by hand) and their export (days, a piece A–B, the whole trip; GPX with times). Track replay in the GNSS simulator. Step advance 5 m past a maneuver. The level gauge (drive mode, from Terrain): lift per wheel to the ramps' steps from roll, pitch, wheelbase and track
CI / check (push) Successful in 23s
CI / deploy (push) Successful in 18s

This commit is contained in:
randy committed 2026-12-03 23:34:25 +01:00
1 parent 5e31dfaba9
commit 87d7bd2463
36 files changed
+2047 -123

No files matched your search

+23
View File
@@ -65,4 +65,27 @@ class TripLogTest < Minitest::Test
refute Maptool::TripLog.new(log_dir, library: lib).active? # ended stays ended
end
end
# The days' cuts by hand and the joins go into the journal — while it
# runs and after it ended — and a restart doesn't take them for a trip.
def test_cuts_and_joins_are_journaled_running_or_ended
Dir.mktmpdir do |dir|
log = Maptool::TripLog.new(File.join(dir, "trip_log"), library: library(dir))
assert_nil log.recording
log.start("Days", now: Time.utc(2026, 12, 1, 8))
log.record(17.0, 48.0, nil, 1000)
log.record(17.001, 48.0, nil, 1010)
log.mark(:cut, 1005)
rec = log.recording
assert rec[:active]
assert_equal [[1005.0], 2], [rec[:hand], rec[:points].size]
log.stop
log.mark(:join, 1010)
rec = log.recording
refute rec[:active]
assert_equal [[1005.0], [1010.0], "Trips/2026-12-01 Days"], rec.values_at(:hand, :joined, :folder)
refute Maptool::TripLog.new(File.join(dir, "trip_log"), library: library(dir)).active?
assert_raises(ArgumentError) { log.mark(:other, 1) }
end
end
end