Skip to content

[7/7] Add optional notes to username EVM payments - #1740

Merged
osyed merged 1 commit into
mainfrom
feat/1717-7-payment-note
Oct 2, 2026
Merged

osyed merged 1 commit into
mainfrom
feat/1717-7-payment-note

Conversation

@dnlbui

@dnlbui dnlbui commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

What Changed

Show the optional note field for eligible saved-contact usernames. Enforce the 1,000-byte UTF-8 limit, show the captured note in confirmation, and carry it in encrypted announcements and payment cards.

Fixed Flow

Resolve a saved contact → optionally enter a note → review it in confirmation → preserve it through announcement synchronization and eligible retries. Clear it on recipient changes and hide it for raw addresses.

Why

Users can explain a payment within its encrypted announcement without changing EVM calldata or the asset transaction hash.

Validation

  • node --input-type=module --check < app.js and node --input-type=module --check < evm-assets.js passed at each reconstructed phase.
  • Diff whitespace checks passed.
  • Complete-stack recovery and submission harnesses passed. Syntax and the three existing EVM/modal test files passed. Live note entry, multi-device synchronization, and funded transfers remain unverified.
  • Behavioral harnesses were run against the completed phase 7 stack with mocked services; they are local files, not committed CI tests. No live transfers were performed.

Stack

Part of #1717; recreates #1724 using the original branch name. Phases 2–6 (#1735–#1739) are now merged into main. This PR targets main and contains only the phase 7 note commit.

Rebased after phase 6's squash merge. git range-diff confirms the note patch is unchanged, and the complete file tree is identical to the pre-rebase branch. JavaScript syntax, diff whitespace, and node --experimental-default-type=module --test tests/evm-assets.test.mjs tests/evm-assets-loading.test.mjs tests/contextual-evm-modal.test.mjs checks passed after rebasing.

The USD-fee draft #1733 remains separate.

@dnlbui
dnlbui marked this pull request as ready for review October 2, 2026 17:54
@dnlbui
dnlbui added this pull request to stack #1741 October 2, 2026 17:54
@osyed
osyed force-pushed the feat/1717-7-payment-note branch 4 times, most recently from f0157cd to 07e8129 Compare October 2, 2026 18:09
Base automatically changed from feat/1717-6-receipt-recovery to main October 2, 2026 18:09
* Add optional notes to username EVM payments

* Restore payment notes when reviewing reverted transfers

* Clarify note restoration after local contact lookup
@dnlbui
dnlbui force-pushed the feat/1717-7-payment-note branch from 07e8129 to f39ee2f Compare October 2, 2026 18:14
@osyed
osyed merged commit a96d479 into main Oct 2, 2026
1 check passed
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.

2 participants