Skip to content

feat: use currency input in swap flows#2322

Merged
rolznz merged 2 commits into
codex/currency-input-sendfrom
codex/currency-input-swap
May 27, 2026
Merged

feat: use currency input in swap flows#2322
rolznz merged 2 commits into
codex/currency-input-sendfrom
codex/currency-input-swap

Conversation

@stackingsaunter
Copy link
Copy Markdown
Member

Part of #2319.

Summary

  • Replaces manual swap in/out amount controls with CurrencyInputField.
  • Replaces auto-swap threshold and amount controls with CurrencyInputField.
  • Wires available on-chain, receive limit, spending balance, and minimum swap rows into the shared field where relevant.

Stack

Validation

  • cd frontend && yarn tsc:compile
  • cd frontend && yarn lint

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 8, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e3679dd5-426e-4dae-a541-f6853e787b27

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/currency-input-swap

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

* feat: add BTC denomination toggle to currency input

* fix: auto switch decimal bitcoin input to BTC

* chore: address feedback on currency input field (#2371)

* chore: address feedback on currency input field

* feat: make currency input units clickable

* fix: separate currency and unit click targets

* fix: remove persistent unit toggle highlight

* fix: tighten currency input unit spacing

* fix: make alternate bitcoin amount clickable

* fix: align context amount unit spacing

---------

Co-authored-by: saunter <68239231+stackingsaunter@users.noreply.github.com>

---------

Co-authored-by: Roland <33993199+rolznz@users.noreply.github.com>
@rolznz rolznz marked this pull request as ready for review May 27, 2026 14:36
@rolznz rolznz merged commit 11d9c36 into codex/currency-input-send May 27, 2026
12 checks passed
@rolznz rolznz deleted the codex/currency-input-swap branch May 27, 2026 14:36
rolznz added a commit that referenced this pull request May 27, 2026
* feat: use currency input in send flows

* feat: use currency input in swap flows (#2322)

* feat: use currency input in swap flows

* feat: add BTC denomination toggle to currency input (#2367)

* feat: add BTC denomination toggle to currency input

* fix: auto switch decimal bitcoin input to BTC

* chore: address feedback on currency input field (#2371)

* chore: address feedback on currency input field

* feat: make currency input units clickable

* fix: separate currency and unit click targets

* fix: remove persistent unit toggle highlight

* fix: tighten currency input unit spacing

* fix: make alternate bitcoin amount clickable

* fix: align context amount unit spacing

---------

Co-authored-by: saunter <68239231+stackingsaunter@users.noreply.github.com>

---------

Co-authored-by: Roland <33993199+rolznz@users.noreply.github.com>

---------

Co-authored-by: Roland <33993199+rolznz@users.noreply.github.com>

---------

Co-authored-by: Roland <33993199+rolznz@users.noreply.github.com>
rolznz added a commit that referenced this pull request May 27, 2026
* feat: add currency input to receive flows

* feat: use currency input in send flows (#2321)

* feat: use currency input in send flows

* feat: use currency input in swap flows (#2322)

* feat: use currency input in swap flows

* feat: add BTC denomination toggle to currency input (#2367)

* feat: add BTC denomination toggle to currency input

* fix: auto switch decimal bitcoin input to BTC

* chore: address feedback on currency input field (#2371)

* chore: address feedback on currency input field

* feat: make currency input units clickable

* fix: separate currency and unit click targets

* fix: remove persistent unit toggle highlight

* fix: tighten currency input unit spacing

* fix: make alternate bitcoin amount clickable

* fix: align context amount unit spacing

---------

Co-authored-by: saunter <68239231+stackingsaunter@users.noreply.github.com>

---------

Co-authored-by: Roland <33993199+rolznz@users.noreply.github.com>

---------

Co-authored-by: Roland <33993199+rolznz@users.noreply.github.com>

---------

Co-authored-by: Roland <33993199+rolznz@users.noreply.github.com>

* fix: tab highlight on currency input field buttons

* fix: undo incorrect copy change

* chore: undo unrelated change

* fix: limit min/max validation to 2 decimal places

* fix: input max amounts and context rows based on whether node has channel management

* fix: rename spending balance to lightning balance

* fix: rename spending balance to lightning balance

* fix: re-add anchor reserve alert to swap page

* fix: remove autocomplete from currency input field

* fix: number of decimals in getModeBound

* fix: remove important tailwind modifier

---------

Co-authored-by: Roland <33993199+rolznz@users.noreply.github.com>
Co-authored-by: Roland Bewick <roland.bewick@gmail.com>
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