Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PulseLoop/Coach/Tools/ActionTools.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ enum ActionTools {
}
static var measurementTools: [AnyCoachTool] { [triggerMeasurement] }

private static let activityEnum = ["walk", "run", "cycle", "gym", "squash", "sport", "yoga", "hike", "other"]
private static let activityEnum = ["walk", "run", "cycle", "gym", "squash", "sport", "yoga", "dance", "hike", "other"]

// MARK: set_goal

Expand Down
3 changes: 2 additions & 1 deletion PulseLoop/DesignSystem/Components.swift
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ struct ActivityKind: Identifiable {

enum ActivityMeta {
/// Canonical types in display order (matches web `ACTIVITY_ORDER`).
static let order = ["walk", "run", "cycle", "gym", "squash", "sport", "yoga", "hike", "other"]
static let order = ["walk", "run", "cycle", "gym", "squash", "sport", "yoga", "dance", "hike", "other"]

private static let table: [String: ActivityKind] = [
"walk": ActivityKind(type: "walk", label: "Walk", helper: "Outdoor or indoor walk", symbol: "figure.walk", gpsCapable: true),
Expand All @@ -552,6 +552,7 @@ enum ActivityMeta {
"squash": ActivityKind(type: "squash", label: "Squash", helper: "Court session", symbol: "figure.tennis", gpsCapable: false),
"sport": ActivityKind(type: "sport", label: "Sport", helper: "General sport", symbol: "figure.soccer", gpsCapable: true),
"yoga": ActivityKind(type: "yoga", label: "Yoga", helper: "Mobility or stretching", symbol: "figure.yoga", gpsCapable: false),
"dance": ActivityKind(type: "dance", label: "Dance", helper: "Studio, cardio, or freestyle", symbol: "figure.dance", gpsCapable: false),
"hike": ActivityKind(type: "hike", label: "Hike", helper: "Trail or long walk", symbol: "figure.hiking", gpsCapable: true),
"other": ActivityKind(type: "other", label: "Other", helper: "Custom activity", symbol: "sparkles", gpsCapable: false)
]
Expand Down
1 change: 1 addition & 0 deletions PulseLoop/Shared/WorkoutActivityAttributes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ enum WorkoutLAColors {
case "gym", "strength", "weights": return "dumbbell.fill"
case "hike", "hiking": return "figure.hiking"
case "yoga": return "figure.yoga"
case "dance", "dancing": return "figure.dance"
case "squash", "tennis": return "figure.tennis"
case "sport", "soccer", "football": return "figure.soccer"
default: return "sparkles"
Expand Down
Loading