Data: Stations and pumping (the tracked stations, their position, pump.sh from the app); the weather of the station at Load
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
eaa124f9f5
commit
c8c8c1587a
8 files changed
+261
-14
No files matched your search
@@ -52,7 +52,7 @@ export default function Data({ selection, choose, analysis, setAnalysis }) {
|
||||
if (!station) return;
|
||||
setLoading(true);
|
||||
call(`/api/curves?${new URLSearchParams({ station, start, end })}`).then(d => { setData(d); setLoading(false); });
|
||||
}, [station, start, end]);
|
||||
}, [selection]);
|
||||
// The columns slide (style.css); Plotly only follows the window: at the end of the slide, the plots refit to their
|
||||
// new width (redrawing them at every frame of the slide would be too heavy)
|
||||
const slideEnd = e => { if (e.target === left.current && e.propertyName === "max-width") dispatchEvent(new Event("resize")); };
|
||||
@@ -66,6 +66,7 @@ export default function Data({ selection, choose, analysis, setAnalysis }) {
|
||||
opens it.</Text>
|
||||
</div>
|
||||
<Selector selection={selection} choose={choose} />
|
||||
{data?.weather && <Text size="xs" c="dimmed" mt={-8}>Weather: {data.weather}.</Text>}
|
||||
{loading && <Loader />}
|
||||
{data && <TargetFilter d={data} hidden={hidden} setHidden={setHidden} />}
|
||||
{data && <Curves key={`${station}${start}${end}`} selection={selection} d={data} setImage={(t, nearest) => setMoment({ t, nearest })}
|
||||
|
||||
Reference in new issue
Block a user