-
Notifications
You must be signed in to change notification settings - Fork 5k
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
feat: unified confirmation navigation #28761
Merged
Merged
+1,301
−659
Conversation
This file contains 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
Add Storybook CSS fixes for confirmation templates. Add useConfirmationNavigation hook. Update redesigned and legacy navigation components. Add nav component to template confirmation. Add snap dialog stories. Support template confirmations in useCurrentConfirmation.
This reverts commit f956560.
Builds ready [71bea94]
Page Load Metrics (1812 ± 55 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [e7d5084]
Page Load Metrics (1928 ± 96 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
matthewwalsh0
force-pushed
the
feat/shared-confirmation-navigation
branch
from
December 6, 2024 00:54
e7d5084
to
5e3c824
Compare
Builds ready [5e3c824]
Page Load Metrics (1782 ± 60 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [2ceb912]
Page Load Metrics (1805 ± 57 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [97a70a9]
Page Load Metrics (2193 ± 64 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [ec62382]
Page Load Metrics (2197 ± 130 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [1f03058]
Page Load Metrics (1893 ± 70 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
…Mask/metamask-extension into feat/shared-confirmation-navigation
Builds ready [1bc93b0]
Page Load Metrics (1761 ± 60 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
FrederikBolding
approved these changes
Dec 10, 2024
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.
Seems super solid - LGTM!
OGPoyraz
approved these changes
Dec 10, 2024
NidhiKJha
approved these changes
Dec 10, 2024
github-merge-queue
bot
removed this pull request from the merge queue due to failed status checks
Dec 10, 2024
metamaskbot
added
the
release-12.10.0
Issue or pull request that will be included in release 12.10.0
label
Dec 10, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
release-12.10.0
Issue or pull request that will be included in release 12.10.0
team-confirmations
Push issues to confirmations team
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.
Description
Support a single navigation queue between all types of pending confirmation, including:
Specifically:
useConfirmationNavigation
hook to centralise all confirmation routing.ConfirmPageContainerNavigation
Home
Nav
syncConfirmPath
ConfirmationPage
withNav
component.confirmationId
property toNav
component and remove coupling touseCurrentConfirmation
hook.Nav
component to:ConfirmAddSuggestedNFT
ConfirmAddSuggestedToken
ConfirmDecryptMessage
ConfirmEncryptionPublicKey
PermissionConnectHeader
ConfirmationPage
component.Related issues
Manual testing steps
Screenshots/Recordings
Before
After
Navigation.mov
Pre-merge author checklist
Pre-merge reviewer checklist