feat(roadtrip): move a stop reached after midnight onto the day it is reached

A day that runs past midnight used to keep every one of its stops on its own
card, so day one ended at 03:12 with three places nobody reaches on day one and
day two began with a drive that had already happened. The rail now lays the
stops out by the date they are actually reached: when the clock goes backwards
between two arrivals the ones after it move to the following day, into a block
that says where they came from, and the night drive and its kilometres go with
them. It is an arrangement, not a write — the day planner beside it is
untouched, nothing reaches the database, and a shorter stay the evening before
puts everything back on its own.

The map follows the same arrangement, because a boundary drawn in the rail and
not on the map is two answers to one question. Day one now ends where its last
reachable stop is and the line, the legs and the totals are cut to match.

Two switches in the driving settings, off by default. "Connect the days" routes
the gap between one day's last stop and the next day's first, which is real
driving the rail has never drawn, and counts it. "A colour per day" then puts
the days back into a line that has become continuous, and tints each day header
to match.

Collapsing a day from its header takes its route and its places off the map as
well as out of the rail, and the categories in the corridor panel fold the same
way. The refuel band is one full-width red band with the pump as its button,
the results are chips, and the driving dialog is two columns of panels with the
figures on one right edge.

Also fixes a via that would not adjust the route once dragged. Five separate
causes, all measured rather than guessed: leg threading used the card index
instead of the owning day's, the anchor lookup returned chain indices, it
filtered by the card rather than by the anchor's owner, seams were routed
without their vias, and a seam once routed was never re-fetched.
This commit is contained in:
Maurice
2026-09-10 19:33:23 +02:00
committed by Maurice
parent bd6e6312e1
commit 3f0eb210d8
53 changed files with 3980 additions and 626 deletions
+30 -1
View File
@@ -537,6 +537,30 @@ input[type="number"], input[type="time"], input[type="date"], input[type="dateti
.trek-doze > *:nth-child(2) { animation-delay: 1s; }
.trek-doze > *:nth-child(3) { animation-delay: 2s; }
/* Roadtrip: der Block, den eine Nachtfahrt auf dem Folgetag hinterlaesst. Er faellt
von oben in die Karte, weil er von der Karte darueber kommt — kurz genug, dass ein
Neuberechnen der Ankunftszeiten nicht als Zappeln liest. */
@keyframes trek-spill-in {
from { opacity: 0; transform: translateY(-6px) scale(0.985); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.trek-spill-in {
animation: trek-spill-in 320ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
/* Roadtrip: die Reserveleuchte am Band, an dem der Tank leerlaeuft. Das Gegenstueck
zu den Zzz am Tageswechsel — dort schlaeft der Tag ein, hier geht die Lampe im
Armaturenbrett an. Langsam an, kurz aus: eine Warnleuchte blinkt nicht hektisch,
sie glimmt. */
@keyframes trek-lowfuel {
0%, 62%, 100% { opacity: 1; }
74% { opacity: 0.28; }
86% { opacity: 1; }
}
.trek-lowfuel {
animation: trek-lowfuel 2.6s ease-in-out infinite;
}
/* Stagger-Helpers für Listen — Enter-Animation mit Offset */
@keyframes trek-fade-up {
from { opacity: 0; transform: translateY(6px); }
@@ -558,9 +582,14 @@ input[type="number"], input[type="time"], input[type="date"], input[type="dateti
/* Reduced motion — Emil's Accessibility-Regel: fewer and gentler, not zero */
@media (prefers-reduced-motion: reduce) {
.trek-menu-enter, .trek-menu-enter-left, .trek-popover-enter,
.trek-modal-enter, .trek-toast-enter, .trek-stagger > * {
.trek-modal-enter, .trek-toast-enter, .trek-stagger > *, .trek-spill-in {
animation: trek-backdrop-enter 120ms ease-out;
}
/* Die Reserveleuchte steht still statt zu glimmen — sie bleibt an, was die Aussage
ohnehin ist. */
.trek-lowfuel {
animation: none;
}
.trek-skeleton {
animation: none;
background: var(--bg-tertiary);