Skip to content

feat(ui): move SwiftUI nav bars to the DashUIKit NavigationBar - #1218

Merged
romchornyi merged 2 commits into
developfrom
feat/update-top-nav
Oct 16, 2026
Merged

romchornyi merged 2 commits into
developfrom
feat/update-top-nav

Conversation

@ross-dash

@ross-dash ross-dash commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

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/RoundContent tokens (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:

  • its own copy of NavigationBar
  • the NavBarBack / NavBarBackPlus / NavBarClose helpers
  • hand-built chevron/xmark headers
  • the local NavigationBarElement inside DashUIKit's bar

This PR moves every SwiftUI screen that used one of those onto DashUIKit.NavigationBar and pins the app to the redesigned DashUIKit.

What was done?

  • DashUIKit pin: 28a67a3 → 2b15ef7 (DashUIKit#21) in Package.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.

    • The sync pages padded their whole container, bar included, which put the back button 40pt in. That padding now sits on the title and scroll content instead.
  • Rest of the app (commit 2):

    • Payments landing: Receive/Internal/Send tabs and Quick receive
    • Specify amount
    • Send steps: From, Amount, and the contact route
    • Buy & Sell portal
    • Notifications
    • Claim invitation
    • Merchant list (from Home)
    • Explore menu
    • Username Marketplace
    • DashSpend: Buy gift card, Terms, Log in / Create account / OTP
  • Fixes:

    • Connections, the Dash DEX/Maya portal and Coinbase Transfer already used DashUIKit's bar, but filled it with the app's local back button. They now use DashUIKit's.
  • Titles: bar titles that were 14pt or 17pt semibold now use subheadMedium (15pt Medium), matching the design's nav label.

  • Cleanup:

    • Removed SwiftUI Components/NavigationBar.swift: the local NavigationBar, NavigationBarElement and the NavBar* helpers. Nothing uses them any more.
    • Removed the app's unused navigationbar-* images, since DashUIKit has its own.
  • Not in this PR:

    • screens using Apple's built-in bar (.navigationTitle / toolbars), such as Masternodes, Storage Explorer, Filters and Voting
    • Home's UIKit bar that appears on scroll
    • sheets with system headers
    • UIKit / Objective-C screens

    These come in follow-up PRs.

How Has This Been Tested?

  • Clean dashpay build 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.
  • Manual check on an iPhone 18 Pro simulator (iOS 27): Home, Send, More → Settings / Security / Wallets / Wallet accounts / Sync Info pages, the Filter and block-explorer sheets.

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:

  • 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

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Style
    • Navigation bars across payment, wallet, settings, security, sync, and other screens now use a consistent shared design. Back, close, info, and add controls retain their existing actions.
    • Several headers and content areas have updated spacing to align with the shared navigation bar.

ross-dash and others added 2 commits October 15, 2026 13:57
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]>
@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: de318708-ba14-4ba8-931a-082f3fa4602c
📥 Commits

Reviewing files that changed from the base of the PR and between ae4ee32 and 1c383ae.

⛔ Files ignored due to path filters: 16
  • DashWallet.xcworkspace/xcshareddata/swiftpm/Package.resolved is excluded by !**/Package.resolved
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-back.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-back.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-back.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-close.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-close.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-close.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-info.imageset/control-info.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-info.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-info.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-info.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-info.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-info.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-plus.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-plus.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-plus.imageset/[email protected] is excluded by !**/*.png
📒 Files selected for processing: 42
  • DashWallet.xcodeproj/project.pbxproj
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-back.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-close.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-info.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-plus.imageset/Contents.json
  • DashWallet/Sources/UI/Buy Sell/BuySellPortalScreen.swift
  • DashWallet/Sources/UI/Buy Sell/BuySellPortalView.swift
  • DashWallet/Sources/UI/Coinbase/Transfer Amount/TransferAmountView.swift
  • DashWallet/Sources/UI/DashConnect/ConnectionsScreen.swift
  • DashWallet/Sources/UI/DashPay/Contacts/SwiftUI/NotificationsScreen.swift
  • DashWallet/Sources/UI/DashPay/Invitations/ClaimInvitationScreen.swift
  • DashWallet/Sources/UI/Explore Dash/ExploreMenuScreen.swift
  • DashWallet/Sources/UI/Explore Dash/Merchants & ATMs/List/MerchantListViewController.swift
  • DashWallet/Sources/UI/Explore Dash/UsernameMarketplaceScreen.swift
  • DashWallet/Sources/UI/Explore Dash/Views/DashSpend/DashSpendPayScreen.swift
  • DashWallet/Sources/UI/Explore Dash/Views/DashSpend/DashSpendTermsScreen.swift
  • DashWallet/Sources/UI/Explore Dash/Views/DashSpend/DashSpendUserAuthScreen.swift
  • DashWallet/Sources/UI/Menu/Governance/GovernanceMenuScreen.swift
  • DashWallet/Sources/UI/Menu/Security/RecoveryPhraseFlow.swift
  • DashWallet/Sources/UI/Menu/Security/SecurityMenuScreen.swift
  • DashWallet/Sources/UI/Menu/Security/Wallets/IdentitiesScreen.swift
  • DashWallet/Sources/UI/Menu/Security/Wallets/WalletAccountDetailScreen.swift
  • DashWallet/Sources/UI/Menu/Security/Wallets/WalletAccountsScreen.swift
  • DashWallet/Sources/UI/Menu/Security/Wallets/WalletsScreen.swift
  • DashWallet/Sources/UI/Menu/Settings/About/AboutDashView.swift
  • DashWallet/Sources/UI/Menu/Settings/DevnetSettingsScreen.swift
  • DashWallet/Sources/UI/Menu/Settings/LocalCurrency/LocalCurrencyView.swift
  • DashWallet/Sources/UI/Menu/Settings/SettingsScreen.swift
  • DashWallet/Sources/UI/Menu/SyncInfo/DashPaySyncInfoScreen.swift
  • DashWallet/Sources/UI/Menu/SyncInfo/PlatformSyncStatusScreen.swift
  • DashWallet/Sources/UI/Menu/SyncInfo/ShieldedSyncInfoScreen.swift
  • DashWallet/Sources/UI/Menu/SyncInfo/SwiftDashSDKSPVStatusScreen.swift
  • DashWallet/Sources/UI/Menu/SyncInfo/SyncInfoMenuScreen.swift
  • DashWallet/Sources/UI/Menu/Tools/Masternode Keys/DerivationPathKeys/DerivationPathKeysView.swift
  • DashWallet/Sources/UI/Menu/Tools/ToolsMenuScreen.swift
  • DashWallet/Sources/UI/Payments/Amount/SendAmountScreen.swift
  • DashWallet/Sources/UI/Payments/Amount/SpecifyAmountView.swift
  • DashWallet/Sources/UI/Payments/Landing/PaymentsLandingScreen.swift
  • DashWallet/Sources/UI/Payments/Pay/SendScreen.swift
  • DashWallet/Sources/UI/Swap/SwapPortalScaffold.swift
  • DashWallet/Sources/UI/SwiftUI Components/NavigationBar.swift
💤 Files with no reviewable changes: 7
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-close.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-back.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-plus.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-info.imageset/Contents.json
  • DashWallet/Sources/UI/SwiftUI Components/NavigationBar.swift
  • DashWallet.xcodeproj/project.pbxproj

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

📝 Walkthrough

Screens across commerce, payments, menus, wallets, and sync information now use DashUIKit navigation bars. The local navigation-bar implementation, its asset-catalog manifests, and its Xcode project entries are removed.

Changes: DashUIKit navigation-bar migration

Layer / File(s) Summary
Commerce and payment headers
DashWallet/Sources/UI/Buy Sell/*, DashWallet/Sources/UI/Coinbase/..., DashWallet/Sources/UI/DashPay/..., DashWallet/Sources/UI/Explore Dash/*, DashWallet/Sources/UI/Payments/*, DashWallet/Sources/UI/Swap/*
Screens use DashUIKit.NavigationBar or namespaced navigation-bar elements. Existing actions are retained. The DashPay contact flow moves its back action into a navigation bar above the intro.
Menu and wallet headers
DashWallet/Sources/UI/DashConnect/*, DashWallet/Sources/UI/Menu/Governance/*, DashWallet/Sources/UI/Menu/Security/*, DashWallet/Sources/UI/Menu/Settings/*, DashWallet/Sources/UI/Menu/Tools/*
Screens use DashUIKit navigation bars or namespaced elements. Existing back actions and trailing actions are retained.
Sync information headers
DashWallet/Sources/UI/Menu/SyncInfo/*
Screens use DashUIKit navigation bars. Horizontal padding is added to headers and scoped to scroll content rather than the enclosing stack.
Remove the local navigation bar
DashWallet/Sources/UI/SwiftUI Components/NavigationBar.swift, DashWallet/Resources/AppAssets.xcassets/Navigation bar/*, DashWallet.xcodeproj/project.pbxproj
The local navigation-bar implementation and its asset-catalog manifests are deleted. Its Xcode project references are removed.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Suggested reviewers: jeanpierreroma, romchornyi, quantumexplorer

Merge Risk: ⚪ Minimal · up to 1c383

The summarized navigation actions remain in place, and no concrete behavior gap was established. The change appears ready to merge after normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: migrating SwiftUI navigation bars to DashUIKit.NavigationBar.
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 35 files.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@thepastaclaw

thepastaclaw commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ Final review complete — no blockers (commit 1c383ae) · triage: normal

@thepastaclaw thepastaclaw 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.

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: normal by gpt-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); agent phase1-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; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort high); agent phase2-reviewer

@romchornyi romchornyi 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.

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"] in ensureOnBuyList). 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

@romchornyi
romchornyi merged commit 6766463 into develop Oct 16, 2026
4 checks passed
romchornyi pushed a commit that referenced this pull request Oct 16, 2026
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]>
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