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: Update navigation bar on start loading #8126

Merged
merged 4 commits into from
Feb 2, 2024

Conversation

tommasini
Copy link
Contributor

@tommasini tommasini commented Dec 15, 2023

Description

This PR aims to change the navigation bar to update when the loading starts and remove it from updating it when the loading ends.

Keeping onLoad because it seems some users still need a work around to get it work, and I have unknown data that shows me that this bug is not currently happening, and doing the patch does not seem the best option at the moment. We should check if this is still a bug on the newest versions of react native webview code.

Related issues

More details here

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues
  • I've included manual testing steps
  • I've included screenshots/recordings if applicable
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

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.

… and do it when loading starts, also disconnect the bridge when load starts and verify immediately if the url is allowed or not, only after address updating the navigation bar if the url it is different from the previous one, removing than the update of the navigation bar only on load ends
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.

@codecov-commenter
Copy link

codecov-commenter commented Dec 15, 2023

Codecov Report

Attention: 14 lines in your changes are missing coverage. Please review.

Comparison is base (dbd1deb) 40.67% compared to head (6c70d40) 40.67%.

Files Patch % Lines
app/components/Views/BrowserTab/index.js 0.00% 14 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8126   +/-   ##
=======================================
  Coverage   40.67%   40.67%           
=======================================
  Files        1240     1240           
  Lines       30012    30009    -3     
  Branches     2871     2871           
=======================================
  Hits        12206    12206           
+ Misses      17107    17104    -3     
  Partials      699      699           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarcloud bot commented Dec 15, 2023

Copy link

sonarcloud bot commented Jan 31, 2024

@tommasini tommasini marked this pull request as ready for review February 1, 2024 00:55
@tommasini tommasini requested a review from a team as a code owner February 1, 2024 00:55
@github-actions github-actions bot added the Run Smoke E2E Triggers smoke e2e on Bitrise label Feb 1, 2024
Copy link
Contributor

github-actions bot commented Feb 1, 2024

E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/85fee0bc-76ba-450f-b718-83b16f54ac17
You can also kick off another Bitrise E2E smoke test by removing and re-applying the (Run Smoke E2E) label

@tommasini tommasini added the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Feb 1, 2024
Copy link
Contributor

@MarioAslau MarioAslau left a comment

Choose a reason for hiding this comment

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

Looks good!

@tommasini tommasini merged commit 418b6d6 into main Feb 2, 2024
35 of 36 checks passed
@tommasini tommasini deleted the fix/1410-browser-address-bar branch February 2, 2024 20:10
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2024
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Feb 2, 2024
@metamaskbot metamaskbot added the release-7.17.0 Issue or pull request that will be included in release 7.17.0 label Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-7.17.0 Issue or pull request that will be included in release 7.17.0 Run Smoke E2E Triggers smoke e2e on Bitrise team-mobile-platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants