Skip to main content

Frontend — Components

Location: src/lib/components/

Components are reusable UI building blocks used across multiple routes. Each is a self-contained Svelte file. They communicate with the backend via Tauri invoke() and receive live rover data via Tauri events listened to with listener().

video.svelte + double_video.svelte — Video Components

video.svelte TODO: still being developed, going to change The basic single-camera display compone...

model_scene.svelte + model_viewer.svelte + model_debug.ts — 3D Model Viewer

These three files together form the 3D model display system used on the dashboard. model_scene.sv...

task_completion.svelte — Task Completion

Displays the history of completed tasks read from the tasks/ app data directory. On mount it list...

map.svelte — Map

TODO: We still don't have the map format, function is subject to change Displays a static map tha...

costmap.svelte — Costmap

TODO: A placeholder component that renders a "Costmap" heading. Intended to display the rover's n...

imu.svelte — IMU

Displays live inertial measurement unit data received from the imu-update Tauri event. Data displ...

sampling_locations.svelte + SampleField.svelte — Sampling Locations

The main data collection interface for the Science task. Manages a list of Sample objects stored ...

interest_locations.svelte — Interest Locations

TODO: A placeholder component that renders a "Locations of Interest" heading. Intended to display...

navigation_plan.svelte — Navigation Plan

A drag-and-drop ordered list of navigation waypoints using svelte-dnd-action. Reads from and writ...

probes.svelte — Probes

Displays the list of probes from the probes store. Currently each probe renders as a basic card. ...

maintenance_tasks.svelte — Maintenance Panel

TODO: WIP

map.svelte + navigation_plan.svelte + interest_locations.svelte — Map & Navigation Components

map.svelte The core map display component. Loads a map file from <appDataDir>/maps/, renders it i...