Add Warm-Up and Stretching activity types

Adds WorkoutActivityType.warmUp (HealthKit .preparationAndRecovery) and
.stretching (.flexibility), and retags the six starter splits that were all
mislabeled as Functional Strength:

- Warm-Up:    Upper Body Warm-Up, Lower Body Warm-Up, Morning Wake-Up
- Stretching: Morning Mobility, Full Body Stretch, Evening Stretch

The split editor's activity picker surfaces them automatically (CaseIterable).
Older app versions decode the new raw values as the default type — additive and
not schema-gated, so no quarantine.
This commit is contained in:
2026-07-09 15:45:31 -04:00
parent f01e149269
commit e12fe31152
308 changed files with 5594 additions and 990 deletions
+22 -4
View File
@@ -1,13 +1,31 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 180" fill="none">
<title>Leg Swings</title>
<defs>
<linearGradient id="grad-leg_l-0" gradientUnits="userSpaceOnUse" x1="161.3" y1="92.3" x2="154.9" y2="123.4"><stop offset="0" stop-color="#7b818c"/><stop offset="1" stop-color="#a9afba"/></linearGradient>
<linearGradient id="grad-arm_r-1" gradientUnits="userSpaceOnUse" x1="162.8" y1="55.4" x2="166.8" y2="75.7"><stop offset="0" stop-color="#3a3f4b"/><stop offset="1" stop-color="#494e5a"/></linearGradient>
</defs>
<path d="M 114.0 157.5 L 223.7 157.5 L 223.7 150.2 L 114.0 150.2 Z" fill="none" stroke="#b9bec9" stroke-width="2.1" stroke-linejoin="round"/>
<path id="leg_l" d="M 161.3 92.3 L 154.9 123.4 L 165.6 148.9 L 158.5 151.8" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
<path id="arm_l" d="M 166.5 33.5 L 181.9 47.6 L 199.9 58.2" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
<path id="leg_r" d="M 157.2 92.7 L 186.8 105.0 L 210.8 119.2 L 215.3 113.0" stroke="#0d9488" stroke-width="4.2" stroke-linecap="round" stroke-linejoin="round"/>
<g id="leg_l">
<path d="M 161.3 92.3 L 154.9 123.4" stroke="url(#grad-leg_l-0)" stroke-width="3.64524" stroke-linecap="round"/>
<path d="M 154.9 123.4 L 134.9 142.7" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round"/>
<path d="M 134.9 142.7 L 140.3 148.1" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round"/>
</g>
<g id="arm_l">
<path d="M 166.5 33.5 L 181.9 47.6" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round"/>
<path d="M 181.9 47.6 L 199.9 58.2" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round"/>
</g>
<g id="leg_r">
<path d="M 157.2 92.7 L 186.8 105.0" stroke="#0d9488" stroke-width="4.2" stroke-linecap="round"/>
<path d="M 186.8 105.0 L 210.8 119.2" stroke="#0d9488" stroke-width="4.2" stroke-linecap="round"/>
<path d="M 210.8 119.2 L 215.3 113.0" stroke="#0d9488" stroke-width="4.2" stroke-linecap="round"/>
</g>
<path id="girdle" d="M 166.5 33.5 L 162.4 33.4 L 162.4 34.8" stroke="#3a3f4b" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
<path id="pelvisBar" d="M 161.3 92.3 L 157.2 91.8 L 157.2 92.7" stroke="#3a3f4b" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
<path id="spine" d="M 157.2 91.8 Q 159.9 61.9 162.4 33.4" stroke="#3a3f4b" stroke-width="4.2" stroke-linecap="round" stroke-linejoin="round"/>
<path id="arm_r" d="M 162.4 34.8 L 162.8 55.4 L 166.8 75.7" stroke="#3a3f4b" stroke-width="4.2" stroke-linecap="round" stroke-linejoin="round"/>
<g id="arm_r">
<path d="M 162.4 34.8 L 162.8 55.4" stroke="#3a3f4b" stroke-width="4.2" stroke-linecap="round"/>
<path d="M 162.8 55.4 L 166.8 75.7" stroke="url(#grad-arm_r-1)" stroke-width="4.15236" stroke-linecap="round"/>
</g>
<circle id="head" cx="164.1" cy="19.7" r="7.0" fill="white" stroke="#3a3f4b" stroke-width="4.2"/>
<line id="nose" x1="171.1" y1="19.9" x2="176.0" y2="19.9" stroke="#3a3f4b" stroke-width="2.8" stroke-linecap="round"/>
<g font-family="-apple-system, Helvetica, sans-serif" font-size="11" fill="#6b7180">

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

