android: show chain sync height on the wallet status line (onto main) #131

Merged
sirius merged 1 commit from onionwire/android-sync-height-on-main into main 2026-09-20 02:59:26 +00:00
Owner

#130 merged into the rust-dev parent branch, not main, so the phone APK never grew sync h/t.

This is a cherry-pick of 3bef3429 onto current main (which already has #129 UniFFI height/target_height). Same payload: WalletChildInput mirrors ULong height/targetHeight, walletChildLine appends · sync h/t when either is non-zero, JVM tests cover 1160/3090939 and 4549/0.

After merge this still needs a new APK. The install on the phone cannot show numbers that are not in its WalletChildStatusText.kt.

#130 merged into the rust-dev parent branch, not `main`, so the phone APK never grew `sync h/t`. This is a cherry-pick of `3bef3429` onto current `main` (which already has #129 UniFFI `height`/`target_height`). Same payload: `WalletChildInput` mirrors `ULong` height/targetHeight, `walletChildLine` appends ` · sync h/t` when either is non-zero, JVM tests cover 1160/3090939 and 4549/0. After merge this still needs a **new APK**. The install on the phone cannot show numbers that are not in its `WalletChildStatusText.kt`.
android: show the chain daemon's sync height on the wallet status line
All checks were successful
android-ci / android (pull_request) Successful in 12m45s
e697045515
The SDK surface from the rust-dev parent (#129) carries `WalletChildStatus.height`
and `target_height` (Rust `u64` → generated Kotlin `ULong`), so the wallet status
line can say how far the chain daemon has got instead of only naming it.

* `WalletChildInput` mirrors both fields as `ULong` — checked against the
  generated `uniffi.onionwire_sdk.WalletChildStatus`, not assumed. Defaults stay
  `0uL` so every existing fixture is unchanged.
* `walletChildLine` appends ` · sync h/t` after the source and the `node` segment,
  before the error em-dash, and only when either value is non-zero: `0/0` is
  unknown (probe failed, daemon not up), not `0%`, and a zero target still prints
  as `/0`. No percent, no progress bar, no ETA.
* `WalletScreen.toInput()` copies both fields field-for-field; the status row's
  screen-reader sentence moved into `walletChildStatusDescription`, which carries
  the same `sync h/t` the eye reads. One line, still no second widget.
* Tests cover the three sync cases plus the spoken row; the old exact-line
  assertions (`off · receive-only`, `connecting · local node`,
  `ready · remote onion daemon`) are untouched. `:app:testDebugUnitTest`: 114
  tests, 0 failures.
* `android/CUPRATE_DAEMON.md` no longer claims the record has no height field.
sirius merged commit 69a7b106ee into main 2026-09-20 02:59:26 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/onionwire!131
No description provided.