Skip to content
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

fix: fix sticky autodetection banner #29061

Merged
merged 6 commits into from
Dec 10, 2024
Merged

fix: fix sticky autodetection banner #29061

merged 6 commits into from
Dec 10, 2024

Conversation

salimtb
Copy link
Contributor

@salimtb salimtb commented Dec 10, 2024

Description

fix sticky autodetection banner

Open in GitHub Codespaces

Related issues

Fixes: #29059

Manual testing steps

  1. Go to autodetected banner
  2. click on ignore all
  3. you should have allNetworks selected

Screenshots/Recordings

Before

After

https://drive.google.com/file/d/11zcmgV1Bdq5wx9MkDlhxr8oDBr9DGB3d/view?usp=sharing

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Copy link
Contributor

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.

@metamaskbot
Copy link
Collaborator

Builds ready [d546ce6]
Page Load Metrics (1924 ± 73 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint23222081695594285
domContentLoaded15812147189114570
load15892200192415373
domInteractive259339189
backgroundConnect66232199
firstReactRender158822157
getState853571375225
initialActions01000
loadScripts11731743149314067
setupStore710810
uiStartup180828482201219105
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 19 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@salimtb salimtb force-pushed the fix-ignore-tokens-flow branch from d546ce6 to d190575 Compare December 10, 2024 19:37

await dispatch(
ignoreTokens({
tokensToIgnore: tokens,
tokensToIgnore,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignoreTokens should be called with an array of strings

@salimtb salimtb marked this pull request as ready for review December 10, 2024 19:38
@salimtb salimtb force-pushed the fix-ignore-tokens-flow branch from d190575 to cc53eab Compare December 10, 2024 19:39
@salimtb salimtb added the regression-prod-* Regression bug that was found in production in release * label Dec 10, 2024
@salimtb salimtb force-pushed the fix-ignore-tokens-flow branch from 71beac5 to 215d104 Compare December 10, 2024 19:51
@salimtb salimtb force-pushed the fix-ignore-tokens-flow branch from 215d104 to 61628d1 Compare December 10, 2024 19:51
@metamaskbot
Copy link
Collaborator

Builds ready [acc30ae]
Page Load Metrics (1862 ± 126 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint26824781787431207
domContentLoaded155224681835257123
load157225151862262126
domInteractive246235126
backgroundConnect77030189
firstReactRender14261832
getState861721242211
initialActions01000
loadScripts119719891449215103
setupStore611811
uiStartup177928372133284136
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 81 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Comment on lines 3 to 5
exports[`DetectedTokenIgnoredPopover should match snapshot for ignore mode 1`] = `<DocumentFragment />`;

exports[`DetectedTokenIgnoredPopover should match snapshot for import mode 1`] = `<DocumentFragment />`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These snapshots are empty, so they aren't testing anything. I think modals have to be snapshotted differently, I'll see if i can find an example

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this does it:
0f5eda3

@bergeron bergeron added this pull request to the merge queue Dec 10, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [78ab85f]
Page Load Metrics (2027 ± 126 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint25024021835527253
domContentLoaded167123562002253122
load169024132027262126
domInteractive23121452311
backgroundConnect983282512
firstReactRender15100363115
getState1063841706833
initialActions01000
loadScripts12661815154620599
setupStore614921
uiStartup193932982440420202
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 81 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Merged via the queue into main with commit 5789e1c Dec 10, 2024
75 checks passed
@bergeron bergeron deleted the fix-ignore-tokens-flow branch December 10, 2024 22:05
@github-actions github-actions bot locked and limited conversation to collaborators Dec 10, 2024
@metamaskbot metamaskbot added the release-12.10.1 Issue or pull request that will be included in release 12.10.1 label Dec 10, 2024
@salimtb salimtb added the portfolio-view Used for PRs and issues related to Q4 2024 portfolio view label Dec 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
portfolio-view Used for PRs and issues related to Q4 2024 portfolio view regression-prod-* Regression bug that was found in production in release * release-12.10.1 Issue or pull request that will be included in release 12.10.1 team-assets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Token detection prompt not dismissing
4 participants