Skip to main content

stores/ — Stores

Svelte writable stores used for state that needs to be shared and persisted across route navigations within the same session.

stores/samples.tssamples: Writable<Sample[]> Holds the list of science samples collected during the current task. Persists across navigation so samples are not lost when the operator moves between routes. Cleared when a task ends (or optionally kept when starting a new task — the layout prompts the operator to choose).

stores/map.tsdisplayedMap, startPoint, endPoint, waypoints Holds the state of the navigation map: the currently loaded map image, start and end waypoints, and the list of intermediate waypoints. All are writable stores so any component can update them and the map will react.

stores/probes.tsprobes: Writable<Probe[]> Holds the list of probe locations recorded during the Probing task.

TODO Add the rest of stores