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: issue in blockaid spinner for batched confirmations #10658

Merged
merged 6 commits into from
Aug 21, 2024

Conversation

jpuri
Copy link
Contributor

@jpuri jpuri commented Aug 15, 2024

Description

Bloackaid spinner is not shown correctly when confirmation requests are batched.

Previously we only kept result of blockaid validation for only current transaction in redux state, this PR makes change to keep validation result of all recent transaction in state.

Related issues

Fixes: #10514

Manual testing steps

  1. Go to test dapp
  2. Submit batched malicious request
  3. Blockaid alert banner should appear correctly

Screenshots/Recordings

Screen.Recording.2024-08-15.at.6.14.48.PM.mov

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.

@jpuri jpuri requested review from a team as code owners August 15, 2024 12:09
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 metamaskbot added the team-confirmations Push issues to confirmations team label Aug 15, 2024
@jpuri jpuri changed the title Fix issue in blockaid spinner for batched confirmations fix: issue in blockaid spinner for batched confirmations Aug 15, 2024
@jpuri jpuri added the Run Smoke E2E Triggers smoke e2e on Bitrise label Aug 15, 2024
Copy link
Contributor

github-actions bot commented Aug 15, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 2108e33
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/16a25ec8-e5de-44a7-b61c-4de712b5f141

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@jpuri jpuri force-pushed the blockaid_spinner_fix branch from d2e620d to 3c387dc Compare August 15, 2024 12:51
@jpuri jpuri force-pushed the blockaid_spinner_fix branch from 3c387dc to 77656bd Compare August 15, 2024 12:52
@jpuri jpuri requested review from a team as code owners August 15, 2024 12:52
@jpuri jpuri changed the base branch from release/7.29.0 to main August 15, 2024 12:52
@jpuri jpuri added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Aug 15, 2024
Copy link
Contributor

github-actions bot commented Aug 15, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: e7c96af
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/5bd773db-af6c-48ef-8542-dd2f0714f3fb

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@sleepytanya
Copy link
Contributor

Bitrise build https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/ce7aed75-1bea-4174-809c-3d7fbe24c12e?tab=artifacts
@jpuri @bschorchit Looks great to me! Spinner is visible all the time while waiting for the warning.

Android:

android.mp4

iOS:

ios.mov

matthewwalsh0
matthewwalsh0 previously approved these changes Aug 19, 2024
app/reducers/transaction/index.js Outdated Show resolved Hide resolved
@jpuri jpuri added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Aug 19, 2024
Copy link
Contributor

github-actions bot commented Aug 19, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: a54f016
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/6d8a633a-86a3-42d7-aada-e03855f136ed

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Copy link

@jpuri jpuri merged commit ce9227d into main Aug 21, 2024
39 checks passed
@jpuri jpuri deleted the blockaid_spinner_fix branch August 21, 2024 13:28
@github-actions github-actions bot locked and limited conversation to collaborators Aug 21, 2024
@metamaskbot metamaskbot added the release-7.30.0 Issue or pull request that will be included in release 7.30.0 label Aug 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-7.30.0 Issue or pull request that will be included in release 7.30.0 Run Smoke E2E Triggers smoke e2e on Bitrise team-confirmations Push issues to confirmations team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Bug]: During the Blockaid validation process, the spinner that typically indicates activity is not displayed
6 participants