Repository navigation
fix(ui): restore the third currency option and rename the DEX entry - #1069
Conversation
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]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe provider title changes from “SwapKit” to localized “Dash DEX”. Buy and convert amount sections now show the selected currency option. ChangesUI display updates
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to 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: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation 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
🧪 Generate unit tests (beta)
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. Comment |
HashEngineering
left a comment
There was a problem hiding this comment.
Excellent. Very Clean! LGTM
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, andEnterAmountViewfilters 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), andDashPickerViewalready marks the selected entry withprimaryTextand a tinted pill — so "three options, one highlighted" needed no new styling and no DashUIKit change.SwapConvertView.swiftBuyEnterAmountView.swiftRenamed 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.displayNamestays "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
dashpaybuild (iOS Simulator,ARCHS=arm64) againstplatformv4.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:
For repository code-owners and collaborators only
Summary by CodeRabbit