Commit 6a314709238f3ba73e04505b00f8a4d9ba0e95e9

Authored by 权海
1 parent f742a7a8

feat(ui):修改实时压力推送文案

@@ -975,8 +975,8 @@ @@ -975,8 +975,8 @@
975 }, 975 },
976 "healthLocalNotificationRealtimeStressExcellentContent": "Your realtime stress stayed low over the past 60 minutes. You seem relaxed overall. Keep your current rhythm.", 976 "healthLocalNotificationRealtimeStressExcellentContent": "Your realtime stress stayed low over the past 60 minutes. You seem relaxed overall. Keep your current rhythm.",
977 "healthLocalNotificationRealtimeStressNormalContent": "Your stress state was stable over the past 60 minutes. Your current rhythm looks normal.", 977 "healthLocalNotificationRealtimeStressNormalContent": "Your stress state was stable over the past 60 minutes. Your current rhythm looks normal.",
978 - "healthLocalNotificationRealtimeStressAttentionContent": "Your stress was elevated over the past 60 minutes. Consider relaxing and making time for rest and recovery.",  
979 - "healthLocalNotificationRealtimeStressOverloadContent": "You stayed in a high-stress state over the past 60 minutes. Reduce exertion and prioritize rest and sleep.", 978 + "healthLocalNotificationRealtimeStressAttentionContent": "Your stress was elevated over the past 60 minutes. Consider relaxing and making time for rest and recovery. Elevated stress during workouts is normal.",
  979 + "healthLocalNotificationRealtimeStressOverloadContent": "You stayed in a high-stress state over the past 60 minutes. Reduce exertion and prioritize rest and sleep. Elevated stress during workouts is normal.",
980 "turnOnNotifications": "Turn on Notifications", 980 "turnOnNotifications": "Turn on Notifications",
981 "stayUpToDateOnChangesInYourOwnAndYourFriendsHealth": "Stay up to date on changes in your own and your friends' health", 981 "stayUpToDateOnChangesInYourOwnAndYourFriendsHealth": "Stay up to date on changes in your own and your friends' health",
982 "refreshComplete": "Refresh Complete", 982 "refreshComplete": "Refresh Complete",
@@ -1375,8 +1375,8 @@ @@ -1375,8 +1375,8 @@
1375 }, 1375 },
1376 "healthLocalNotificationRealtimeStressExcellentContent": "你过去60分钟的实时压力较低,整体状态较放松,继续保持当前节奏。", 1376 "healthLocalNotificationRealtimeStressExcellentContent": "你过去60分钟的实时压力较低,整体状态较放松,继续保持当前节奏。",
1377 "healthLocalNotificationRealtimeStressNormalContent": "你过去60分钟的压力状态整体稳定,当前节奏正常。", 1377 "healthLocalNotificationRealtimeStressNormalContent": "你过去60分钟的压力状态整体稳定,当前节奏正常。",
1378 - "healthLocalNotificationRealtimeStressAttentionContent": "你过去60分钟压力偏高,建议适当放松,并注意休息与恢复。",  
1379 - "healthLocalNotificationRealtimeStressOverloadContent": "你过去60分钟持续处于高压力状态,建议减少消耗,并优先保证休息与睡眠。", 1378 + "healthLocalNotificationRealtimeStressAttentionContent": "你过去60分钟压力偏高,建议适当放松,并注意休息与恢复(运动期间升高属正常现象)。",
  1379 + "healthLocalNotificationRealtimeStressOverloadContent": "你过去60分钟持续处于高压力状态,建议减少消耗,并优先保证休息与睡眠(运动期间升高属正常现象)。",