+24 -4
View File
@@ -1,13 +1,33 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 180" fill="none">
<title>Leg Swings</title>
<defs>
<linearGradient id="grad-leg_l-0" gradientUnits="userSpaceOnUse" x1="161.3" y1="92.3" x2="154.9" y2="123.4"><stop offset="0" stop-color="#5d636e"/><stop offset="1" stop-color="#a9afba"/></linearGradient>
<linearGradient id="grad-leg_r-1" gradientUnits="userSpaceOnUse" x1="139.7" y1="119.2" x2="122.4" y2="141.0"><stop offset="0" stop-color="#0d9488"/><stop offset="1" stop-color="#1c9b90"/></linearGradient>
<linearGradient id="grad-leg_r-2" gradientUnits="userSpaceOnUse" x1="122.4" y1="141.0" x2="127.0" y2="147.1"><stop offset="0" stop-color="#1c9b90"/><stop offset="1" stop-color="#33a69b"/></linearGradient>
<linearGradient id="grad-arm_r-1" gradientUnits="userSpaceOnUse" x1="162.8" y1="55.4" x2="166.8" y2="75.7"><stop offset="0" stop-color="#3a3f4b"/><stop offset="1" stop-color="#494e5a"/></linearGradient>
</defs>
<path d="M 114.0 157.5 L 223.7 157.5 L 223.7 150.2 L 114.0 150.2 Z" fill="none" stroke="#b9bec9" stroke-width="2.1" stroke-linejoin="round"/>
<path id="leg_l" d="M 161.3 92.3 L 154.9 123.4 L 165.6 148.9 L 158.5 151.8" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
<path id="arm_l" d="M 166.5 33.5 L 181.9 47.6 L 199.9 58.2" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
<path id="leg_r" d="M 157.2 92.7 L 139.7 119.2 L 122.4 141.0 L 127.0 147.1" stroke="#0d9488" stroke-width="4.2" stroke-linecap="round" stroke-linejoin="round"/>
<g id="leg_l">
<path d="M 161.3 92.3 L 154.9 123.4" stroke="url(#grad-leg_l-0)" stroke-width="3.73851" stroke-linecap="round"/>
<path d="M 154.9 123.4 L 134.9 142.7" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round"/>
<path d="M 134.9 142.7 L 140.3 148.1" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round"/>
</g>
<g id="arm_l">
<path d="M 166.5 33.5 L 181.9 47.6" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round"/>
<path d="M 181.9 47.6 L 199.9 58.2" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round"/>
</g>
<g id="leg_r">
<path d="M 157.2 92.7 L 139.7 119.2" stroke="#0d9488" stroke-width="4.2" stroke-linecap="round"/>
<path d="M 139.7 119.2 L 122.4 141.0" stroke="url(#grad-leg_r-1)" stroke-width="4.15683" stroke-linecap="round"/>
<path d="M 122.4 141.0 L 127.0 147.1" stroke="url(#grad-leg_r-2)" stroke-width="4.04828" stroke-linecap="round"/>
</g>
<path id="girdle" d="M 166.5 33.5 L 162.4 33.4 L 162.4 34.8" stroke="#3a3f4b" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
<path id="pelvisBar" d="M 161.3 92.3 L 157.2 91.8 L 157.2 92.7" stroke="#3a3f4b" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
<path id="spine" d="M 157.2 91.8 Q 159.9 61.9 162.4 33.4" stroke="#3a3f4b" stroke-width="4.2" stroke-linecap="round" stroke-linejoin="round"/>
<path id="arm_r" d="M 162.4 34.8 L 162.8 55.4 L 166.8 75.7" stroke="#3a3f4b" stroke-width="4.2" stroke-linecap="round" stroke-linejoin="round"/>
<g id="arm_r">
<path d="M 162.4 34.8 L 162.8 55.4" stroke="#3a3f4b" stroke-width="4.2" stroke-linecap="round"/>
<path d="M 162.8 55.4 L 166.8 75.7" stroke="url(#grad-arm_r-1)" stroke-width="4.15236" stroke-linecap="round"/>
</g>
<circle id="head" cx="164.1" cy="19.7" r="7.0" fill="white" stroke="#3a3f4b" stroke-width="4.2"/>
<line id="nose" x1="171.1" y1="19.9" x2="176.0" y2="19.9" stroke="#3a3f4b" stroke-width="2.8" stroke-linecap="round"/>
<g font-family="-apple-system, Helvetica, sans-serif" font-size="11" fill="#6b7180">

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 81 KiB

