feat(app): 新增HRV压力提醒设置与锻炼记录分享功能

- 通知设置页面新增 HRV 压力提醒开关,支持自定义开启或关闭压力监测推送
- 锻炼详情页集成分享功能,支持将运动数据生成精美长图并分享
- 优化 HRV 监测服务逻辑,在发送通知前检查用户偏好设置
- 更新多语言配置文件,添加相关文案翻译
- 将应用版本号更新至 1.1.5
This commit is contained in:
richarjiang
2025-12-16 11:27:11 +08:00
parent 409f125db1
commit 5e11da34ee
9 changed files with 569 additions and 122 deletions

View File

@@ -394,6 +394,10 @@ export const notificationSettings = {
title: 'Nutrition Record Reminder',
description: 'Receive nutrition record reminders at meal times',
},
hrvReminder: {
title: 'HRV Stress Alert',
description: 'Get guidance when elevated stress is detected from HRV',
},
moodReminder: {
title: 'Mood Record Reminder',
description: 'Receive mood record reminders in the evening',
@@ -415,6 +419,7 @@ export const notificationSettings = {
saveFailed: 'Failed to save settings',
medicationReminderFailed: 'Failed to set medication reminder',
nutritionReminderFailed: 'Failed to set nutrition reminder',
hrvReminderFailed: 'Failed to set HRV reminder',
moodReminderFailed: 'Failed to set mood reminder',
},
notificationsEnabled: {
@@ -429,6 +434,10 @@ export const notificationSettings = {
title: 'Nutrition Reminder Enabled',
body: 'You will receive nutrition record reminders at meal times',
},
hrvReminderEnabled: {
title: 'HRV Reminder Enabled',
body: 'You will get tips when elevated stress is detected from HRV',
},
moodReminderEnabled: {
title: 'Mood Reminder Enabled',
body: 'You will receive mood record reminders in the evening',

View File

@@ -398,6 +398,10 @@ export const notificationSettings = {
title: '营养记录提醒',
description: '在用餐时间接收营养记录提醒',
},
hrvReminder: {
title: 'HRV 压力提醒',
description: '监测到压力偏高时发送健康建议',
},
moodReminder: {
title: '心情记录提醒',
description: '在晚间接收心情记录提醒',
@@ -419,6 +423,7 @@ export const notificationSettings = {
saveFailed: '保存设置失败',
medicationReminderFailed: '设置药品提醒失败',
nutritionReminderFailed: '设置营养提醒失败',
hrvReminderFailed: '设置 HRV 提醒失败',
moodReminderFailed: '设置心情提醒失败',
},
notificationsEnabled: {
@@ -433,6 +438,10 @@ export const notificationSettings = {
title: '营养提醒已开启',
body: '您将在用餐时间收到营养记录提醒',
},
hrvReminderEnabled: {
title: 'HRV 提醒已开启',
body: '检测到压力升高时将收到健康建议推送',
},
moodReminderEnabled: {
title: '心情提醒已开启',
body: '您将在晚间收到心情记录提醒',