feat(workout): 优化心率图表性能并移除每日总结通知功能

- 重构心率数据采样算法,采用智能采样保留峰值、谷值和变化率大的点
- 减少心率图表最大数据点数和查询限制,提升渲染性能
- 移除图表背景线样式,简化视觉呈现
- 完全移除每日总结通知功能相关代码和调用
This commit is contained in:
2025-10-11 21:53:18 +08:00
parent d43d8c692f
commit ed3a178aa0
4 changed files with 84 additions and 315 deletions

View File

@@ -785,7 +785,7 @@ export async function fetchOxygenSaturation(options: HealthDataOptions): Promise
export async function fetchHeartRateSamplesForRange(
startDate: Date,
endDate: Date,
limit: number = 2000
limit: number = 500
): Promise<HeartRateSample[]> {
try {
const options = {