+22 -4
View File
@@ -1,13 +1,31 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 180" fill="none">
<title>Leg Swings</title>
<defs>
<linearGradient id="grad-leg_l-0" gradientUnits="userSpaceOnUse" x1="161.3" y1="92.3" x2="154.9" y2="123.4"><stop offset="0" stop-color="#7b818c"/><stop offset="1" stop-color="#a9afba"/></linearGradient>
<linearGradient id="grad-arm_r-1" gradientUnits="userSpaceOnUse" x1="162.8" y1="55.4" x2="166.8" y2="75.7"><stop offset="0" stop-color="#3a3f4b"/><stop offset="1" stop-color="#494e5a"/></linearGradient>
</defs>
<path d="M 114.0 157.5 L 223.7 157.5 L 223.7 150.2 L 114.0 150.2 Z" fill="none" stroke="#b9bec9" stroke-width="2.1" stroke-linejoin="round"/>
<path id="leg_l" d="M 161.3 92.3 L 154.9 123.4 L 165.6 148.9 L 158.5 151.8" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
<path id="arm_l" d="M 166.5 33.5 L 181.9 47.6 L 199.9 58.2" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
<path id="leg_r" d="M 157.2 92.7 L 186.8 105.0 L 210.8 119.2 L 215.3 113.0" stroke="#0d9488" stroke-width="4.2" stroke-linecap="round" stroke-linejoin="round"/>
<g id="leg_l">
<path d="M 161.3 92.3 L 154.9 123.4" stroke="url(#grad-leg_l-0)" stroke-width="3.64524" stroke-linecap="round"/>
<path d="M 154.9 123.4 L 134.9 142.7" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round"/>
<path d="M 134.9 142.7 L 140.3 148.1" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round"/>
</g>
<g id="arm_l">
<path d="M 166.5 33.5 L 181.9 47.6" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round"/>
<path d="M 181.9 47.6 L 199.9 58.2" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round"/>
</g>
<g id="leg_r">
<path d="M 157.2 92.7 L 186.8 105.0" stroke="#0d9488" stroke-width="4.2" stroke-linecap="round"/>
<path d="M 186.8 105.0 L 210.8 119.2" stroke="#0d9488" stroke-width="4.2" stroke-linecap="round"/>
<path d="M 210.8 119.2 L 215.3 113.0" stroke="#0d9488" stroke-width="4.2" stroke-linecap="round"/>
</g>
<path id="girdle" d="M 166.5 33.5 L 162.4 33.4 L 162.4 34.8" stroke="#3a3f4b" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
<path id="pelvisBar" d="M 161.3 92.3 L 157.2 91.8 L 157.2 92.7" stroke="#3a3f4b" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
<path id="spine" d="M 157.2 91.8 Q 159.9 61.9 162.4 33.4" stroke="#3a3f4b" stroke-width="4.2" stroke-linecap="round" stroke-linejoin="round"/>
<path id="arm_r" d="M 162.4 34.8 L 162.8 55.4 L 166.8 75.7" stroke="#3a3f4b" stroke-width="4.2" stroke-linecap="round" stroke-linejoin="round"/>
<g id="arm_r">
<path d="M 162.4 34.8 L 162.8 55.4" stroke="#3a3f4b" stroke-width="4.2" stroke-linecap="round"/>
<path d="M 162.8 55.4 L 166.8 75.7" stroke="url(#grad-arm_r-1)" stroke-width="4.15236" stroke-linecap="round"/>
</g>
<circle id="head" cx="164.1" cy="19.7" r="7.0" fill="white" stroke="#3a3f4b" stroke-width="4.2"/>
<line id="nose" x1="171.1" y1="19.9" x2="176.0" y2="19.9" stroke="#3a3f4b" stroke-width="2.8" stroke-linecap="round"/>
<g font-family="-apple-system, Helvetica, sans-serif" font-size="11" fill="#6b7180">

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB