From f24aa53575b3d39cfc490703b0d05de2da43380f Mon Sep 17 00:00:00 2001 From: alex wiesner Date: Sun, 15 Mar 2026 21:40:27 +0000 Subject: [PATCH] format assistant suggestion markup --- .../src/lib/components/AITravelChat.svelte | 70 +++++++++---------- .../ItinerarySuggestionModal.svelte | 22 +++--- 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/frontend/src/lib/components/AITravelChat.svelte b/frontend/src/lib/components/AITravelChat.svelte index 4a44cd26..2ed1fa1d 100644 --- a/frontend/src/lib/components/AITravelChat.svelte +++ b/frontend/src/lib/components/AITravelChat.svelte @@ -1196,37 +1196,37 @@ {#if msg.role === 'assistant' && msg.tool_results}
{#each deduplicateContextTools(uniqueToolResultsByCallId(msg.tool_results)) as result} - {#if hasPlaceResults(result)} -
- {#each getPlaceResults(result) as place} - {@const placeLink = getPreferredPlaceLink(place)} -
-

{place.name}

- {#if place.address} -

{place.address}

- {/if} - {#if place.rating} -
- - {place.rating} -
- {/if} - {#if placeLink} - - {/if} - {#if collectionId} - {@const isDuplicate = mergedLocationNames.has( - normalizeLocationName(place.name) - )} + {#if hasPlaceResults(result)} +
+ {#each getPlaceResults(result) as place} + {@const placeLink = getPreferredPlaceLink(place)} +
+

{place.name}

+ {#if place.address} +

{place.address}

+ {/if} + {#if place.rating} +
+ + {place.rating} +
+ {/if} + {#if placeLink} + + {/if} + {#if collectionId} + {@const isDuplicate = mergedLocationNames.has( + normalizeLocationName(place.name) + )} - {/if} -
- {/each} -
+ {/if} +
+ {/each} +
{:else if hasWebSearchResults(result)}
{#each getWebSearchResults(result) as item} diff --git a/frontend/src/lib/components/collections/ItinerarySuggestionModal.svelte b/frontend/src/lib/components/collections/ItinerarySuggestionModal.svelte index 06ea3908..fd26f909 100644 --- a/frontend/src/lib/components/collections/ItinerarySuggestionModal.svelte +++ b/frontend/src/lib/components/collections/ItinerarySuggestionModal.svelte @@ -547,17 +547,17 @@ {/if}
-
- {#if suggestion.link} - - ↗ {$t('adventures.external_link')} - - {/if} +
+ {#if suggestion.link} + + ↗ {$t('adventures.external_link')} + + {/if}