chore: consolidate navigation style - confirmations team#25875
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
0f2f6aa to
eef070e
Compare
… navigation Update test to match implementation that navigates directly to Routes.WEBVIEW.SIMPLE instead of Routes.WEBVIEW.MAIN with nested screen.
OGPoyraz
left a comment
There was a problem hiding this comment.
LGTM, hoping those e2e failures are not related with this PR.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Three files are modified:
The useConfirmActions hook is imported by 20+ files including staking confirmations, approve, contract deployment, contract interaction, transfer, and predict-claim-info components. The useTransactionConfirm hook is used by PerpsOrderView. While these are simplifications that should work the same way, navigation changes can affect user flows, so medium risk is appropriate. Unit tests have been updated to reflect the new navigation pattern. Performance Test Selection: |
|



Description
This PR consolidates navigation styles across the codebase by replacing inline
navigationOptionsstyle definitions with the sharedgetNavigationOptionsTitleutility function.Reason for change:
navigationOptionspatternSolution:
getNavigationOptionsTitlefunction fromapp/components/UI/NavbarChangelog
CHANGELOG entry: null
Related issues
Fixes: #23765 Part of React Navigation v6 upgrade preparation (split from original PR for easier code review by team)
Manual testing steps
Feature: Navigation header consistency
Scenario: User navigates to screens affected by this PR
Given the app is running
Screenshots/Recordings
Before
N/A - No visual changes
After
N/A - No visual changes
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Touches navigation behavior in confirmation and account-switch flows, so small route/stack differences could change where users land or how modals close. Changes are localized and covered by updated tests.
Overview
Consolidates confirmations-related navigation by replacing the nested
navigation.navigate(Routes.WALLET.HOME, { ...Routes.WALLET_VIEW... })pattern with a directnavigation.navigate(Routes.WALLET_VIEW).This updates the switch-account-type modal’s close behavior (
AccountNetworkRow), the post-confirm flow forTransactionType.musdConversion(useTransactionConfirm), and the “reject then go home” path (useConfirmActions), with associated test expectation updates.Written by Cursor Bugbot for commit 0d8b7de. This will update automatically on new commits. Configure here.