refactor(health): remove HRV field and improve notification types

- Remove heart rate variability (hrv) field from health data interfaces and implementations
- Update default member name to Chinese localization
- Replace type assertions with proper enum types in notification schedulers
This commit is contained in:
richarjiang
2025-09-22 09:02:42 +08:00
parent fb85a5f30c
commit dbe460a084
5 changed files with 3 additions and 10 deletions

View File

@@ -13,7 +13,6 @@ export interface FitnessRingsData {
export interface HealthData {
activeCalories: number | null;
hrv: number | null;
heartRate: number | null;
activeEnergyBurned: number;
activeCaloriesGoal: number;

View File

@@ -92,7 +92,7 @@ export type UserState = {
activityHistory: ActivityHistoryItem[];
};
export const DEFAULT_MEMBER_NAME = '';
export const DEFAULT_MEMBER_NAME = '朋友';
const getInitialState = (): UserState => {
const preloaded = getPreloadedUserData();