1380 "turnOnNotifications": "开启通知", 1380 "turnOnNotifications": "开启通知",
1381 "stayUpToDateOnChangesInYourOwnAndYourFriendsHealth": "及时了解自己和好友的健康波动", 1381 "stayUpToDateOnChangesInYourOwnAndYourFriendsHealth": "及时了解自己和好友的健康波动",
1382 "refreshComplete": "刷新完成", 1382 "refreshComplete": "刷新完成",
@@ -4741,13 +4741,13 @@ abstract class AppLocalizations { @@ -4741,13 +4741,13 @@ abstract class AppLocalizations {
4741 /// No description provided for @healthLocalNotificationRealtimeStressAttentionContent. 4741 /// No description provided for @healthLocalNotificationRealtimeStressAttentionContent.
4742 /// 4742 ///
4743 /// In zh, this message translates to: 4743 /// In zh, this message translates to:
4744 - /// **'你过去60分钟压力偏高,建议适当放松,并注意休息与恢复。'** 4744 + /// **'你过去60分钟压力偏高,建议适当放松,并注意休息与恢复(运动期间升高属正常现象)。'**
4745 String get healthLocalNotificationRealtimeStressAttentionContent; 4745 String get healthLocalNotificationRealtimeStressAttentionContent;
4746 4746
4747 /// No description provided for @healthLocalNotificationRealtimeStressOverloadContent. 4747 /// No description provided for @healthLocalNotificationRealtimeStressOverloadContent.
4748 /// 4748 ///
4749 /// In zh, this message translates to: 4749 /// In zh, this message translates to:
4750 - /// **'你过去60分钟持续处于高压力状态,建议减少消耗,并优先保证休息与睡眠。'** 4750 + /// **'你过去60分钟持续处于高压力状态,建议减少消耗,并优先保证休息与睡眠(运动期间升高属正常现象)。'**
4751 String get healthLocalNotificationRealtimeStressOverloadContent; 4751 String get healthLocalNotificationRealtimeStressOverloadContent;
4752 4752
4753 /// No description provided for @turnOnNotifications. 4753 /// No description provided for @turnOnNotifications.
@@ -2658,11 +2658,11 @@ class AppLocalizationsEn extends AppLocalizations { @@ -2658,11 +2658,11 @@ class AppLocalizationsEn extends AppLocalizations {
2658 2658
2659 @override 2659 @override
2660 String get healthLocalNotificationRealtimeStressAttentionContent => 2660 String get healthLocalNotificationRealtimeStressAttentionContent =>
2661 - 'Your stress was elevated over the past 60 minutes. Consider relaxing and making time for rest and recovery.'; 2661 + 'Your stress was elevated over the past 60 minutes. Consider relaxing and making time for rest and recovery. Elevated stress during workouts is normal.';
2662 2662
2663 @override 2663 @override
2664 String get healthLocalNotificationRealtimeStressOverloadContent => 2664 String get healthLocalNotificationRealtimeStressOverloadContent =>
2665 - 'You stayed in a high-stress state over the past 60 minutes. Reduce exertion and prioritize rest and sleep.'; 2665 + 'You stayed in a high-stress state over the past 60 minutes. Reduce exertion and prioritize rest and sleep. Elevated stress during workouts is normal.';
2666 2666
2667 @override 2667 @override
2668 String get turnOnNotifications => 'Turn on Notifications'; 2668 String get turnOnNotifications => 'Turn on Notifications';
@@ -2558,11 +2558,11 @@ class AppLocalizationsZh extends AppLocalizations { @@ -2558,11 +2558,11 @@ class AppLocalizationsZh extends AppLocalizations {
2558 2558
2559 @override 2559 @override
2560 String get healthLocalNotificationRealtimeStressAttentionContent => 2560 String get healthLocalNotificationRealtimeStressAttentionContent =>
2561 - '你过去60分钟压力偏高,建议适当放松,并注意休息与恢复。'; 2561 + '你过去60分钟压力偏高,建议适当放松,并注意休息与恢复(运动期间升高属正常现象)。';
2562 2562
2563 @override 2563 @override
2564 String get healthLocalNotificationRealtimeStressOverloadContent => 2564 String get healthLocalNotificationRealtimeStressOverloadContent =>
2565 - '你过去60分钟持续处于高压力状态,建议减少消耗,并优先保证休息与睡眠。'; 2565 + '你过去60分钟持续处于高压力状态,建议减少消耗,并优先保证休息与睡眠(运动期间升高属正常现象)。';
2566 2566
2567 @override 2567 @override
2568 String get turnOnNotifications => '开启通知'; 2568 String get turnOnNotifications => '开启通知';
@@ -171,7 +171,10 @@ void main() { @@ -171,7 +171,10 @@ void main() {
171 171
172 expect(notifications, hasLength(1)); 172 expect(notifications, hasLength(1));
173 expect(notifications.single.title, '注意压力 · 08:45-09:45'); 173 expect(notifications.single.title, '注意压力 · 08:45-09:45');
174 - expect(notifications.single.content, '你过去60分钟压力偏高,建议适当放松,并注意休息与恢复。'); 174 + expect(
  175 + notifications.single.content,
  176 + '你过去60分钟压力偏高,建议适当放松,并注意休息与恢复(运动期间升高属正常现象)。',
  177 + );
175 expect(notifications.single.link, healthRawTodayLink); 178 expect(notifications.single.link, healthRawTodayLink);
176 expect(notifications.single.currentState, 179 expect(notifications.single.currentState,
177 HealthRawStressState.attention.value); 180 HealthRawStressState.attention.value);