From 5924e565b13d36b2ca8f53540d0523d202e579ab Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 1 Apr 2026 09:04:47 -0400 Subject: [PATCH] fix: floating mini-chat overlay style + weather precip fallback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - KnowledgeView mini-chat: replace harsh border-top with upward box-shadow and rounded top corners (16px); remove padding-bottom from content area so widget truly overlays cards without pushing layout; add collapse toggle (chevron) that hides messages without closing the conversation - WeatherCard: show precip_mm as fallback when precipitation_probability_max is null but actual rainfall is expected (Open-Meteo omits probability for some forecast days even when rain is shown) - Pass precip_mm through weather service → frontend type definitions Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/components/WeatherCard.vue | 8 +++++++- frontend/src/views/BriefingView.vue | 2 +- frontend/src/views/KnowledgeView.vue | 27 ++++++++++++++++++------- src/fabledassistant/services/weather.py | 1 + 4 files changed, 29 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/WeatherCard.vue b/frontend/src/components/WeatherCard.vue index 7e52c06..c25cebd 100644 --- a/frontend/src/components/WeatherCard.vue +++ b/frontend/src/components/WeatherCard.vue @@ -7,6 +7,7 @@ interface ForecastDay { high: number low: number precip_probability: number | null + precip_mm: number | null windspeed_max: number } @@ -90,7 +91,12 @@ const fetchedAtLabel = computed(() => { {{ weatherIcon(day.condition) }} {{ day.condition }} {{ day.high }}° / {{ day.low }}° - 💧 {{ day.precip_probability }}% + + 💧 {{ day.precip_probability }}% + + + 💧 {{ day.precip_mm.toFixed(1) }}mm + 💧 — 💨 {{ day.windspeed_max }} {{ weather.wind_unit ?? 'km/h' }} diff --git a/frontend/src/views/BriefingView.vue b/frontend/src/views/BriefingView.vue index aa39caa..674dec3 100644 --- a/frontend/src/views/BriefingView.vue +++ b/frontend/src/views/BriefingView.vue @@ -36,7 +36,7 @@ interface WeatherData { yesterday_high: number | null yesterday_low: number | null wind_unit?: string - forecast: { day: string; condition: string; high: number; low: number; precip_probability: number | null; windspeed_max: number }[] + forecast: { day: string; condition: string; high: number; low: number; precip_probability: number | null; precip_mm: number | null; windspeed_max: number }[] } const chatStore = useChatStore() diff --git a/frontend/src/views/KnowledgeView.vue b/frontend/src/views/KnowledgeView.vue index 906d1e6..8c8c65d 100644 --- a/frontend/src/views/KnowledgeView.vue +++ b/frontend/src/views/KnowledgeView.vue @@ -136,6 +136,7 @@ function toggleGraph() { const chatInput = ref(""); const chatOpen = ref(false); +const chatCollapsed = ref(false); const chatConvId = ref(null); const chatSending = ref(false); const chatMessages = computed(() => { @@ -437,8 +438,8 @@ onUnmounted(() => {
- -
+ +
@@ -495,6 +496,17 @@ onUnmounted(() => { title="Send" >↑
+