Skip to content

feat: polish the watch ui and simplify the phone's watch sheet - #2207

Draft
jvsena42 wants to merge 38 commits into
feat/wear-watch-managementfrom
feat/wear-followup-ui
Draft

jvsena42 wants to merge 38 commits into
feat/wear-watch-managementfrom
feat/wear-followup-ui

Conversation

@jvsena42

@jvsena42 jvsena42 commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Part of #2105
Source: team, #2105

Warning

Do not publish the Wear app until #2152 ships. The watch runs the same Spark wallet as the phone, and Spark real-time sync is off (realTimeSyncServerUrl = null), so two live instances share no state. Mainnet is also gated off in this build (Env.IS_MAINNET_ENABLED = false), and the phone's watch features are hidden on mainnet (Env.isWatchLinkEnabled).

Stacked on #2205 (feat/wear-watch-management). UI follow-ups requested while reviewing the stack: the watch's look on send, receive and activity, and a simpler phone side for the watch (two #2205 features removed).

Description

Watch:

  • Uses the phone's spending purple on Receive, the receive QR, the send flow, the outcome overlay and the tile's Receive button, to show the spending balance is in use (Restore on the tile stays orange).
  • Shows the phone's Lightning activity icons (purple arrow, hourglass for pending, cross for failed) in the activity list and detail, and activity times the way the phone does (time today, date and time earlier, the year only before this year; follows the 12/24 h setting).
  • Shows the phone's purple spending QR logo (white lightning on a purple circle) inside the loading ring while the receive QR is made, instead of a gray QR icon.
  • Shows the payment's note on the activity detail when there is one (the LNURL comment, else the invoice description), up to two lines, hidden in ambient. The detail is vertically centered and scrolls (rotary too) only when it doesn't fit.
  • Celebrates a successful send or receive once: the check pops in, purple confetti falls for 2 s (drawn natively, the phone's confetti_purple look, no new dependency) and the success haptic plays on the same frame. Nothing replays on waking from ambient or when the screen is made again, and nothing animates in ambient.
  • Takes the fiat currency from the phone only; nothing on the watch offers a change (now pinned by a test).
  • Shows only the logo and Restore on a watch without a wallet (the "Start on phone" hint is gone); pairing starts from the phone's prompt.

Phone:

Out of Scope

  • wear: the tile's Receive is purple only while the watch has a wallet; Restore keeps the brand orange.
  • app: a 3D watch illustration for the phone's sheets (none exists; the icon can be swapped for one later).

Design

N/A — no design available. #2105 is a prototype with no Figma; colours, activity icons, time format and confetti follow the phone app.

Preview

Watch Wear_Large_Round_API37 (Wear OS 7) and phone Bitkit_Phone_API36 (Android 16), paired over the debug socket on the local ./spark stack, app commit f29e26cbd (receive, send review, list and tile shots at 4802de9f5, unchanged since).

Receive Send review Hold Sent
Receive page with the purple QR button Purple send review Purple hold ring Sent with a purple check and purple confetti
Activity Detail with a note Short detail, centered Tile
Activity list with purple arrow icons and times Send detail with fee, the Coffee note, time and status Receive detail centered Tile with a purple Receive
QR loading
Purple lightning logo inside the loading ring
Watch: no wallet Phone: pair prompt Phone: paired watch Phone: Unpair
Logo and Restore only Pair Your Watch with the watch icon Watch sheet with the watch icon and one Unpair Unpair Watch? confirmation

Recordings:

  • A payment arrives:
receive-paid-confetti.mp4
  • A send succeeds:
send-success-confetti.mp4

QA Notes

Setup

  • Both apps built for the local ./spark stack, paired over the debug socket: journeys/wear/README.md › Local ./spark stack, › Phone and watch over the debug socket, › Two apps on one wallet (a throwaway wallet, local stack only). Cold-boot both emulators and check their clocks agree. Phone PIN 1111, biometrics off.
  • The confetti lasts 2 s and keeps the screen busy, so screen dumps can miss it: the journeys confirm a celebration and a sent result from the watch log (journeys/wear/README.md › The confetti).

Journeys

  • J1: updated receive-paid.xml, receive-paid-ambient.xml — purple, one celebration when paid awake, none in ambient or after waking
  • J2: updated send-deeplink-bolt11.xml — purple review and hold, one celebration on Sent
  • J3: updated activity-list.xml — activity icons, times, the "Coffee" note, a centered detail
  • J4: updated tile-balance.xml — the purple Receive
  • J5: updated send-hold-invoice-settle.xml, send-outcome-after-restart.xml, send-paid-reopen.xml — the settled outcome's celebration from the log
  • J6: updated nfc-pay-background.xml, quickpay-shared-daily-limit.xml, quickpay-skips-hold.xml, quickpay-on-app-start.xml, quickpay-over-limit-holds.xml, quickpay-off-holds.xml — Sent from the log; the watch follows the phone's QuickPay again
  • J7: updated pair-prompt.xml, pair-receive-wallet.xml — no hint on a watch without a wallet
  • J8: updated pair-unpair-from-phone.xml, pair-same-wallet.xml — one Unpair that erases the watch; the watch icon
  • Retired: pay-request-from-phone.xml, quickpay-watch-limit.xml, watch-quickpay-pin.xml (features removed), pair-erase-from-phone.xml (merged into pair-unpair-from-phone.xml).

Manual Tests

  • 1. On a physical watch: the purple screens, the confetti and the haptic on a real send and receive (smoothness and timing on watch hardware)

Automated Checks

  • added CelebrationTest.kt — celebrated once per success, never after ambient, a recreated screen or an outcome shown again
  • added ActivityDetailContentTest.kt, ActivityTimeTextTest.kt — centered when short, scrolls when long at 192 and 227 dp, the note hidden in ambient, the phone's time patterns
  • added LinkDocsTest.kt, WatchLinkSerializerTest.kt — removed watch QuickPay keys ignored, an earlier build's "Unpair" record read safely
  • updated ReceiveQrContentTest.kt, SendResultTest.kt, SendOutcomeOverlayTest.kt — confetti and haptic once, none in ambient
  • updated PaymentsRepoTest.kt — the payment note from Spark
  • updated WatchSheetViewModelTest.kt, WatchLinkRepoTest.kt, LinkEndpointsTest.kt, PhoneLinkRepoTest.kt — one Unpair that erases, an erase that can't be sent
  • updated QuickPayRepoTest.kt (both apps), QuickPaySpendStoreTest.kt, SendViewModelTest.kt, LaunchGateTest.kt, LaunchRequestTest.kt, PhoneSettingsParserTest.kt, BackupJsonTest.kt, PhoneBackupContractTest.kt, WatchBackupContractTest.kt, SettingsStoreTest.kt — the watch following the phone's QuickPay again, Pay on Watch gone, the currency only from the phone

Evidence

  • Gate on d8989961f (the loading logo) and f29e26cbd: just compile, just test (with :wear:testDevDebugUnitTest --rerun), just lint all passed.
  • At f29e26cbd on the local ./spark stack: J1, J2, J3, J5 (settle and paid-reopen), J7, J8 (pair-unpair-from-phone.xml), nfc-pay-background.xml and quickpay-shared-daily-limit.xml passed. send-outcome-after-restart.xml passed its log checks (the outcome resolved while killed, celebrated once on the next open) but its screenshot step caught the launch splash twice, as the log line is written before the first frame.
  • At 4802de9f5: J4, receive-qr.xml, pair-same-wallet.xml, pair-unpair-from-watch.xml and settings/watch-no-watch-connected.xml passed; app code since only changed the onboarding, the detail layout, the Watch sheet icon and the celebration log.
  • Three review rounds: removals and payment paths (Fable), UI, docs and journeys (Opus); the payment review's first round found only Lows, the UI review's third round found journey timing only, which the device runs above confirm.

Gaps

  • The four QuickPay journeys of J6 that import settings were not run: they need the private settings wallet and hosted staging VSS.
  • send-outcome-after-restart.xml's screenshot step can catch the launch screen; its log checks are the reliable ones.
  • Manual test 1 needs a physical watch.
  • Once, the phone app returned to the launcher right after New Wallet; on reopening the wallet existed and no crash was logged. Not investigated.
  • No changelog fragment: the watch app is unreleased and the phone's watch features are hidden on mainnet.

Models used

  • Planning/scoping: claude-opus-5-5 (reasoning: medium)
  • Implementation: claude-opus-5-5 (reasoning: medium)
  • Review: claude-fable-5-2 (reasoning: medium), claude-opus-5-5 (reasoning: medium)
  • Review rounds: 3
  • Journey runs: claude-sonnet-5-5 (reasoning: medium)

🤖 Generated with Claude Code

jvsena42 and others added 30 commits November 29, 2026 17:30
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jvsena42 and others added 7 commits November 29, 2026 20:27
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jvsena42 jvsena42 self-assigned this Nov 30, 2026
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Regtest APK

Built from d898996 (run).

Download bitkit-dev-debug universal APK (expires in 30 days).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant