From 09cf482d921f83e9fb77fdeaf6fb6a9e43349590 Mon Sep 17 00:00:00 2001 From: TopherMayor Date: Fri, 1 May 2026 10:35:32 -0700 Subject: [PATCH] Show flights included on hotel cards --- public/index.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/public/index.html b/public/index.html index cb143f0..cd38a1d 100644 --- a/public/index.html +++ b/public/index.html @@ -2304,6 +2304,8 @@ const amenities = normalizeTextList(selectedPoint?.amenities || opt.automationInsights?.amenities); const inclusions = normalizeTextList(selectedPoint?.inclusions || opt.automationInsights?.inclusions); const limitations = normalizeTextList(selectedPoint?.limitations || opt.automationInsights?.limitations); + const includedComponents = normalizeTextList(selectedPoint?.includedComponents || opt.automationInsights?.includedComponents); + const flightsIncluded = includedComponents.some(item => /flight/i.test(item)); const sourceMetaLine = selectedMeta ? [formatSourcePrice(selectedMeta) || priceLabel, selectedMeta.pointCount ? `${selectedMeta.pointCount} point${selectedMeta.pointCount === 1 ? '' : 's'}` : ''] .filter(Boolean) @@ -2378,6 +2380,15 @@ `); } + if (opt.categoryId === 'hotel' && flightsIncluded) { + sections.push(` +
+
Flights included
+ ${renderTextChips(includedComponents)} +
+ `); + } + if (limitations.length) { sections.push(`