Commit 6a314709238f3ba73e04505b00f8a4d9ba0e95e9

Authored by 权海
1 parent f742a7a8

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

... ... @@ -975,8 +975,8 @@
},
"healthLocalNotificationRealtimeStressExcellentContent": "Your realtime stress stayed low over the past 60 minutes. You seem relaxed overall. Keep your current rhythm.",
"healthLocalNotificationRealtimeStressNormalContent": "Your stress state was stable over the past 60 minutes. Your current rhythm looks normal.",
"healthLocalNotificationRealtimeStressAttentionContent": "Your stress was elevated over the past 60 minutes. Consider relaxing and making time for rest and recovery.",
"healthLocalNotificationRealtimeStressOverloadContent": "You stayed in a high-stress state over the past 60 minutes. Reduce exertion and prioritize rest and sleep.",
"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.",
"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.",
"turnOnNotifications": "Turn on Notifications",
"stayUpToDateOnChangesInYourOwnAndYourFriendsHealth": "Stay up to date on changes in your own and your friends' health",
"refreshComplete": "Refresh Complete",
... ...
... ... @@ -1375,8 +1375,8 @@
},
"healthLocalNotificationRealtimeStressExcellentContent": "你过去60分钟的实时压力较低,整体状态较放松,继续保持当前节奏。",
"healthLocalNotificationRealtimeStressNormalContent": "你过去60分钟的压力状态整体稳定,当前节奏正常。",
"healthLocalNotificationRealtimeStressAttentionContent": "你过去60分钟压力偏高,建议适当放松,并注意休息与恢复。",
"healthLocalNotificationRealtimeStressOverloadContent": "你过去60分钟持续处于高压力状态,建议减少消耗,并优先保证休息与睡眠。",
"healthLocalNotificationRealtimeStressAttentionContent": "你过去60分钟压力偏高,建议适当放松,并注意休息与恢复(运动期间升高属正常现象)。",
"healthLocalNotificationRealtimeStressOverloadContent": "你过去60分钟持续处于高压力状态,建议减少消耗,并优先保证休息与睡眠(运动期间升高属正常现象)。",
"turnOnNotifications": "开启通知",
"stayUpToDateOnChangesInYourOwnAndYourFriendsHealth": "及时了解自己和好友的健康波动",
"refreshComplete": "刷新完成",
... ...
... ... @@ -4741,13 +4741,13 @@ abstract class AppLocalizations {
/// No description provided for @healthLocalNotificationRealtimeStressAttentionContent.
///
/// In zh, this message translates to:
/// **'你过去60分钟压力偏高,建议适当放松,并注意休息与恢复。'**
/// **'你过去60分钟压力偏高,建议适当放松,并注意休息与恢复(运动期间升高属正常现象)。'**
String get healthLocalNotificationRealtimeStressAttentionContent;
/// No description provided for @healthLocalNotificationRealtimeStressOverloadContent.
///
/// In zh, this message translates to:
/// **'你过去60分钟持续处于高压力状态,建议减少消耗,并优先保证休息与睡眠。'**
/// **'你过去60分钟持续处于高压力状态,建议减少消耗,并优先保证休息与睡眠(运动期间升高属正常现象)。'**
String get healthLocalNotificationRealtimeStressOverloadContent;
/// No description provided for @turnOnNotifications.
... ...
... ... @@ -2658,11 +2658,11 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get healthLocalNotificationRealtimeStressAttentionContent =>
'Your stress was elevated over the past 60 minutes. Consider relaxing and making time for rest and recovery.';
'Your stress was elevated over the past 60 minutes. Consider relaxing and making time for rest and recovery. Elevated stress during workouts is normal.';
@override
String get healthLocalNotificationRealtimeStressOverloadContent =>
'You stayed in a high-stress state over the past 60 minutes. Reduce exertion and prioritize rest and sleep.';
'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.';
@override
String get turnOnNotifications => 'Turn on Notifications';
... ...
... ... @@ -2558,11 +2558,11 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get healthLocalNotificationRealtimeStressAttentionContent =>
'你过去60分钟压力偏高,建议适当放松,并注意休息与恢复。';
'你过去60分钟压力偏高,建议适当放松,并注意休息与恢复(运动期间升高属正常现象)。';
@override
String get healthLocalNotificationRealtimeStressOverloadContent =>
'你过去60分钟持续处于高压力状态,建议减少消耗,并优先保证休息与睡眠。';
'你过去60分钟持续处于高压力状态,建议减少消耗,并优先保证休息与睡眠(运动期间升高属正常现象)。';
@override
String get turnOnNotifications => '开启通知';
... ...
... ... @@ -171,7 +171,10 @@ void main() {
expect(notifications, hasLength(1));
expect(notifications.single.title, '注意压力 · 08:45-09:45');
expect(notifications.single.content, '你过去60分钟压力偏高,建议适当放松,并注意休息与恢复。');
expect(
notifications.single.content,
'你过去60分钟压力偏高,建议适当放松,并注意休息与恢复(运动期间升高属正常现象)。',
);
expect(notifications.single.link, healthRawTodayLink);
expect(notifications.single.currentState,
HealthRawStressState.attention.value);
... ...