3.0 Beta 1
New simple mode display with graph. First render and scaling test.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user