From c1bc73da8efd8f4afd050746b94f94b48629f1f9 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Fri, 10 Apr 2026 08:43:30 -0400 Subject: [PATCH] fix(briefing): remove redundant current-conditions block; patch live temp into WeatherCard The standalone current-conditions div showed just a bare temperature with no forecast context, making the weather panel look incomplete. Now the live temperature from /weather/current is patched directly into the WeatherCard's current_temp so it stays fresh without a second display block. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/views/BriefingView.vue | 35 ++++------------------------- 1 file changed, 4 insertions(+), 31 deletions(-) diff --git a/frontend/src/views/BriefingView.vue b/frontend/src/views/BriefingView.vue index 9653ecc..53a6c63 100644 --- a/frontend/src/views/BriefingView.vue +++ b/frontend/src/views/BriefingView.vue @@ -74,6 +74,10 @@ let currentWeatherTimer: ReturnType | null = null async function loadCurrentConditions() { try { currentConditions.value = await apiGet('/api/briefing/weather/current') + // Patch the live temperature into the WeatherCard so it stays fresh + if (currentConditions.value?.temperature != null && weatherData.value.length > 0) { + weatherData.value[0] = { ...weatherData.value[0], current_temp: currentConditions.value.temperature } + } } catch { /* silent — endpoint may not have locations configured */ } } @@ -260,14 +264,6 @@ onMounted(async () => {
Weather
- -
-
{{ currentConditions.temperature }}°{{ currentConditions.temp_unit }}
-
{{ currentConditions.description }}
-
- Rain next 3h: {{ currentConditions.precip_next_3h.map((p: number) => `${p}%`).join(', ') }} -
-