fix(ci): the tour card's open label keys stay readable to the key check, and the road trip unused-key count lowered

This commit is contained in:
Maurice
2026-10-22 18:13:57 +02:00
parent de4f72020e
commit e291735c95
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -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,
@@ -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' && (