From e291735c9519fc3b3f8b12182ce34d10403f2524 Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 22 Oct 2026 18:13:57 +0200 Subject: [PATCH] fix(ci): the tour card's open label keys stay readable to the key check, and the road trip unused-key count lowered --- client/scripts/i18n-unused-baseline.json | 2 +- .../src/components/Assistant/cards/tour/TourRouteActions.tsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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 && ( )} {take.visible && take.state === 'taken' && (