From 7f33c7c55773663a0c7fe30585e2099d4b5ba6d2 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 24 Aug 2026 09:06:37 +0200 Subject: Add data quality bulk categorisation page --- web/templates.templ | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-) (limited to 'web/templates.templ') diff --git a/web/templates.templ b/web/templates.templ index d1719b8..6c3b09d 100644 --- a/web/templates.templ +++ b/web/templates.templ @@ -13,7 +13,7 @@ templ Layout(title string, content templ.Component) {
@content @@ -359,3 +359,68 @@ templ SyncContent(data SyncPageData) { } + +templ DataQualityPage(data DataQualityPageData) { + @Layout("Data quality", DataQualityContent(data)) +} + +templ DataQualityContent(data DataQualityPageData) { +

Curation

+

Data quality

+

Categorise rides that are missing bike or ride type. Select rides, pick categories, and apply in bulk.

+ if data.Notice != "" { +
{ data.Notice }
+ } +
+
+

Todo

Uncategorised rides

+ { formatRideCount(data.Total) } +
+ if data.Total == 0 { +
All rides are categorised.
+ } else if len(data.Items) == 0 { +
No uncategorised rides match the current view.
+ } else { +
+
+ + + + 0 selected +
+
+ + + + for _, item := range data.Items { + + + + + + + + + } + +
RideStartedDistanceBikeRide type
{ item.Ride.Name }
{ item.Ride.Type }
{ formatRideDate(item.Ride.StartDate) }{ formatDistance(item.Ride.DistanceM) }{ formatCategoryOrEmpty(string(item.Ride.BikeType)) }{ formatCategoryOrEmpty(string(item.Ride.RideType)) }
+
+
+ + } +
+} -- cgit v1.3