Apply wahoo-route-update: PUT on re-push instead of duplicate POST

Re-pushing an edited route to Wahoo now updates the existing remote
route via PUT against the stored remote_id instead of POSTing a new
copy. external_id drops the version suffix and identifies the logical
route. sync_pushes is keyed by (user, route, provider) and tracks
last_pushed_version for the "local newer" UI state.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-05-01 12:08:16 +02:00
parent 4853a116ff
commit db3eeed60f
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9
14 changed files with 435 additions and 99 deletions

View file

@ -209,6 +209,8 @@ export default {
sentToWahoo: "Am {{date}} an Wahoo gesendet",
sendToWahooFailed: "Letzter Versuch fehlgeschlagen: {{error}}",
sendToWahooSending: "Sende…",
onWahooNewer: "Auf Wahoo (v{{n}}) — lokale Version ist neuer",
sendUpdatedVersion: "Aktualisierte Version senden",
sendToWahooBanner: {
success: "Route an Wahoo gesendet. Schau in der Wahoo-App oder auf deinem Bike-Computer nach.",
needsPermission: "Wir brauchen deine Erlaubnis, Routen an Wahoo zu senden. Bitte neu verbinden.",

View file

@ -209,6 +209,8 @@ export default {
sentToWahoo: "Sent to Wahoo on {{date}}",
sendToWahooFailed: "Last attempt failed: {{error}}",
sendToWahooSending: "Sending…",
onWahooNewer: "On Wahoo (v{{n}}) — local version is newer",
sendUpdatedVersion: "Send updated version",
sendToWahooBanner: {
success: "Route sent to Wahoo. Check your Wahoo App or bike computer.",
needsPermission: "We need your permission to send routes to Wahoo. Please reconnect.",