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: Make confirmations exclusively use approval origin #12980

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

OGPoyraz
Copy link
Member

Description

This PR aims to make connect and send flows to exclusively use approval origin.

Related issues

Fixes: https://github.com/MetaMask/mobile-planning/issues/2096

Manual testing steps

See task for repro steps

Screenshots/Recordings

Simulator.Screen.Recording.-.iPhone.13.Pro.-.2025-01-14.at.15.41.23.mp4

Before

After

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.

@OGPoyraz OGPoyraz requested review from a team as code owners January 14, 2025 14:43
@metamaskbot metamaskbot added the team-confirmations Push issues to confirmations team label Jan 14, 2025
@OGPoyraz OGPoyraz added the No QA Needed Apply this label when your PR does not need any QA effort. label Jan 14, 2025
@OGPoyraz OGPoyraz added the Run Smoke E2E Triggers smoke e2e on Bitrise label Jan 14, 2025
Copy link
Contributor

github-actions bot commented Jan 14, 2025

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: c2db4e1
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/b7a87c29-1a2c-44fa-b88b-a26f5629e6d6

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

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@OGPoyraz OGPoyraz added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Jan 15, 2025
digiwand
digiwand previously approved these changes Jan 15, 2025
@OGPoyraz OGPoyraz added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Jan 15, 2025
@@ -133,8 +133,7 @@ const AccountConnect = (props: AccountConnectProps) => {

const { toastRef } = useContext(ToastContext);

// origin is set to the last active tab url in the browser which can conflict with sdk
const inappBrowserOrigin: string = useSelector(getActiveTabUrl, isEqual);
const origin: string = approvalRequest?.requestData?.origin;
Copy link
Member

Choose a reason for hiding this comment

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

Is the origin not on the approvalRequest itself as it's part of every approval request?

Copy link
Member Author

@OGPoyraz OGPoyraz Jan 16, 2025

Choose a reason for hiding this comment

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

Thanks Matthew, you're totally right, fixed.

@OGPoyraz OGPoyraz added No E2E Smoke Needed If the PR does not need E2E smoke test run Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise No E2E Smoke Needed If the PR does not need E2E smoke test run labels Jan 16, 2025
Copy link
Contributor

github-actions bot commented Jan 16, 2025

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 1cd9186
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/895c32f4-dfc2-4204-a5b1-ed0af2502d1d

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

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@NicholasEllul NicholasEllul requested a review from a team January 16, 2025 16:18
@OGPoyraz OGPoyraz added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No QA Needed Apply this label when your PR does not need any QA effort. Run Smoke E2E Triggers smoke e2e on Bitrise team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants