Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(roadtrip): head the phone stage with its start, not the first stop's departure

Maurice79450a5380dd
diff --git a/client/src/components/Roadtrip/roadtripRowModel.test.ts b/client/src/components/Roadtrip/roadtripRowModel.test.ts
index e47e96afa..c7f19fda0 100644
--- a/client/src/components/Roadtrip/roadtripRowModel.test.ts
+++ b/client/src/components/Roadtrip/roadtripRowModel.test.ts
@@ -3,6 +3,7 @@ import {
destinationCount,
pickWarning,
roadtripRows,
+ stageClocks,
stageOf,
upNextStop,
type RoadtripRow,
@@ -11,7 +12,7 @@ import {
import type { ScheduleEntry, ScheduleWarning } from './roadtripModel'
import type { RoadtripDay, RoadtripStop, RouteSegment } from '@trek/shared/roadtrip'
-// FE-RTROW-001 to FE-RTROW-028
+// FE-RTROW-001 to FE-RTROW-033
function stop(name: string, over: Partial<RoadtripStop> = {}): RoadtripStop {
return {
@@ -329,3 +330,66 @@ describe('upNextStop', () => {
expect(upNextStop(d, 9 * 60 + 30, true)?.row.stop.name).toBe('B')
})
})
+
+describe('stageClocks', () => {
+ it('FE-RTROW-029: starts at the first stop arrival and arrives at the last one, neither departure', () => {
+ // The reported stage: a pin at 10:00 with an hour and a half there headed the card as
+ // 11:30, a clock no row prints. The last stop leaves at 21:33, which is not an arrival either.
+ const d = day([stop('Hamburg Speicherstadt', { dwellMinutes: 90, time: '10:00' }), stop('Sanssouci', { dwellMinutes: 120 })], {
+ schedule: {
+ entries: [entry('10:00', { departure: '11:30', anchored: true }), entry('19:33', { departure: '21:33' })],
+ warnings: [],
+ },
+ })
+ const clocks = stageClocks(roadtripRows(d))
+ expect(clocks).toEqual({ start: '10:00', arrive: '19:33' })
+ expect(Object.values(clocks)).not.toContain('11:30')
+ expect(Object.values(clocks)).not.toContain('21:33')
+ })
+
+ it('FE-RTROW-030: a morning after an automatic night starts at the resume point, and a day end point arrives nowhere', () => {
+ const d = day([night('start'), stop('Fulda'), stop('Kassel'), night('end')], {
+ schedule: { entries: [entry('08:00'), entry('09:10', { departure: '10:00' }), entry('12:40'), entry('22:00')], warnings: [] },
+ })
+ expect(stageClocks(roadtripRows(d))).toEqual({ start: '08:00', arrive: '12:40' })
+ })
+
+ it('FE-RTROW-031: a spill band departure belongs to the day before and does not start this one', () => {
+ const d = day([stop('A'), stop('B')], {
+ spills: [{ at: 0, count: 1, fromDayNumber: 1, departure: '23:10', leg: undefined, fromStop: undefined, line: [] }],
+ schedule: { entries: [entry('00:40'), entry('02:00')], warnings: [] },
+ })
+ expect(stageClocks(roadtripRows(d))).toEqual({ start: '00:40', arrive: '02:00' })
+ })
+
+ it('FE-RTROW-032: untimed stops are skipped at both ends, deliberately, and a day with no clock at all gives nulls', () => {
+ // Skipping rather than dashing is a choice: a day whose first leg has no route yet still
+ // has one clock worth heading the card with, even when start and arrival are that one.
+ const partly = timedDay([null, '11:00', null], [stop('A'), stop('B'), stop('C')])
+ expect(stageClocks(roadtripRows(partly))).toEqual({ start: '11:00', arrive: '11:00' })
+
+ const untimed = timedDay([null, null], [stop('A'), stop('B')])
+ expect(stageClocks(roadtripRows(untimed))).toEqual({ start: null, arrive: null })
+ expect(stageClocks([])).toEqual({ start: null, arrive: null })
+
+ // A petrol stop is a place you drive to, so its arrival counts like any other.
+ const fuelFirst = timedDay(['07:50', '09:00'], [stop('Aral', { stopType: 'fuel' }), stop('B')])
+ expect(stageClocks(roadtripRows(fuelFirst))).toEqual({ start: '07:50', arrive: '09:00' })
+ })
+
+ it('FE-RTROW-033: follows the row order rather than the clock, for a missed pin and for an unsplit card past midnight', () => {
+ // A pin the drive cannot make keeps its own clock, so the last row can read earlier
+ // than the one above it. The arrival is still that last row's clock, not the latest one.
+ const missed = timedDay(
+ ['11:00', '10:00'],
+ [stop('Harbour', { dwellMinutes: 60, time: '11:00' }), stop('Ferry', { time: '10:00' })],
+ )
+ expect(stageClocks(roadtripRows(missed))).toEqual({ start: '11:00', arrive: '10:00' })
+
+ // When a daily window cannot be kept, each stored day is timed on its own and never
+ // split: an evening stay can then head a card that ends on a pin the next morning. The
+ // figures still name the first and the last clock the chain prints.
+ const unsplit = timedDay(['18:30', '10:00'], [stop('Hotel', { dwellMinutes: 900 }), stop('Museum')])
+ expect(stageClocks(roadtripRows(unsplit))).toEqual({ start: '18:30', arrive: '10:00' })
+ })
+})
diff --git a/client/src/components/Roadtrip/roadtripRowModel.ts b/client/src/components/Roadtrip/roadtripRowModel.ts
index e8edf7afa..e01600551 100644
--- a/client/src/components/Roadtrip/roadtripRowModel.ts
+++ b/client/src/components/Roadtrip/roadtripRowModel.ts
@@ -157,6 +157,46 @@ export function destinationCount(day: RoadtripDay): number {
return day.stops.filter(s => !s.automaticNight && !isServiceStopType(s.stopType)).length
}
+/**
+ * The two clocks a stage is headed with: when it starts, and when you reach its last place.
+ *
+ * Both are read off the clock the rows print on the right, which is an arrival all the way
+ * down (the desktop rail keeps the same rule and spells a departure out in words where it
+ * needs one). So each figure is one the chain below repeats, and the start is the first
+ * stop's ARRIVAL rather than the moment you leave it. A first stop is a place you get to,
+ * often at a time somebody pinned, and heading the card with its departure hid that
+ * appointment behind its own stay: a stop pinned at 10:00 with an hour and a half there
+ * read as leaving at 11:30, a clock no row shows.
+ *
+ * A resume point is a start, because the morning after an automatic night begins there. A
+ * day end point is not an arrival: it marks where the window closed, not a place. A spill
+ * band is passed over, because the departure it carries belongs to the day before.
+ *
+ * Stops without a clock are skipped at both ends instead of dashing the figure. That only
+ * happens while a leg between them and the timed stops has no route yet, and a partly timed
+ * day still has a first and a last clock worth reading, even when both are the same stop's.
+ *
+ * First and last mean row order, not the earliest and the latest clock, because the column
+ * is not guaranteed to run forwards. A pin the drive cannot make keeps its own clock, so it
+ * can read earlier than the stop above it. And when a daily window cannot be kept, each
+ * stored day is timed on its own without being split, so a card can open on an evening stay
+ * and end on a pin the next morning. The figures follow the rows in both cases, so they
+ * never name a clock the chain does not.
+ */
+export function stageClocks(rows: readonly RoadtripRow[]): { start: string | null; arrive: string | null } {
+ let start: string | null = null
+ let arrive: string | null = null
+ for (const row of rows) {
+ if (row.kind === 'stop' && row.time) {
+ start ??= row.time
+ arrive = row.time
+ } else if (row.kind === 'auto' && row.phase === 'resume' && row.time) {
+ start ??= row.time
+ }
+ }
+ return { start, arrive }
+}
+
/**
* The next destination the plan still owes you, measured against the clock.
*
diff --git a/client/src/mobile/screens/trip/roadtrip/MRoadtripTab.tsx b/client/src/mobile/screens/trip/roadtrip/MRoadtripTab.tsx
index f9fa449ad..5bd5b8f86 100644
--- a/client/src/mobile/screens/trip/roadtrip/MRoadtripTab.tsx
+++ b/client/src/mobile/screens/trip/roadtrip/MRoadtripTab.tsx
@@ -113,8 +113,11 @@ export default function MRoadtripTab({ planner, shell }: MTripTabPanelProps) {
<EmptyStage planner={planner} loading={rt.loading} />
) : (
<>
- {/* Head card: the two figures a morning is planned around, at 30px, which is
- what makes them readable at arm's length in a phone cradle. */}
+ {/* Head card: when the stage starts and when it reaches its last place. Both
+ clocks are ones the chain below repeats, read off the same arrival column
+ (see stageClocks), so a first stop pinned at 10:00 heads the card at 10:00
+ and not at the end of its stay. They carry dir=ltr for the same reason the
+ rows do: a clock reads the same way round in an RTL locale. */}
<section className="rounded-[22px] border border-[color:var(--m-cbr)] bg-[color:var(--m-card)] px-4 py-3.5">
<div className="flex items-center justify-between">
<span className="font-geist text-[0.625rem] font-bold uppercase tracking-[.09em] text-m-muted">
@@ -128,18 +131,18 @@ export default function MRoadtripTab({ planner, shell }: MTripTabPanelProps) {
<div className="mt-2 flex items-end justify-between gap-3">
<span className="min-w-0">
<span className="block font-geist text-[0.5625rem] font-bold uppercase tracking-[.08em] text-m-faint">
- {t('roadtrip.stay.leave')}
+ {t('mobileTrip.rtStart')}
</span>
- <span className="block text-[1.875rem] font-extrabold leading-none tabular-nums text-m-ink">
- {firstDeparture(rt.rows) ?? '-'}
+ <span dir="ltr" className="block text-[1.875rem] font-extrabold leading-none tabular-nums text-m-ink">
+ {rt.clocks.start ?? '-'}
</span>
</span>
<span className="min-w-0 text-right">
<span className="block font-geist text-[0.5625rem] font-bold uppercase tracking-[.08em] text-m-faint">
{t('roadtrip.stay.arrive')}
</span>
- <span className="block text-[1.875rem] font-extrabold leading-none tabular-nums text-m-ink">
- {lastArrival(rt.rows) ?? '-'}
+ <span dir="ltr" className="block text-[1.875rem] font-extrabold leading-none tabular-nums text-m-ink">
+ {rt.clocks.arrive ?? '-'}
</span>
</span>
</div>
@@ -370,27 +373,6 @@ function EmptyStage({ planner, loading }: { planner: MTripTabPanelProps['planner
/* ── small helpers ────────────────────────────────────────────────────────── */
-/**
- * When the day starts moving, which is when you LEAVE the first stop, not when you
- * arrive at it. The two differ by the stay, and on a morning that begins at a hotel
- * they differ by the whole night.
- */
-function firstDeparture(rows: ReturnType<typeof useMRoadtrip>['rows']): string | null {
- for (const row of rows) {
- if (row.kind !== 'stop') continue
- return row.departure ?? row.time
- }
- return null
-}
-
-function lastArrival(rows: ReturnType<typeof useMRoadtrip>['rows']): string | null {
- for (let i = rows.length - 1; i >= 0; i--) {
- const row = rows[i]
- if (row.kind === 'stop' && row.time) return row.time
- }
- return null
-}
-
function lastArrivalOf(stage: { schedule: { entries: { arrival: string | null }[] } }): string | null {
for (let i = stage.schedule.entries.length - 1; i >= 0; i--) {
const a = stage.schedule.entries[i]?.arrival
diff --git a/client/src/mobile/screens/trip/roadtrip/useMRoadtrip.ts b/client/src/mobile/screens/trip/roadtrip/useMRoadtrip.ts
index f9b16d356..d2d98067f 100644
--- a/client/src/mobile/screens/trip/roadtrip/useMRoadtrip.ts
+++ b/client/src/mobile/screens/trip/roadtrip/useMRoadtrip.ts
@@ -1,5 +1,5 @@
import { useEffect, useMemo, useState } from 'react'
-import { destinationCount, roadtripRows, stageOf, upNextStop } from '../../../../components/Roadtrip/roadtripRowModel'
+import { destinationCount, roadtripRows, stageClocks, stageOf, upNextStop } from '../../../../components/Roadtrip/roadtripRowModel'
import { useRoadtripSettings } from '../../../../hooks/useRoadtripSettings'
import { useSettingsStore } from '../../../../store/settingsStore'
import { isEffectivelyOffline, onNetworkModeChange } from '../../../../sync/networkMode'
@@ -19,6 +19,8 @@ const TICK_MS = 30_000
export interface MRoadtripController {
stage: RoadtripDay | null
rows: RoadtripRow[]
+ /** The head card's two figures, both taken from the arrival column the rows print. See stageClocks. */
+ clocks: ReturnType<typeof stageClocks>
stops: number
/** True while the routing round is still working through the trip's days. */
loading: boolean
@@ -57,6 +59,7 @@ export function useMRoadtrip(planner: TripPlanner): MRoadtripController {
)
const rows = useMemo(() => (stage ? roadtripRows(stage) : []), [stage])
+ const clocks = useMemo(() => stageClocks(rows), [rows])
// "Today" is the stage's own date, not the selected day's index: a trip can be
// planned for next year, and a countdown on a day in March is noise.
@@ -69,6 +72,7 @@ export function useMRoadtrip(planner: TripPlanner): MRoadtripController {
return {
stage,
rows,
+ clocks,
stops: stage ? destinationCount(stage) : 0,
loading: roadtripRoutes.loading,
empty: !roadtripRoutes.loading && roadtripRoutes.days.length === 0,
diff --git a/client/tests/unit/mobile/trip/MRoadtripTab.test.tsx b/client/tests/unit/mobile/trip/MRoadtripTab.test.tsx
index d3b7b58bb..a928d9941 100644
--- a/client/tests/unit/mobile/trip/MRoadtripTab.test.tsx
+++ b/client/tests/unit/mobile/trip/MRoadtripTab.test.tsx
@@ -6,7 +6,7 @@ import type { MTripShellApi, TripPlanner } from '../../../../src/mobile/screens/
import type { Day, Place } from '../../../../src/types'
import type { RoadtripDay, RoadtripRoutes, RouteSegment } from '@trek/shared/roadtrip'
-// FE-MOB-RTTAB-001 to FE-MOB-RTTAB-031
+// FE-MOB-RTTAB-001 to FE-MOB-RTTAB-032
// The preference store is a zustand slice keyed by user and trip; the tab only ever
// reads two flags out of it, so the hook is the smaller seam.
@@ -156,15 +156,20 @@ describe('MRoadtripTab', () => {
})
describe('list half', () => {
- it('FE-MOB-RTTAB-001: heads the stage with its departure, its arrival, the day total and the stop count', () => {
+ it('FE-MOB-RTTAB-001: heads the stage with its start, its arrival, the day total and the stop count', () => {
renderTab()
- // Die ABFAHRT des ersten Stopps (09:15), nicht seine Ankunft (08:30): die beiden
- // trennt der Aufenthalt, und an einem Morgen im Hotel die ganze Nacht.
- const leave = screen.getByText('roadtrip.stay.leave').parentElement as HTMLElement
- expect(within(leave).getByText('09:15')).toBeInTheDocument()
+ // The start is the first stop's ARRIVAL (08:30), the clock its row prints, not its
+ // departure (09:15). Nor is it the spill band's 23:10: that one belongs to the day before.
+ const start = screen.getByText('mobileTrip.rtStart').parentElement as HTMLElement
+ expect(within(start).getByText('08:30')).toBeInTheDocument()
+ expect(within(start).queryByText('09:15')).toBeNull()
+ expect(within(start).queryByText('23:10')).toBeNull()
const arrive = screen.getByText('roadtrip.stay.arrive').parentElement as HTMLElement
expect(within(arrive).getByText('12:40')).toBeInTheDocument()
+ // Both clocks keep their digit order in an RTL locale, like the ones on the rows.
+ expect(within(start).getByText('08:30')).toHaveAttribute('dir', 'ltr')
+ expect(within(arrive).getByText('12:40')).toHaveAttribute('dir', 'ltr')
expect(screen.getByText('roadtrip.leg.driveText:412 km,5 h')).toBeInTheDocument()
expect(screen.getByText('roadtrip.day.stopCount:2')).toBeInTheDocument()
@@ -229,7 +234,7 @@ describe('MRoadtripTab', () => {
expect(screen.getByText('roadtrip.empty.title')).toBeInTheDocument()
expect(screen.getByText('mobileTrip.rtPlanOnDesktop')).toBeInTheDocument()
- expect(screen.queryByText('roadtrip.stay.leave')).toBeNull()
+ expect(screen.queryByText('mobileTrip.rtStart')).toBeNull()
expect(screen.queryByText(/roadtrip\.day\.stopCount/)).toBeNull()
})
@@ -259,8 +264,8 @@ describe('MRoadtripTab', () => {
} as unknown as Partial<RoadtripDay>)
renderTab(planner({ roadtripRoutes: routes({ days: [untimed] }) }))
- const leave = screen.getByText('roadtrip.stay.leave').parentElement as HTMLElement
- expect(within(leave).getByText('-')).toBeInTheDocument()
+ const start = screen.getByText('mobileTrip.rtStart').parentElement as HTMLElement
+ expect(within(start).getByText('-')).toBeInTheDocument()
const arrive = screen.getByText('roadtrip.stay.arrive').parentElement as HTMLElement
expect(within(arrive).getByText('-')).toBeInTheDocument()
// The chain itself still stands, it just carries no clocks.
@@ -273,6 +278,51 @@ describe('MRoadtripTab', () => {
expect(screen.getByText('roadtrip.summary.partial')).toBeInTheDocument()
expect(screen.queryByText(/roadtrip\.leg\.driveText:412/)).toBeNull()
})
+
+ it('FE-MOB-RTTAB-032: heads the card with the clock the first row prints, not the end of its stay', () => {
+ // The reported stage: Hamburg Speicherstadt pinned at 10:00 with an hour and a half
+ // there, Sanssouci reached at 19:33. The card used to read LEAVE 11:30, a clock no row
+ // shows, which hid the pinned appointment behind its own stay.
+ const reported = stage({
+ spills: [],
+ stops: [
+ {
+ assignmentId: 601, ownerDayId: 2, ownerIndex: 0, placeId: 201, name: 'Hamburg Speicherstadt',
+ lat: 53.54, lng: 9.99, time: '10:00', dwellMinutes: 90,
+ legMode: null, incomingLegMode: null, stopType: null,
+ },
+ {
+ assignmentId: 602, ownerDayId: 2, ownerIndex: 1, placeId: 202, name: 'Sanssouci Palace',
+ lat: 52.4, lng: 13.04, time: null, dwellMinutes: 120,
+ legMode: null, incomingLegMode: null, stopType: null,
+ },
+ ],
+ legs: [seg('290 km', '3 h')],
+ legVias: [[]],
+ schedule: {
+ entries: [
+ { arrival: '10:00', departure: '11:30', anchored: true, dayOffset: 0 },
+ { arrival: '19:33', departure: '21:33', anchored: false, dayOffset: 0 },
+ ],
+ warnings: [],
+ },
+ dryPoints: [],
+ driveWarnings: [],
+ } as unknown as Partial<RoadtripDay>)
+ renderTab(planner({ roadtripRoutes: routes({ days: [reported] }) }))
+
+ const start = screen.getByText('mobileTrip.rtStart').parentElement as HTMLElement
+ expect(within(start).getByText('10:00')).toBeInTheDocument()
+ const arrive = screen.getByText('roadtrip.stay.arrive').parentElement as HTMLElement
+ expect(within(arrive).getByText('19:33')).toBeInTheDocument()
+ // Neither departure is printed anywhere on the screen, and the word for one is gone.
+ expect(screen.queryByText('11:30')).toBeNull()
+ expect(screen.queryByText('21:33')).toBeNull()
+ expect(screen.queryByText('roadtrip.stay.leave')).toBeNull()
+ // The figure is the very clock the first row carries.
+ const firstRow = screen.getByText('Hamburg Speicherstadt').closest('[role=button]') as HTMLElement
+ expect(within(firstRow).getByText('10:00')).toBeInTheDocument()
+ })
})
describe('up next', () => {
@@ -294,7 +344,7 @@ describe('MRoadtripTab', () => {
// Same clock, same stage, a week further on: the countdown is about the date.
expect(screen.queryByText('mobileTrip.upNext')).toBeNull()
- expect(screen.getByText('roadtrip.stay.leave')).toBeInTheDocument()
+ expect(screen.getByText('mobileTrip.rtStart')).toBeInTheDocument()
})
it('FE-MOB-RTTAB-015: shows no countdown once the last stop is behind you', () => {
@@ -370,7 +420,7 @@ describe('MRoadtripTab', () => {
const { container } = renderTab(planner(), mapShell())
expect((container.firstChild as HTMLElement).className).toContain('pointer-events-none')
- expect(screen.queryByText('roadtrip.stay.leave')).toBeNull()
+ expect(screen.queryByText('mobileTrip.rtStart')).toBeNull()
expect(screen.queryByText('Shell Ebina')).toBeNull()
expect(screen.queryByText('roadtrip.refuel.dry')).toBeNull()
expect(screen.queryByText('roadtrip.window.stop')).toBeNull()
diff --git a/shared/src/i18n/ar/mobileTrip.ts b/shared/src/i18n/ar/mobileTrip.ts
index dacab2ed4..a7a0f93cf 100644
--- a/shared/src/i18n/ar/mobileTrip.ts
+++ b/shared/src/i18n/ar/mobileTrip.ts
@@ -53,6 +53,7 @@ const mobileTrip: TranslationStrings = {
'mobileTrip.rtPlanOnDesktop': 'يتم التخطيط على سطح المكتب. يحسب TREK القيادة بمجرد أن يضم اليوم مكانين.',
'mobileTrip.rtSearchOffline': 'يلزم اتصال بالإنترنت: يقرأ البحث المسار الذي أمامك.',
'mobileTrip.rtBehind': '{time} تأخرًا عن الخطة',
+ 'mobileTrip.rtStart': 'البداية',
'mobileTrip.rtStayScope': 'مدة التوقف تخص المكان نفسه، لذا تُحتسب في كل يوم تكون فيه هذه المحطة ضمن الخطة.',
'mobileTrip.rtStayLess': '{count} دقيقة أقل',
'mobileTrip.rtStayMore': '{count} دقيقة أكثر',
diff --git a/shared/src/i18n/br/mobileTrip.ts b/shared/src/i18n/br/mobileTrip.ts
index a70053ab0..c309aade9 100644
--- a/shared/src/i18n/br/mobileTrip.ts
+++ b/shared/src/i18n/br/mobileTrip.ts
@@ -54,6 +54,7 @@ const mobileTrip: TranslationStrings = {
'O planejamento acontece no computador. O TREK calcula o trajeto assim que um dia tem dois locais.',
'mobileTrip.rtSearchOffline': 'Precisa de conexão: a busca lê a rota à frente.',
'mobileTrip.rtBehind': '{time} de atraso em relação ao plano',
+ 'mobileTrip.rtStart': 'Início',
'mobileTrip.rtStayScope':
'A estadia pertence ao local, então ela vale em todos os dias em que esta parada está planejada.',
'mobileTrip.rtStayLess': '{count} minutos a menos',
diff --git a/shared/src/i18n/ca/mobileTrip.ts b/shared/src/i18n/ca/mobileTrip.ts
index 23eb96188..8a315755e 100644
--- a/shared/src/i18n/ca/mobileTrip.ts
+++ b/shared/src/i18n/ca/mobileTrip.ts
@@ -54,6 +54,7 @@ const mobileTrip: TranslationStrings = {
'La planificació es fa a l’escriptori. TREK calcula el trajecte quan un dia té dos llocs.',
'mobileTrip.rtSearchOffline': 'Cal connexió: la cerca llegeix la ruta que tens per endavant.',
'mobileTrip.rtBehind': '{time} de retard sobre el pla',
+ 'mobileTrip.rtStart': 'Inici',
'mobileTrip.rtStayScope':
'L’estada pertany al lloc, així que compta tots els dies en què aquesta parada està planificada.',
'mobileTrip.rtStayLess': '{count} minuts menys',
diff --git a/shared/src/i18n/cs/mobileTrip.ts b/shared/src/i18n/cs/mobileTrip.ts
index 78a878491..656ca2b00 100644
--- a/shared/src/i18n/cs/mobileTrip.ts
+++ b/shared/src/i18n/cs/mobileTrip.ts
@@ -53,6 +53,7 @@ const mobileTrip: TranslationStrings = {
'mobileTrip.rtPlanOnDesktop': 'Plánování probíhá na počítači. Jakmile má den dvě místa, TREK jízdu spočítá.',
'mobileTrip.rtSearchOffline': 'Vyžaduje připojení: hledání čte trasu před vámi.',
'mobileTrip.rtBehind': 'o {time} za plánem',
+ 'mobileTrip.rtStart': 'Začátek',
'mobileTrip.rtStayScope':
'Doba zastávky patří k místu, takže platí pro každý den, na který je tato zastávka naplánovaná.',
'mobileTrip.rtStayLess': 'o {count} minut méně',
diff --git a/shared/src/i18n/de/mobileTrip.ts b/shared/src/i18n/de/mobileTrip.ts
index d1b046f8c..1a4c282fb 100644
--- a/shared/src/i18n/de/mobileTrip.ts
+++ b/shared/src/i18n/de/mobileTrip.ts
@@ -53,6 +53,7 @@ const mobileTrip: TranslationStrings = {
'mobileTrip.rtPlanOnDesktop': 'Geplant wird am Desktop. TREK berechnet die Fahrt, sobald ein Tag zwei Orte hat.',
'mobileTrip.rtSearchOffline': 'Braucht eine Verbindung: Die Suche liest die Strecke, die vor dir liegt.',
'mobileTrip.rtBehind': '{time} hinter dem Plan',
+ 'mobileTrip.rtStart': 'Start',
'mobileTrip.rtStayScope':
'Der Aufenthalt gehört zum Ort und zählt deshalb an jedem Tag, an dem dieser Stopp geplant ist.',
'mobileTrip.rtStayLess': '{count} Minuten weniger',
diff --git a/shared/src/i18n/en/mobileTrip.ts b/shared/src/i18n/en/mobileTrip.ts
index 14edf03d5..5841040bb 100644
--- a/shared/src/i18n/en/mobileTrip.ts
+++ b/shared/src/i18n/en/mobileTrip.ts
@@ -53,6 +53,7 @@ const mobileTrip: TranslationStrings = {
'mobileTrip.rtPlanOnDesktop': 'Planning happens on the desktop. TREK works out the drive once a day has two places.',
'mobileTrip.rtSearchOffline': 'Needs a connection: the search reads the route ahead.',
'mobileTrip.rtBehind': '{time} behind plan',
+ 'mobileTrip.rtStart': 'Start',
'mobileTrip.rtStayScope': 'The stay belongs to the place, so it counts on every day this stop is planned.',
'mobileTrip.rtStayLess': '{count} minutes less',
'mobileTrip.rtStayMore': '{count} minutes more',
diff --git a/shared/src/i18n/es/mobileTrip.ts b/shared/src/i18n/es/mobileTrip.ts
index 0b5740eec..8bfabb6d7 100644
--- a/shared/src/i18n/es/mobileTrip.ts
+++ b/shared/src/i18n/es/mobileTrip.ts
@@ -54,6 +54,7 @@ const mobileTrip: TranslationStrings = {
'La planificación se hace en el escritorio. TREK calcula el trayecto en cuanto un día tiene dos lugares.',
'mobileTrip.rtSearchOffline': 'Hace falta conexión: la búsqueda lee la ruta que queda por delante.',
'mobileTrip.rtBehind': '{time} de retraso sobre lo previsto',
+ 'mobileTrip.rtStart': 'Inicio',
'mobileTrip.rtStayScope':
'La duración de la parada pertenece al lugar, así que cuenta en cada día en el que esta parada está prevista.',
'mobileTrip.rtStayLess': '{count} minutos menos',
diff --git a/shared/src/i18n/fr/mobileTrip.ts b/shared/src/i18n/fr/mobileTrip.ts
index 2a3c74adc..01089aa6c 100644
--- a/shared/src/i18n/fr/mobileTrip.ts
+++ b/shared/src/i18n/fr/mobileTrip.ts
@@ -54,6 +54,7 @@ const mobileTrip: TranslationStrings = {
'La planification se fait sur ordinateur. TREK calcule le trajet dès qu’un jour compte deux lieux.',
'mobileTrip.rtSearchOffline': 'Connexion nécessaire : la recherche lit l’itinéraire à venir.',
'mobileTrip.rtBehind': '{time} de retard sur le programme',
+ 'mobileTrip.rtStart': 'Début',
'mobileTrip.rtStayScope':
'La durée sur place appartient au lieu : elle compte donc pour chaque jour où cet arrêt est prévu.',
'mobileTrip.rtStayLess': '{count} minutes de moins',
diff --git a/shared/src/i18n/gr/mobileTrip.ts b/shared/src/i18n/gr/mobileTrip.ts
index 08b417981..ada7c3a7b 100644
--- a/shared/src/i18n/gr/mobileTrip.ts
+++ b/shared/src/i18n/gr/mobileTrip.ts
@@ -54,6 +54,7 @@ const mobileTrip: TranslationStrings = {
'Ο σχεδιασμός γίνεται στον υπολογιστή. Το TREK υπολογίζει τη διαδρομή μόλις μια ημέρα έχει δύο μέρη.',
'mobileTrip.rtSearchOffline': 'Χρειάζεται σύνδεση: η αναζήτηση διαβάζει τη διαδρομή που ακολουθεί.',
'mobileTrip.rtBehind': '{time} πίσω από το πρόγραμμα',
+ 'mobileTrip.rtStart': 'Έναρξη',
'mobileTrip.rtStayScope':
'Η διάρκεια της στάσης ανήκει στο μέρος, οπότε μετράει σε κάθε ημέρα που είναι προγραμματισμένη αυτή η στάση.',
'mobileTrip.rtStayLess': '{count} λεπτά λιγότερα',
diff --git a/shared/src/i18n/hu/mobileTrip.ts b/shared/src/i18n/hu/mobileTrip.ts
index 19480e475..dd226aa7b 100644
--- a/shared/src/i18n/hu/mobileTrip.ts
+++ b/shared/src/i18n/hu/mobileTrip.ts
@@ -54,6 +54,7 @@ const mobileTrip: TranslationStrings = {
'A tervezés asztali gépen történik. Amint egy napon két hely szerepel, a TREK kiszámolja az útvonalat.',
'mobileTrip.rtSearchOffline': 'Internetkapcsolat kell hozzá: a keresés az előtted lévő útvonalat olvassa be.',
'mobileTrip.rtBehind': '{time} késés a tervhez képest',
+ 'mobileTrip.rtStart': 'Kezdés',
'mobileTrip.rtStayScope':
'Az itt töltött idő a helyhez tartozik, ezért minden olyan napon számít, amelyre ez a megálló be van tervezve.',
'mobileTrip.rtStayLess': '{count} perccel kevesebb',
diff --git a/shared/src/i18n/id/mobileTrip.ts b/shared/src/i18n/id/mobileTrip.ts
index 3cdb1873d..cc4fbd692 100644
--- a/shared/src/i18n/id/mobileTrip.ts
+++ b/shared/src/i18n/id/mobileTrip.ts
@@ -54,6 +54,7 @@ const mobileTrip: TranslationStrings = {
'Perencanaan dilakukan di desktop. TREK menghitung perjalanannya begitu satu hari punya dua tempat.',
'mobileTrip.rtSearchOffline': 'Perlu koneksi: pencarian membaca rute di depan.',
'mobileTrip.rtBehind': 'terlambat {time} dari rencana',
+ 'mobileTrip.rtStart': 'Mulai',
'mobileTrip.rtStayScope':
'Lama singgah melekat pada tempatnya, jadi ia terhitung di setiap hari perhentian ini direncanakan.',
'mobileTrip.rtStayLess': '{count} menit lebih singkat',
diff --git a/shared/src/i18n/it/mobileTrip.ts b/shared/src/i18n/it/mobileTrip.ts
index effc2ef93..58dbbb46d 100644
--- a/shared/src/i18n/it/mobileTrip.ts
+++ b/shared/src/i18n/it/mobileTrip.ts
@@ -54,6 +54,7 @@ const mobileTrip: TranslationStrings = {
'La pianificazione si fa da computer. TREK calcola il tragitto appena un giorno ha due luoghi.',
'mobileTrip.rtSearchOffline': 'Serve una connessione: la ricerca legge il percorso che hai davanti.',
'mobileTrip.rtBehind': '{time} di ritardo sul programma',
+ 'mobileTrip.rtStart': 'Inizio',
'mobileTrip.rtStayScope':
'La durata della sosta appartiene al luogo, quindi vale in ogni giorno in cui questa tappa è prevista.',
'mobileTrip.rtStayLess': '{count} minuti in meno',
diff --git a/shared/src/i18n/ja/mobileTrip.ts b/shared/src/i18n/ja/mobileTrip.ts
index e10c345b3..efae26766 100644
--- a/shared/src/i18n/ja/mobileTrip.ts
+++ b/shared/src/i18n/ja/mobileTrip.ts
@@ -52,6 +52,7 @@ const mobileTrip: TranslationStrings = {
'mobileTrip.rtPlanOnDesktop': '計画はデスクトップで行います。1日に場所が2か所そろうと、TREKが走行を計算します。',
'mobileTrip.rtSearchOffline': '接続が必要です:この検索は先のルートを読み取ります。',
'mobileTrip.rtBehind': '予定より {time} 遅れ',
+ 'mobileTrip.rtStart': '開始',
'mobileTrip.rtStayScope': '滞在時間は場所に紐づくため、この立ち寄り先を予定しているすべての日に適用されます。',
'mobileTrip.rtStayLess': '{count} 分減らす',
'mobileTrip.rtStayMore': '{count} 分増やす',
diff --git a/shared/src/i18n/ko/mobileTrip.ts b/shared/src/i18n/ko/mobileTrip.ts
index b333d8821..3b1a0796a 100644
--- a/shared/src/i18n/ko/mobileTrip.ts
+++ b/shared/src/i18n/ko/mobileTrip.ts
@@ -52,6 +52,7 @@ const mobileTrip: TranslationStrings = {
'mobileTrip.rtPlanOnDesktop': '계획은 데스크톱에서 세웁니다. 하루에 장소가 두 곳 생기면 TREK이 주행을 계산합니다.',
'mobileTrip.rtSearchOffline': '연결이 필요합니다: 이 검색은 앞으로 갈 경로를 읽습니다.',
'mobileTrip.rtBehind': '계획보다 {time} 늦음',
+ 'mobileTrip.rtStart': '시작',
'mobileTrip.rtStayScope': '체류 시간은 장소에 속하므로, 이 경유지가 들어간 모든 날짜에 적용됩니다.',
'mobileTrip.rtStayLess': '{count}분 줄이기',
'mobileTrip.rtStayMore': '{count}분 늘리기',
diff --git a/shared/src/i18n/nl/mobileTrip.ts b/shared/src/i18n/nl/mobileTrip.ts
index 2d609b376..8ef950223 100644
--- a/shared/src/i18n/nl/mobileTrip.ts
+++ b/shared/src/i18n/nl/mobileTrip.ts
@@ -53,6 +53,7 @@ const mobileTrip: TranslationStrings = {
'mobileTrip.rtPlanOnDesktop': 'Plannen doe je op de desktop. TREK berekent de rit zodra een dag twee plaatsen heeft.',
'mobileTrip.rtSearchOffline': 'Vereist een verbinding: de zoekopdracht leest de route die voor je ligt.',
'mobileTrip.rtBehind': '{time} achter op schema',
+ 'mobileTrip.rtStart': 'Start',
'mobileTrip.rtStayScope': 'Het verblijf hoort bij de plaats en telt dus op elke dag waarop deze stop gepland staat.',
'mobileTrip.rtStayLess': '{count} minuten minder',
'mobileTrip.rtStayMore': '{count} minuten meer',
diff --git a/shared/src/i18n/pl/mobileTrip.ts b/shared/src/i18n/pl/mobileTrip.ts
index 992fd3568..f6783280d 100644
--- a/shared/src/i18n/pl/mobileTrip.ts
+++ b/shared/src/i18n/pl/mobileTrip.ts
@@ -53,6 +53,7 @@ const mobileTrip: TranslationStrings = {
'mobileTrip.rtPlanOnDesktop': 'Planowanie odbywa się na komputerze. TREK wylicza przejazd, gdy dzień ma dwa miejsca.',
'mobileTrip.rtSearchOffline': 'Wymaga połączenia: wyszukiwanie czyta trasę przed tobą.',
'mobileTrip.rtBehind': '{time} opóźnienia względem planu',
+ 'mobileTrip.rtStart': 'Początek',
'mobileTrip.rtStayScope':
'Pobyt jest przypisany do miejsca, więc liczy się w każdym dniu, w którym zaplanowano ten przystanek.',
'mobileTrip.rtStayLess': '{count} minut mniej',
diff --git a/shared/src/i18n/ru/mobileTrip.ts b/shared/src/i18n/ru/mobileTrip.ts
index 082e08dbd..1366be4cb 100644
--- a/shared/src/i18n/ru/mobileTrip.ts
+++ b/shared/src/i18n/ru/mobileTrip.ts
@@ -54,6 +54,7 @@ const mobileTrip: TranslationStrings = {
'Планирование происходит на компьютере. TREK рассчитает маршрут, как только в дне окажется два места.',
'mobileTrip.rtSearchOffline': 'Нужна сеть: поиск считывает маршрут впереди.',
'mobileTrip.rtBehind': 'на {time} позже плана',
+ 'mobileTrip.rtStart': 'Начало',
'mobileTrip.rtStayScope':
'Стоянка привязана к месту, поэтому она учитывается в каждый день, на который запланирована эта остановка.',
'mobileTrip.rtStayLess': 'на {count} минут меньше',
diff --git a/shared/src/i18n/sv/mobileTrip.ts b/shared/src/i18n/sv/mobileTrip.ts
index d33415766..8fa10fa1a 100644
--- a/shared/src/i18n/sv/mobileTrip.ts
+++ b/shared/src/i18n/sv/mobileTrip.ts
@@ -53,6 +53,7 @@ const mobileTrip: TranslationStrings = {
'mobileTrip.rtPlanOnDesktop': 'Planeringen sker på datorn. TREK räknar ut körningen så snart en dag har två platser.',
'mobileTrip.rtSearchOffline': 'Kräver anslutning: sökningen läser rutten som ligger framför dig.',
'mobileTrip.rtBehind': '{time} efter planen',
+ 'mobileTrip.rtStart': 'Start',
'mobileTrip.rtStayScope': 'Vistelsen hör till platsen och räknas därför varje dag som det här stoppet är inplanerat.',
'mobileTrip.rtStayLess': '{count} minuter mindre',
'mobileTrip.rtStayMore': '{count} minuter mer',
diff --git a/shared/src/i18n/tr/mobileTrip.ts b/shared/src/i18n/tr/mobileTrip.ts
index 373bb6851..43bae9e76 100644
--- a/shared/src/i18n/tr/mobileTrip.ts
+++ b/shared/src/i18n/tr/mobileTrip.ts
@@ -53,6 +53,7 @@ const mobileTrip: TranslationStrings = {
'mobileTrip.rtPlanOnDesktop': 'Planlama masaüstünde yapılır. Bir günde iki yer olduğunda TREK sürüşü hesaplar.',
'mobileTrip.rtSearchOffline': 'Bağlantı gerekir: arama, ileride kalan rotayı okur.',
'mobileTrip.rtBehind': 'plandan {time} geride',
+ 'mobileTrip.rtStart': 'Başlangıç',
'mobileTrip.rtStayScope': 'Bu süre yere aittir, bu yüzden bu durağın planlandığı her gün için geçerlidir.',
'mobileTrip.rtStayLess': '{count} dakika daha az',
'mobileTrip.rtStayMore': '{count} dakika daha fazla',
diff --git a/shared/src/i18n/uk/mobileTrip.ts b/shared/src/i18n/uk/mobileTrip.ts
index 05571811d..4dfff785a 100644
--- a/shared/src/i18n/uk/mobileTrip.ts
+++ b/shared/src/i18n/uk/mobileTrip.ts
@@ -54,6 +54,7 @@ const mobileTrip: TranslationStrings = {
'Планування відбувається на комп’ютері. TREK розрахує маршрут, щойно в дні буде два місця.',
'mobileTrip.rtSearchOffline': 'Потрібне з’єднання: пошук зчитує маршрут попереду.',
'mobileTrip.rtBehind': 'на {time} пізніше плану',
+ 'mobileTrip.rtStart': 'Початок',
'mobileTrip.rtStayScope':
'Стоянка належить місцю, тому вона враховується в кожен день, на який заплановано цю зупинку.',
'mobileTrip.rtStayLess': 'на {count} хвилин менше',
diff --git a/shared/src/i18n/vi/mobileTrip.ts b/shared/src/i18n/vi/mobileTrip.ts
index 5285627fe..f1ceccd01 100644
--- a/shared/src/i18n/vi/mobileTrip.ts
+++ b/shared/src/i18n/vi/mobileTrip.ts
@@ -54,6 +54,7 @@ const mobileTrip: TranslationStrings = {
'Việc lên kế hoạch diễn ra trên máy tính. TREK tính chặng lái xe ngay khi một ngày có hai địa điểm.',
'mobileTrip.rtSearchOffline': 'Cần có kết nối: việc tìm kiếm đọc lộ trình phía trước.',
'mobileTrip.rtBehind': 'chậm {time} so với kế hoạch',
+ 'mobileTrip.rtStart': 'Bắt đầu',
'mobileTrip.rtStayScope':
'Thời gian dừng thuộc về địa điểm, nên nó được tính vào mọi ngày có điểm dừng này trong kế hoạch.',
'mobileTrip.rtStayLess': 'ít hơn {count} phút',
diff --git a/shared/src/i18n/zh-TW/mobileTrip.ts b/shared/src/i18n/zh-TW/mobileTrip.ts
index 4cde2c97c..30fb42516 100644
--- a/shared/src/i18n/zh-TW/mobileTrip.ts
+++ b/shared/src/i18n/zh-TW/mobileTrip.ts
@@ -52,6 +52,7 @@ const mobileTrip: TranslationStrings = {
'mobileTrip.rtPlanOnDesktop': '規劃在電腦上進行。當一天有兩個地點時,TREK 就會算出車程。',
'mobileTrip.rtSearchOffline': '需要連線:搜尋會讀取前方的路線。',
'mobileTrip.rtBehind': '比計畫晚 {time}',
+ 'mobileTrip.rtStart': '開始',
'mobileTrip.rtStayScope': '停留時間屬於該地點,因此這個停靠點排在哪一天,就會計入那一天。',
'mobileTrip.rtStayLess': '少 {count} 分鐘',
'mobileTrip.rtStayMore': '多 {count} 分鐘',
diff --git a/shared/src/i18n/zh/mobileTrip.ts b/shared/src/i18n/zh/mobileTrip.ts
index 95b6cd566..38425cb3c 100644
--- a/shared/src/i18n/zh/mobileTrip.ts
+++ b/shared/src/i18n/zh/mobileTrip.ts
@@ -52,6 +52,7 @@ const mobileTrip: TranslationStrings = {
'mobileTrip.rtPlanOnDesktop': '规划在桌面端进行。一天里有了两个地点,TREK 就会算出这段车程。',
'mobileTrip.rtSearchOffline': '需要联网:搜索会读取前方的路线。',
'mobileTrip.rtBehind': '比计划晚 {time}',
+ 'mobileTrip.rtStart': '开始',
'mobileTrip.rtStayScope': '停留时间属于这个地点,因此在安排了该停靠点的每一天都会生效。',
'mobileTrip.rtStayLess': '减少 {count} 分钟',
'mobileTrip.rtStayMore': '增加 {count} 分钟',