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(tours): name every derived field of a walk's remaining time, read a second run on the same day, say when only the way back is left

Maurice41f3267503b3
diff --git a/client/src/components/Tours/walk/walkRemaining.test.ts b/client/src/components/Tours/walk/walkRemaining.test.ts
index 1d7b04b10..e3d2596ca 100644
--- a/client/src/components/Tours/walk/walkRemaining.test.ts
+++ b/client/src/components/Tours/walk/walkRemaining.test.ts
@@ -105,7 +105,10 @@ describe('walkRemainingText', () => {
it('names the stations that leave the order unclear, dimmed', () => {
expect(text({ visits: { 'stop-square': 'visited' } })).toEqual({
value: 'tours.walk.remaining.unclear',
- label: 'tours.walk.remaining.unclearHint {"names":"Museum","last":"Old square"}',
+ label: [
+ 'tours.walk.remaining.unclearHint {"names":"Museum","last":"Old square"}',
+ 'tours.walk.remaining.stays {"time":"45 min"}',
+ ].join(' '),
known: false,
});
});
@@ -129,4 +132,23 @@ describe('walkRemainingText', () => {
known: true,
});
});
+
+ it('says only the way back is left once every stop of a loop is done', () => {
+ const loop: Array<[number, number]> = [...ROUTE, [48.001, 11.001], [48, 11]];
+ const remainder = walkRemainingOf(
+ input({
+ route: loop,
+ walkingMinutes: 60,
+ visits: { 'stop-museum': 'visited', 'stop-square': 'visited', 'stop-cafe': 'visited' },
+ })
+ );
+ if (!remainder) throw new Error('no remainder');
+ expect(remainder.finished).toBe(true);
+ expect(remainder.walking.remaining_minutes).toBeGreaterThan(0);
+ expect(remainder.walking.remaining_minutes).toBe(remainder.walking.after_last_station_minutes);
+ const { value, label, known } = walkRemainingText(remainder, t);
+ expect(value).toMatch(/^tours\.walk\.remaining\.pill \{"time":"\d+ min"\}$/);
+ expect(label).toBe('tours.walk.remaining.wayBack');
+ expect(known).toBe(true);
+ });
});
diff --git a/client/src/components/Tours/walk/walkRemaining.ts b/client/src/components/Tours/walk/walkRemaining.ts
index 23924df0c..22b99302b 100644
--- a/client/src/components/Tours/walk/walkRemaining.ts
+++ b/client/src/components/Tours/walk/walkRemaining.ts
@@ -87,7 +87,10 @@ function unknownText(remainder: WalkRemainder, t: Translate): WalkRemainingText
const names = reference.open_before.map((station) => stationName(station, t)).join(', ');
return {
value: t('tours.walk.remaining.unclear'),
- label: t('tours.walk.remaining.unclearHint', { names, last: stationName(reference.last_visited, t) }),
+ label: [
+ t('tours.walk.remaining.unclearHint', { names, last: stationName(reference.last_visited, t) }),
+ ...staysText(remainder, t),
+ ].join(' '),
known: false,
};
}
@@ -106,8 +109,9 @@ function unknownText(remainder: WalkRemainder, t: Translate): WalkRemainingText
* CW-13: the remaining time as the pill says it: the walking time still
* ahead, an upper bound while a stop ahead is skipped, and in its tooltip what
* it counts from, the part after the last stop and the stays still open, which
- * are never added to it. A time not known says why, and an unclear order
- * names the stops that make it so.
+ * are never added to it. Once every stop is done, what is left is the way to
+ * the end of the walk. A time not known says why, and an unclear order names
+ * the stops that make it so.
*/
export function walkRemainingText(remainder: WalkRemainder, t: Translate): WalkRemainingText {
const { reference, walking } = remainder;
@@ -118,9 +122,11 @@ export function walkRemainingText(remainder: WalkRemainder, t: Translate): WalkR
}
const after = walking.after_last_station_minutes ?? 0;
const parts = [
- reference.kind === 'start'
- ? t('tours.walk.remaining.fromStart')
- : t('tours.walk.remaining.fromStation', { name: stationName(reference.station, t) }),
+ remainder.finished
+ ? t('tours.walk.remaining.wayBack')
+ : reference.kind === 'start'
+ ? t('tours.walk.remaining.fromStart')
+ : t('tours.walk.remaining.fromStation', { name: stationName(reference.station, t) }),
walking.upper_bound ? t('tours.walk.remaining.upperBound') : null,
after > 0 && after < walking.remaining_minutes
? t('tours.walk.remaining.afterLast', { time: formatPlannedTourDuration(after) })
diff --git a/server/src/nest/tours/tour-visits.service.ts b/server/src/nest/tours/tour-visits.service.ts
index ee8814ec9..58ec7bded 100644
--- a/server/src/nest/tours/tour-visits.service.ts
+++ b/server/src/nest/tours/tour-visits.service.ts
@@ -73,8 +73,8 @@ export class TourVisitsService {
}
/** CW-09: a walk on one day, read for an assistant; nothing changes. */
- async progress(tripId: number, placeId: number, dayId: number): Promise<WalkProgress> {
- return (await this.dayRun(tripId, placeId, dayId)).progress;
+ async progress(tripId: number, placeId: number, dayId: number, assignmentId?: number): Promise<WalkProgress> {
+ return (await this.dayRun(tripId, placeId, dayId, assignmentId)).progress;
}
/**
@@ -83,9 +83,9 @@ export class TourVisitsService {
* the stays still open, apart. Read afresh each time, so a station checked
* off since counts; nothing changes.
*/
- async remaining(tripId: number, placeId: number, dayId: number): Promise<WalkRemaining> {
+ async remaining(tripId: number, placeId: number, dayId: number, assignmentId?: number): Promise<WalkRemaining> {
const [{ walk, progress }, place] = await Promise.all([
- this.dayRun(tripId, placeId, dayId),
+ this.dayRun(tripId, placeId, dayId, assignmentId),
this.placesRepo.findInTrip(placeId, tripId),
]);
const remainder = walkRemainderOf({
@@ -107,8 +107,9 @@ export class TourVisitsService {
tripId: number,
placeId: number,
dayId: number,
+ runId?: number,
): Promise<{ walk: WalkOnDay; progress: WalkProgress }> {
- const assignmentId = await this.visitsRepo.assignmentOnDay(tripId, placeId, dayId);
+ const assignmentId = await this.runOnDay(tripId, placeId, dayId, runId);
if (assignmentId === undefined) throw new NotFoundException('City walk not on this day');
const walk = await this.walkOnDay(tripId, assignmentId);
const tour = await this.toursRepo.findInTrip(tripId, placeId);
@@ -142,6 +143,18 @@ export class TourVisitsService {
return { walk, progress };
}
+ /** The named run of the walk on that day, or its first one when none is named. */
+ private async runOnDay(
+ tripId: number,
+ placeId: number,
+ dayId: number,
+ runId: number | undefined,
+ ): Promise<number | undefined> {
+ if (runId === undefined) return await this.visitsRepo.assignmentOnDay(tripId, placeId, dayId);
+ const run = await this.visitsRepo.assignmentInTrip(runId, tripId);
+ return run?.place_id === placeId && run.day_id === dayId ? runId : undefined;
+ }
+
/** Marks a station of a walk on one of its days, or takes it back to planned. */
async update(
tripId: string,
@@ -194,13 +207,20 @@ export interface WalkProgress {
walking_minutes: number | null;
}
-/** The fields of a remaining time worked out on reading, never stored with the walk. */
+/**
+ * The fields of a remaining time worked out on reading, never stored with the
+ * walk; walking.total_minutes is the walking time as saved.
+ */
const REMAINDER_DERIVED = [
'reference',
'finished',
'walking.remaining_minutes',
+ 'walking.upper_bound',
+ 'walking.skipped_ahead',
+ 'walking.unknown_because',
'walking.after_last_station_minutes',
- 'open_stations.walk_minutes_from_reference',
+ 'stays',
+ 'open_stations',
] as const;
/** CW-13: what is left of a walk on one day, for an assistant. */
diff --git a/server/src/nest/tours/tours.mcp.ts b/server/src/nest/tours/tours.mcp.ts
index e54dae813..591f3dfc6 100644
--- a/server/src/nest/tours/tours.mcp.ts
+++ b/server/src/nest/tours/tours.mcp.ts
@@ -178,23 +178,28 @@ export class ToursMcp {
@Tool({
name: 'get_city_walk_progress',
description:
- 'Read how far a city walk (tour_type walk) got on one day it is on: every station in order with its key (its own id, as get_tour_plan gives it), its status that day (planned, visited or skipped, as the travellers checked them off in the day plan), its importance (normal, optional, must; get_tour_plan says null for normal), whether it is protected (a station a proposed change must leave where it is, neither removed, replaced nor moved), its stay in minutes (null when not known, 0 for a point passed through), its opening hours as OpenStreetMap writes them (null when none is known) and its linked place. "open" sums what is still planned: the stations, their known stays and how many stays are unknown; walking_minutes is the walking time of the whole walk. Visits belong to that day only: the same walk on another day, or a copy, has none. Anything the traveller tells you besides (for instance "continue from 2 pm") is theirs to say, not stored here. For the walking time still ahead, read get_city_walk_remaining_time: walking_minutes here is the whole walk. Reading changes nothing.',
+ 'Read how far a city walk (tour_type walk) got on one day it is on: every station in order with its key (its own id, as get_tour_plan gives it), its status that day (planned, visited or skipped, as the travellers checked them off in the day plan), its importance (normal, optional, must; get_tour_plan says null for normal), whether it is protected (a station a proposed change must leave where it is, neither removed, replaced nor moved), its stay in minutes (null when not known, 0 for a point passed through), its opening hours as OpenStreetMap writes them (null when none is known) and its linked place. "open" sums what is still planned: the stations, their known stays and how many stays are unknown; walking_minutes is the walking time of the whole walk. Visits belong to that day only: the same walk on another day, or a copy, has none; a walk put on the same day twice keeps its visits per run (assignmentId names one, the first of the day otherwise). Anything the traveller tells you besides (for instance "continue from 2 pm") is theirs to say, not stored here. For the walking time still ahead, read get_city_walk_remaining_time: walking_minutes here is the whole walk. Reading changes nothing.',
inputSchema: {
tripId: idSchema,
placeId: idSchema.describe('The place id of the city walk, as list_tours gives it'),
dayId: idSchema.describe('The day the walk is on, as find_tours_for_day gives it'),
+ assignmentId: idSchema
+ .optional()
+ .describe(
+ 'For a walk put on that day more than once: the assignment of the run to read, one of that walk on that day; without it the first run of the day',
+ ),
},
annotations: TOOL_ANNOTATIONS_READONLY,
when: addonGate(ADDON_IDS.TOURS),
access: { group: 'trips', mode: 'read' },
})
async getCityWalkProgress(
- { tripId, placeId, dayId }: { tripId: number; placeId: number; dayId: number },
+ { tripId, placeId, dayId, assignmentId }: { tripId: number; placeId: number; dayId: number; assignmentId?: number },
ctx: McpContext,
) {
if (!(await this.access.findAccessible(tripId, ctx.userId))) return noAccess();
try {
- return ok(await this.visits.progress(tripId, placeId, dayId));
+ return ok(await this.visits.progress(tripId, placeId, dayId, assignmentId));
} catch (err: unknown) {
if (err instanceof NotFoundException) return errorResult('No city walk of this trip is on that day.');
throw err;
@@ -204,23 +209,28 @@ export class ToursMcp {
@Tool({
name: 'get_city_walk_remaining_time',
description:
- 'Read what is left of a city walk (tour_type walk) on one day it is on, from the stations the travellers checked off that day: the walking time still ahead, the stays still open and the stations still open, each apart. reference says what the estimate counts from: start (nothing visited yet), last_visited (the last station checked off as visited; its stay counts as done) or ambiguous (a station is still planned before the last one visited, so where the walk stands cannot be told: ask the travellers where they are rather than guessing). A status says what was done, never where anyone is now: live_position is always false, TREK knows no live position and no clock. walking.total_minutes is the walking time of the whole walk as saved; walking.remaining_minutes is the part of it still ahead of the reference, the saved walking time shared out by how far along the saved line each station is passed (never by how many stations are open), so stretches already walked are not in it; it holds no stay. walking.upper_bound is true when a station ahead was skipped (listed in skipped_ahead): the saved line still leads through it and the shorter way was never planned, so the time is at most that. walking.after_last_station_minutes is the part from the last station to the end of the line, for a loop (loop true) the way back to its start, still ahead even once every station is done. walking.remaining_minutes is null, with unknown_because, when it cannot be told: no_stations, route_pending (saved with its points only, no line yet), no_walking_time or progress_ambiguous; it is never given as 0 or as the whole walk instead. stays.remaining_known_minutes sums the stays of the open stations as far as entered, stays.unknown lists the open stations whose stay is not known (never counted as 0), stays.optional_known_minutes is the part of the known minutes at optional stations. open_stations lists the stations still planned in order, with importance, stay_minutes and walk_minutes_from_reference (walking time from the reference to it, null where the remaining time is not known); a skipped station is done and not in it. finished is true when no station is open. Visits belong to that day only: the same walk on another day, or a copy, starts from the beginning. A time the traveller tells you (for instance "continue from 2 pm") is theirs to add, not stored here. derived names the fields worked out on reading. Reading changes nothing: no status, tour or day plan.',
+ 'Read what is left of a city walk (tour_type walk) on one day it is on, from the stations the travellers checked off that day: the walking time still ahead, the stays still open and the stations still open, each apart. reference says what the estimate counts from: start (nothing visited yet), last_visited (the last station checked off as visited; its stay counts as done) or ambiguous (a station is still planned before the last one visited, so where the walk stands cannot be told: ask the travellers where they are rather than guessing). A status says what was done, never where anyone is now: live_position is always false, TREK knows no live position and no clock. walking.total_minutes is the walking time of the whole walk as saved; walking.remaining_minutes is the part of it still ahead of the reference, the saved walking time shared out by how far along the saved line each station is passed (never by how many stations are open), so stretches already walked are not in it; it holds no stay. walking.upper_bound is true when a station ahead was skipped (listed in skipped_ahead): the saved line still leads through it and the shorter way was never planned, so the time is at most that. walking.after_last_station_minutes is the part from the last station to the end of the line, for a loop (loop true) the way back to its start, still ahead even once every station is done. walking.remaining_minutes is null, with unknown_because, when it cannot be told: no_stations, route_pending (saved with its points only, no line yet), no_walking_time or progress_ambiguous; it is never given as 0 or as the whole walk instead. stays.remaining_known_minutes sums the stays of the open stations as far as entered, stays.unknown lists the open stations whose stay is not known (never counted as 0), stays.optional_known_minutes is the part of the known minutes at optional stations. open_stations lists the stations still planned in order, with importance, stay_minutes and walk_minutes_from_reference (walking time from the reference to it, null where the remaining time is not known); a skipped station is done and not in it. finished is true when no station is open. Visits belong to that day only: the same walk on another day, or a copy, starts from the beginning. A time the traveller tells you (for instance "continue from 2 pm") is theirs to add, not stored here. A walk put on the same day twice runs apart: assignment_id names the run read, the first of the day unless assignmentId names another. derived names the fields worked out on reading from the visits and the saved line (all but walking.total_minutes, the walking time as saved): never present them as stored facts. Reading changes nothing: no status, tour or day plan.',
inputSchema: {
tripId: idSchema,
placeId: idSchema.describe('The place id of the city walk, as list_tours gives it'),
dayId: idSchema.describe('The day the walk is on, as find_tours_for_day gives it'),
+ assignmentId: idSchema
+ .optional()
+ .describe(
+ 'For a walk put on that day more than once: the assignment of the run to read, one of that walk on that day; without it the first run of the day',
+ ),
},
annotations: TOOL_ANNOTATIONS_READONLY,
when: addonGate(ADDON_IDS.TOURS),
access: { group: 'trips', mode: 'read' },
})
async getCityWalkRemainingTime(
- { tripId, placeId, dayId }: { tripId: number; placeId: number; dayId: number },
+ { tripId, placeId, dayId, assignmentId }: { tripId: number; placeId: number; dayId: number; assignmentId?: number },
ctx: McpContext,
) {
if (!(await this.access.findAccessible(tripId, ctx.userId))) return noAccess();
try {
- return ok(await this.visits.remaining(tripId, placeId, dayId));
+ return ok(await this.visits.remaining(tripId, placeId, dayId, assignmentId));
} catch (err: unknown) {
if (err instanceof NotFoundException) return errorResult('No city walk of this trip is on that day.');
throw err;
diff --git a/server/tests/unit/nest/tour-visits.service.test.ts b/server/tests/unit/nest/tour-visits.service.test.ts
index ef6b2bbc5..36345fb5c 100644
--- a/server/tests/unit/nest/tour-visits.service.test.ts
+++ b/server/tests/unit/nest/tour-visits.service.test.ts
@@ -335,7 +335,7 @@ describe('TourVisitsService', () => {
it('TOUR-VISITS-008: remaining counts from the last visit along the saved line, a point without a key passed behind it', async () => {
const { trip, day1, walk, onDay1 } = await fixture();
- // Straight north through the four stations, one stretch of 0.01 degrees between each.
+ // Straight north-east through the four stations, the same stretch between each.
const line = [
[48.1, 11.5],
[48.11, 11.51],
@@ -394,4 +394,30 @@ describe('TourVisitsService', () => {
new NotFoundException('City walk not on this day'),
);
});
+
+ it('TOUR-VISITS-010: a walk put on one day twice reads the run it is asked for, the first without one', async () => {
+ const { trip, day1, day2, walk, hike, onDay1, onDay2, hikeOnDay1 } = await fixture();
+ const again = await makeDayAssignment(orm(), day1.id, walk.id);
+ await markStationVisit(orm(), again.id, 'stop-cathedral', 'visited');
+
+ const first = await visits.remaining(trip.id, walk.id, day1.id);
+ expect(first).toMatchObject({ assignment_id: onDay1.id, reference: { kind: 'start' } });
+ const second = await visits.remaining(trip.id, walk.id, day1.id, again.id);
+ expect(second).toMatchObject({
+ assignment_id: again.id,
+ reference: { kind: 'last_visited', station: { key: 'stop-cathedral' } },
+ });
+ expect((await visits.progress(trip.id, walk.id, day1.id, again.id)).stations[0].status).toBe('visited');
+
+ await Promise.all(
+ [onDay2.id, hikeOnDay1.id, 999999].map((elsewhere) =>
+ expect(visits.remaining(trip.id, walk.id, day1.id, elsewhere)).rejects.toEqual(
+ new NotFoundException('City walk not on this day'),
+ ),
+ ),
+ );
+ await expect(visits.progress(trip.id, hike.id, day2.id, onDay2.id)).rejects.toEqual(
+ new NotFoundException('City walk not on this day'),
+ );
+ });
});
diff --git a/server/tests/unit/nest/tours.mcp.test.ts b/server/tests/unit/nest/tours.mcp.test.ts
index f6cddb97d..72bdf8e0c 100644
--- a/server/tests/unit/nest/tours.mcp.test.ts
+++ b/server/tests/unit/nest/tours.mcp.test.ts
@@ -849,7 +849,16 @@ describe('ToursMcp', () => {
walk_minutes_from_reference: 80,
},
]);
- expect(first.derived).toEqual(expect.arrayContaining(['walking.remaining_minutes', 'reference']));
+ expect(first.derived).toEqual(
+ expect.arrayContaining([
+ 'walking.remaining_minutes',
+ 'walking.upper_bound',
+ 'reference',
+ 'stays',
+ 'open_stations',
+ ]),
+ );
+ expect(first.derived).not.toContain('walking.total_minutes');
// Checked off since: read again, the stretch to the market is behind.
await t.get(TourVisitsService).update(String(trip.id), onDay1.id, 'stop-market', { status: 'visited' });
@@ -878,6 +887,29 @@ describe('ToursMcp', () => {
expect(result.stays).toMatchObject({ remaining_known_minutes: 50 });
});
+ it('TOURS-MCP-033: a walk put on one day twice is read per run, an assignment of another walk or day refused', async () => {
+ const { member, trip, day1, day2, walk, ridge, onDay1, remaining } = await remainingFixture();
+ const orm = await createTestOrm(db);
+ const again = await makeDayAssignment(orm, day1.id, walk.id);
+ const onDay2 = await makeDayAssignment(orm, day2.id, walk.id);
+ const ridgeOnDay1 = await makeDayAssignment(orm, day1.id, ridge.id);
+ await orm.close();
+ expect((await remaining(member.id)).assignment_id).toBe(onDay1.id);
+ const run = (assignmentId: number) => ({ tripId: trip.id, placeId: walk.id, dayId: day1.id, assignmentId });
+ const second = read(await mcp.getCityWalkRemainingTime(run(again.id), ctx(member.id)));
+ expect(second).toMatchObject({ assignment_id: again.id, reference: { kind: 'start' } });
+ const progress = read(await mcp.getCityWalkProgress(run(again.id), ctx(member.id)));
+ expect(progress.assignment_id).toBe(again.id);
+ expect(progress.stations.every((station: { status: string }) => station.status === 'planned')).toBe(true);
+ const refused = await Promise.all(
+ [onDay2.id, ridgeOnDay1.id].flatMap((other) => [
+ mcp.getCityWalkRemainingTime(run(other), ctx(member.id)),
+ mcp.getCityWalkProgress(run(other), ctx(member.id)),
+ ]),
+ );
+ expect(refused.map(read)).toEqual(Array(4).fill({ error: 'No city walk of this trip is on that day.' }));
+ });
+
it('TOURS-MCP-030: without a line or with a station open before the last visit, the time stays unknown with its reason', async () => {
const { user, trip, walk, onDay1, remaining } = await remainingFixture();
const visits = t.get(TourVisitsService);
@@ -944,6 +976,8 @@ describe('ToursMcp', () => {
'stays.unknown',
'never by how many stations are open',
'Reading changes nothing',
+ 'never present them as stored facts',
+ 'assignmentId',
]) {
expect(description).toContain(field);
}
diff --git a/shared/src/i18n/ar/tours.ts b/shared/src/i18n/ar/tours.ts
index 826d41f21..95db8d378 100644
--- a/shared/src/i18n/ar/tours.ts
+++ b/shared/src/i18n/ar/tours.ts
@@ -779,6 +779,7 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'لا مسار للجولة بعد، لذا الوقت المتبقي غير معروف.',
'tours.walk.remaining.noWalkingTime': 'لا وقت مشي للجولة بعد، لذا الوقت المتبقي غير معروف.',
'tours.walk.remaining.done': 'تمت كل المحطات.',
+ 'tours.walk.remaining.wayBack': 'تمت كل المحطات. لم يتبقَّ سوى الطريق من آخر محطة إلى نهاية الجولة.',
'tours.walk.visit.visited': 'تمت الزيارة',
'tours.walk.visit.skip': 'تخطي',
'tours.walk.visit.undo': 'تراجع',
diff --git a/shared/src/i18n/az/tours.ts b/shared/src/i18n/az/tours.ts
index 683bee1e5..298bd7927 100644
--- a/shared/src/i18n/az/tours.ts
+++ b/shared/src/i18n/az/tours.ts
@@ -777,6 +777,8 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'Gəzintinin hələ marşrutu yoxdur, ona görə qalan vaxt bilinmir.',
'tours.walk.remaining.noWalkingTime': 'Gəzintinin hələ yürüş vaxtı yoxdur, ona görə qalan vaxt bilinmir.',
'tours.walk.remaining.done': 'Bütün dayanacaqlar tamamlandı.',
+ 'tours.walk.remaining.wayBack':
+ 'Bütün dayanacaqlar tamamlandı. Yalnız sonuncu dayanacaqdan gəzintinin sonuna qədər olan yol qalıb.',
'tours.walk.visit.visited': 'Ziyarət edildi',
'tours.walk.visit.skip': 'Keç',
'tours.walk.visit.undo': 'Geri al',
diff --git a/shared/src/i18n/br/tours.ts b/shared/src/i18n/br/tours.ts
index cd6873897..955b72913 100644
--- a/shared/src/i18n/br/tours.ts
+++ b/shared/src/i18n/br/tours.ts
@@ -787,6 +787,8 @@ const tours: TranslationStrings = {
'tours.walk.remaining.noWalkingTime':
'O passeio ainda não tem tempo de caminhada, então o tempo restante não é conhecido.',
'tours.walk.remaining.done': 'Todas as paradas estão feitas.',
+ 'tours.walk.remaining.wayBack':
+ 'Todas as paradas estão feitas. Resta só o caminho da última parada até o fim do passeio.',
'tours.walk.visit.visited': 'Visitada',
'tours.walk.visit.skip': 'Pular',
'tours.walk.visit.undo': 'Desfazer',
diff --git a/shared/src/i18n/ca/tours.ts b/shared/src/i18n/ca/tours.ts
index 9410dcbaf..27b45dc08 100644
--- a/shared/src/i18n/ca/tours.ts
+++ b/shared/src/i18n/ca/tours.ts
@@ -790,6 +790,8 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'La ruta encara no té recorregut, així que el temps restant no se sap.',
'tours.walk.remaining.noWalkingTime': 'La ruta encara no té temps a peu, així que el temps restant no se sap.',
'tours.walk.remaining.done': 'Totes les parades estan fetes.',
+ 'tours.walk.remaining.wayBack':
+ "Totes les parades estan fetes. Només queda el camí de l'última parada fins al final de la passejada.",
'tours.walk.visit.visited': 'Visitada',
'tours.walk.visit.skip': 'Omet',
'tours.walk.visit.undo': 'Desfés',
diff --git a/shared/src/i18n/cs/tours.ts b/shared/src/i18n/cs/tours.ts
index 3c5f5d60e..d0f67d279 100644
--- a/shared/src/i18n/cs/tours.ts
+++ b/shared/src/i18n/cs/tours.ts
@@ -774,6 +774,8 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'Procházka zatím nemá trasu, takže zbývající čas není známý.',
'tours.walk.remaining.noWalkingTime': 'Procházka zatím nemá dobu chůze, takže zbývající čas není známý.',
'tours.walk.remaining.done': 'Všechny zastávky jsou hotové.',
+ 'tours.walk.remaining.wayBack':
+ 'Všechny zastávky jsou hotové. Zbývá jen cesta od poslední zastávky na konec procházky.',
'tours.walk.visit.visited': 'Navštíveno',
'tours.walk.visit.skip': 'Přeskočit',
'tours.walk.visit.undo': 'Vrátit',
diff --git a/shared/src/i18n/de/tours.ts b/shared/src/i18n/de/tours.ts
index a3e62339e..c54b606d6 100644
--- a/shared/src/i18n/de/tours.ts
+++ b/shared/src/i18n/de/tours.ts
@@ -793,6 +793,8 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'Der Walk hat noch keine Route, daher ist die Restzeit nicht bekannt.',
'tours.walk.remaining.noWalkingTime': 'Der Walk hat noch keine Gehzeit, daher ist die Restzeit nicht bekannt.',
'tours.walk.remaining.done': 'Alle Stationen sind erledigt.',
+ 'tours.walk.remaining.wayBack':
+ 'Alle Stationen sind erledigt. Es bleibt nur noch der Weg von der letzten Station zum Ende des Spaziergangs.',
'tours.walk.visit.visited': 'Besucht',
'tours.walk.visit.skip': 'Überspringen',
'tours.walk.visit.undo': 'Zurücknehmen',
diff --git a/shared/src/i18n/en/tours.ts b/shared/src/i18n/en/tours.ts
index 8a4dbd981..73bba9eac 100644
--- a/shared/src/i18n/en/tours.ts
+++ b/shared/src/i18n/en/tours.ts
@@ -772,6 +772,7 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'The walk has no route yet, so the time left is not known.',
'tours.walk.remaining.noWalkingTime': 'The walk has no walking time yet, so the time left is not known.',
'tours.walk.remaining.done': 'Every stop is done.',
+ 'tours.walk.remaining.wayBack': 'Every stop is done. Only the way from the last stop to the end of the walk is left.',
'tours.walk.visit.visited': 'Mark visited',
'tours.walk.visit.skip': 'Skip',
'tours.walk.visit.undo': 'Take back',
diff --git a/shared/src/i18n/es/tours.ts b/shared/src/i18n/es/tours.ts
index ee82a3268..d05a61faa 100644
--- a/shared/src/i18n/es/tours.ts
+++ b/shared/src/i18n/es/tours.ts
@@ -787,6 +787,8 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'El paseo aún no tiene ruta, así que no se sabe el tiempo restante.',
'tours.walk.remaining.noWalkingTime': 'El paseo aún no tiene tiempo a pie, así que no se sabe el tiempo restante.',
'tours.walk.remaining.done': 'Todas las paradas están hechas.',
+ 'tours.walk.remaining.wayBack':
+ 'Todas las paradas están hechas. Solo queda el camino de la última parada al final del paseo.',
'tours.walk.visit.visited': 'Visitada',
'tours.walk.visit.skip': 'Omitir',
'tours.walk.visit.undo': 'Deshacer',
diff --git a/shared/src/i18n/et/tours.ts b/shared/src/i18n/et/tours.ts
index 8b99662a4..fc65f52f8 100644
--- a/shared/src/i18n/et/tours.ts
+++ b/shared/src/i18n/et/tours.ts
@@ -775,6 +775,7 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'Jalutusel pole veel marsruuti, seega järelejäänud aeg pole teada.',
'tours.walk.remaining.noWalkingTime': 'Jalutusel pole veel kõndimisaega, seega järelejäänud aeg pole teada.',
'tours.walk.remaining.done': 'Kõik peatused on tehtud.',
+ 'tours.walk.remaining.wayBack': 'Kõik peatused on tehtud. Jäänud on vaid tee viimasest peatusest jalutuskäigu lõppu.',
'tours.walk.visit.visited': 'Külastatud',
'tours.walk.visit.skip': 'Jäta vahele',
'tours.walk.visit.undo': 'Võta tagasi',
diff --git a/shared/src/i18n/fr/tours.ts b/shared/src/i18n/fr/tours.ts
index f00f2a24b..2c372287c 100644
--- a/shared/src/i18n/fr/tours.ts
+++ b/shared/src/i18n/fr/tours.ts
@@ -801,6 +801,8 @@ const tours: TranslationStrings = {
'tours.walk.remaining.noWalkingTime':
"La balade n'a pas encore de temps de marche, le temps restant n'est donc pas connu.",
'tours.walk.remaining.done': 'Toutes les étapes sont faites.',
+ 'tours.walk.remaining.wayBack':
+ 'Toutes les étapes sont faites. Il ne reste que le chemin de la dernière étape à la fin de la balade.',
'tours.walk.visit.visited': 'Visitée',
'tours.walk.visit.skip': 'Passer',
'tours.walk.visit.undo': 'Annuler',
diff --git a/shared/src/i18n/gr/tours.ts b/shared/src/i18n/gr/tours.ts
index 7944f6e49..ced6c54a4 100644
--- a/shared/src/i18n/gr/tours.ts
+++ b/shared/src/i18n/gr/tours.ts
@@ -806,6 +806,8 @@ const tours: TranslationStrings = {
'tours.walk.remaining.noWalkingTime':
'Η βόλτα δεν έχει ακόμα χρόνο περπατήματος, οπότε ο χρόνος που απομένει δεν είναι γνωστός.',
'tours.walk.remaining.done': 'Όλες οι στάσεις ολοκληρώθηκαν.',
+ 'tours.walk.remaining.wayBack':
+ 'Όλες οι στάσεις ολοκληρώθηκαν. Απομένει μόνο η διαδρομή από την τελευταία στάση ως το τέλος της βόλτας.',
'tours.walk.visit.visited': 'Επισκέφθηκα',
'tours.walk.visit.skip': 'Παράλειψη',
'tours.walk.visit.undo': 'Αναίρεση',
diff --git a/shared/src/i18n/hu/tours.ts b/shared/src/i18n/hu/tours.ts
index 680b4e663..f458f05aa 100644
--- a/shared/src/i18n/hu/tours.ts
+++ b/shared/src/i18n/hu/tours.ts
@@ -787,6 +787,7 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'A sétának még nincs útvonala, így a hátralévő idő nem ismert.',
'tours.walk.remaining.noWalkingTime': 'A sétának még nincs gyaloglási ideje, így a hátralévő idő nem ismert.',
'tours.walk.remaining.done': 'Minden megálló kész.',
+ 'tours.walk.remaining.wayBack': 'Minden megálló kész. Már csak az út van hátra az utolsó megállótól a séta végéig.',
'tours.walk.visit.visited': 'Meglátogatva',
'tours.walk.visit.skip': 'Kihagyás',
'tours.walk.visit.undo': 'Visszavonás',
diff --git a/shared/src/i18n/id/tours.ts b/shared/src/i18n/id/tours.ts
index 5e22e303b..e699fd3ab 100644
--- a/shared/src/i18n/id/tours.ts
+++ b/shared/src/i18n/id/tours.ts
@@ -783,6 +783,7 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'Rute belum punya jalur, jadi sisa waktu tidak diketahui.',
'tours.walk.remaining.noWalkingTime': 'Rute belum punya waktu jalan, jadi sisa waktu tidak diketahui.',
'tours.walk.remaining.done': 'Semua titik sudah selesai.',
+ 'tours.walk.remaining.wayBack': 'Semua titik sudah selesai. Tinggal jalan dari titik terakhir ke akhir jalan kaki.',
'tours.walk.visit.visited': 'Sudah dikunjungi',
'tours.walk.visit.skip': 'Lewati',
'tours.walk.visit.undo': 'Batalkan',
diff --git a/shared/src/i18n/it/tours.ts b/shared/src/i18n/it/tours.ts
index 32df16aa9..4667a122e 100644
--- a/shared/src/i18n/it/tours.ts
+++ b/shared/src/i18n/it/tours.ts
@@ -792,6 +792,8 @@ const tours: TranslationStrings = {
'tours.walk.remaining.noWalkingTime':
'Il percorso non ha ancora un tempo a piedi, quindi il tempo rimanente non è noto.',
'tours.walk.remaining.done': 'Tutte le tappe sono fatte.',
+ 'tours.walk.remaining.wayBack':
+ "Tutte le tappe sono fatte. Resta solo il tratto dall'ultima tappa alla fine della passeggiata.",
'tours.walk.visit.visited': 'Visitata',
'tours.walk.visit.skip': 'Salta',
'tours.walk.visit.undo': 'Annulla',
diff --git a/shared/src/i18n/ja/tours.ts b/shared/src/i18n/ja/tours.ts
index 4f8fbeee4..2b6353c5c 100644
--- a/shared/src/i18n/ja/tours.ts
+++ b/shared/src/i18n/ja/tours.ts
@@ -763,6 +763,8 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'ルートがまだないため、残り時間は分かりません。',
'tours.walk.remaining.noWalkingTime': '歩行時間がまだないため、残り時間は分かりません。',
'tours.walk.remaining.done': 'すべての立ち寄り先が完了しました。',
+ 'tours.walk.remaining.wayBack':
+ 'すべての立ち寄り先が完了しました。残りは最後の立ち寄り先から散策の終点までの道のりだけです。',
'tours.walk.visit.visited': '訪問済み',
'tours.walk.visit.skip': 'スキップ',
'tours.walk.visit.undo': '取り消す',
diff --git a/shared/src/i18n/ko/tours.ts b/shared/src/i18n/ko/tours.ts
index 3936f344e..1ed9c4b67 100644
--- a/shared/src/i18n/ko/tours.ts
+++ b/shared/src/i18n/ko/tours.ts
@@ -756,6 +756,7 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': '산책에 아직 경로가 없어 남은 시간을 알 수 없습니다.',
'tours.walk.remaining.noWalkingTime': '산책에 아직 도보 시간이 없어 남은 시간을 알 수 없습니다.',
'tours.walk.remaining.done': '모든 정류지를 마쳤습니다.',
+ 'tours.walk.remaining.wayBack': '모든 정류지를 마쳤습니다. 마지막 정류지에서 산책 끝까지 가는 길만 남았습니다.',
'tours.walk.visit.visited': '방문함',
'tours.walk.visit.skip': '건너뛰기',
'tours.walk.visit.undo': '되돌리기',
diff --git a/shared/src/i18n/nl/tours.ts b/shared/src/i18n/nl/tours.ts
index fd4a6f7bd..09c6f8d77 100644
--- a/shared/src/i18n/nl/tours.ts
+++ b/shared/src/i18n/nl/tours.ts
@@ -789,6 +789,8 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'De wandeling heeft nog geen route, dus de resterende tijd is niet bekend.',
'tours.walk.remaining.noWalkingTime': 'De wandeling heeft nog geen looptijd, dus de resterende tijd is niet bekend.',
'tours.walk.remaining.done': 'Alle haltes zijn gedaan.',
+ 'tours.walk.remaining.wayBack':
+ 'Alle haltes zijn gedaan. Alleen de weg van de laatste halte naar het einde van de wandeling is nog over.',
'tours.walk.visit.visited': 'Bezocht',
'tours.walk.visit.skip': 'Overslaan',
'tours.walk.visit.undo': 'Terugnemen',
diff --git a/shared/src/i18n/pl/tours.ts b/shared/src/i18n/pl/tours.ts
index 9595b6c62..8f8767572 100644
--- a/shared/src/i18n/pl/tours.ts
+++ b/shared/src/i18n/pl/tours.ts
@@ -796,6 +796,8 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'Trasa nie ma jeszcze przebiegu, więc pozostały czas nie jest znany.',
'tours.walk.remaining.noWalkingTime': 'Trasa nie ma jeszcze czasu marszu, więc pozostały czas nie jest znany.',
'tours.walk.remaining.done': 'Wszystkie przystanki są zrobione.',
+ 'tours.walk.remaining.wayBack':
+ 'Wszystkie przystanki są zrobione. Została tylko droga od ostatniego przystanku do końca spaceru.',
'tours.walk.visit.visited': 'Odwiedzony',
'tours.walk.visit.skip': 'Pomiń',
'tours.walk.visit.undo': 'Cofnij',
diff --git a/shared/src/i18n/ru/tours.ts b/shared/src/i18n/ru/tours.ts
index 1d95419ee..335cb553c 100644
--- a/shared/src/i18n/ru/tours.ts
+++ b/shared/src/i18n/ru/tours.ts
@@ -798,6 +798,8 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'У прогулки пока нет маршрута, поэтому оставшееся время неизвестно.',
'tours.walk.remaining.noWalkingTime': 'У прогулки пока нет времени в пути, поэтому оставшееся время неизвестно.',
'tours.walk.remaining.done': 'Все остановки пройдены.',
+ 'tours.walk.remaining.wayBack':
+ 'Все остановки пройдены. Остался только путь от последней остановки до конца прогулки.',
'tours.walk.visit.visited': 'Посещено',
'tours.walk.visit.skip': 'Пропустить',
'tours.walk.visit.undo': 'Отменить',
diff --git a/shared/src/i18n/sk/tours.ts b/shared/src/i18n/sk/tours.ts
index 025716a98..919278531 100644
--- a/shared/src/i18n/sk/tours.ts
+++ b/shared/src/i18n/sk/tours.ts
@@ -776,6 +776,8 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'Prechádzka zatiaľ nemá trasu, takže zostávajúci čas nie je známy.',
'tours.walk.remaining.noWalkingTime': 'Prechádzka zatiaľ nemá čas chôdze, takže zostávajúci čas nie je známy.',
'tours.walk.remaining.done': 'Všetky zastávky sú hotové.',
+ 'tours.walk.remaining.wayBack':
+ 'Všetky zastávky sú hotové. Zostáva už len cesta od poslednej zastávky na koniec prechádzky.',
'tours.walk.visit.visited': 'Navštívené',
'tours.walk.visit.skip': 'Preskočiť',
'tours.walk.visit.undo': 'Vrátiť',
diff --git a/shared/src/i18n/sv/tours.ts b/shared/src/i18n/sv/tours.ts
index 1b2de6f7e..a7406c36f 100644
--- a/shared/src/i18n/sv/tours.ts
+++ b/shared/src/i18n/sv/tours.ts
@@ -771,6 +771,8 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'Promenaden har ingen rutt än, så den återstående tiden är inte känd.',
'tours.walk.remaining.noWalkingTime': 'Promenaden har ingen gångtid än, så den återstående tiden är inte känd.',
'tours.walk.remaining.done': 'Alla stopp är klara.',
+ 'tours.walk.remaining.wayBack':
+ 'Alla stopp är klara. Bara vägen från det sista stoppet till promenadens slut är kvar.',
'tours.walk.visit.visited': 'Besökt',
'tours.walk.visit.skip': 'Hoppa över',
'tours.walk.visit.undo': 'Ångra',
diff --git a/shared/src/i18n/th/tours.ts b/shared/src/i18n/th/tours.ts
index c2f077aa7..dc464e639 100644
--- a/shared/src/i18n/th/tours.ts
+++ b/shared/src/i18n/th/tours.ts
@@ -742,6 +742,7 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'ทริปยังไม่มีเส้นทาง จึงยังไม่ทราบเวลาที่เหลือ',
'tours.walk.remaining.noWalkingTime': 'ทริปยังไม่มีเวลาเดิน จึงยังไม่ทราบเวลาที่เหลือ',
'tours.walk.remaining.done': 'ทุกจุดแวะเสร็จแล้ว',
+ 'tours.walk.remaining.wayBack': 'ทุกจุดแวะเสร็จแล้ว เหลือเพียงทางจากจุดแวะสุดท้ายไปยังจุดสิ้นสุดของการเดิน',
'tours.walk.visit.visited': 'แวะแล้ว',
'tours.walk.visit.skip': 'ข้าม',
'tours.walk.visit.undo': 'ยกเลิก',
diff --git a/shared/src/i18n/tours-locales.spec.ts b/shared/src/i18n/tours-locales.spec.ts
index 79b4ae5f0..209991081 100644
--- a/shared/src/i18n/tours-locales.spec.ts
+++ b/shared/src/i18n/tours-locales.spec.ts
@@ -20,7 +20,7 @@ const toursModules = import.meta.glob<{ default: TranslationStrings }>('./*/tour
const TOUR_DOMAINS: { file: string; generalKeyCount: number; modules: DomainModules }[] = [
{
file: 'tours',
- generalKeyCount: 1317,
+ generalKeyCount: 1318,
modules: toursModules,
},
{
diff --git a/shared/src/i18n/tr/tours.ts b/shared/src/i18n/tr/tours.ts
index 446af2451..8404ac204 100644
--- a/shared/src/i18n/tr/tours.ts
+++ b/shared/src/i18n/tr/tours.ts
@@ -776,6 +776,8 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'Yürüyüşün henüz rotası yok, bu yüzden kalan süre bilinmiyor.',
'tours.walk.remaining.noWalkingTime': 'Yürüyüşün henüz yürüme süresi yok, bu yüzden kalan süre bilinmiyor.',
'tours.walk.remaining.done': 'Tüm duraklar tamamlandı.',
+ 'tours.walk.remaining.wayBack':
+ 'Tüm duraklar tamamlandı. Yalnızca son duraktan yürüyüşün sonuna kadar olan yol kaldı.',
'tours.walk.visit.visited': 'Ziyaret edildi',
'tours.walk.visit.skip': 'Atla',
'tours.walk.visit.undo': 'Geri al',
diff --git a/shared/src/i18n/uk/tours.ts b/shared/src/i18n/uk/tours.ts
index 3fab28c82..88c764531 100644
--- a/shared/src/i18n/uk/tours.ts
+++ b/shared/src/i18n/uk/tours.ts
@@ -792,6 +792,8 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'Прогулянка ще не має маршруту, тож час, що лишився, невідомий.',
'tours.walk.remaining.noWalkingTime': 'Прогулянка ще не має часу ходьби, тож час, що лишився, невідомий.',
'tours.walk.remaining.done': 'Усі зупинки пройдено.',
+ 'tours.walk.remaining.wayBack':
+ 'Усі зупинки пройдено. Залишився лише шлях від останньої зупинки до кінця прогулянки.',
'tours.walk.visit.visited': 'Відвідано',
'tours.walk.visit.skip': 'Пропустити',
'tours.walk.visit.undo': 'Скасувати',
diff --git a/shared/src/i18n/vi/tours.ts b/shared/src/i18n/vi/tours.ts
index 60dd8e2ae..227750134 100644
--- a/shared/src/i18n/vi/tours.ts
+++ b/shared/src/i18n/vi/tours.ts
@@ -773,6 +773,7 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': 'Lộ trình chưa có đường đi, nên chưa biết thời gian còn lại.',
'tours.walk.remaining.noWalkingTime': 'Lộ trình chưa có thời gian đi bộ, nên chưa biết thời gian còn lại.',
'tours.walk.remaining.done': 'Đã xong mọi điểm dừng.',
+ 'tours.walk.remaining.wayBack': 'Đã xong mọi điểm dừng. Chỉ còn đoạn đường từ điểm dừng cuối đến cuối chuyến đi bộ.',
'tours.walk.visit.visited': 'Đã ghé',
'tours.walk.visit.skip': 'Bỏ qua',
'tours.walk.visit.undo': 'Hoàn tác',
diff --git a/shared/src/i18n/zh-TW/tours.ts b/shared/src/i18n/zh-TW/tours.ts
index 51b8a4a7c..638928548 100644
--- a/shared/src/i18n/zh-TW/tours.ts
+++ b/shared/src/i18n/zh-TW/tours.ts
@@ -717,6 +717,7 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': '漫步還沒有路線,所以剩餘時間未知。',
'tours.walk.remaining.noWalkingTime': '漫步還沒有步行時間,所以剩餘時間未知。',
'tours.walk.remaining.done': '所有站點都已完成。',
+ 'tours.walk.remaining.wayBack': '所有站點都已完成。只剩從最後一站走到散步終點的路。',
'tours.walk.visit.visited': '已到訪',
'tours.walk.visit.skip': '略過',
'tours.walk.visit.undo': '復原',
diff --git a/shared/src/i18n/zh/tours.ts b/shared/src/i18n/zh/tours.ts
index e2cf956fc..1f0346242 100644
--- a/shared/src/i18n/zh/tours.ts
+++ b/shared/src/i18n/zh/tours.ts
@@ -718,6 +718,7 @@ const tours: TranslationStrings = {
'tours.walk.remaining.routePending': '漫步还没有路线,所以剩余时间未知。',
'tours.walk.remaining.noWalkingTime': '漫步还没有步行时间,所以剩余时间未知。',
'tours.walk.remaining.done': '所有站点都已完成。',
+ 'tours.walk.remaining.wayBack': '所有站点都已完成。只剩从最后一站走到散步终点的路。',
'tours.walk.visit.visited': '已到访',
'tours.walk.visit.skip': '跳过',
'tours.walk.visit.undo': '撤销',