3.0 Beta 1

New simple mode display with graph. First render and scaling test.
This commit is contained in:
fraxle
2026-06-12 21:22:18 +01:00
parent f6e6efe747
commit 445fba033d
5 changed files with 341 additions and 8 deletions
+9
View File
@@ -343,6 +343,14 @@ export function useAppState() {
return next;
});
const [forecastView, setForecastViewState] = useState(() => {
try { const s = localStorage.getItem('sunscope_forecast_view'); return s === 'table' ? 'table' : 'simple'; } catch (e) { return 'simple'; }
});
const setForecastView = (v) => {
try { localStorage.setItem('sunscope_forecast_view', v); } catch (e) { /* ignore */ }
setForecastViewState(v);
};
const searchTimeout = useRef(null);
// Derived selectors used by profile controls
@@ -603,6 +611,7 @@ export function useAppState() {
restoreOpen, openRestore, closeRestore,
showUnits, toggleShowUnits,
tableInterval, setTableInterval,
forecastView, setForecastView,
// table refs
headStickyRef, headTrackRef, headTableRef,
bodyScrollRef, bodyTableRef, tableWrapRef,