Commit 8f16952
Watch: dashboard always renders, disconnected = zeros + grayed buttons
When the wheel isn't connected the watch used to swap to a placeholder
screen ("Open EUC Planet on your phone"). Tester feedback: the layout
should stay put with every metric at 0 and the action buttons grayed
out, mirroring how the phone dashboard looks when disconnected. The
header on the details page replaces the wheel-name accent with a muted
"Wheel disconnected" so the rider still knows the values aren't live.
A side benefit: phone-side settings tweaks (PWM display, batteries,
speed unit, light icon, etc.) now show up on the watch immediately,
even without a wheel paired — testers can validate the layout end to
end before they ever turn the wheel on.
Bridge fix: the publish pipeline used a Flow combine + sample +
distinctUntilChanged combo that went silent when nothing upstream
changed (e.g. wheel disconnected, no telemetry tick). Replaced with a
plain coroutine loop ticking at PUBLISH_INTERVAL_MS so the watch's
freshness signal stays alive regardless of whether the wheel is
producing data.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2975c8e commit 8f16952
4 files changed
Lines changed: 74 additions & 71 deletions
File tree
- app/src/main/java/com/eried/eucplanet/wear
- wear/src/main
- java/com/eried/eucplanet/wear
- bridge
- ui
- res/values
Lines changed: 20 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 20 | + | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| |||
113 | 111 | | |
114 | 112 | | |
115 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
116 | 120 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
130 | 132 | | |
| 133 | + | |
| 134 | + | |
131 | 135 | | |
132 | 136 | | |
133 | 137 | | |
| |||
190 | 194 | | |
191 | 195 | | |
192 | 196 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | 197 | | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
31 | 39 | | |
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
| 43 | + | |
35 | 44 | | |
36 | 45 | | |
37 | 46 | | |
| |||
Lines changed: 44 additions & 48 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | 257 | | |
290 | 258 | | |
291 | 259 | | |
| |||
342 | 310 | | |
343 | 311 | | |
344 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
345 | 318 | | |
346 | 319 | | |
347 | 320 | | |
348 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
349 | 325 | | |
350 | | - | |
351 | | - | |
| 326 | + | |
| 327 | + | |
352 | 328 | | |
353 | 329 | | |
354 | 330 | | |
| |||
362 | 338 | | |
363 | 339 | | |
364 | 340 | | |
| 341 | + | |
365 | 342 | | |
366 | 343 | | |
367 | 344 | | |
| 345 | + | |
368 | 346 | | |
369 | | - | |
370 | | - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
371 | 357 | | |
372 | 358 | | |
373 | 359 | | |
374 | 360 | | |
375 | 361 | | |
376 | 362 | | |
377 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
378 | 368 | | |
379 | 369 | | |
380 | 370 | | |
| |||
390 | 380 | | |
391 | 381 | | |
392 | 382 | | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | 383 | | |
398 | 384 | | |
399 | 385 | | |
| |||
418 | 404 | | |
419 | 405 | | |
420 | 406 | | |
421 | | - | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
422 | 418 | | |
423 | 419 | | |
424 | 420 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
0 commit comments