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(ci): the tour card's open label keys stay readable to the key check, and the road trip unused-key count lowered

Mauricee291735c9519
diff --git a/client/scripts/i18n-unused-baseline.json b/client/scripts/i18n-unused-baseline.json
index da95c6f36..a5accb3a5 100644
--- a/client/scripts/i18n-unused-baseline.json
+++ b/client/scripts/i18n-unused-baseline.json
@@ -29,7 +29,7 @@
"places.ts": 10,
"planner.ts": 53,
"reservations.ts": 21,
- "roadtrip.ts": 38,
+ "roadtrip.ts": 36,
"settings.ts": 37,
"share.ts": 7,
"shared.ts": 2,
diff --git a/client/src/components/Assistant/cards/tour/TourRouteActions.tsx b/client/src/components/Assistant/cards/tour/TourRouteActions.tsx
index e2e7de533..b82fa9b92 100644
--- a/client/src/components/Assistant/cards/tour/TourRouteActions.tsx
+++ b/client/src/components/Assistant/cards/tour/TourRouteActions.tsx
@@ -8,6 +8,9 @@ import { CardOpenButton } from '../parts/CardOpen';
import { tourTarget } from './tourLook';
import { useTakeProposal } from './useTourRouteCard';
+/** What "Open" says: the phone opens the tour's place on the plan, the desktop the Tours tab. */
+const OPEN_LABEL = { phoneKey: 'assistant.card.tour.openPhone', desktopKey: 'assistant.card.tour.open' } as const;
+
/**
* The foot of a route card: "On map" always; "Plan this" on a proposed hike
* or city walk for someone who may add to the trip, off with its reason said
@@ -51,7 +54,7 @@ export default function TourRouteActions({
{card.source === 'saved' && card.placeId !== null && (
<CardOpenButton
target={phone ? { kind: 'map', placeId: card.placeId, dayId: null } : tourTarget(card.placeId)}
- labelKey={phone ? 'assistant.card.tour.openPhone' : 'assistant.card.tour.open'}
+ labelKey={phone ? OPEN_LABEL.phoneKey : OPEN_LABEL.desktopKey}
/>
)}
{take.visible && take.state === 'taken' && (