Skip to content

Preserve typed and scanned Mimblewimble send addresses - #1517

Draft
sneurlax wants to merge 4 commits into
stagingfrom
fix/mimblewimble-address-entry
Draft

sneurlax wants to merge 4 commits into
stagingfrom
fix/mimblewimble-address-entry

Conversation

@sneurlax

@sneurlax sneurlax commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Summary

  • treat HTTP(S) receiver URLs as send addresses instead of payment URIs
  • stop rewriting Epic/MWC address fields on every keystroke
  • preserve the cursor while typing an HTTP(S) address
  • normalize relay prefixes for scanned and payment-URI addresses

Split from #1507 because the address-entry behavior affects shared send screens.

Verification

  • address and send-view tests: 39 passed
  • combined split integration suite: 136 passed
  • combined Linux release build: passed

Latest staging refresh (2026-11-17)

Rebased exactly onto staging 1d319093efe5; patch equivalence was confirmed with range-diff. New head: 7f130ac3fa9d. Focused verification: 42 tests passed. The GitHub Actions Test workflow completed green on the exact refreshed head, including the full Flutter test job, Linux release bundle, and Windows build-script checks.

@sneurlax
sneurlax marked this pull request as draft November 13, 2026 22:50
@codecov

codecov Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 63.88889% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 16.41%. Comparing base (a31b28b) to head (7f130ac).
⚠️ Report is 4 commits behind head on staging.

Files with missing lines Patch % Lines
...ack_view/wallet_view/sub_widgets/desktop_send.dart 50.00% 10 Missing ⚠️
lib/pages/send_view/send_view.dart 80.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           staging    #1517      +/-   ##
===========================================
+ Coverage    16.11%   16.41%   +0.29%     
===========================================
  Files         1145     1145              
  Lines       114390   114417      +27     
===========================================
+ Hits         18429    18776     +347     
+ Misses       95961    95641     -320     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The send field parses its text as a payment URI as soon as it contains a
colon. "http:" parsed as a URI with an empty address, so typing an Epic
Cash HTTP listener address cleared the field at the colon and left
"//host:port", which failed validation. Only pasting the whole URL
worked. Treat http and https URLs as addresses, not payment URIs.
The send views added a listener to the address controller inside build()
for Epic Cash (and, on desktop, MWC) that reassigned the controller text
on every change. Listeners piled up with each rebuild, and resetting the
text dropped the selection, so on Android only the first character of a
typed address survived; pasting still worked. Strip the relay address
prefixes in the field's onChanged instead, and only rewrite the field
when that changes the text.
The address field's onChanged strips http(s)://, mailto: and the trailing
slash from an Epicbox or MWCMQS address, but onChanged only runs for typed
input. Since the build-time controller listener was removed, an address set
from a scanned QR code or from a payment URI kept its prefixes. Run the
scanned text and the URI address through the same stripping before the
address and the field are set, in the mobile send view for Epic Cash and
in the desktop send view for Epic Cash and MWC.
Text with a colon that is not a payment URI went through the path that
writes the address back into the field, which moved the cursor to the
end on every keystroke. The text is already in the field at that point,
so only the state is updated now.
@sneurlax
sneurlax force-pushed the fix/mimblewimble-address-entry branch from 7b0d0b9 to 7f130ac Compare November 17, 2026 19:53
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