diff --git a/web/modules/weather_blocks/src/Plugin/Block/Test/EndToEnd/HourlyForecast/HourlyForecast.php.test b/web/modules/weather_blocks/src/Plugin/Block/Test/EndToEnd/HourlyForecast/HourlyForecast.php.test index 38dd9157a..f9c52f005 100644 --- a/web/modules/weather_blocks/src/Plugin/Block/Test/EndToEnd/HourlyForecast/HourlyForecast.php.test +++ b/web/modules/weather_blocks/src/Plugin/Block/Test/EndToEnd/HourlyForecast/HourlyForecast.php.test @@ -62,21 +62,6 @@ final class HourlyForecastStructureTest extends EndToEndBase } } - /** - * @group e2e - */ - public function testHourlyApparentTemperatureNullIfCloseToActual(): void - { - $this->onLocationRoute(33.521, -86.812); - $expected = null; - - $data = $this->block->build(); - - $actual = $data["hours"][0]["apparentTemperature"]; - - $this->assertEquals($expected, $actual); - } - /** * @group e2e */ diff --git a/web/modules/weather_data/src/Service/HourlyForecastTrait.php b/web/modules/weather_data/src/Service/HourlyForecastTrait.php index d3ae2b316..824ace6df 100644 --- a/web/modules/weather_data/src/Service/HourlyForecastTrait.php +++ b/web/modules/weather_data/src/Service/HourlyForecastTrait.php @@ -254,7 +254,7 @@ public function getHourlyForecastFromGrid( return [ "apparentTemperature" => - abs($apparentTemperature - $temperature) >= 5 + abs($apparentTemperature - $temperature) >= 0 ? $apparentTemperature : null, "conditions" => $this->t->translate( diff --git a/web/themes/new_weather_theme/templates/partials/hourly-table.html.twig b/web/themes/new_weather_theme/templates/partials/hourly-table.html.twig index 8ac9207e2..c477f8f4f 100644 --- a/web/themes/new_weather_theme/templates/partials/hourly-table.html.twig +++ b/web/themes/new_weather_theme/templates/partials/hourly-table.html.twig @@ -1,6 +1,6 @@ {{ attach_library('new_weather_theme/hourly-table') }} - -
Hourly forecast
+ +
Hourly forecast
diff --git a/web/themes/new_weather_theme/templates/partials/precip-table.html.twig b/web/themes/new_weather_theme/templates/partials/precip-table.html.twig index 062693d3c..6568b0c00 100644 --- a/web/themes/new_weather_theme/templates/partials/precip-table.html.twig +++ b/web/themes/new_weather_theme/templates/partials/precip-table.html.twig @@ -1,10 +1,10 @@ {% if precipHours %}
-
{{ "Precipitation amounts" |t }}
+
{{ "Precipitation amounts" |t }}
-
+
{{ "precipitation amounts for the coming hours" | t }}