aboutsummaryrefslogtreecommitdiff
path: root/web/views.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-08-27 13:37:26 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-08-27 13:37:26 +0200
commitabbbf17bcfe6dfa663b7019c4892db09e27b3808 (patch)
tree483968e14d6e853aeb909724e7d60998f3d2a4b2 /web/views.go
parent6ec883a7fd40a14f2882076bd1a377bbbd0438ad (diff)
Resync Strava title from list payload via Save
Context / Problem: Strava titles can be corrected after import. The sync path only handled new rides; existing rides were marked skipped without checking the cheap list metadata, so corrections like ride #789 stayed stale. What: In syncRides reuse the existing Save write path for rare title resyncs (pay GPX parse cost) when existing.Name != list.Name; track progress.Updated and surface it in SSE/TS UI; add tests for resync without stream fetch. Remove the now-obsolete TODO. QA: go test/ vet, tsc, biome/stylelint pass.
Diffstat (limited to 'web/views.go')
-rw-r--r--web/views.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/views.go b/web/views.go
index 4f769cc..5c8d452 100644
--- a/web/views.go
+++ b/web/views.go
@@ -397,6 +397,7 @@ type SyncProgress struct {
Completed int `json:"completed"`
Imported int `json:"imported"`
Skipped int `json:"skipped"`
+ Updated int `json:"updated"`
RateLimit *RateLimitSnapshot `json:"rateLimit,omitempty"`
}