Fix Wahoo import bugs, add Import All, update spec
Bugs fixed: - FIT parser returns timestamps as Date objects, not strings — convert to ISO 8601 before passing to generateGpx (caused str.replace crash) - FIT parser already converts semicircles to degrees — remove redundant conversion that produced near-zero coordinates - Wahoo CDN URLs are pre-signed S3 URLs — remove Bearer auth header from download requests (caused 400 "Unsupported Authorization Type") - Filter out third-party workouts (fitness_app_id >= 1000) since Wahoo does not share their data via the API UX improvements: - Individual imports use fetcher (no page refresh), button shows "Importing..." inline - "Import all" button imports all unimported workouts on the page sequentially with progress indicator - Add @vitejs/plugin-basic-ssl for local HTTPS dev (opt-in via HTTPS=1) Also adds unit test for FIT-to-GPX conversion with real fixture file, and updates wahoo-import spec to reflect all behaviors. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
01d7620617
commit
20b91ef511
10 changed files with 258 additions and 58 deletions
|
|
@ -11,6 +11,7 @@ export default defineConfig({
|
|||
plugins: [
|
||||
tailwindcss(),
|
||||
reactRouter(),
|
||||
...(process.env.HTTPS === "1" ? [import("@vitejs/plugin-basic-ssl").then((m) => m.default())] : []),
|
||||
sentryVitePlugin({
|
||||
org: "trails-qq",
|
||||
project: "journal",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue