mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
fix(google-health): map badminton workouts
This commit is contained in:
1 parent
0c7b958b1b
commit
c83254032e
10 files changed
+16
No files matched your search
@@ -3120,6 +3120,7 @@
|
||||
"hiit": "HIIT",
|
||||
"dance": "Tanz",
|
||||
"golf": "Golf",
|
||||
"badminton": "Badminton",
|
||||
"tennis": "Tennis",
|
||||
"basketball": "Basketball",
|
||||
"soccer": "Fußball",
|
||||
|
||||
@@ -3120,6 +3120,7 @@
|
||||
"hiit": "HIIT",
|
||||
"dance": "Dance",
|
||||
"golf": "Golf",
|
||||
"badminton": "Badminton",
|
||||
"tennis": "Tennis",
|
||||
"basketball": "Basketball",
|
||||
"soccer": "Soccer",
|
||||
|
||||
@@ -3120,6 +3120,7 @@
|
||||
"hiit": "HIIT",
|
||||
"dance": "Baile",
|
||||
"golf": "Golf",
|
||||
"badminton": "Bádminton",
|
||||
"tennis": "Tenis",
|
||||
"basketball": "Baloncesto",
|
||||
"soccer": "Fútbol",
|
||||
|
||||
@@ -3120,6 +3120,7 @@
|
||||
"hiit": "HIIT",
|
||||
"dance": "Danse",
|
||||
"golf": "Golf",
|
||||
"badminton": "Badminton",
|
||||
"tennis": "Tennis",
|
||||
"basketball": "Basket",
|
||||
"soccer": "Football",
|
||||
|
||||
@@ -3120,6 +3120,7 @@
|
||||
"hiit": "HIIT",
|
||||
"dance": "Danza",
|
||||
"golf": "Golf",
|
||||
"badminton": "Badminton",
|
||||
"tennis": "Tennis",
|
||||
"basketball": "Pallacanestro",
|
||||
"soccer": "Calcio",
|
||||
|
||||
@@ -3120,6 +3120,7 @@
|
||||
"hiit": "HIIT",
|
||||
"dance": "Taniec",
|
||||
"golf": "Golf",
|
||||
"badminton": "Badminton",
|
||||
"tennis": "Tenis",
|
||||
"basketball": "Koszykówka",
|
||||
"soccer": "Piłka nożna",
|
||||
|
||||
@@ -41,6 +41,13 @@ import {
|
||||
mapWristTemperature,
|
||||
} from "../client";
|
||||
|
||||
describe("mapGoogleHealthSportType", () => {
|
||||
it("keeps Badminton as a first-class workout sport", () => {
|
||||
expect(mapGoogleHealthSportType("BADMINTON")).toBe("badminton");
|
||||
expect(mapGoogleHealthSportType("Badminton")).toBe("badminton");
|
||||
});
|
||||
});
|
||||
|
||||
describe("mapWeight — spot sample", () => {
|
||||
it("maps a weightGrams sample to a WEIGHT reading in kg anchored on its physical time", () => {
|
||||
const rows = mapWeight({
|
||||
|
||||
@@ -1027,6 +1027,7 @@ const GOOGLE_HEALTH_EXERCISE_TYPE_MAP: Record<string, string> = {
|
||||
dance: "dance",
|
||||
dancing: "dance",
|
||||
golf: "golf",
|
||||
badminton: "badminton",
|
||||
tennis: "tennis",
|
||||
basketball: "basketball",
|
||||
soccer: "soccer",
|
||||
|
||||
@@ -33,6 +33,7 @@ export const workoutSportTypeEnum = z.enum([
|
||||
"hiit",
|
||||
"dance",
|
||||
"golf",
|
||||
"badminton",
|
||||
"tennis",
|
||||
"basketball",
|
||||
"soccer",
|
||||
|
||||
@@ -32,6 +32,7 @@ export const SPORT_TYPE_ICON: Record<string, LucideIcon> = {
|
||||
hiit: Activity,
|
||||
dance: Activity,
|
||||
golf: Activity,
|
||||
badminton: Activity,
|
||||
tennis: Activity,
|
||||
basketball: Activity,
|
||||
soccer: Activity,
|
||||
|
||||
Reference in new issue
Block a user