-
Notifications
You must be signed in to change notification settings - Fork 5.4k
refactor(5564): migrate confirmation and settings page to v5-compat #37508
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
Closed
+7,939
−8,581
Closed
Changes from 3 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
558f6ea
refactor(5564): migrate confirmation and settings page to v5-compat
DDDDDanica 6e64965
Merge branch 'main' into refactor/settings-v5-compat
DDDDDanica 020aa7e
refactor(5564): fix Navigation mocks ignored in Suggestion components…
DDDDDanica bd0b495
refactor(5564): fix lint and unit/e2e tests
DDDDDanica 2ea4539
Merge remote-tracking branch 'origin/main' into refactor/settings-v5-…
DDDDDanica 08ff7c2
refactor(5564): fix missing currentPathname breaks navigation guard l…
DDDDDanica aad0f27
refactor: fix lint and e2e test Confirmation Navigation navigates bet…
DDDDDanica 7e72a7a
Merge remote-tracking branch 'origin/main' into refactor/settings-v5-…
DDDDDanica a1d2e59
refactor(5564): fix bridge navigate function to add state
DDDDDanica 7032807
Merge remote-tracking branch 'origin/refactor/settings-v5-compat' int…
DDDDDanica 24096d6
Merge branch 'main' into refactor/settings-v5-compat
DDDDDanica e761117
refactor(5564): try to fix e2e tests
DDDDDanica a06ac1f
refactor(5564): Fixed confirmation navigation issue and migrate rest …
DDDDDanica dc5dfc9
Merge remote-tracking branch 'origin/main' into refactor/settings-v5-…
DDDDDanica e7845ea
refactor(5564): fix nested v5-compat Routes in v5 context and optimiz…
DDDDDanica 5a2346c
refactor(5564): fix Infinite navigation loop in useSyncConfirmPath hook
DDDDDanica b5a5535
refactor(5564): fix Missing queryString in navigateToConfirmation call
DDDDDanica 2ea20b3
refactor: add comment to change of assertion
DDDDDanica 7111c2f
refactor: simplify confirm-transaction-switch.container.js
DDDDDanica af3d374
refactor: refactor renderWithConfirmContextProvider
DDDDDanica f3064da
refactor: replace / with DEFAULT_ROUTE
DDDDDanica 426ccc9
refactor: refactor extractIdFromPathname and add unit tests
DDDDDanica 4ad2742
Merge remote-tracking branch 'origin/main' into refactor/settings-v5-…
DDDDDanica ae8bbe7
refactor: refactor new migrated route to use createV5CompatRoute
DDDDDanica 5dcfefd
refactor: prevent useEffect Dependency Over-Execution
DDDDDanica c9f24d1
refactor: fix navigation Optimization Flawed, Causes Unnecessary Navi…
DDDDDanica e6d0d34
refactor: remove providedConfirmationId Parameter
DDDDDanica 90d8d81
Revert "refactor: remove providedConfirmationId Parameter"
DDDDDanica ae84bb2
refactor: fix Nested Routes: Path Mismatch Disrupts Routing
DDDDDanica a27cf37
refactor: fix v5-compat: Nested Route Matching Fails
DDDDDanica 9f94d58
refactor: Fixed: Reverted to Absolute Paths in Nested Routes
DDDDDanica d22aabd
Merge remote-tracking branch 'origin/main' into refactor/settings-v5-…
DDDDDanica bd32c8c
refactor: fix lint and unit tests
DDDDDanica 790aa9d
refactor: fix Bug: Nested Routes: Pathing Mismatch
DDDDDanica 0ca70d5
refactor: modify navigate(-1) to DEFAULT_ROUTE
DDDDDanica 4677b9f
refactor(5564): fix Broken Back Navigation Across Flows
DDDDDanica 75cf1ee
refactor: revert all changes and stick to original working path
DDDDDanica d06f499
Merge remote-tracking branch 'origin/main' into refactor/settings-v5-…
DDDDDanica bf823b3
refactor: fix Lingering Merge Conflicts Cripple Functionality
DDDDDanica 9b23f52
Merge remote-tracking branch 'origin/main' into refactor/settings-v5-…
DDDDDanica 9ac561b
refactor: remove unneeded component props for new wrapper
DDDDDanica 889943c
refactor: fix missing Hook Call Breaks Navigatio
DDDDDanica 9b0daa7
Merge branch 'main' into refactor/settings-v5-compat
DDDDDanica 64b1ea4
Merge branch 'main' into refactor/settings-v5-compat
DDDDDanica 24b27ab
Merge branch 'main' into refactor/settings-v5-compat
DDDDDanica 4e1d964
Merge remote-tracking branch 'origin/main' into refactor/settings-v5-…
DDDDDanica c2d1877
Merge remote-tracking branch 'origin/main' into refactor/settings-v5-…
DDDDDanica 975a04a
refactor: fix lint
DDDDDanica 4992d67
Revert: Return to last working state at d22aabdb89
DDDDDanica f45a154
Merge remote-tracking branch 'origin/main' into refactor/settings-v5-…
DDDDDanica File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
ui/helpers/higher-order-components/authenticated/authenticated-v5-compat.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Bug: Prevent Default Route Drift
The
renderHookWithConfirmContextProviderfunction has an inconsistent default value for thepathnameparameter. It uses'/'as the default whilerenderWithConfirmContextProviderusesDEFAULT_ROUTE(which equals'/'). More importantly, this inconsistency could cause subtle issues when the default route constant is later changed, as one function would be updated while the other wouldn't be. For consistency with the other helper function and to follow the PR's pattern of using constants throughout, this should beDEFAULT_ROUTE.