chore: update header for send flow#24253
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. |
| onBack: handleCancelPress, | ||
| title: strings('send.title'), | ||
| includesTopInset: true, | ||
| }), |
There was a problem hiding this comment.
Asset screen loses close button, shows back arrow instead
The Asset screen configuration uses onBack: handleCancelPress instead of onClose: handleCancelPress. This changes the UI from showing a close button (X) on the right side to showing a back arrow (←) on the left side. The original implementation had headerRight with a close button for Asset, not a back button. For consistency with the old behavior, the Asset configuration likely needs onClose instead of onBack to render the X button on the right side rather than a back arrow on the left.
app/components/Views/confirmations/hooks/send/useSendNavbar.test.tsx
Outdated
Show resolved
Hide resolved
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsThe changes are a UI refactoring of the Send flow navigation header in the confirmations feature. The Key observations:
The SmokeConfirmationsRedesigned tag is the most appropriate because:
Risk is medium because while this is a refactoring, it affects user-visible navigation elements in a critical flow (sending assets). The comprehensive test updates provide good coverage for the changes. |
|



Description
Refactored the send flow navbar to use the new
HeaderCentercomponent pattern viagetHeaderCenterNavbarOptions. This replaces the manual header configuration (customheaderLeft,headerRight,headerTitle, andheaderStyleimplementations) with the standardized header component, significantly simplifying the code.Why:
The send flow was using a custom inline header implementation with individually defined components for back button, close button, title, and styling. This duplicated logic that exists in the reusable
HeaderCentercomponent.Improvement:
useSendNavbarhook from ~100 lines to ~50 linesHeaderCenterpattern used across the appChangelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/MDP-654
Manual testing steps
Screenshots/Recordings
Before
After
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2026-01-05.at.16.14.01.mov
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Migrates the send flow to the standardized
HeaderCenterheader options and updates tests to match the new API.headerLeft/headerRight/headerTitle/headerStylewithgetHeaderCenterNavbarOptionsforAmount,Asset, andRecipient, wiringonBack/onClose,includesTopInset, and test IDsuseSendNavbarheaderfunction, assert back/close buttons and title, and adjusts mocks (react-navigation, safe area, tailwind, design-system)Written by Cursor Bugbot for commit 53d0f5c. This will update automatically on new commits. Configure here.