Repository navigation
feat(ui): move SwiftUI nav bars to the DashUIKit NavigationBar - #1218
Conversation
The More tab's SwiftUI pages drew their top bar four different ways: the NavBarBack/NavBarBackPlus helpers, the app's own NavigationBar copy, and hand-built chevron rows. They now all use DashUIKit.NavigationBar with its back/plus elements, so they pick up the design-system bar and buttons. Settings, Security, Governance, Sync Info, Tools, Local Currency, Devnet settings, the recovery-phrase wallet chooser, About, Wallets, Wallet accounts, Wallet account detail, Identities (list, keys, detail), Derivation path keys and the Core/Platform/Shielded/DashPay sync pages. The sync pages padded their whole container, bar included, so the side padding moves onto the title and scroll content to keep the bar's own 20pt inset. Wallet accounts' bar title uses subheadMedium like the design's nav label. Page content is otherwise unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ocal copy Every SwiftUI screen that still drew its top bar from the app's own NavigationBar copy, the NavBarBack helper, or a hand-built chevron/xmark header now uses DashUIKit.NavigationBar with its back/close elements: Payments landing, Specify amount, Send steps, Buy & Sell portal, Notifications, Claim invitation, Merchant list, Explore menu, Username Marketplace, DashSpend pay/terms/auth. Connections, the Dash DEX portal and Coinbase Transfer already used DashUIKit's bar but filled it with the local back element; they now use DashUIKit's. With no callers left, the local NavigationBar, NavigationBarElement and NavBarBack/NavBarBackPlus/NavBarClose helpers and their navigationbar-* images are removed. Bar titles that were 14/17pt semibold use subheadMedium like the design's nav label. Bumps DashUIKit to 2b15ef7 (dashpay/DashUIKit#21: circle buttons from tokens, 74pt bar), which these screens and the More-tab ones pick up. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
✅ Final review complete — no blockers (commit 1c383ae) · triage: normal |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
Static verification of the exact reviewed head and pinned DashUIKit implementation found no actionable in-scope defects; navigation callbacks and component-reference cleanup are consistent with the PR’s goal. The screenshot-test selector mismatch predates this PR and is dropped as routine adjacent maintenance. The supplied CI snapshot shows successful checks but no build or runtime evidence; the PR description separately reports a clean simulator build and manual checks.
Review provenance
Source: reviewer 1: gemini-3.8-flash-high (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)
- Triage:
normalbygpt-6.1-sol(effort low) — This is a cross-cutting SwiftUI navigation and layout migration across many screens, but the diff does not change funds movement, key handling, or another critical surface. - Phase 1 reviewers:
gemini-3.8-flash-high— general (completed, effort high); agentphase1-reviewer - Phase 1 model:
gemini-3.8-flash-high— antigravity quota: weekly 71% left, 5h 100% left - Fresh verifier:
gpt-6.1-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.1-sol— general (completed, effort high); agentphase2-reviewer
romchornyi
left a comment
There was a problem hiding this comment.
Checked this for regressions against develop. Every button action is preserved, nothing still references the removed NavBarBack/NavBarClose/NavBarBackPlus views or the navigationbar-* assets, and the branch merges cleanly. Approving. The points below are non-blocking recommendations.
1. UI-test selectors change. The DashUIKit bar buttons expose the accessibility labels Back / Close / Add / Info. The old local views used the image names (navigationbar-back, navigationbar-close). Tests that query by those names will stop finding the buttons:
-
XCUITest
DashWalletScreenshotsUITests/BuyReceiveFlowUITests.swift:401(app.buttons["navigationbar-back"]inensureOnBuyList). Suggested fix, which works both before and after this PR:let back = app.buttons.matching(NSPredicate(format: "identifier == 'navigationbar-back' OR label == 'navigationbar-back' OR label == 'Back'")).firstMatch
-
The Maestro flows on our side are already updated to accept both.
Longer term, giving the DashUIKit buttons a stable
.accessibilityIdentifier(...)would decouple tests from label text. Today the labels happen to be English-only because DashUIKit has no localizations.
2. Smaller tap targets. Back, close and plus went from 44×44 to 34pt wide, and info is now 24pt wide. Both are below the 44pt HIG minimum. This comes from the DashUIKit bar itself, so it is worth raising there rather than here.
3. The DashUIKit pin bump also changes BottomSheet. Moving 28a67a3 → 2b15ef7 makes the header 74pt instead of 64pt and switches the title from calloutMedium to subheadMedium across every bottom sheet. Please double-check the sheets with hard-coded heights for clipping:
TransactionFilterDialog.height(134 + rows·54)WalletSwitchDialog.height(134 + rows·60)ApproveSheetPresentation(620)ToolsMenuScreen(640)
4. Stale doc comments. SendScreen.swift:106 and SendToContactScreen.swift:173 still say the glyph and ring are the navigationbar-* assets.
🤖 Reviewed with Claude Code
Resolve SendScreen.swift against #1218: the contact route's back control moved into DashUIKit.NavigationBar, so the in-flight broadcast guard now wraps that button. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Issue being fixed or feature implemented
The top navigation bar is redesigned in DashUIKit (dashpay/DashUIKit#21, merged): a 74pt bar, back/close/plus as code-drawn circles coloured by the
toolbar/RoundBorder/toolbar/RoundContenttokens (so they follow light/dark mode), and a touch area that's 44pt tall and as wide as the element.The app still drew its top bars four different ways, so most screens didn't get the new design:
NavigationBarNavBarBack/NavBarBackPlus/NavBarClosehelpersNavigationBarElementinside DashUIKit's barThis PR moves every SwiftUI screen that used one of those onto
DashUIKit.NavigationBarand pins the app to the redesigned DashUIKit.What was done?
DashUIKit pin:
28a67a3→2b15ef7(DashUIKit#21) inPackage.resolved.More tab (commit 1): Settings, Security, Wallets (back + plus), Wallet accounts, Account detail, Identities (list, detail, public keys), Governance, Tools, Derivation path keys, Sync Info, the Core/Platform/Shielded/DashPay sync pages, Local Currency, Devnet Settings, About, and the recovery-phrase wallet chooser.
Rest of the app (commit 2):
Fixes:
Titles: bar titles that were 14pt or 17pt semibold now use
subheadMedium(15pt Medium), matching the design's nav label.Cleanup:
SwiftUI Components/NavigationBar.swift: the localNavigationBar,NavigationBarElementand theNavBar*helpers. Nothing uses them any more.navigationbar-*images, since DashUIKit has its own.Not in this PR:
.navigationTitle/ toolbars), such as Masternodes, Storage Explorer, Filters and VotingThese come in follow-up PRs.
How Has This Been Tested?
dashpaybuild for the iOS Simulator (Xcode 27), using the pinned DashUIKit with no local override.scripts/a11y_audit.py --check: no new findings. 84 baseline entries are now fixed, because the old hand-built chevron buttons had no accessibility label.Breaking Changes
None in API. Visual: nav bars and sheet headers are 10pt taller (74pt), and screens with hand-built headers move their content down accordingly.
Checklist:
For repository code-owners and collaborators only
🤖 Generated with Claude Code
Summary by CodeRabbit