From d572c9cc537f01d548c7db1703c3b7390e907de1 Mon Sep 17 00:00:00 2001 From: zv Date: Sun, 14 Jun 2026 12:52:42 +0200 Subject: [PATCH] fix: show rain icon for likely hourly precipitation --- components/forecast/day-forecast-modal.tsx | 34 ++++++++++++---------- components/forecast/forecast-panel.tsx | 6 ++-- lib/forecast-utils.ts | 11 +++++++ 3 files changed, 34 insertions(+), 17 deletions(-) diff --git a/components/forecast/day-forecast-modal.tsx b/components/forecast/day-forecast-modal.tsx index c4f86a5..20cbe44 100644 --- a/components/forecast/day-forecast-modal.tsx +++ b/components/forecast/day-forecast-modal.tsx @@ -13,6 +13,7 @@ import { formatForecastRainfall, formatForecastTemperature, formatForecastWind, + getEffectiveHourlyWeatherCode, getForecastCondition, isForecastNight, } from "@/lib/forecast-utils"; @@ -150,21 +151,24 @@ export function DayForecastModal({

{t("forecast.hourlyForDay")}

diff --git a/components/forecast/forecast-panel.tsx b/components/forecast/forecast-panel.tsx index 8ea1c3b..288ac28 100644 --- a/components/forecast/forecast-panel.tsx +++ b/components/forecast/forecast-panel.tsx @@ -18,6 +18,7 @@ import { formatForecastTemperature, formatForecastWind, getDailyForecastForHour, + getEffectiveHourlyWeatherCode, getForecastCondition, getHourlyForecastForDay, getUpcomingHourlyForecast, @@ -157,6 +158,7 @@ export function ForecastPanel({ latitude, longitude, locationName }: { latitude?