Add Moving Time and Clock tiles to companion floating window - #4849
Add Moving Time and Clock tiles to companion floating window#4849cagnulein wants to merge 2 commits into
Conversation
These tiles already exist in the main app's tile picker (tile_moving_time_*, tile_datetime_*) but were never wired into the floating.htm mirror used by the companion AI app on a second device, so they never showed up there.
Same gap as floating.htm: hfloating.htm (horizontal bar variant) has its own duplicated table/bar rendering logic and was missing these two tiles in both the full table panel and the quick horizontal bar.
|
https://github.com/cagnulein/qdomyos-zwift/actions/runs/30171048813 Google is very slow in these days, reviewing the app on the store, even the beta ones. For this reason, in order to check right now if the patch that I did is right, you can use the android build in the link (check at the bottom of the page in about 1 hour). In order to test it you need first to remove the current QZ version on your phone, install the one that you downloaded. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Summary
src/inner_templates/floating/floating.htm, used to mirror QZ metrics onto a second phone e.g. with MyWhoosh) only rendered a subset of the tiles available in the main app's tile picker.tile_moving_time_enabled/tile_moving_time_orderandtile_datetime_enabled/tile_datetime_orderalready existed as settings but had no corresponding row/handling in the floating page, so those two tiles never appeared on the mirrored screen even when enabled on the main device.moving_s/moving_m/moving_hfields already present in theworkoutwebsocket payload (templateinfosenderbuilder.cpp), respects enable/order settings.Date()) and refreshed every second client-side, respects enable/order settings.moving_s/m/hwere already being sent, and settings are fetched generically by key.Test plan
floating.htmin a browser and visually verified the two new rows render, including a self-updating Clock.