fix(export): 补齐运动详情 FIT 入口与 CSV 指标,记录反馈排查结论 - #70
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
运动详情页原来只能复制 JSON/CSV/GPX,即使后台已经支持 FIT,也没有单条运动的保存入口。现在可以在详情页选择 FIT,选定文件夹后只导出当前运动;取消不写文件,导出期间防止重复操作,并显示真实后端错误。同时补齐详情页 CSV 遗漏的功率、触地时间、垂直振幅、垂直比和等效配速列。
关联反馈:#28 评论。新增原始 power_meter → 数据库 → 单条导出 → FIT 编解码回归,验证普通功率、零功率和空时间差均保留。
本 PR 没有完成全部反馈的修复:
详细证据和所需样本见
docs/evidence/workout-export-investigation-2026-09-09.md。这些问题不随本 PR 自动关闭。验证:前端构建、109 项 Vitest、Rust workspace 测试、i18n、文档链接和 diff 检查通过。Tauri 正式构建的 Windows EXE 在隔离数据库副本上验证:FIT 入口正常显示,真实后端导出 1 个 FIT,独立 fitdecode 解码的 122 个功率值与 SQLite 一致;详情页 CSV 的 122 行功率也一致。FIT 后端通过 IPC 直接调用,原生文件夹选择器未自动化验收;CSV 剪贴板写入由测试捕获。日常 release EXE 和数据没有被替换。