Skip to main content

task_completion.svelte — Task Completion

Displays the history of completed tasks read from the tasks/ app data directory. On mount it lists all task files and deserialises each JSON file into a Task object.

Task list

Each task is shown as a card with its name, number, completion time, and finish timestamp. Clicking a card opens a detail modal. A delete button removes the task file and all associated sample images.

Task detail modal

Shows full task metadata and a list of all attached Sample objects with their location, coordinates, measurement, weight, and image paths. Image paths are clickable links that open the image viewer modal.

Image viewer modal

Loads the before and after sample images using appDataDir() + convertFileSrc() and displays them side by side.