-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix: remove browser navigation on account click when in initial connection flow #22604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
.../MultichainAccounts/MultichainAccountsConnectedList/MultichainAccountsConnectedList.test.tsx
Show resolved
Hide resolved
| if (isConnectionFlow) { | ||
| AccountTreeController.setSelectedAccountGroup(accountGroup.id); | ||
| return; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this guard get moved to below line 77?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // During connection flow, clicking an account should only change the selected account group instead of navigating | ||
| if (isConnectionFlow) { | ||
| AccountTreeController.setSelectedAccountGroup(accountGroup.id); | ||
| return; | ||
| } | ||
|
|
||
| AccountTreeController.setSelectedAccountGroup(accountGroup.id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right?
| // During connection flow, clicking an account should only change the selected account group instead of navigating | |
| if (isConnectionFlow) { | |
| AccountTreeController.setSelectedAccountGroup(accountGroup.id); | |
| return; | |
| } | |
| AccountTreeController.setSelectedAccountGroup(accountGroup.id); | |
| // During connection flow, clicking an account should only change the selected account group instead of navigating | |
| AccountTreeController.setSelectedAccountGroup(accountGroup.id); | |
| if (isConnectionFlow) { | |
| return; | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, the early return can be done after setSelectedAccountGroup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch! ebf3c38
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsFallback: AI analysis did not complete successfully. Running all tests. |
|



Description
This PR removes browser navigation when a user clicks the account group in the initial connection flow.
Changelog
CHANGELOG entry: Fixes navigation on account group click in initial connection flow
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/WAPI-829
Manual testing steps
Screenshots/Recordings
Before
Screen.Recording.2025-11-13.at.09.55.37.mov
After
Screen.Recording.2025-11-13.at.09.49.44.mov
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Selecting an account during the initial connection flow now only updates the selected account group without showing a toast or navigating; wiring and tests updated accordingly.
MultichainAccountsConnectedList.tsx)isConnectionFlowprop (defaultfalse).handleSelectAccountto early-return in connection flow (only setsAccountTreeController.setSelectedAccountGroup).navigation.navigate(Routes.BROWSER.HOME)when not in connection flow; update hook deps.MultichainPermissionsSummary.tsx)isConnectionFlow={!isAlreadyConnected}toMultichainAccountsConnectedListand update memo deps.MultichainAccountsConnectedList.test.tsx)isConnectionFlowin relevant tests and validate correct group IDs and side effects.Written by Cursor Bugbot for commit 952b327. This will update automatically on new commits. Configure here.