Repository navigation
fix(amount): read the Dash symbol after a balance or entered amount as the currency - #92
Merged
romchornyi merged 1 commit intoDec 4, 2026
Conversation
…s the currency DashBalanceView and SwapAmountView read the figure and the currency as one element, "1.5 Dash", like DashAmount, instead of the figure and the symbol's asset name. Part of dashpay#38. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
romchornyi
approved these changes
Dec 4, 2026
romchornyi
left a comment
Collaborator
There was a problem hiding this comment.
✅ No blockers, no major, nothing open — reviewed at 41deb3ad54
| Level | Verdict | |
|---|---|---|
| 1 · Idea | ✅ valid | DashBalanceView and SwapAmountView still read the Dash symbol by its asset name after the figure (#38). |
| 2 · Architecture | ✅ right layer | One spoken format, DashAmount.spokenAmount, reached through one internal modifier. |
| 3 · Completeness | ✅ complete | The balance and all three SwapAmountView places (primary, secondary, the swap-animation row); rows without the Dash logo are unchanged. |
| 4 · Code | ✅ clean | children: .ignore sits on the figure-and-symbol stack, not on an input, and the amount row's .combine button picks up the new label. |
Review details
Levels 1–3 and the code read at this head. Not checked with VoiceOver on a device; the secondary amount with the Dash logo goes through the same modifier, as the description says.
🤖 Reviewed with Claude Code
This was referenced Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue being fixed or feature implemented
Part of #38. Follows #91, which made
DashAmountread as "1.5 Dash". Two more components draw the Dash symbol after a figure, and VoiceOver still read the symbol by its asset name. Measured onmasterby walking the accessibility tree the way VoiceOver does:DashBalanceViewSwapAmountViewwithshowDashLogoWhat was done?
DashAmount.spokenAmount(_:)holds the spoken format ("%@ Dash", localizable), and an internal modifierdashAmountAccessibility(_:showsSymbol:)makes a figure followed by the symbol one element with that label.DashBalanceViewuses it for its balance;SwapAmountViewfor the primary amount, the secondary amount and the swap-animation row, each only while its Dash logo is shown. Rows without the logo read as before.docs/foundation.mdlists the two components next toDashAmount.No public API change.
How Has This Been Tested?
VoiceOverLabelTestspins the spoken format; the whole suite andconventions.shpass.Before / After
Only accessibility changes; nothing is drawn differently.
Breaking Changes
None in the API. VoiceOver reads these amounts with their currency instead of an asset name.
Checklist:
🤖 Generated with Claude Code