diff --git a/site/src/components/ActivityDetail.svelte b/site/src/components/ActivityDetail.svelte index c8ac1fc..969f4f8 100644 --- a/site/src/components/ActivityDetail.svelte +++ b/site/src/components/ActivityDetail.svelte @@ -329,6 +329,16 @@ + +{#if trackUrl} +
+{/if} + {#if error}{error}
diff --git a/site/src/components/SegmentCreate.svelte b/site/src/components/SegmentCreate.svelte new file mode 100644 index 0000000..240d616 --- /dev/null +++ b/site/src/components/SegmentCreate.svelte @@ -0,0 +1,392 @@ + + +Pick an activity to crop the segment from.
+ + + {#if loadingActivities} +Loading activities…
+ {:else if filteredActivities.length === 0} +No GPS activities found{searchQuery ? ' matching your search' : ''}.
+ {:else} +Showing first 100 results — refine your search to narrow down.
+ {/if} + + {#if pendingShards.length > 0} + + {/if} + {/if} + + + {:else} + +{selectedActivity.title ?? 'Untitled'}
+{formatDate(selectedActivity.started_at)}
+Drag the handles to set the segment start and end
++ Selected: {formatDistance(selectedDistance)} + ({selectedPolyline.length} points) +
+{saveError}
+ {/if} + + + {/if} + {/if} +
+ No segments in this area.
+ Create the first one →
+
+ {formatDistance(seg.distance_m)} · by {seg.created_by} · {formatDate(seg.created_at)} +
+