From 2016b1cb188d9dc587d41066e04a83237f1a8376 Mon Sep 17 00:00:00 2001 From: mARTin Date: Sun, 5 Apr 2026 12:42:41 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20weather=20sidebar=20toggle=20=E2=80=94?= =?UTF-8?q?=20remove=20sub-checkboxes,=20fix=20toggle=20reliability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the per-field weather checkboxes from the quick-settings sidebar; those belong in the full settings modal only. Also make the toggle more reliable: it now updates both the per-view viewSettings override (saveViewSetting) AND the local profile state (setProfile) so that effectiveWeatherEnabled is guaranteed to flip on the next render regardless of which branch getEffective() takes. v1.83.4 --- package.json | 2 +- src/components/WeeklyView.tsx | 37 ++--------------------------------- 2 files changed, 3 insertions(+), 36 deletions(-) diff --git a/package.json b/package.json index dd99bce..e2d075d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-weekly-todo-list", - "version": "1.83.3", + "version": "1.83.4", "description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view", "main": "index.js", "scripts": { diff --git a/src/components/WeeklyView.tsx b/src/components/WeeklyView.tsx index 2afe5ca..449721c 100644 --- a/src/components/WeeklyView.tsx +++ b/src/components/WeeklyView.tsx @@ -5569,47 +5569,14 @@ export default function WeeklyView() { {effectiveShowProjectIcons ? : } - {(profile.weatherEnabled || profile.weatherLat || profile.weatherLon) && (<> + {(profile.weatherEnabled || profile.weatherLat || profile.weatherLon) && (
{profile.language === "de" ? "Wetter" : "Weather"} -
- {effectiveWeatherEnabled && ( -
- {([ - { key: "icon" as WeatherDisplayKey, label: profile.language === "de" ? "Symbol" : "Icon" }, - { key: "temp" as WeatherDisplayKey, label: profile.language === "de" ? "Temperatur" : "Temperature" }, - { key: "feelsLike" as WeatherDisplayKey, label: profile.language === "de" ? "Gefühlt" : "Feels like" }, - { key: "wind" as WeatherDisplayKey, label: profile.language === "de" ? "Wind" : "Wind" }, - { key: "gusts" as WeatherDisplayKey, label: profile.language === "de" ? "Böen" : "Gusts" }, - { key: "precipProb" as WeatherDisplayKey, label: profile.language === "de" ? "Regenw." : "Rain prob." }, - { key: "precip" as WeatherDisplayKey, label: profile.language === "de" ? "Niederschlag" : "Precip. (mm)" }, - { key: "humidity" as WeatherDisplayKey, label: profile.language === "de" ? "Luftfeuchte" : "Humidity" }, - { key: "uv" as WeatherDisplayKey, label: "UV" }, - ] as { key: WeatherDisplayKey; label: string }[]).map(({ key, label }) => { - const checked = effectiveWeatherDisplay.includes(key); - return ( - - ); - })} -
)} - )} {/* Start on */}