diff --git a/src/lib/components/navigation/header.svelte b/src/lib/components/navigation/header.svelte index fb33194..265301b 100644 --- a/src/lib/components/navigation/header.svelte +++ b/src/lib/components/navigation/header.svelte @@ -81,7 +81,7 @@ {location.name} {#if location.admin1 || location.country} - · {#if location.admin1}{location.admin1}, + · {#if location.admin1}{location.admin1}, {/if}{location.country ?? ''} {/if} diff --git a/src/routes/weather/14-day/[location]/+page.svelte b/src/routes/weather/14-day/[location]/+page.svelte index 873b0c4..3af2a0f 100644 --- a/src/routes/weather/14-day/[location]/+page.svelte +++ b/src/routes/weather/14-day/[location]/+page.svelte @@ -154,6 +154,11 @@ fetchedData ? fetchedData.timestamps.slice(0, validLength).map((t) => t / 1000) : [] ); + // Surface a note when the chosen model's ensemble stops short of the request. + let fullHours = $derived(fetchedData?.timestamps.length ?? 0); + let validDays = $derived(Math.max(0, Math.round(validLength / 24))); + let isTrimmed = $derived(!!fetchedData && validLength > 0 && validLength < fullHours - 1); + interface ChartDef { title?: string; subtitle?: string; @@ -285,6 +290,30 @@ +{#if isTrimmed} +