Commit 0772026
Add speed and inclination +/- buttons to floating template (#4258)
* Add speed and inclination +/- buttons to floating template
Add new control tiles for speed and inclination in the floating
template (both vertical and horizontal variants). These tiles display
the current value with +/- buttons for adjustment, useful for treadmill
users who want to control speed and incline from the floating overlay.
Changes:
- Add speedcontrol and inclinecontrol tiles to floating.htm and hfloating.htm
- Add SpeedPlus/SpeedMinus and InclinationPlus/InclinationMinus JavaScript functions
- Add WebSocket message handlers (speed_plus, speed_minus, inclination_plus, inclination_minus)
- Add corresponding signals and slots in templateinfosenderbuilder and homeform
- Wire up to existing Plus/Minus functions which handle speed and inclination changes
https://claude.ai/code/session_01QgLyRenM7sSWqqGU1Esy3s
* Integrate speed/inclination buttons into existing rows
Replace AVG/MAX labels with -/+ buttons on speed and inclination rows
instead of having separate control tiles. This provides a cleaner UI
where users can see all metrics (avg, current, max) while also having
control buttons on the same row.
Layout: [-] AVG_VALUE | CURRENT_VALUE | [+] MAX_VALUE
https://claude.ai/code/session_01QgLyRenM7sSWqqGU1Esy3s
* Add AVG/MAX labels under values in speed/inclination rows
Add small labels under the avg and max values so users know what
the values represent. Layout is now:
[-] avg_value | current_value | [+] max_value
AVG MAX
https://claude.ai/code/session_01QgLyRenM7sSWqqGU1Esy3s
* Show speed/inclination +/- buttons only for treadmills
The +/- control buttons on speed and inclination rows are now
only visible when connected to a treadmill device. For other
device types (bike, elliptical, etc.), the standard AVG/MAX
labels are shown instead.
Uses deviceType and TREADMILL_TYPE from workout data to detect
the device type and toggle visibility via CSS classes.
https://claude.ai/code/session_01QgLyRenM7sSWqqGU1Esy3s
* Fix table layout consistency for non-treadmill devices
Wrap the <br> and AVG/MAX label elements together in a span with the
treadmill-only class so they are both hidden for non-treadmill devices.
This ensures the table layout is identical to the original for bikes
and other non-treadmill equipment.
https://claude.ai/code/session_01QgLyRenM7sSWqqGU1Esy3s
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 5bd7426 commit 0772026
6 files changed
Lines changed: 268 additions & 25 deletions
File tree
- src
- inner_templates/floating
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
561 | 565 | | |
562 | 566 | | |
563 | 567 | | |
| |||
1610 | 1614 | | |
1611 | 1615 | | |
1612 | 1616 | | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
1613 | 1633 | | |
1614 | 1634 | | |
1615 | 1635 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1056 | 1056 | | |
1057 | 1057 | | |
1058 | 1058 | | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
1059 | 1063 | | |
1060 | 1064 | | |
1061 | 1065 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
76 | | - | |
77 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
78 | 83 | | |
79 | | - | |
80 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
81 | 87 | | |
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
85 | | - | |
86 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
87 | 94 | | |
88 | | - | |
89 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
90 | 98 | | |
91 | 99 | | |
92 | 100 | | |
| |||
306 | 314 | | |
307 | 315 | | |
308 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
309 | 373 | | |
310 | 374 | | |
311 | 375 | | |
| |||
611 | 675 | | |
612 | 676 | | |
613 | 677 | | |
| 678 | + | |
614 | 679 | | |
615 | 680 | | |
616 | 681 | | |
| |||
673 | 738 | | |
674 | 739 | | |
675 | 740 | | |
| 741 | + | |
| 742 | + | |
676 | 743 | | |
677 | 744 | | |
678 | 745 | | |
| |||
789 | 856 | | |
790 | 857 | | |
791 | 858 | | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
792 | 863 | | |
793 | 864 | | |
794 | 865 | | |
| |||
837 | 908 | | |
838 | 909 | | |
839 | 910 | | |
840 | | - | |
841 | | - | |
| 911 | + | |
| 912 | + | |
842 | 913 | | |
843 | 914 | | |
844 | 915 | | |
845 | 916 | | |
846 | | - | |
847 | | - | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
848 | 929 | | |
849 | 930 | | |
850 | 931 | | |
| |||
0 commit comments