Repository navigation
fix(a11y): name the error badge of a failed swap for VoiceOver - #1575
Draft
romchornyi-pitcrew wants to merge 1 commit into
Draft
romchornyi-pitcrew wants to merge 1 commit into
romchornyi-pitcrew wants to merge 1 commit into
Conversation
DashUIKit's TransactionView hides its corner badge from VoiceOver unless the host names it. The error badge of a failed, refunded or expired swap is the only sign of that state, so it is named "Failed"; the other badges repeat the row's text and stay hidden. Needs the DashUIKit release with secondaryIconAccessibilityLabel(_:). Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
Contributor
|
🕓 Review not started yet because this PR is a draft.
Commit 7541932. Normal review starts when eligible; priority review starts as soon as a slot is available. |
4 of 5 tasks
This branch has not been deployed
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
Companion of dashpay/DashUIKit#91 (part of dashpay/DashUIKit#38). With that change,
TransactionViewhides its corner badge (secondaryIcon) from VoiceOver unless the host names it, instead of reading the asset's file name ("transaction-error").Most badges in the transaction list repeat what the row already says: the direction (amount sign), the transfer route (details), the gift card (title), Coinbase (title and sign). Hidden is right for them. One badge is the only sign of its state: the error badge of a failed, refunded or expired swap, whose row has no status text. Without a label VoiceOver users would not learn that the swap failed.
Draft until the DashUIKit release that contains #91 is pinned here: the modifier
secondaryIconAccessibilityLabel(_:)does not exist in the pinned DashUIKit revision, so this branch does not build on its own yet.What was done?
SwapOrderMetadataProvider.secondaryIconLabel(for:): "Failed" for exactly the statuses that show the error badge,nilotherwise.BuySwapOrderItem.errorBadgeLabelreads it, so the order row and the transaction row word it the same way; a stuck order keeps the badge unnamed, since its status text already says it.TxRowMetadata.secondaryIconLabelcarries the label;HomeViewpasses it to the badge only when the badge shown is the metadata's own (not a route or direction badge).How Has This Been Tested?
DashWalletTests(3359 tests, 0 failures) on the iPhone 17 simulator, iOS 26.5, against the DashUIKit branch of Fix/fixes for version234 #91 swapped in locally (not committed).testOnlyAFailedOrderNamesItsErrorBadge: every status that shows the error badge names it "Failed"; no other status does.scripts/a11y_audit.py --check,check_test_target_membership.py.Breaking Changes
None.
Checklist:
no significant decision🤖 Generated with Claude Code