Skip to content

fix(ui): restore the third currency option and rename the DEX entry - #1069

Merged
romchornyi merged 2 commits into
developfrom
fix/dex-enter-amount
Aug 31, 2026
Merged

romchornyi merged 2 commits into
developfrom
fix/dex-enter-amount

Conversation

@romchornyi

@romchornyi romchornyi commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Issue being fixed or feature implemented

Two reports from the Dash DEX screens.

The currency column beside the amount on Enter amount listed two entries where there are three. The one missing was always the currency you were entering in, so the picker looked like it offered less than it did and there was no way to see what the current unit was.

The Buy & Sell portal listed the entry as "SwapKit" — the provider's name — while every other surface calls the product Dash DEX.

What was done?

Third option restored. Both screens passed hidesSelectedOption: true, and EnterAmountView filters the selected currency out of the list when that is set. Removing it is the whole change: the view models already return the full set (fiat, Dash, coin), and DashPickerView already marks the selected entry with primaryText and a tinted pill — so "three options, one highlighted" needed no new styling and no DashUIKit change.

  • SwapConvertView.swift
  • BuyEnterAmountView.swift

Renamed the portal card to Dash DEX, reusing the string the Home shortcut and the portal's own title already use, so no locale gains work.

Scoped deliberately: SwapKitSwapProvider.displayName stays "SwapKit". That is the service behind the product and it names error domains rather than anything the user reads as a feature. Say the word if SwapKit should disappear from the interface entirely and I will sweep the rest.

How Has This Been Tested?

Clean dashpay build (iOS Simulator, ARCHS=arm64) against platform v4.2-dev.

Not yet exercised on device: both screens should be opened once each — Buy & Sell → Dash DEX → Buy (Enter Amount) and → Convert (Enter amount) — to confirm the column shows all three and the active one is the highlighted one, and that tapping a row still switches the input currency.

The unit-test target is currently broken repo-wide, so no tests were added.

Breaking Changes

None.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

Summary by CodeRabbit

  • UI Improvements
    • Updated the SwapKit service label to display as “Dash DEX.”
    • Selected currency options now remain visible while entering amounts for Buy and Convert transactions.
    • Improved clarity by keeping the chosen currency visible throughout amount entry.

jeanpierreroma and others added 2 commits August 26, 2026 12:37
The column beside the amount listed two of the three currencies. Both screens
passed `hidesSelectedOption: true`, and `EnterAmountView` filters the selected
one out when that is set — so the option you were entering in was the one you
could not see, and the picker looked like it offered less than it did.

Nothing else was needed: the view models already return the full set (fiat,
Dash, coin), and `DashPickerView` already marks the selected entry with
`primaryText` and a tinted pill. Showing it is the whole fix.

Co-Authored-By: Claude Opus 5 <[email protected]>
The card was labelled with the provider's name while every other surface calls
the product Dash DEX — the Home shortcut, the portal's own title, the
transaction-history rows. Reuses that existing string, so no locale gains work.

Scoped to the card. `SwapKitSwapProvider.displayName` stays SwapKit: that is the
service behind the product, and it names error domains rather than anything the
user reads as a feature.

Co-Authored-By: Claude Opus 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 835fc764-6c3e-4cc6-af13-d15c110b8caf

📥 Commits

Reviewing files that changed from the base of the PR and between 0e243a9 and 10b8aa3.

📒 Files selected for processing (3)
  • DashWallet/Sources/UI/Buy Sell/Model/BuySellPortalModel.swift
  • DashWallet/Sources/UI/Swap/Buy/EnterAmount/BuyEnterAmountView.swift
  • DashWallet/Sources/UI/Swap/Convert/SwapConvertView.swift

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The provider title changes from “SwapKit” to localized “Dash DEX”. Buy and convert amount sections now show the selected currency option.

Changes

UI display updates

Layer / File(s) Summary
Provider title update
DashWallet/Sources/UI/Buy Sell/Model/BuySellPortalModel.swift
The .swapKit display title now uses localized “Dash DEX”.
Selected currency visibility
DashWallet/Sources/UI/Swap/Buy/EnterAmount/BuyEnterAmountView.swift, DashWallet/Sources/UI/Swap/Convert/SwapConvertView.swift
Both amount views set hidesSelectedOption to false.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: ⚪ Minimal · up to 10b8a

This PR restores the missing currency option and renames the Dash DEX entry through localized UI changes. No actionable merge-blocking risk remains after normal checks and review.

Suggested reviewers: jeanpierreroma

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes both main changes: restoring the third currency option and renaming the DEX entry.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 3…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 3 files.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/dex-enter-amount

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.

@HashEngineering HashEngineering left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent. Very Clean! LGTM

@romchornyi
romchornyi merged commit 1b53f91 into develop Aug 31, 2026
3 checks passed
@romchornyi
romchornyi deleted the fix/dex-enter-amount branch August 31, 2026 07:43

This branch was previously deployed

1 inactive deployment
testflight — 10b8aa37 Deployed Aug 26, 2026 by romchornyi via Build and upload dashpay #19
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.

3 participants